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
public class RuleFreeGiftRAOAction extends AbstractRulePartnerProductAction
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringQUALIFYING_CONTAINERS_PARAM
-
Constructor Summary
Constructors Constructor Description RuleFreeGiftRAOAction()
-
Method Summary
-
Methods inherited from class de.hybris.platform.ruleengineservices.rule.evaluation.actions.AbstractRulePartnerProductAction
createSelectionStrategyRPD, createSelectionStrategyRPDsQualifyingProducts, createSelectionStrategyRPDsTargetProducts, getOrderEntries
-
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, 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
-
QUALIFYING_CONTAINERS_PARAM
public static final java.lang.String QUALIFYING_CONTAINERS_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
performActionInternal
public boolean performActionInternal(RuleActionContext context)
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
protected boolean performAction(RuleActionContext context, java.util.Map<java.lang.String,java.lang.Integer> qualifyingProductsContainers, java.lang.String productCode, java.lang.Integer quantity)
-
updateFactsWithOrderEntries
protected void updateFactsWithOrderEntries(RuleActionContext context, java.util.List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDS)
-
findProduct
protected ProductModel findProduct(java.lang.String productCode, RuleActionContext context)
-
createProductConsumedRAO
protected ProductConsumedRAO createProductConsumedRAO(OrderEntryRAO orderEntryRAO)
-
getProductService
protected ProductService getProductService()
-
setProductService
public void setProductService(ProductService productService)
-
getRuleOrderEntryPercentageDiscountRAOAction
protected RuleOrderEntryPercentageDiscountRAOAction getRuleOrderEntryPercentageDiscountRAOAction()
-
setRuleOrderEntryPercentageDiscountRAOAction
public void setRuleOrderEntryPercentageDiscountRAOAction(RuleOrderEntryPercentageDiscountRAOAction ruleOrderEntryPercentageDiscountRAOAction)
-
-