Class RemoveDiscountsOnCurrencyRemovalInterceptor
java.lang.Object
de.hybris.platform.order.interceptors.RemoveDiscountsOnCurrencyRemovalInterceptor
- All Implemented Interfaces:
Interceptor,RemoveInterceptor
public class RemoveDiscountsOnCurrencyRemovalInterceptor
extends Object
implements RemoveInterceptor
The interceptor performs cascade removal of
NOTE:
DiscountModels having this particular currency.NOTE:
InterceptorMapping handling this interceptor must be positioned after all interceptors which
perform removal checks, i.e:-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonRemove(Object model, InterceptorContext ctx) Called in themodelService.removeAll()method.voidsetDiscountService(DiscountService discountService) voidsetModelService(ModelService modelService)
-
Constructor Details
-
RemoveDiscountsOnCurrencyRemovalInterceptor
public RemoveDiscountsOnCurrencyRemovalInterceptor()
-
-
Method Details
-
onRemove
Description copied from interface:RemoveInterceptorCalled in themodelService.removeAll()method.- Specified by:
onRemovein interfaceRemoveInterceptor- Parameters:
model- the model which should be removedctx- theInterceptorContext- Throws:
InterceptorException- if the remove reports an error
-
setDiscountService
-
setModelService
-