Package com.veeva.vault.sdk.api.job
Interface JobParameters
Deprecated.
Provides methods to set values for job parameters on a single job instance.
This object acts as a builder for a job run. Obtain an instance from
JobService.newJobParameters(String), configure it
with a start time or custom parameters, and then pass it to
JobService.runJob(JobParameters). Custom parameters
set here are retrieved within the job via JobContext.getJobParameter(java.lang.String, com.veeva.vault.sdk.api.job.JobParamValueType<T>).
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets the name of the job specified in aJobParametersobject.voidsetJobOwner(RequestContextUserType userType) Deprecated.Sets the job owner.voidsetJobRunTime(ZonedDateTime startTime) Deprecated.Sets the job start time.voidsetJobTitle(String jobTitle) Deprecated.Sets the job title.voidDeprecated.Sets the value of a job parameter.
-
Method Details
-
setValue
Deprecated.Sets the value of a job parameter. When this method is called, certain jobs specified in thenameparameter may require thevalueparameter 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()Deprecated.Gets the name of the job specified in aJobParametersobject. The job name is set byJobService.newJobParameters(String).- Returns:
- name of the job specified in a
JobParametersobject
-
setJobRunTime
Deprecated.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
Deprecated.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
Deprecated.Sets the job owner. The job owner is specified by aRequestContextUserType. 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)
-
JobQueueRequest