public class DefaultPromotionRuleActionService extends DefaultRuleActionService
| Constructor and Description |
|---|
DefaultPromotionRuleActionService() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ItemModel> |
applyAllActions(RuleEngineResultRAO ruleEngineResultRAO)
Takes a RuleEngineResultRAO as argument and gets list of its Actions, then for each Action applies corresponding
RuleActionStrategy specified by its strategy field.
|
protected PromotionActionService |
getPromotionActionService() |
protected PromotionResultUtils |
getPromotionResultUtils() |
protected void |
recalculateTotals(java.util.List<ItemModel> actionResults)
Gets the order where actions are applied and recalculate it's totals.
|
void |
setPromotionActionService(PromotionActionService promotionActionService) |
void |
setPromotionResultUtils(PromotionResultUtils promotionResultUtils) |
getActionStrategiesMapping, getRuleActionStrategy, isActionApplicable, setActionStrategiesMappingpublic java.util.List<ItemModel> applyAllActions(RuleEngineResultRAO ruleEngineResultRAO)
DefaultRuleActionServiceapplyAllActions in interface RuleActionServiceapplyAllActions in class DefaultRuleActionServiceruleEngineResultRAO - contains ActionsItemModel (or it subclasses) as a result of the Actions application.protected void recalculateTotals(java.util.List<ItemModel> actionResults)
actionResults - List of applied actions resultsprotected PromotionActionService getPromotionActionService()
public void setPromotionActionService(PromotionActionService promotionActionService)
protected PromotionResultUtils getPromotionResultUtils()
public void setPromotionResultUtils(PromotionResultUtils promotionResultUtils)
Copyright © 2018 SAP SE. All Rights Reserved.