Class IntegrationClassificationAttributeUniqueNameValidateInterceptor
java.lang.Object
de.hybris.platform.integrationservices.interceptor.IntegrationClassificationAttributeUniqueNameValidateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<IntegrationObjectItemClassificationAttributeModel>
public class IntegrationClassificationAttributeUniqueNameValidateInterceptor
extends Object
implements ValidateInterceptor<IntegrationObjectItemClassificationAttributeModel>
An interceptor that validates the
IntegrationObjectItemClassificationAttributeModel's attribute name does not appear in the
IntegrationObjectItemAttributeModels of the
IntegrationObjectItemModel associated to the attribute.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(IntegrationObjectItemClassificationAttributeModel attributeModel, InterceptorContext interceptorContext) Called in themodelService.saveAll()method.
-
Constructor Details
-
IntegrationClassificationAttributeUniqueNameValidateInterceptor
public IntegrationClassificationAttributeUniqueNameValidateInterceptor()
-
-
Method Details
-
onValidate
public void onValidate(IntegrationObjectItemClassificationAttributeModel 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<IntegrationObjectItemClassificationAttributeModel>- Parameters:
attributeModel- the model which values has to be validatedinterceptorContext- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-