Class RootClassExistsValidateInterceptor
java.lang.Object
de.hybris.platform.integrationservices.interceptor.RootClassExistsValidateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<IntegrationObjectModel>
public class RootClassExistsValidateInterceptor
extends Object
implements ValidateInterceptor<IntegrationObjectModel>
Verifies the
IntegrationObjectModel contains a root class. If none exists, exception is thrown.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(IntegrationObjectModel integrationObjectModel, InterceptorContext interceptorContext) Called in themodelService.saveAll()method.
-
Constructor Details
-
RootClassExistsValidateInterceptor
public RootClassExistsValidateInterceptor()
-
-
Method Details
-
onValidate
public void onValidate(IntegrationObjectModel integrationObjectModel, InterceptorContext interceptorContext) throws InterceptorException Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<IntegrationObjectModel>- Parameters:
integrationObjectModel- the model which values has to be validatedinterceptorContext- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-