Class OtherJobTemplateInput

java.lang.Object
edu.internet2.middleware.grouper.app.loader.OtherJobBase.OtherJobInput
edu.internet2.middleware.grouper.app.loader.OtherJobTemplateInput

public class OtherJobTemplateInput extends OtherJobBase.OtherJobInput
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 Details

    • OtherJobTemplateInput

      public OtherJobTemplateInput()
  • Method Details

    • getGshTemplateConfigId

      public String getGshTemplateConfigId()
      config id of the GSH template that produced this daemon
      Returns:
      config id
    • setGshTemplateConfigId

      public void setGshTemplateConfigId(String gshTemplateConfigId)
      Parameters:
      gshTemplateConfigId -
    • getGshTemplateConfig

      public GshTemplateConfig getGshTemplateConfig()
      the resolved template config, for templates that want to introspect their own configuration
      Returns:
      the config
    • setGshTemplateConfig

      public void setGshTemplateConfig(GshTemplateConfig gshTemplateConfig)
      Parameters:
      gshTemplateConfig -
    • copyFieldsTo

      public void copyFieldsTo(OtherJobBase.OtherJobInput target)
      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:
      copyFieldsTo in class OtherJobBase.OtherJobInput
      Parameters:
      target - the OtherJobInput to copy onto; not null