Class DefaultOrderAdjustTotalActionStrategy
- java.lang.Object
-
- de.hybris.platform.promotionengineservices.action.impl.AbstractRuleActionStrategy<RuleBasedOrderAdjustTotalActionModel>
-
- de.hybris.platform.promotionengineservices.action.impl.DefaultOrderAdjustTotalActionStrategy
-
- All Implemented Interfaces:
RuleActionStrategy,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
public class DefaultOrderAdjustTotalActionStrategy extends AbstractRuleActionStrategy<RuleBasedOrderAdjustTotalActionModel>
Encapsulates logic of Rule Action processing for Cart total calculation.
-
-
Constructor Summary
Constructors Constructor Description DefaultOrderAdjustTotalActionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<PromotionResultModel>apply(AbstractRuleActionRAO action)Creates aPromotionResultModelif the parameter action is of typeDiscountRAOthe discount is added to corresponding to the action Order model.protected RuleBasedOrderAdjustTotalActionModelcreateOrderAdjustTotalAction(PromotionResultModel promoResult, DiscountRAO discountRao)voidundo(ItemModel action)Revokes the Promotion Action that was applied.-
Methods inherited from class de.hybris.platform.promotionengineservices.action.impl.AbstractRuleActionStrategy
createPromotionAction, getActionUtils, getCalculationService, getDefaultRuleMetadataKeys, getExtendedOrderDao, getForceImmediateRecalculation, getMetadataHandlers, getModelService, getPromotionAction, getPromotionActionService, getPromotionResultUtils, getRuleActionMetadataHandlers, getStrategyId, handleActionMetadata, handleUndoActionMetadata, recalculateIfNeeded, setActionUtils, setBeanName, setCalculationService, setDefaultRuleMetadataKeys, setExtendedOrderDao, setForceImmediateRecalculation, setModelService, setPromotionAction, setPromotionActionService, setPromotionResultUtils, setRuleActionMetadataHandlers, undoInternal
-
-
-
-
Method Detail
-
apply
public java.util.List<PromotionResultModel> apply(AbstractRuleActionRAO action)
Creates aPromotionResultModelif the parameter action is of typeDiscountRAOthe discount is added to corresponding to the action Order model.- Parameters:
action- the action to apply- Returns:
- list of
PromotionResultModelas a result of theDiscountRAOapplication.
-
createOrderAdjustTotalAction
protected RuleBasedOrderAdjustTotalActionModel createOrderAdjustTotalAction(PromotionResultModel promoResult, DiscountRAO discountRao)
-
undo
public void undo(ItemModel action)
Description copied from interface:RuleActionStrategyRevokes the Promotion Action that was applied.- Parameters:
action- the action to be undone
-
-