public class DefaultModelJobValidatorServiceProvider extends Object implements JobValidatorService
Constructor and Description |
---|
DefaultModelJobValidatorServiceProvider() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkVariableFormat(Task task,
JobVariable variable,
ModelValidatorContext context) |
void |
validateJob(InputStream jobInputStream)
Validate the provided xml job file, before the job is parsed by the scheduler
If this validator does not validate against the xml file, leave the implementation
empty.
|
TaskFlowJob |
validateJob(TaskFlowJob job)
Validate a job object after the job has been parsed by the scheduler.
|
TaskFlowJob |
validateJob(TaskFlowJob job,
Scheduler scheduler,
SchedulerSpaceInterface space,
String sessionId)
Validate a job object which may contain variables which need ModelValidatorContext
to validate (e.g., PA:CREDENTIAL, PA:GLOBAL_FILE, PA:USER_FILE), after the job has been
parsed by the scheduler.
|
void |
validateVariables(List<JobVariable> variableList,
Map<String,Serializable> userValues,
Scheduler scheduler,
SchedulerSpaceInterface space) |
public DefaultModelJobValidatorServiceProvider()
public void validateJob(InputStream jobInputStream) throws JobValidationException
JobValidatorService
validateJob
in interface JobValidatorService
jobInputStream
- job file content to validateJobValidationException
- if the job is not validpublic TaskFlowJob validateJob(TaskFlowJob job) throws JobValidationException
JobValidatorService
validateJob
in interface JobValidatorService
job
- job object to validateJobValidationException
- if the job is not validpublic TaskFlowJob validateJob(TaskFlowJob job, Scheduler scheduler, SchedulerSpaceInterface space, String sessionId) throws JobValidationException
JobValidatorService
validateJob
in interface JobValidatorService
job
- job object to validatescheduler
- scheduler instance which can give the access to the third-party credentialsspace
- SchedulerSpaceInterface instance which can give the access to check data space filessessionId
- current session for validating jobs with CATALOG_OBJECT variablesJobValidationException
- if the job is not validpublic void validateVariables(List<JobVariable> variableList, Map<String,Serializable> userValues, Scheduler scheduler, SchedulerSpaceInterface space) throws JobValidationException
JobValidationException
protected void checkVariableFormat(Task task, JobVariable variable, ModelValidatorContext context) throws JobValidationException
JobValidationException