Class RemoveConsumedDestinationInterceptor
- java.lang.Object
-
- de.hybris.platform.apiregistryservices.interceptors.RemoveConsumedDestinationInterceptor
-
- All Implemented Interfaces:
Interceptor,RemoveInterceptor<ConsumedDestinationModel>
public class RemoveConsumedDestinationInterceptor extends java.lang.Object implements RemoveInterceptor<ConsumedDestinationModel>
Interceptor to prevent Consumed Destination deletionConsumedDestinationModelif it was assigned to WebhookConfiguration or OutboundChannelConfiguration.
-
-
Constructor Summary
Constructors Constructor Description RemoveConsumedDestinationInterceptor(@NotNull ConsumedDestinationVerifyUsageService consumedDestinationVerifyUsageService, @NotNull java.util.List<java.util.Map<java.lang.String,java.lang.String>> consumedDestinationPreventRemoveList)Constructor to create a RemoveConsumedDestinationInterceptor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonRemove(ConsumedDestinationModel consumedDestinationModel, InterceptorContext ctx)Called in themodelService.removeAll()method.
-
-
-
Constructor Detail
-
RemoveConsumedDestinationInterceptor
public RemoveConsumedDestinationInterceptor(@NotNull @NotNull ConsumedDestinationVerifyUsageService consumedDestinationVerifyUsageService, @NotNull @NotNull java.util.List<java.util.Map<java.lang.String,java.lang.String>> consumedDestinationPreventRemoveList)Constructor to create a RemoveConsumedDestinationInterceptor- Parameters:
consumedDestinationVerifyUsageService- to search for item model that was assigned Consumed DestinationconsumedDestinationPreventRemoveList- to configure item model type code/destination attribute name and so on
-
-
Method Detail
-
onRemove
public void onRemove(ConsumedDestinationModel consumedDestinationModel, InterceptorContext ctx) throws InterceptorException
Description copied from interface:RemoveInterceptorCalled in themodelService.removeAll()method.- Specified by:
onRemovein interfaceRemoveInterceptor<ConsumedDestinationModel>- Parameters:
consumedDestinationModel- the model which should be removedctx- theInterceptorContext- Throws:
InterceptorException- if the remove reports an error
-
-