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 specifiedEnumerationValueModel
is dynamic.
-
-
Constructor Summary
Constructors Constructor Description EnumerationValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onValidate(java.lang.Object model, InterceptorContext ctx)
Validates if the specifiedEnumerationValueModel
is dynamic.void
setTypeService(TypeService typeService)
-
-
-
Method Detail
-
setTypeService
public void setTypeService(TypeService typeService)
-
onValidate
public void onValidate(java.lang.Object model, InterceptorContext ctx) throws InterceptorException
Validates if the specifiedEnumerationValueModel
is dynamic. If yes - an Exception will be thrown.- Specified by:
onValidate
in interfaceValidateInterceptor
- Parameters:
model
- the model which values has to be validatedctx
- theInterceptorContext
- Throws:
InterceptorException
- if any values of the model are not valid.
-
-