Class AbstractConstraintValidator
- java.lang.Object
-
- de.hybris.platform.validation.interceptors.AbstractConstraintValidator
-
- All Implemented Interfaces:
Interceptor
,ValidateInterceptor
public class AbstractConstraintValidator extends java.lang.Object implements ValidateInterceptor
This Validator checks if the default constraint group is set to the given constraints which is not allowed.
-
-
Constructor Summary
Constructors Constructor Description AbstractConstraintValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onValidate(java.lang.Object model, InterceptorContext ctx)
Called in themodelService.saveAll()
method.void
setValidationService(ValidationService validationService)
-
-
-
Method Detail
-
onValidate
public void onValidate(java.lang.Object model, InterceptorContext ctx) throws InterceptorException
Description copied from interface:ValidateInterceptor
Called in themodelService.saveAll()
method. Validates the values of the given model.- Specified by:
onValidate
in interfaceValidateInterceptor
- Parameters:
model
- the model which values has to be validatedctx
- theInterceptorContext
- Throws:
InterceptorException
- if any values of the model are not valid.
-
setValidationService
public void setValidationService(ValidationService validationService)
-
-