Class AttributeConstraintValidator
java.lang.Object
de.hybris.platform.validation.interceptors.AttributeConstraintValidator
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<AttributeConstraintModel>
public class AttributeConstraintValidator
extends Object
implements ValidateInterceptor<AttributeConstraintModel>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisConstraintValidForAccessor(AttributeConstraintModel constraint) voidonValidate(AttributeConstraintModel constraint, InterceptorContext ctx) Called in themodelService.saveAll()method.voidsetAnnotationsMappingRegistry(AnnotationsMappingRegistry annotationsMappingRegistry) voidsetTypeService(TypeService typeService)
-
Constructor Details
-
AttributeConstraintValidator
public AttributeConstraintValidator()
-
-
Method Details
-
onValidate
public void onValidate(AttributeConstraintModel constraint, InterceptorContext ctx) throws InterceptorException Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<AttributeConstraintModel>- Parameters:
constraint- the model which values has to be validatedctx- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
isConstraintValidForAccessor
-
getTypeService
-
setTypeService
-
setAnnotationsMappingRegistry
-