Class NoOutboundChannelConfigBeforeRemoveIOChecker
- java.lang.Object
-
- de.hybris.platform.outboundsync.interceptor.NoOutboundChannelConfigBeforeRemoveIOChecker
-
- All Implemented Interfaces:
BeforeRemoveIntegrationObjectChecker
public class NoOutboundChannelConfigBeforeRemoveIOChecker 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 OutboundChannelConfiguration that references that IntegrationObject.
-
-
Constructor Summary
Constructors Constructor Description NoOutboundChannelConfigBeforeRemoveIOChecker(@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
-
NoOutboundChannelConfigBeforeRemoveIOChecker
public NoOutboundChannelConfigBeforeRemoveIOChecker(@NotNull @NotNull FlexibleSearchService flexibleSearchService)Constructor- Parameters:
flexibleSearchService- to search for theOutboundChannelConfigurationModel.
-
-
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
-
-