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 Details

    • DefaultPromotionRuleActionService

      public DefaultPromotionRuleActionService()
  • Method Details

    • applyAllActions

      public List<ItemModel> applyAllActions(RuleEngineResultRAO ruleEngineResultRAO)
      Description copied from class: DefaultRuleActionService
      Takes a RuleEngineResultRAO as argument and gets list of its Actions, then for each Action applies corresponding RuleActionStrategy specified by its strategy field.
      Specified by:
      applyAllActions in interface RuleActionService
      Overrides:
      applyAllActions in class DefaultRuleActionService
      Parameters:
      ruleEngineResultRAO - contains Actions
      Returns:
      list of ItemModel (or it subclasses) as a result of the Actions application.
    • recalculateTotals

      protected void recalculateTotals(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)