Class PercentageDiscountForOptionRAOAction
- 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
-
- de.hybris.platform.sap.productconfig.rules.cps.rule.evaluation.impl.PercentageDiscountForOptionRAOAction
-
- All Implemented Interfaces:
RAOAction,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
public class PercentageDiscountForOptionRAOAction extends DisplayPromoMessageRAOAction
Encapsulates percentage discount for option logic as rule action.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringDISCOUNT_VALUEPercentage Discount used in the PercentageDiscountForOption action definition.-
Fields inherited from class de.hybris.platform.sap.productconfig.rules.cps.rule.evaluation.impl.DisplayPromoMessageRAOAction
EXTENDED_MESSAGE
-
Fields inherited from class de.hybris.platform.sap.productconfig.rules.rule.evaluation.impl.ProductConfigAbstractRAOAction
CSTIC_NAME, CSTIC_VALUE, MESSAGE
-
-
Constructor Summary
Constructors Constructor Description PercentageDiscountForOptionRAOAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetLogText()voidperformAction(RuleActionContext context)perform action on RAO objectsprotected java.lang.StringprepareActionLogText(RuleActionContext context, java.util.Map<java.lang.String,java.lang.Object> parameters)-
Methods inherited from class de.hybris.platform.sap.productconfig.rules.cps.rule.evaluation.impl.DisplayPromoMessageRAOAction
getPromoType, prepareMessageData
-
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
-
DISCOUNT_VALUE
protected static final java.lang.String DISCOUNT_VALUE
Percentage Discount used in the PercentageDiscountForOption 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 classDisplayPromoMessageRAOAction- Parameters:
context- - instance of RuleActionContext
-
prepareActionLogText
protected java.lang.String prepareActionLogText(RuleActionContext context, java.util.Map<java.lang.String,java.lang.Object> parameters)
- Overrides:
prepareActionLogTextin classDisplayPromoMessageRAOAction
-
getLogText
protected java.lang.String getLogText()
- Overrides:
getLogTextin classDisplayPromoMessageRAOAction
-
-