Class AbstractConstraintUniqueValidator
java.lang.Object
de.hybris.platform.validation.interceptors.AbstractConstraintUniqueValidator
- All Implemented Interfaces:
Interceptor,ValidateInterceptor
Unique constraint validator based on
AbstractConstraintModel.TARGET,
AttributeConstraintModel.QUALIFIER, AbstractConstraintModel.ANNOTATION,
AbstractConstraintModel.ACTIVE-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(Object model, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetConstraintService(ConstraintService constraintService)
-
Constructor Details
-
AbstractConstraintUniqueValidator
public AbstractConstraintUniqueValidator()
-
-
Method Details
-
setConstraintService
-
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.
-