Class WebhookConfigurationRootItemUpdateInterceptor
java.lang.Object
de.hybris.platform.webhookservices.interceptor.WebhookConfigurationRootItemUpdateInterceptor
- All Implemented Interfaces:
Interceptor,ValidateInterceptor<IntegrationObjectItemModel>
public class WebhookConfigurationRootItemUpdateInterceptor
extends Object
implements ValidateInterceptor<IntegrationObjectItemModel>
A validate interceptor that prevents updating the root IntegrationObjectItemModel to
false when the IntegrationObject
is associated to an existing WebhookConfiguration.-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new WebhookConfigurationRootItemUpdateInterceptor. -
Method Summary
Modifier and TypeMethodDescriptionvoidonValidate(IntegrationObjectItemModel ioItem, InterceptorContext interceptorContext) Called in themodelService.saveAll()method.
-
Constructor Details
-
WebhookConfigurationRootItemUpdateInterceptor
Instantiates a new WebhookConfigurationRootItemUpdateInterceptor.- Parameters:
service- to look upWebhookConfigurationModel
-
-
Method Details
-
onValidate
public void onValidate(IntegrationObjectItemModel ioItem, InterceptorContext interceptorContext) throws InterceptorException Description copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor<IntegrationObjectItemModel>- Parameters:
ioItem- the model which values has to be validatedinterceptorContext- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-