RAOAction hierarchy instead@Deprecated public class DefaultAddProductToCartRAOAction extends AbstractCommerceRAOAction implements AddProductToCartRAOAction
| Constructor and Description |
|---|
DefaultAddProductToCartRAOAction()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
FreeProductRAO |
addFreeProductsToCart(CartRAO cartRao,
String productCode,
int quantity,
Collection<EntriesSelectionStrategyRPD> strategies,
RuleEngineResultRAO result,
Object ruleContext)
Deprecated.
Adds free product items to the cart.
|
FreeProductRAO |
addFreeProductsToCart(CartRAO cartRao,
String productCode,
int quantity,
OrderEntryRAO triggeringEntry,
int triggeringEntryQuantity,
RuleEngineResultRAO result,
Object ruleContext)
Deprecated.
Adds free product items to the cart.
|
protected ProductModel |
findProduct(String productCode,
KnowledgeHelper context)
Deprecated.
|
protected AddOrderEntryDiscountRAOAction |
getAddOrderEntryDiscountAction()
Deprecated.
|
protected ProductService |
getProductService()
Deprecated.
|
void |
setAddOrderEntryDiscountAction(AddOrderEntryDiscountRAOAction addOrderEntryDiscountAction)
Deprecated.
|
void |
setProductService(ProductService productService)
Deprecated.
|
adjustStrategyQuantity, adjustUnitPrice, adjustUnitPrice, consumeOrderEntries, consumeOrderEntries, consumeOrderEntry, consumeOrderEntry, createOrderEntryConsumedRAO, getBeanName, getEntriesSelectionStrategies, getNotExecutableActionStrategy, getRaoUtils, getRuleConfigurationRRD, getRuleEngineCalculationService, getRuleGroupExecutionRRD, getSelectedOrderEntryQuantities, getSelectedOrderEntryRaos, hasEnoughQuantity, hasEnoughQuantity, setBeanName, setEntriesSelectionStrategies, setNotExecutableActionStrategy, setRAOMetaData, setRaoUtils, setRuleEngineCalculationService, splitEntriesSelectionStrategies, trackRuleExecution, trackRuleGroupExecution, trackRuleGroupExecutions, updateActionRAOWithConsumed, validateCurrencyIsoCode, validateSelectionStrategycheckAndGetRuleContext, getConfigurationService, getMetaDataFromRule, getMetaDataFromRule, getRuleCode, insertFacts, insertFacts, setConfigurationService, updateFacts, validateRulepublic DefaultAddProductToCartRAOAction()
public FreeProductRAO addFreeProductsToCart(CartRAO cartRao, String productCode, int quantity, OrderEntryRAO triggeringEntry, int triggeringEntryQuantity, RuleEngineResultRAO result, Object ruleContext)
AddProductToCartRAOActionaddFreeProductsToCart in interface AddProductToCartRAOActioncartRao - the cartRao where a product is addedproductCode - code of a product to addquantity - quantity of product items to addtriggeringEntry - order entry which triggered the ruletriggeringEntryQuantity - quantity of triggering entry to consumeresult - the result raoruleContext - an optional context object that can be used to provide additional information for the returned
DiscountRAOpublic FreeProductRAO addFreeProductsToCart(CartRAO cartRao, String productCode, int quantity, Collection<EntriesSelectionStrategyRPD> strategies, RuleEngineResultRAO result, Object ruleContext)
AddProductToCartRAOActionaddFreeProductsToCart in interface AddProductToCartRAOActioncartRao - the cartRao where a product is addedproductCode - code of a product to addquantity - quantity of product items to addstrategies - the selection strategies containing the order entriesresult - the result raoruleContext - an optional context object that can be used to provide additional information for the returned
DiscountRAOprotected ProductModel findProduct(String productCode, KnowledgeHelper context)
protected AddOrderEntryDiscountRAOAction getAddOrderEntryDiscountAction()
public void setAddOrderEntryDiscountAction(AddOrderEntryDiscountRAOAction addOrderEntryDiscountAction)
protected ProductService getProductService()
public void setProductService(ProductService productService)
Copyright © 2017 SAP SE. All Rights Reserved.