Class IntegrationObjectClassRootValidateInterceptor
java.lang.Object
de.hybris.platform.integrationservices.interceptor.IntegrationObjectClassRootValidateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<IntegrationObjectClassModel>
public class IntegrationObjectClassRootValidateInterceptor
extends Object
implements ValidateInterceptor<IntegrationObjectClassModel>
Validates that any atomic type
IntegrationObjectClassModel is not set as the root.-
Constructor Summary
ConstructorsConstructorDescriptionIntegrationObjectClassRootValidateInterceptor(@NotNull TypeService typeService) Instantiate theIntegrationObjectClassRootValidateInterceptor -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(IntegrationObjectClassModel ioClass, InterceptorContext interceptorContext) Validates the context class model and throws exceptions when an atomic type is root.
-
Constructor Details
-
IntegrationObjectClassRootValidateInterceptor
Instantiate theIntegrationObjectClassRootValidateInterceptor- Parameters:
typeService- type service to search for atomic types
-
-
Method Details
-
onValidate
public void onValidate(IntegrationObjectClassModel ioClass, InterceptorContext interceptorContext) throws InterceptorException Validates the context class model and throws exceptions when an atomic type is root.- Specified by:
onValidatein interfaceValidateInterceptor<IntegrationObjectClassModel>- Parameters:
ioClass- the model which values has to be validatedinterceptorContext- theInterceptorContext- Throws:
InterceptorException- when configuration problems found
-