Package com.veeva.vault.sdk.api.job
Interface JobParameters
public interface JobParameters
Provides methods to set values for job parameters.
-
Method Summary
Modifier and TypeMethodDescriptionGets the name of the job specified in aJobParameters
object.void
setJobOwner
(RequestContextUserType userType) This method supports future functionality and is not yet available for implementation.void
setJobRunTime
(ZonedDateTime startTime) Sets the job start time.void
setJobTitle
(String jobTitle) Sets the job title.void
Sets the value of a job parameter.
-
Method Details
-
setValue
Sets the value of a job parameter. When this method is called, certain jobs specified in thename
parameter may require thevalue
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 aJobParameters
object. The job name is set byJobService.newJobParameters(String)
.- Returns:
- name of the job specified in a
JobParameters
object
-
setJobRunTime
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
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
This method supports future functionality and is not yet available for implementation. 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)
-