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