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