Class ClassMapTypeValidateInterceptor
java.lang.Object
de.hybris.platform.integrationservices.interceptor.ClassMapTypeValidateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<IntegrationObjectClassAttributeModel>
public class ClassMapTypeValidateInterceptor
extends Object
implements ValidateInterceptor<IntegrationObjectClassAttributeModel>
Interceptor to validate that only
Map with primitive key and value type are allowed.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(IntegrationObjectClassAttributeModel attribute, InterceptorContext interceptorContext) Called in themodelService.saveAll()method.
-
Constructor Details
-
ClassMapTypeValidateInterceptor
public ClassMapTypeValidateInterceptor()
-
-
Method Details
-
onValidate
public void onValidate(IntegrationObjectClassAttributeModel attribute, InterceptorContext interceptorContext) throws InterceptorException Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<IntegrationObjectClassAttributeModel>- Parameters:
attribute- the model which values has to be validatedinterceptorContext- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-