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