Class DefaultPromotionRuleActionService
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.action.impl.DefaultRuleActionService
-
- de.hybris.platform.promotionengineservices.promotionengine.impl.DefaultPromotionRuleActionService
-
- All Implemented Interfaces:
RuleActionService
public class DefaultPromotionRuleActionService extends DefaultRuleActionService
Promotionengine specific implementation of the RuleActionService.
-
-
Constructor Summary
Constructors Constructor Description DefaultPromotionRuleActionService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 PromotionActionServicegetPromotionActionService()protected PromotionResultUtilsgetPromotionResultUtils()protected voidrecalculateTotals(java.util.List<ItemModel> actionResults)Gets the order where actions are applied and recalculate it's totals.voidsetPromotionActionService(PromotionActionService promotionActionService)voidsetPromotionResultUtils(PromotionResultUtils promotionResultUtils)-
Methods inherited from class de.hybris.platform.ruleengineservices.action.impl.DefaultRuleActionService
getActionStrategiesMapping, getRuleActionStrategy, isActionApplicable, setActionStrategiesMapping
-
-
-
-
Method Detail
-
applyAllActions
public java.util.List<ItemModel> applyAllActions(RuleEngineResultRAO ruleEngineResultRAO)
Description copied from class:DefaultRuleActionServiceTakes a RuleEngineResultRAO as argument and gets list of its Actions, then for each Action applies corresponding RuleActionStrategy specified by its strategy field.- Specified by:
applyAllActionsin interfaceRuleActionService- Overrides:
applyAllActionsin classDefaultRuleActionService- Parameters:
ruleEngineResultRAO- contains Actions- Returns:
- list of
ItemModel(or it subclasses) as a result of the Actions application.
-
recalculateTotals
protected void recalculateTotals(java.util.List<ItemModel> actionResults)
Gets the order where actions are applied and recalculate it's totals.- Parameters:
actionResults- List of applied actions results
-
getPromotionActionService
protected PromotionActionService getPromotionActionService()
-
setPromotionActionService
public void setPromotionActionService(PromotionActionService promotionActionService)
-
getPromotionResultUtils
protected PromotionResultUtils getPromotionResultUtils()
-
setPromotionResultUtils
public void setPromotionResultUtils(PromotionResultUtils promotionResultUtils)
-
-