Class ProductConfigAbstractRAOAction
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.rule.evaluation.actions.AbstractRuleExecutableSupport
-
- de.hybris.platform.sap.productconfig.rules.rule.evaluation.impl.ProductConfigAbstractRAOAction
-
- All Implemented Interfaces:
RAOAction,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
- Direct Known Subclasses:
DisplayCsticReadonlyRAOAction,DisplayMessageRAOAction,DisplayPromoMessageRAOAction,HideCsticRAOAction,RemoveAssignableValueRAOAction,SetCsticValueRAOAction
public abstract class ProductConfigAbstractRAOAction extends AbstractRuleExecutableSupport implements RAOAction
Abstract base class for product configuration related RAOAction classes. Provides some common base functionality. such as:
ProcessStepvalidation, to ensure that the rule is only applied at correct process step- logging
- rule framework related helper methods
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringCSTIC_NAMECharacteristic parameter name used in the related action definition.protected static java.lang.StringCSTIC_VALUECharacteristic Value parameter name used in the related action definition.protected static java.lang.StringMESSAGEMessage text used in the DisplayMessage action definition.
-
Constructor Summary
Constructors Constructor Description ProductConfigAbstractRAOAction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected CsticRAOcreateCsticRAO(java.util.Map<java.lang.String,java.lang.Object> parameters)protected CsticValueRAOcreateCsticValueRAO(java.util.Map<java.lang.String,java.lang.Object> parameters)protected abstract java.lang.StringprepareActionLogText(RuleActionContext context, java.util.Map<java.lang.String,java.lang.Object> parameters)protected voidupdateContext(RuleActionContext context, AbstractRuleActionRAO actionRAO)protected booleanvalidateAllowedByRuntime(RuleActionContext context)protected booleanvalidateProcessStep(RuleActionContext context, java.util.Map<java.lang.String,java.lang.Object> parameters, ProcessStep... expectedProcessSteps)protected voidvalidateRuleAndLog(RuleActionContext context, java.util.Map<java.lang.String,java.lang.Object> parameters, java.lang.String... parameterNames)-
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, performAction, 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
-
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.RAOAction
performAction
-
-
-
-
Field Detail
-
CSTIC_NAME
protected static final java.lang.String CSTIC_NAME
Characteristic parameter name used in the related action definition.- See Also:
- Constant Field Values
-
CSTIC_VALUE
protected static final java.lang.String CSTIC_VALUE
Characteristic Value parameter name used in the related action definition.- See Also:
- Constant Field Values
-
MESSAGE
protected static final java.lang.String MESSAGE
Message text used in the DisplayMessage action definition.- See Also:
- Constant Field Values
-
-
Method Detail
-
validateProcessStep
protected boolean validateProcessStep(RuleActionContext context, java.util.Map<java.lang.String,java.lang.Object> parameters, ProcessStep... expectedProcessSteps)
-
validateAllowedByRuntime
protected boolean validateAllowedByRuntime(RuleActionContext context)
-
prepareActionLogText
protected abstract java.lang.String prepareActionLogText(RuleActionContext context, java.util.Map<java.lang.String,java.lang.Object> parameters)
-
updateContext
protected void updateContext(RuleActionContext context, AbstractRuleActionRAO actionRAO)
-
validateRuleAndLog
protected void validateRuleAndLog(RuleActionContext context, java.util.Map<java.lang.String,java.lang.Object> parameters, java.lang.String... parameterNames)
-
createCsticRAO
protected CsticRAO createCsticRAO(java.util.Map<java.lang.String,java.lang.Object> parameters)
-
createCsticValueRAO
protected CsticValueRAO createCsticValueRAO(java.util.Map<java.lang.String,java.lang.Object> parameters)
-
-