Class NoWebhookConfigBeforeRemoveIOChecker
java.lang.Object
de.hybris.platform.webhookservices.interceptor.NoWebhookConfigBeforeRemoveIOChecker
- All Implemented Interfaces:
BeforeRemoveIntegrationObjectChecker
public class NoWebhookConfigBeforeRemoveIOChecker
extends Object
implements BeforeRemoveIntegrationObjectChecker
This checker is dynamically added to the beforeRemoveIntegrationObjectCheckers of the IntegrationObjectRemoveInterceptor
IntegrationObjectRemoveInterceptor.
Before an IntegrationObject is deleted, this checker will check if there is any WebhookConfiguration that references that IntegrationObject.-
Constructor Summary
ConstructorsConstructorDescriptionNoWebhookConfigBeforeRemoveIOChecker(@NotNull FlexibleSearchService flexibleSearchService) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckIfIntegrationObjectInUse(IntegrationObjectModel integrationObject) This method will be called to check if there are any items that reference the given integrationObject.
-
Constructor Details
-
NoWebhookConfigBeforeRemoveIOChecker
public NoWebhookConfigBeforeRemoveIOChecker(@NotNull @NotNull FlexibleSearchService flexibleSearchService) Constructor- Parameters:
flexibleSearchService- to search for theWebhookConfigurationModel.
-
-
Method Details
-
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
-