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