Class AutomatedWorkflowActionTemplateValidator
java.lang.Object
de.hybris.platform.workflow.interceptors.AutomatedWorkflowActionTemplateValidator
- All Implemented Interfaces:
Interceptor,ValidateInterceptor
This interceptor checks
AutomatedWorkflowActionTemplateModel.JOBCLASS and
AutomatedWorkflowActionTemplateModel.JOBHANDLER attributes. The rules are as follows:- both together attributes cannot be null
- both together attributes cannot be set
- if JOBCLASS is set but not JOBHANDLER then deprecation warning will be logged
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(Object model, InterceptorContext ctx) Called in themodelService.saveAll()method.
-
Constructor Details
-
AutomatedWorkflowActionTemplateValidator
public AutomatedWorkflowActionTemplateValidator()
-
-
Method Details
-
onValidate
Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor- Parameters:
model- the model which values has to be validatedctx- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-