Class RootExistsValidator
java.lang.Object
de.hybris.platform.integrationservices.validator.RootExistsValidator
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<IntegrationObjectModel>
public class RootExistsValidator
extends Object
implements ValidateInterceptor<IntegrationObjectModel>
Verify the
IntegrationObjectModel contains a root item. If non exists,
a warning is logged. Because of backwards compatibility, no exception is thrown
when a root does not exist.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(IntegrationObjectModel integrationObjectModel, InterceptorContext interceptorContext) Called in themodelService.saveAll()method.
-
Constructor Details
-
RootExistsValidator
public RootExistsValidator()
-
-
Method Details
-
onValidate
public void onValidate(IntegrationObjectModel integrationObjectModel, InterceptorContext interceptorContext) 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
-