Class GrouperGroovyRuntime

java.lang.Object
edu.internet2.middleware.grouper.app.gsh.GrouperGroovyRuntime

public class GrouperGroovyRuntime extends Object
runtime during GSH script
  • Constructor Details

    • GrouperGroovyRuntime

      public GrouperGroovyRuntime()
  • Method Details

    • getResultCode

      public int getResultCode()
    • setResultCode

      public void setResultCode(int resultCode)
    • setInputNameToValue

      public void setInputNameToValue(Map<String,Object> inputNameToValue)
    • debugMap

      public void debugMap(String key, Object value)
      name value pairs to log
    • getDebugMap

      public Map<String,Object> getDebugMap()
      name value pairs to log
      Returns:
    • getOutString

      public StringBuilder getOutString()
    • print

      public void print(String line)
      print something to output
      Parameters:
      line -
    • println

      public void println(String line)
      print something to output with line at end
      Parameters:
      line -
    • getGrouperSession

      public GrouperSession getGrouperSession()
    • resetStartMillis1970

      public void resetStartMillis1970()
    • getAverageExecutionTimeMillis

      public int getAverageExecutionTimeMillis()
    • setAverageExecutionTimeMillis

      public void setAverageExecutionTimeMillis(int averageExecutionTimeMillis)
    • percentDone

      public int percentDone()
      Parameters:
      millisElapsed -
      Returns:
      guess of percent done, dont go over 99
    • setPercentDone

      public void setPercentDone(int percentDone)
    • assignThreadLocalGrouperGroovyRuntime

      public void assignThreadLocalGrouperGroovyRuntime()
    • removeThreadLocalGrouperGroovyRuntime

      public static void removeThreadLocalGrouperGroovyRuntime()
    • retrieveGrouperGroovyRuntime

      public static GrouperGroovyRuntime retrieveGrouperGroovyRuntime()
    • retrieveInputValueBoolean

      public Boolean retrieveInputValueBoolean(String inputName)
      Parameters:
      inputName -
      Returns:
      the boolean value of the integer
    • retrieveInputValueObject

      public Object retrieveInputValueObject(String inputName)
      Parameters:
      inputName -
      Returns:
      the value of the bind variable
    • retrieveInputValueInteger

      public Integer retrieveInputValueInteger(String inputName)
      Parameters:
      inputName -
      Returns:
      the integer value of the integer
    • retrieveInputValueString

      public String retrieveInputValueString(String inputName)
      Parameters:
      inputName -
      Returns:
      the string value of the integer
    • setGrouperSession

      public void setGrouperSession(GrouperSession grouperSession)
    • gshReturn

      public void gshReturn()
      get out of GSH with return code
      Parameters:
      returnCode -
    • gshReturn

      public void gshReturn(int returnCode)
      get out of GSH with return code
      Parameters:
      returnCode -