|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RuleService
Provides rule engine-related services for each rule.
Method Summary | |
---|---|
Rule |
add(Rule rule)
Adds the given rule. |
Rule |
get(long ruleUid)
Get the rule with the given UID. |
java.util.Map |
getAllActionsMap()
Get all the available actions configured in the system. |
java.util.Map |
getAllConditionsMap()
Get all the available conditions configured in the system. |
java.util.Map |
getAllEligibilitiesMap()
Get all the available eligibility conditions configured in the system. |
java.util.Map |
getAllExceptionsMap()
Get all the avaiable exceptions configured in the system. |
Rule |
load(long ruleUid)
Load the rule with the given UID. |
void |
remove(Rule rule)
Delete the rule. |
void |
setAllActions(java.util.List actions)
Set all the avaiable actions configured in the system. |
void |
setAllConditions(java.util.List conditions)
Set all the avaiable conditions configured in the system. |
void |
setAllEligibilities(java.util.List eligibilities)
Set all the avaiable eligibility conditions configured in the system. |
void |
setAllExceptions(java.util.List exceptions)
Set all the avaiable exceptions configured in the system. |
void |
setRuleSetService(RuleSetService ruleSetService)
Set the rule set service. |
void |
update(Rule rule)
Updates the given rule. |
Methods inherited from interface com.elasticpath.service.EpPersistenceService |
---|
getObject, getPersistenceEngine, setPersistenceEngine |
Methods inherited from interface com.elasticpath.service.EpService |
---|
getElasticPath, setElasticPath |
Method Detail |
---|
Rule add(Rule rule) throws DuplicateNameException, DuplicatePromoCodeException
rule
- the rule to add
DuplicateNameException
- - if the specified promoCode is already in use.
DuplicatePromoCodeException
- - if the specified promoCode is already in use.Rule get(long ruleUid) throws EpServiceException
ruleUid
- the rule UID
EpServiceException
- - in case of any errorsjava.util.Map getAllActionsMap()
java.util.Map getAllConditionsMap()
java.util.Map getAllEligibilitiesMap()
java.util.Map getAllExceptionsMap()
Rule load(long ruleUid) throws EpServiceException
ruleUid
- the rule UID
EpServiceException
- - in case of any errorsvoid remove(Rule rule) throws EpServiceException
rule
- the rule to remove
EpServiceException
- - in case of any errorsvoid setAllActions(java.util.List actions)
actions
- all the avaiable actions.void setAllConditions(java.util.List conditions)
conditions
- all the avaiable conditions.void setAllEligibilities(java.util.List eligibilities)
eligibilities
- all the avaiable eligibility conditions.void setAllExceptions(java.util.List exceptions)
exceptions
- all the avaiable actions.void setRuleSetService(RuleSetService ruleSetService)
ruleSetService
- the rule set service.void update(Rule rule) throws DuplicateNameException, DuplicatePromoCodeException
rule
- the rule to update
DuplicateNameException
- - if the specified promoCode is already in use.
DuplicatePromoCodeException
- - if the specified promoCode is already in use.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |