Class DefaultPromotionRuleActionService
java.lang.Object
de.hybris.platform.ruleengineservices.action.impl.DefaultRuleActionService
de.hybris.platform.promotionengineservices.promotionengine.impl.DefaultPromotionRuleActionService
- All Implemented Interfaces:
RuleActionService
Promotionengine specific implementation of the RuleActionService.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyAllActions(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 PromotionActionServiceprotected PromotionResultUtilsprotected voidrecalculateTotals(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
-
Constructor Details
-
DefaultPromotionRuleActionService
public DefaultPromotionRuleActionService()
-
-
Method Details
-
applyAllActions
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
Gets the order where actions are applied and recalculate it's totals.- Parameters:
actionResults- List of applied actions results
-
getPromotionActionService
-
setPromotionActionService
-
getPromotionResultUtils
-
setPromotionResultUtils
-