Interface JobParameters


public interface JobParameters
Provides methods to set values for job parameters.
  • Method Details

    • setValue

      void setValue(String name, Object value)
      Sets the value of a job parameter. When this method is called, certain jobs specified in the name parameter may require the value parameter to be a specific data type.
      Parameters:
      name - name of the job parameter. Cannot be null.
      value - new value to set on the job parameter. Cannot be null.
    • getJobName

      String getJobName()
      Gets the name of the job specified in a JobParameters object. The job name is set by JobService.newJobParameters(String).
      Returns:
      name of the job specified in a JobParameters object
    • setJobRunTime

      void setJobRunTime(ZonedDateTime startTime)
      Sets the job start time. If unspecified or less than 60 seconds, the job will run immediately.
      Parameters:
      startTime - specifies the job start time
    • setJobTitle

      void setJobTitle(String jobTitle)
      Sets the job title. The job title parameter is optional. If nothing is specified, the title is defaulted.
      Parameters:
      jobTitle - name of the job title.
    • setJobOwner

      void setJobOwner(RequestContextUserType userType)
      This method supports future functionality and is not yet available for implementation. Sets the job owner. The job owner is specified by a RequestContextUserType. By default, the user who starts the job is the job owner.
      Parameters:
      userType - request context user type of the desired job owner user (e.g. RequestContextUserType.INITIATING_USER)