Class IntegrationObjectItemReservedAttributeNameValidatorInterceptor
java.lang.Object
de.hybris.platform.odata2services.interceptor.IntegrationObjectItemReservedAttributeNameValidatorInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<IntegrationObjectItemAttributeModel>
public class IntegrationObjectItemReservedAttributeNameValidatorInterceptor
extends Object
implements ValidateInterceptor<IntegrationObjectItemAttributeModel>
An interceptor that validates
IntegrationObjectItemAttributeModel's attribute name does not equal the reserved names
"localizedAttributes" and "integrationKey".-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(IntegrationObjectItemAttributeModel attributeModel, InterceptorContext interceptorContext) Called in themodelService.saveAll()method.
-
Constructor Details
-
IntegrationObjectItemReservedAttributeNameValidatorInterceptor
public IntegrationObjectItemReservedAttributeNameValidatorInterceptor()
-
-
Method Details
-
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.
-