Class OtherJobTemplateInput
java.lang.Object
edu.internet2.middleware.grouper.app.loader.OtherJobBase.OtherJobInput
edu.internet2.middleware.grouper.app.loader.OtherJobTemplateInput
Specialization of OtherJobInput passed to compiled GSH daemon templates
(subclasses of GrouperTemplateDaemon,
templateType=daemon).
Adds template-specific context — the GSH template config id and the
resolved GshTemplateConfig — to the framework-provided fields
(grouperSession, jobName, hib3GrouperLoaderLog) inherited from
OtherJobInput. Other OtherJobBase subclasses (non-template daemons) keep
receiving plain OtherJobInput from the framework; only the
compiled-template bridge constructs this subclass.
The bridge populates this input by:
OtherJobTemplateInput templateInput = new OtherJobTemplateInput(); parentOtherJobInput.copyFieldsTo(templateInput); templateInput.setGshTemplateConfigId(...); templateInput.setGshTemplateConfig(...);copyFieldsTo is overridden below to also copy this subclass's fields when the target is itself an OtherJobTemplateInput. GRP-7011
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidOverride to also copy this subclass's fields when the target is an OtherJobTemplateInput.the resolved template config, for templates that want to introspect their own configurationconfig id of the GSH template that produced this daemonvoidsetGshTemplateConfig(GshTemplateConfig gshTemplateConfig) voidsetGshTemplateConfigId(String gshTemplateConfigId) Methods inherited from class edu.internet2.middleware.grouper.app.loader.OtherJobBase.OtherJobInput
getGrouperSession, getHib3GrouperLoaderLog, getJobName, setGrouperSession, setHib3GrouperLoaderLog, setJobName
-
Constructor Details
-
OtherJobTemplateInput
public OtherJobTemplateInput()
-
-
Method Details
-
getGshTemplateConfigId
config id of the GSH template that produced this daemon- Returns:
- config id
-
setGshTemplateConfigId
- Parameters:
gshTemplateConfigId-
-
getGshTemplateConfig
the resolved template config, for templates that want to introspect their own configuration- Returns:
- the config
-
setGshTemplateConfig
- Parameters:
gshTemplateConfig-
-
copyFieldsTo
Override to also copy this subclass's fields when the target is an OtherJobTemplateInput. Falls back to the parent behavior (copy only the parent's fields) when the target isn't a subclass.- Overrides:
copyFieldsToin classOtherJobBase.OtherJobInput- Parameters:
target- the OtherJobInput to copy onto; not null
-