Class NoWebhookConfigBeforeRemoveIOChecker
- java.lang.Object
-
- de.hybris.platform.webhookservices.interceptor.NoWebhookConfigBeforeRemoveIOChecker
-
- All Implemented Interfaces:
BeforeRemoveIntegrationObjectChecker
public class NoWebhookConfigBeforeRemoveIOChecker extends java.lang.Object implements BeforeRemoveIntegrationObjectChecker
This checker is dynamically added to the beforeRemoveIntegrationObjectCheckers of the IntegrationObjectRemoveInterceptorIntegrationObjectRemoveInterceptor. Before an IntegrationObject is deleted, this checker will check if there is any WebhookConfiguration that references that IntegrationObject.
-
-
Constructor Summary
Constructors Constructor Description NoWebhookConfigBeforeRemoveIOChecker(@NotNull FlexibleSearchService flexibleSearchService)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckIfIntegrationObjectInUse(IntegrationObjectModel integrationObject)This method will be called to check if there are any items that reference the given integrationObject.
-
-
-
Constructor Detail
-
NoWebhookConfigBeforeRemoveIOChecker
public NoWebhookConfigBeforeRemoveIOChecker(@NotNull @NotNull FlexibleSearchService flexibleSearchService)Constructor- Parameters:
flexibleSearchService- to search for theWebhookConfigurationModel.
-
-
Method Detail
-
checkIfIntegrationObjectInUse
public void checkIfIntegrationObjectInUse(IntegrationObjectModel integrationObject) throws InterceptorException
Description copied from interface:BeforeRemoveIntegrationObjectCheckerThis method will be called to check if there are any items that reference the given integrationObject. If there are any, anInterceptorExceptionwill be thrown.- Specified by:
checkIfIntegrationObjectInUsein interfaceBeforeRemoveIntegrationObjectChecker- Parameters:
integrationObject- The integrationObject to be checked that if any items reference it.- Throws:
InterceptorException- when the Integration Object is referenced
-
-