Class GrouperLoaderJexlScriptFullSync

java.lang.Object
edu.internet2.middleware.grouper.app.loader.OtherJobBase
edu.internet2.middleware.grouper.abac.GrouperLoaderJexlScriptFullSync
All Implemented Interfaces:
org.quartz.Job

@DisallowConcurrentExecution public class GrouperLoaderJexlScriptFullSync extends OtherJobBase
  • Constructor Details

    • GrouperLoaderJexlScriptFullSync

      public GrouperLoaderJexlScriptFullSync()
  • Method Details

    • main

      public static void main(String[] args)
    • analyzeJexlScriptHtml

      public static GrouperJexlScriptAnalysis analyzeJexlScriptHtml(String jexlScript, Subject subject, Subject loggedInSubject)
    • analyzeJexlScript

      public static GrouperJexlScriptAnalysis analyzeJexlScript(String jexlStript)
      Parameters:
      jexlStript -
      arguments - first one is type (e.g. group), second is list (e.g. members), third is name (e.g. test:testGroup). Used for bind variables
      Returns:
      the sql
    • analyzeJexlScriptToSqlHelper

      public static void analyzeJexlScriptToSqlHelper(GrouperJexlScriptAnalysis grouperJexlScriptAnalysis, GrouperJexlScriptPart theGrouperJexlScriptPart, org.apache.commons.jexl3.parser.JexlNode jexlNode, boolean clonePart)
    • analyzeJexlReferenceTwoChildrenToSqlHelper

      public static void analyzeJexlReferenceTwoChildrenToSqlHelper(GrouperJexlScriptAnalysis grouperJexlScriptAnalysis, GrouperJexlScriptPart grouperJexlScriptPart, org.apache.commons.jexl3.parser.ASTReference astReference, boolean clonePart)
      has two children
      Parameters:
      result -
      astReference -
    • analyzeJexlRowToSqlHelper

      public static void analyzeJexlRowToSqlHelper(GrouperJexlScriptAnalysis grouperJexlScriptAnalysis, GrouperJexlScriptPart grouperJexlScriptPart, GrouperJexlScriptPart rowJexlScriptPart, String jexlStript, boolean clonePart)
      Parameters:
      jexlStript -
      arguments - first one is type (e.g. group), second is list (e.g. members), third is name (e.g. test:testGroup)
    • analyzeJexlRowToSqlHelper

      public static void analyzeJexlRowToSqlHelper(GrouperJexlScriptAnalysis grouperJexlScriptAnalysis, GrouperJexlScriptPart grouperJexlScriptPart, GrouperJexlScriptPart rowJexlScriptPart, org.apache.commons.jexl3.parser.JexlNode jexlNode, boolean clonePart)
    • convertJexlScriptToSqlWhereClause

      public static String convertJexlScriptToSqlWhereClause(String jexlStript, List<MultiKey> arguments)
      Parameters:
      jexlStript -
      arguments - first one is type (e.g. group), second is list (e.g. members), third is name (e.g. test:testGroup). Used for bind variables
      Returns:
      the sql
    • convertJexlReferenceTwoChildrenToSqlHelper

      public static void convertJexlReferenceTwoChildrenToSqlHelper(StringBuilder result, org.apache.commons.jexl3.parser.ASTReference astReference, List<MultiKey> arguments)
      has two children
      Parameters:
      result -
      astReference -
    • convertJexlRowToSqlHelper

      public static void convertJexlRowToSqlHelper(StringBuilder result, String jexlStript, List<MultiKey> arguments)
      Parameters:
      jexlStript -
      arguments - first one is type (e.g. group), second is list (e.g. members), third is name (e.g. test:testGroup)
    • convertJexlRowToSqlHelper

      public static void convertJexlRowToSqlHelper(StringBuilder result, org.apache.commons.jexl3.parser.JexlNode jexlNode, List<MultiKey> arguments)
    • convertJexlScriptToSqlHelper

      public static void convertJexlScriptToSqlHelper(StringBuilder result, org.apache.commons.jexl3.parser.JexlNode jexlNode, List<MultiKey> arguments)
    • run

      Description copied from class: OtherJobBase
      implement this method for the logic of the OtherJob
      Specified by:
      run in class OtherJobBase
      Returns:
      the output
    • runDaemonStandalone

      public static void runDaemonStandalone()
      run standalone