Class RuleOrderEntryFixedPriceRAOAction
java.lang.Object
de.hybris.platform.ruleengineservices.rule.evaluation.actions.AbstractRuleExecutableSupport
de.hybris.platform.ruleengineservices.rule.evaluation.actions.impl.RuleOrderEntryFixedPriceRAOAction
- All Implemented Interfaces:
RAOAction,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDiscount(RuleActionContext context, OrderEntryRAO orderEntryRao, int quantity, DiscountRAO discount) protected voidaddDiscount(RuleActionContext context, OrderEntryRAO orderEntryRao, DiscountRAO discount) protected BigDecimalgetDiscountedPrice(DiscountRAO discount) protected booleanisDiscountApplicable(List<DiscountRAO> discounts, OrderEntryRAO orderEntryRao, BigDecimal cartThreshold, BigDecimal total, boolean discountedPriceIncluded) booleanperformActionInternal(RuleActionContext context) template method called inside ofAbstractRuleExecutableSupport.performAction(RuleActionContext)protected booleanprocessOrderEntry(RuleActionContext context, OrderEntryRAO orderEntryRao, BigDecimal valueForCurrency) protected booleanprocessWithCartTotalThreshold(RuleActionContext context, boolean discountedPriceIncluded) protected booleanMethods inherited from class de.hybris.platform.ruleengineservices.rule.evaluation.actions.AbstractRuleExecutableSupport
addMetadataToRao, checkAndGetRuleContext, extractAmountForCurrency, getActionSupplementStrategies, getBeanName, getConfigurationService, getConsumptionSupport, getCurrencyUtils, getMetaDataFromRule, getMetaDataFromRule, getPriceAdjustmentStrategy, getRaoLookupService, getRaoUtils, getRuleCode, getRuleEngineCalculationService, getRuleGroupCode, getRuntimeTracker, isRuleGroupExclusive, mergeDiscounts, performAction, postProcessAction, setActionSupplementStrategies, setBeanName, setConfigurationService, setConsumptionSupport, setCurrencyUtils, setPriceAdjustmentStrategy, setRaoLookupService, setRAOMetaData, setRaoUtils, setRuleEngineCalculationService, shouldPerformAction, splitEntriesSelectionStrategies, trackActionExecution, validateCurrencyIsoCode, validateParameters, validateRule, validateSelectionStrategy
-
Constructor Details
-
RuleOrderEntryFixedPriceRAOAction
public RuleOrderEntryFixedPriceRAOAction()
-
-
Method Details
-
performActionInternal
Description copied from class:AbstractRuleExecutableSupporttemplate method called inside ofAbstractRuleExecutableSupport.performAction(RuleActionContext)- Overrides:
performActionInternalin classAbstractRuleExecutableSupport- Parameters:
context- the context- Returns:
- true if the action was performed successfully, otherwise false
-
processWithCartTotalThreshold
protected boolean processWithCartTotalThreshold(RuleActionContext context, boolean discountedPriceIncluded) -
isDiscountApplicable
protected boolean isDiscountApplicable(List<DiscountRAO> discounts, OrderEntryRAO orderEntryRao, BigDecimal cartThreshold, BigDecimal total, boolean discountedPriceIncluded) -
getDiscountedPrice
-
processWithoutCartTotalThreshold
-
processOrderEntry
protected boolean processOrderEntry(RuleActionContext context, OrderEntryRAO orderEntryRao, BigDecimal valueForCurrency) -
addDiscount
protected void addDiscount(RuleActionContext context, OrderEntryRAO orderEntryRao, DiscountRAO discount) -
addDiscount
protected void addDiscount(RuleActionContext context, OrderEntryRAO orderEntryRao, int quantity, DiscountRAO discount)
-