|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface EpRuleEngine
Executes rules-engine rules on objects passed as parameters to this class.
| Method Summary | |
|---|---|
void |
fireCatalogPromotionRules(java.util.Collection products,
ShoppingCart shoppingCart)
Executes promotion rules for the given products. |
void |
fireCatalogPromotionRules(Product product,
ShoppingCart shoppingCart)
Executes promotion rules for the specified product. |
void |
fireOrderPromotionRules(ShoppingCart shoppingCart)
Executes order promotion rules on the specified shopping cart. |
void |
recompileRuleBase()
Regenerates the rule base using a new set of rules retrieved from the persistence layer. |
void |
setPromotionRuleDelegate(PromotionRuleDelegate promotionRuleDelegate)
Set the promotion rule helper that will be passed into the working memory. |
void |
setRuleSetService(RuleSetService ruleSetService)
Set the rule set service that will provide rules. |
| Methods inherited from interface com.elasticpath.service.EpService |
|---|
getElasticPath, setElasticPath |
| Method Detail |
|---|
void fireCatalogPromotionRules(java.util.Collection products,
ShoppingCart shoppingCart)
products - the product list whose promotion price is to be computedshoppingCart - the customer's shopping cart, which can affect the product promotion applied
void fireCatalogPromotionRules(Product product,
ShoppingCart shoppingCart)
product - the product whose promotion price is to be computedshoppingCart - the customer's shopping cart, which can affect the product promotion appliedvoid fireOrderPromotionRules(ShoppingCart shoppingCart)
shoppingCart - the cart to which promotion rules are to be applied.void recompileRuleBase()
void setPromotionRuleDelegate(PromotionRuleDelegate promotionRuleDelegate)
promotionRuleDelegate - the PromotionRuleDelegatevoid setRuleSetService(RuleSetService ruleSetService)
ruleSetService - the RuleSetService
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||