Class RemoveDiscountsOnCurrencyRemovalInterceptor
- java.lang.Object
-
- de.hybris.platform.order.interceptors.RemoveDiscountsOnCurrencyRemovalInterceptor
-
- All Implemented Interfaces:
Interceptor,RemoveInterceptor
public class RemoveDiscountsOnCurrencyRemovalInterceptor extends java.lang.Object implements RemoveInterceptor
The interceptor performs cascade removal ofDiscountModels having this particular currency.
NOTE:InterceptorMappinghandling this interceptor must be positioned after all interceptors which perform removal checks, i.e:
-
-
Constructor Summary
Constructors Constructor Description RemoveDiscountsOnCurrencyRemovalInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonRemove(java.lang.Object model, InterceptorContext ctx)Called in themodelService.removeAll()method.voidsetDiscountService(DiscountService discountService)voidsetModelService(ModelService modelService)
-
-
-
Method Detail
-
onRemove
public void onRemove(java.lang.Object model, InterceptorContext ctx) throws InterceptorExceptionDescription 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
public void setDiscountService(DiscountService discountService)
-
setModelService
public void setModelService(ModelService modelService)
-
-