Enum Class GshTemplateType
- All Implemented Interfaces:
Serializable,Comparable<GshTemplateType>,Constable
Type of a GSH template — what dispatcher fires it and what framework
base class the compiled-Java implementation extends.
The first three values (gsh, abac, provisioner) are the existing legacy
types. They support templateMode=interpreted (Groovy engine) and
templateMode=compiled (compiled Java). For these types the compiled-Java
subclass extends GshTemplateV2 (or, for provisioner, GshTemplateProvisionerBase).
The remaining values (daemon, daemonChangeLog, report, customUi, hook,
library) are new and only meaningful with templateMode=compiled — there is
no legacy Groovy path for them. The compiled-Java subclass extends a
dedicated framework base per type; see the design doc for the mapping.
GRP-7011 added daemon, daemonChangeLog, report, customUi, hook, library.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionABAC-pattern template — body extends GshTemplateV2custom UI button-action template — compiled-Java body extends GrouperTemplateCustomUi (in the grouper-ui module) and overrides one or more action methods (runOnJoin, runOnLeave, etc.).daemon template — compiled-Java body extends GrouperTemplateDaemon and implements runDaemon(OtherJobTemplateInput).change-log daemon template — compiled-Java body extends GrouperTemplateDaemonChangeLog and implements processRecords(EsbPublisherChangeLogScript).standard GSH template — body extends GshTemplateV2hook template — compiled-Java body extends one of the existing hook abstract classes (GroupHooks, MembershipHooks, StemHooks, etc.) and overrides whichever event methods apply.library template — compiled-Java body that exposes reusable methods for other templates to call.GSH provisioner template — compiled-Java body extends GshTemplateProvisionerBasereport template — compiled-Java body extends GrouperTemplateReport and implements runReport(GshReportRuntime). -
Method Summary
Modifier and TypeMethodDescriptionstatic GshTemplateTypeReturns the enum constant of this class with the specified name.static GshTemplateTypevalueOfIgnoreCase(String string, boolean exceptionOnNotFound) do a case-insensitive matchingstatic GshTemplateType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
gsh
standard GSH template — body extends GshTemplateV2 -
abac
ABAC-pattern template — body extends GshTemplateV2 -
provisioner
GSH provisioner template — compiled-Java body extends GshTemplateProvisionerBase -
daemon
daemon template — compiled-Java body extends GrouperTemplateDaemon and implements runDaemon(OtherJobTemplateInput). Dispatched from OtherJobScript via scriptType=compiledJava. -
daemonChangeLog
change-log daemon template — compiled-Java body extends GrouperTemplateDaemonChangeLog and implements processRecords(EsbPublisherChangeLogScript). Dispatched from EsbPublisherChangeLogScript via a compiled-template branch. -
report
report template — compiled-Java body extends GrouperTemplateReport and implements runReport(GshReportRuntime). Dispatched from ReportConfigType.GSH via a compiled-template sub-branch. -
customUi
custom UI button-action template — compiled-Java body extends GrouperTemplateCustomUi (in the grouper-ui module) and overrides one or more action methods (runOnJoin, runOnLeave, etc.). Dispatched from the custom UI controllers via dedicated join/leave bridge methods on CustomUiContainer. -
hook
hook template — compiled-Java body extends one of the existing hook abstract classes (GroupHooks, MembershipHooks, StemHooks, etc.) and overrides whichever event methods apply. Dispatched from the hooks framework via a new hooks.<domain>.gshTemplateConfigIds config property; no new base class introduced for this type. -
library
library template — compiled-Java body that exposes reusable methods for other templates to call. No required base class; no dispatcher of its own. Other templates invoke it via the registry (by interface cast when an institution-shared-jar interface is in play, or via GrouperUtil.callMethod when reflection is preferred).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
valueOfIgnoreCase
do a case-insensitive matching- Parameters:
string-exceptionOnNotFound- true to throw exception if method not found- Returns:
- the enum or null or exception if not found
-