Class AttributeConstraintValidator
- java.lang.Object
-
- de.hybris.platform.validation.interceptors.AttributeConstraintValidator
-
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<AttributeConstraintModel>
public class AttributeConstraintValidator extends java.lang.Object implements ValidateInterceptor<AttributeConstraintModel>
-
-
Constructor Summary
Constructors Constructor Description AttributeConstraintValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeServicegetTypeService()protected booleanisConstraintValidForAccessor(AttributeConstraintModel constraint)voidonValidate(AttributeConstraintModel constraint, InterceptorContext ctx)Called in themodelService.saveAll()method.voidsetAnnotationsMappingRegistry(AnnotationsMappingRegistry annotationsMappingRegistry)voidsetTypeService(TypeService typeService)
-
-
-
Method Detail
-
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
protected boolean isConstraintValidForAccessor(AttributeConstraintModel constraint)
-
getTypeService
public TypeService getTypeService()
-
setTypeService
public void setTypeService(TypeService typeService)
-
setAnnotationsMappingRegistry
public void setAnnotationsMappingRegistry(AnnotationsMappingRegistry annotationsMappingRegistry)
-
-