Class ClassificationAssociatesToProductOnlyValidateInterceptor
java.lang.Object
de.hybris.platform.integrationservices.interceptor.ClassificationAssociatesToProductOnlyValidateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<IntegrationObjectItemClassificationAttributeModel>
public class ClassificationAssociatesToProductOnlyValidateInterceptor
extends Object
implements ValidateInterceptor<IntegrationObjectItemClassificationAttributeModel>
Validates the
IntegrationObjectItemClassificationAttributeModel is only associated to ProductModel and its derivatives-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(IntegrationObjectItemClassificationAttributeModel attributeModel, InterceptorContext interceptorContext) Called in themodelService.saveAll()method.
-
Constructor Details
-
ClassificationAssociatesToProductOnlyValidateInterceptor
public ClassificationAssociatesToProductOnlyValidateInterceptor()
-
-
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.
-