Class EnumerationValidator
- java.lang.Object
-
- de.hybris.platform.servicelayer.interceptor.impl.EnumerationValidator
-
- All Implemented Interfaces:
Interceptor,ValidateInterceptor
public class EnumerationValidator extends java.lang.Object implements ValidateInterceptor
Validator which checks if the specifiedEnumerationValueModelis dynamic.
-
-
Constructor Summary
Constructors Constructor Description EnumerationValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonValidate(java.lang.Object model, InterceptorContext ctx)Validates if the specifiedEnumerationValueModelis dynamic.voidsetTypeService(TypeService typeService)
-
-
-
Method Detail
-
setTypeService
public void setTypeService(TypeService typeService)
-
onValidate
public void onValidate(java.lang.Object model, InterceptorContext ctx) throws InterceptorExceptionValidates 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.
-
-