|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RuleElementService
Provides rule element (eligibility, condition and action) related services.
| Method Summary | |
|---|---|
RuleElement |
add(RuleElement ruleElement)
Adds the given ruleElement. |
RuleElement |
get(long ruleElementUid)
Get the ruleElement with the given UID. |
RuleElement |
get(long ruleElementUid,
java.lang.String ruleElementType)
Get the ruleElement with the given UID if it is greater than 0; otherwise get new instance of the ruleElement of the given ruleElementType from the spring beanFactory (assuming bean id is the same as the ruleElementType). |
RuleElement |
load(long ruleElementUid)
Load the ruleElement with the given UID. |
RuleElement |
load(long ruleElementUid,
java.lang.String ruleElementType)
Load the ruleElement with the given UID if it is greater than 0; otherwise get new instance of the ruleElement of the given ruleElementType from the spring beanFactory (assuming bean id is the same as the ruleElementType). |
void |
remove(RuleElement ruleElement)
Delete the ruleElement. |
void |
update(RuleElement ruleElement)
Updates the given ruleElementle. |
| Methods inherited from interface com.elasticpath.service.EpPersistenceService |
|---|
getObject, getPersistenceEngine, setPersistenceEngine |
| Methods inherited from interface com.elasticpath.service.EpService |
|---|
getElasticPath, setElasticPath |
| Method Detail |
|---|
RuleElement add(RuleElement ruleElement)
throws EpServiceException
ruleElement - the ruleElement to add
EpServiceException - - in case of any errors
RuleElement get(long ruleElementUid)
throws EpServiceException
ruleElementUid - the ruleElement UID
EpServiceException - - in case of any errors
RuleElement get(long ruleElementUid,
java.lang.String ruleElementType)
throws EpServiceException
ruleElementUid - the ruleElement UIDruleElementType - the ruleElement type
EpServiceException - in case of errors.
RuleElement load(long ruleElementUid)
throws EpServiceException
ruleElementUid - the ruleElement UID
EpServiceException - - in case of any errors
RuleElement load(long ruleElementUid,
java.lang.String ruleElementType)
throws EpServiceException
ruleElementUid - the ruleElement UIDruleElementType - the ruleElement type
EpServiceException - in case of errors.
void remove(RuleElement ruleElement)
throws EpServiceException
ruleElement - the ruleElement to remove
EpServiceException - - in case of any errors
void update(RuleElement ruleElement)
throws EpServiceException
ruleElement - the ruleElement to update
EpServiceException - - in case of any errors
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||