Class RuleFreeGiftRAOAction
java.lang.Object
de.hybris.platform.ruleengineservices.rule.evaluation.actions.AbstractRuleExecutableSupport
de.hybris.platform.ruleengineservices.rule.evaluation.actions.AbstractRulePartnerProductAction
de.hybris.platform.ruleengineservices.rule.evaluation.actions.impl.RuleFreeGiftRAOAction
- All Implemented Interfaces:
RAOAction,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ProductModelfindProduct(String productCode, RuleActionContext context) protected ProductServiceprotected booleanperformAction(RuleActionContext context, Map<String, Integer> qualifyingProductsContainers, String productCode, Integer quantity) booleanperformActionInternal(RuleActionContext context) template method called inside ofAbstractRuleExecutableSupport.performAction(RuleActionContext)voidsetProductService(ProductService productService) voidsetRuleOrderEntryPercentageDiscountRAOAction(RuleOrderEntryPercentageDiscountRAOAction ruleOrderEntryPercentageDiscountRAOAction) protected voidupdateFactsWithOrderEntries(RuleActionContext context, List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDS) Methods inherited from class de.hybris.platform.ruleengineservices.rule.evaluation.actions.AbstractRulePartnerProductAction
createSelectionStrategyRPD, createSelectionStrategyRPDsQualifyingProducts, createSelectionStrategyRPDsTargetProducts, getOrderEntriesMethods 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
-
Field Details
-
QUALIFYING_CONTAINERS_PARAM
- See Also:
-
-
Constructor Details
-
RuleFreeGiftRAOAction
public RuleFreeGiftRAOAction()
-
-
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
-
performAction
-
updateFactsWithOrderEntries
protected void updateFactsWithOrderEntries(RuleActionContext context, List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDS) -
findProduct
-
getProductService
-
setProductService
-
getRuleOrderEntryPercentageDiscountRAOAction
-
setRuleOrderEntryPercentageDiscountRAOAction
public void setRuleOrderEntryPercentageDiscountRAOAction(RuleOrderEntryPercentageDiscountRAOAction ruleOrderEntryPercentageDiscountRAOAction)
-