Use this class to execute a custom gsh template
Sample call
GshTemplateExec exec = new GshTemplateExec();
exec.assignConfigId("testGshTemplateConfig");
exec.assignCurrentUser(subject);
exec.assignGshTemplateOwnerType(GshTemplateOwnerType.stem);
exec.assignOwnerStemName(ownerStem.getName());
GshTemplateInput input = new GshTemplateInput();
input.assignName("gsh_input_myExtension");
input.assignValueString("zoomTest");
exec.addGshTemplateInput(input);
GshTemplateExecOutput output = exec.execute();
if (output.getGshTemplateOutput().isError()) {
// handle this... e.g. from another template: gsh_builtin_gshTemplateOutput.addOutputLine("Error running sub-template");
}
if (GrouperUtil.length(output.getGshTemplateOutput().getValidationLines()) > 0) {
for (GshValidationLine gshValidationLine : output.getGshTemplateOutput().getValidationLines()) {
// handle this... e.g. from another template
// gsh_builtin_gshTemplateOutput.addOutputLine((String)(gshValidationLine.getInputName() + ": " + gshValidationLine.getText()));
}
}