Class WebhookConfigurationRootItemRemoveInterceptor
java.lang.Object
de.hybris.platform.webhookservices.interceptor.WebhookConfigurationRootItemRemoveInterceptor
- All Implemented Interfaces:
Interceptor,RemoveInterceptor<IntegrationObjectItemModel>
public class WebhookConfigurationRootItemRemoveInterceptor
extends Object
implements RemoveInterceptor<IntegrationObjectItemModel>
A remove interceptor that prevents removal of root IntegrationObjectClassModels if the IntegrationObject
is associated to an existing WebhookConfiguration.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new WebhookConfigurationRootItemRemoveInterceptor. -
Method Summary
Modifier and TypeMethodDescriptionvoidonRemove(IntegrationObjectItemModel ioItem, InterceptorContext interceptorContext) Called in themodelService.removeAll()method.
-
Constructor Details
-
WebhookConfigurationRootItemRemoveInterceptor
Instantiates a new WebhookConfigurationRootItemRemoveInterceptor.- Parameters:
service- to look upWebhookConfigurationModel
-
-
Method Details
-
onRemove
public void onRemove(IntegrationObjectItemModel ioItem, InterceptorContext interceptorContext) throws InterceptorException Description copied from interface:RemoveInterceptorCalled in themodelService.removeAll()method.- Specified by:
onRemovein interfaceRemoveInterceptor<IntegrationObjectItemModel>- Parameters:
ioItem- the model which should be removedinterceptorContext- theInterceptorContext- Throws:
InterceptorException- if the remove reports an error
-