Class CartTotalThresholdPotentialPromotionMessageActionSupplementStrategy
- java.lang.Object
-
- de.hybris.platform.promotionengineservices.action.strategies.CartTotalThresholdPotentialPromotionMessageActionSupplementStrategy
-
- All Implemented Interfaces:
ActionSupplementStrategy
public class CartTotalThresholdPotentialPromotionMessageActionSupplementStrategy extends java.lang.Object implements ActionSupplementStrategy
The class supplementsDisplayMessageRAOwith dynamically-evaluated data for Cart Total Threshold condition.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringCART_TOTAL_THRESHOLD_PARAMETERprotected static java.lang.StringCART_TOTAL_THRESHOLD_PARAMETER_UUID-
Fields inherited from interface de.hybris.platform.ruleengineservices.rule.evaluation.actions.ActionSupplementStrategy
UUID_SUFFIX
-
-
Constructor Summary
Constructors Constructor Description CartTotalThresholdPotentialPromotionMessageActionSupplementStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.math.BigDecimalgetValueToDisplay(RuleActionContext context)booleanisActionProperToHandle(AbstractRuleActionRAO actionRao, RuleActionContext context)Checks if the action result is proper to be processed by the strategyprotected booleanisMessageForCartTotalThreshold(java.util.Map<java.lang.String,java.lang.Object> parameters)booleanshouldPerformAction(AbstractRuleActionRAO actionRao, RuleActionContext context)Gives additional input into whether an action should be performed or not-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.ruleengineservices.rule.evaluation.actions.ActionSupplementStrategy
postProcessAction
-
-
-
-
Field Detail
-
CART_TOTAL_THRESHOLD_PARAMETER
protected static final java.lang.String CART_TOTAL_THRESHOLD_PARAMETER
- See Also:
- Constant Field Values
-
CART_TOTAL_THRESHOLD_PARAMETER_UUID
protected static final java.lang.String CART_TOTAL_THRESHOLD_PARAMETER_UUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
isActionProperToHandle
public boolean isActionProperToHandle(AbstractRuleActionRAO actionRao, RuleActionContext context)
Description copied from interface:ActionSupplementStrategyChecks if the action result is proper to be processed by the strategy- Specified by:
isActionProperToHandlein interfaceActionSupplementStrategy- Parameters:
actionRao- - action resultcontext- - instance of RuleActionContext
-
shouldPerformAction
public boolean shouldPerformAction(AbstractRuleActionRAO actionRao, RuleActionContext context)
Description copied from interface:ActionSupplementStrategyGives additional input into whether an action should be performed or not- Specified by:
shouldPerformActionin interfaceActionSupplementStrategy- Parameters:
actionRao- - action resultcontext- - instance of RuleActionContext- Returns:
trueif action should be performed,false- otherwise
-
getValueToDisplay
protected java.math.BigDecimal getValueToDisplay(RuleActionContext context)
-
isMessageForCartTotalThreshold
protected boolean isMessageForCartTotalThreshold(java.util.Map<java.lang.String,java.lang.Object> parameters)
-
-