Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

TypeVariableValue
GshTemplateOutputgsh_builtin_gshTemplateOutput 

Object that helps print output, notify about validation errors, or identify that an error occurred

Do not navigate after running template (or put another link in there)

Code Block
    gsh_builtin_gshTemplateOutput.assignRedirectToGrouperOperation("NONE");


GshTemplateRuntimegsh_builtin_gshTemplateRuntimeInternal object that is used to help with other variables
GrouperSessiongsh_builtin_grouperSessionSession based on who the template is running is (this is configured, recommended to be the user who is running the template)
Subjectgsh_builtin_subjectSubject who is running the template
Stringgsh_builtin_subjectIdSubject ID of gsh_builtin_subject
Stringgsh_builtin_ownerStemNameFolder name of the folder where the script is run (if stem script, otherwise null)
Stringgsh_builtin_ownerGroupNameGroup name for the group where the script was run (if group script, otherwise null)
Stringgsh_input_XXXXXX String inputs
Integergsh_input_YYYYYYYInteger inputs
Booleangsh_input_ZZZZZZZBoolean inputs


Code Block
import edu.internet2.middleware.grouper.app.gsh.template.*;
import edu.internet2.middleware.grouper.util.*;
GshTemplateOutput gsh_builtin_gshTemplateOutput = GshTemplateOutput.retrieveGshTemplateOutput(); 
GshTemplateRuntime gsh_builtin_gshTemplateRuntime = GshTemplateRuntime.retrieveGshTemplateRuntime(); 
GrouperSession gsh_builtin_grouperSession = gsh_builtin_gshTemplateRuntime.getGrouperSession();
Subject gsh_builtin_subject = gsh_builtin_gshTemplateRuntime.getCurrentSubject();
String gsh_builtin_subjectId = \"subjectSubjectId\";
String gsh_builtin_ownerStemName = \"a:b:c\";
String gsh_input_workingGroupExtension = \"test\";
Integer gsh_input_theSize = 55;
Boolean gsh_input_isSympaModerated = false;
... the configured script ...

...