Class DisplayPromoMessageRAOAction
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.rule.evaluation.actions.AbstractRuleExecutableSupport
-
- de.hybris.platform.sap.productconfig.rules.rule.evaluation.impl.ProductConfigAbstractRAOAction
-
- de.hybris.platform.sap.productconfig.rules.cps.rule.evaluation.impl.DisplayPromoMessageRAOAction
-
- All Implemented Interfaces:
RAOAction,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
- Direct Known Subclasses:
DisplayPromoOpportunityMessageRAOAction,PercentageDiscountForOptionRAOAction
public class DisplayPromoMessageRAOAction extends ProductConfigAbstractRAOAction
Encapsulates display promo message logic as rule action.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringEXTENDED_MESSAGEExtended message text used in the DisplayPromoMessage action definition.-
Fields inherited from class de.hybris.platform.sap.productconfig.rules.rule.evaluation.impl.ProductConfigAbstractRAOAction
CSTIC_NAME, CSTIC_VALUE, MESSAGE
-
-
Constructor Summary
Constructors Constructor Description DisplayPromoMessageRAOAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetLogText()protected ProductConfigMessagePromoTypegetPromoType()voidperformAction(RuleActionContext context)perform action on RAO objectsprotected java.lang.StringprepareActionLogText(RuleActionContext context, java.util.Map<java.lang.String,java.lang.Object> parameters)protected voidprepareMessageData(java.util.Map<java.lang.String,java.lang.Object> parameters, ProductConfigPromoMessageRAO promoMessageRao)-
Methods inherited from class de.hybris.platform.sap.productconfig.rules.rule.evaluation.impl.ProductConfigAbstractRAOAction
createCsticRAO, createCsticValueRAO, updateContext, validateAllowedByRuntime, validateProcessStep, validateRuleAndLog
-
Methods inherited from class de.hybris.platform.ruleengineservices.rule.evaluation.actions.AbstractRuleExecutableSupport
addMetadataToRao, adjustStrategyQuantity, adjustUnitPrice, adjustUnitPrice, allowedByRuntimeConfiguration, checkAndGetRuleContext, consumeOrderEntries, consumeOrderEntries, consumeOrderEntry, consumeOrderEntry, consumeOrderEntry, createOrderEntryConsumedRAO, extractAmountForCurrency, filterByRuleGroup, getActionSupplementStrategies, getBeanName, getConfigurationService, getConsumableQuantity, getConsumptionSupport, getCurrencyUtils, getEligibleEntryQuantities, getEntriesSelectionStrategies, getMetaDataFromRule, getMetaDataFromRule, getPriceAdjustmentStrategy, getRaoLookupService, getRaoUtils, getRuleCode, getRuleConfigurationRRD, getRuleConfigurationRRDFilter, getRuleEngineCalculationService, getRuleGroupExecutionRRD, getRuleGroupExecutionRRDFilter, getSelectedOrderEntryQuantities, getSelectedOrderEntryRaos, hasEnoughQuantity, isConsumptionEnabled, lookupRAOByType, lookupRAOObjectsByType, mergeDiscounts, mergeOrderEntryConsumed, performActionInternal, postProcessAction, setActionSupplementStrategies, setBeanName, setConfigurationService, setConsumptionEnabled, setConsumptionSupport, setCurrencyUtils, setEntriesSelectionStrategies, setPriceAdjustmentStrategy, setRaoLookupService, setRAOMetaData, setRaoUtils, setRuleEngineCalculationService, shouldPerformAction, skipErrorLogging, splitEntriesSelectionStrategies, trackActionExecution, trackConsumedProducts, trackRuleExecution, trackRuleGroupCode, trackRuleGroupExecution, trackRuleGroupExecutions, updateActionRAOWithConsumed, validateCurrencyIsoCode, validateParameters, validateRule, validateSelectionStrategy
-
-
-
-
Field Detail
-
EXTENDED_MESSAGE
protected static final java.lang.String EXTENDED_MESSAGE
Extended message text used in the DisplayPromoMessage action definition.- See Also:
- Constant Field Values
-
-
Method Detail
-
performAction
public void performAction(RuleActionContext context)
Description copied from interface:RAOActionperform action on RAO objects- Specified by:
performActionin interfaceRAOAction- Overrides:
performActionin classAbstractRuleExecutableSupport- Parameters:
context- - instance of RuleActionContext
-
prepareMessageData
protected void prepareMessageData(java.util.Map<java.lang.String,java.lang.Object> parameters, ProductConfigPromoMessageRAO promoMessageRao)
-
prepareActionLogText
protected java.lang.String prepareActionLogText(RuleActionContext context, java.util.Map<java.lang.String,java.lang.Object> parameters)
- Specified by:
prepareActionLogTextin classProductConfigAbstractRAOAction
-
getPromoType
protected ProductConfigMessagePromoType getPromoType()
-
getLogText
protected java.lang.String getLogText()
-
-