Class IntegrationAttributeUniqueNameValidateInterceptor
java.lang.Object
de.hybris.platform.integrationservices.interceptor.IntegrationAttributeUniqueNameValidateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<IntegrationObjectItemAttributeModel>
public class IntegrationAttributeUniqueNameValidateInterceptor
extends Object
implements ValidateInterceptor<IntegrationObjectItemAttributeModel>
An interceptor that validates the
IntegrationObjectItemAttributeModel's attribute name does not appear in the
IntegrationObjectItemClassificationAttributeModels of the
IntegrationObjectItemModel associated to the attribute.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(IntegrationObjectItemAttributeModel attributeModel, InterceptorContext interceptorContext) Called in themodelService.saveAll()method.
-
Constructor Details
-
IntegrationAttributeUniqueNameValidateInterceptor
public IntegrationAttributeUniqueNameValidateInterceptor()
-
-
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.
-