Class IntegrationObjectRemoveInterceptor
- java.lang.Object
-
- de.hybris.platform.inboundservices.interceptor.IntegrationObjectRemoveInterceptor
-
- All Implemented Interfaces:
Interceptor,RemoveInterceptor<IntegrationObjectModel>
public class IntegrationObjectRemoveInterceptor extends java.lang.Object implements RemoveInterceptor<IntegrationObjectModel>
Interceptor to prevent Integration Object deletionIntegrationObjectModelif it was assigned an InboundChannelConfigurationInboundChannelConfigurationModel.
-
-
Constructor Summary
Constructors Constructor Description IntegrationObjectRemoveInterceptor(@NotNull InboundChannelConfigurationService defaultInboundChannelConfigurationService)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonRemove(IntegrationObjectModel integrationObject, InterceptorContext ctx)Called in themodelService.removeAll()method.
-
-
-
Constructor Detail
-
IntegrationObjectRemoveInterceptor
public IntegrationObjectRemoveInterceptor(@NotNull @NotNull InboundChannelConfigurationService defaultInboundChannelConfigurationService)Constructor- Parameters:
defaultInboundChannelConfigurationService- to query if integration objectIntegrationObjectModelwas assigned inbound channel configurationsInboundChannelConfigurationModel.
-
-
Method Detail
-
onRemove
public void onRemove(IntegrationObjectModel integrationObject, InterceptorContext ctx) throws InterceptorException
Description copied from interface:RemoveInterceptorCalled in themodelService.removeAll()method.- Specified by:
onRemovein interfaceRemoveInterceptor<IntegrationObjectModel>- Parameters:
integrationObject- the model which should be removedctx- theInterceptorContext- Throws:
InterceptorException- if the remove reports an error
-
-