com.elasticpath.service.rules
Interface EpRuleEngine

All Superinterfaces:
EpService
All Known Implementing Classes:
EpRuleEngineImpl

public interface EpRuleEngine
extends EpService

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

fireCatalogPromotionRules

void fireCatalogPromotionRules(java.util.Collection products,
                               ShoppingCart shoppingCart)
Executes promotion rules for the given products.

Parameters:
products - the product list whose promotion price is to be computed
shoppingCart - the customer's shopping cart, which can affect the product promotion applied

fireCatalogPromotionRules

void fireCatalogPromotionRules(Product product,
                               ShoppingCart shoppingCart)
Executes promotion rules for the specified product.

Parameters:
product - the product whose promotion price is to be computed
shoppingCart - the customer's shopping cart, which can affect the product promotion applied

fireOrderPromotionRules

void fireOrderPromotionRules(ShoppingCart shoppingCart)
Executes order promotion rules on the specified shopping cart.

Parameters:
shoppingCart - the cart to which promotion rules are to be applied.

recompileRuleBase

void recompileRuleBase()
Regenerates the rule base using a new set of rules retrieved from the persistence layer.


setPromotionRuleDelegate

void setPromotionRuleDelegate(PromotionRuleDelegate promotionRuleDelegate)
Set the promotion rule helper that will be passed into the working memory.

Parameters:
promotionRuleDelegate - the PromotionRuleDelegate

setRuleSetService

void setRuleSetService(RuleSetService ruleSetService)
Set the rule set service that will provide rules.

Parameters:
ruleSetService - the RuleSetService