Class IntegrationObjectItemReservedAttributeNameValidatorInterceptor
- java.lang.Object
-
- de.hybris.platform.odata2services.interceptor.IntegrationObjectItemReservedAttributeNameValidatorInterceptor
-
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<IntegrationObjectItemAttributeModel>
public class IntegrationObjectItemReservedAttributeNameValidatorInterceptor extends java.lang.Object implements ValidateInterceptor<IntegrationObjectItemAttributeModel>
An interceptor that validatesIntegrationObjectItemAttributeModel's attribute name does not equal the reserved names "localizedAttributes" and "integrationKey".
-
-
Constructor Summary
Constructors Constructor Description IntegrationObjectItemReservedAttributeNameValidatorInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonValidate(IntegrationObjectItemAttributeModel attributeModel, InterceptorContext interceptorContext)Called in themodelService.saveAll()method.
-
-
-
Method Detail
-
onValidate
public void onValidate(IntegrationObjectItemAttributeModel attributeModel, InterceptorContext interceptorContext) throws InterceptorException
Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<IntegrationObjectItemAttributeModel>- Parameters:
attributeModel- the model which values has to be validatedinterceptorContext- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
-