public class RemoveDiscountsOnCurrencyRemovalInterceptor extends java.lang.Object implements RemoveInterceptor
DiscountModels having this particular currency.InterceptorMapping handling this interceptor must be positioned after all interceptors which
perform removal checks, i.e:| Constructor and Description |
|---|
RemoveDiscountsOnCurrencyRemovalInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
onRemove(java.lang.Object model,
InterceptorContext ctx)
Called in the
modelService.removeAll() method. |
void |
setDiscountService(DiscountService discountService) |
void |
setModelService(ModelService modelService) |
public RemoveDiscountsOnCurrencyRemovalInterceptor()
public void onRemove(java.lang.Object model,
InterceptorContext ctx)
throws InterceptorException
RemoveInterceptormodelService.removeAll() method.onRemove in interface RemoveInterceptormodel - the model which should be removedctx - the InterceptorContextInterceptorException - if the remove reports an errorpublic void setDiscountService(DiscountService discountService)
public void setModelService(ModelService modelService)
Copyright © 2018 SAP SE. All Rights Reserved.