Class IntegrationObjectItemAndClassNotAllowedInterceptor
java.lang.Object
de.hybris.platform.integrationservices.interceptor.IntegrationObjectItemAndClassNotAllowedInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<IntegrationObjectItemModel>
public class IntegrationObjectItemAndClassNotAllowedInterceptor
extends Object
implements ValidateInterceptor<IntegrationObjectItemModel>
An interceptor that validates one
IntegrationObjectModel assigned IntegrationObjectItemModel can not have
IntegrationObjectClassModel-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(IntegrationObjectItemModel item, InterceptorContext interceptorContext) Called in themodelService.saveAll()method.
-
Constructor Details
-
IntegrationObjectItemAndClassNotAllowedInterceptor
public IntegrationObjectItemAndClassNotAllowedInterceptor()
-
-
Method Details
-
onValidate
public void onValidate(IntegrationObjectItemModel item, InterceptorContext interceptorContext) throws InterceptorException Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<IntegrationObjectItemModel>- Parameters:
item- the model which values has to be validatedinterceptorContext- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-