Class EnumerationValidator
java.lang.Object
de.hybris.platform.servicelayer.interceptor.impl.EnumerationValidator
- All Implemented Interfaces:
Interceptor,ValidateInterceptor
Validator which checks if the specified
EnumerationValueModel is dynamic.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(Object model, InterceptorContext ctx) Validates if the specifiedEnumerationValueModelis dynamic.voidsetTypeService(TypeService typeService)
-
Constructor Details
-
EnumerationValidator
public EnumerationValidator()
-
-
Method Details
-
setTypeService
-
onValidate
Validates if the specifiedEnumerationValueModelis dynamic. If yes - an Exception will be thrown.- 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.
-