public class ValidationContext
extends java.lang.Object
ValidationContext
class, primarily provides the configuration to be validated.
It also provides metadata, which currently includes an indicator of the current validation state:
* CREATE: The configuration is new and validation must succeed before it can be saved.
* UPDATE: The configuration is being updated. Similarly, the validation must succeed in order for the change to be
saved.
* RUN: The validation is being requested before a job start request. If the validation fails, the job will not
proceed.Modifier and Type | Class and Description |
---|---|
static class |
ValidationContext.ConfigOperation |
Modifier and Type | Method and Description |
---|---|
static ValidationContext |
createValidationContext(java.lang.String operation) |
ValidationContext.ConfigOperation |
getConfigOperation() |
boolean |
isCreate() |
boolean |
isCreateOrUpdate() |
boolean |
isRun() |
boolean |
isUpdate() |
static ValidationContext |
validationContextCreate() |
static ValidationContext |
validationContextRun() |
static ValidationContext |
validationContextUpdate() |
public static ValidationContext createValidationContext(java.lang.String operation)
public boolean isCreate()
public static ValidationContext validationContextCreate()
public boolean isUpdate()
public static ValidationContext validationContextUpdate()
public boolean isRun()
public static ValidationContext validationContextRun()
public boolean isCreateOrUpdate()
public ValidationContext.ConfigOperation getConfigOperation()