|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.elasticpath.service.impl.AbstractEpServiceImpl
com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl
com.elasticpath.service.rules.impl.RuleSetServiceImpl
public class RuleSetServiceImpl
Provides Rule Engine related services.
| Constructor Summary | |
|---|---|
RuleSetServiceImpl()
|
|
| Method Summary | |
|---|---|
RuleSet |
add(RuleSet ruleSet)
Adds the given ruleSet. |
java.util.List |
findByModifiedDate(java.util.Date date)
Retrieves list of RuleSets where the last modified date is later than the specified date. |
RuleSet |
findByScenarioId(int scenarioId)
Find the rule set by its scenario id. |
RuleSet |
get(long ruleSetUid)
Get the ruleSet with the given UID. |
java.lang.Object |
getObject(long uid)
Generic get method for all persistable domain models. |
TimeService |
getTimeService()
Returns the time service. |
java.util.List |
list()
List all ruleSets stored in the database. |
RuleSet |
load(long ruleSetUid)
Load the ruleSet with the given UID. |
void |
remove(RuleSet ruleSet)
Delete the ruleSet. |
void |
setTimeService(TimeService timeService)
Sets the time service. |
void |
update(RuleSet ruleSet)
Updates the given ruleset. |
void |
updateLastModifiedTime(RuleSet ruleSet)
Update the ruleSet's last modified timestamp. |
| Methods inherited from class com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl |
|---|
getPersistenceEngine, setPersistenceEngine |
| Methods inherited from class com.elasticpath.service.impl.AbstractEpServiceImpl |
|---|
getElasticPath, setElasticPath |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.elasticpath.service.EpPersistenceService |
|---|
getPersistenceEngine, setPersistenceEngine |
| Methods inherited from interface com.elasticpath.service.EpService |
|---|
getElasticPath, setElasticPath |
| Constructor Detail |
|---|
public RuleSetServiceImpl()
| Method Detail |
|---|
public RuleSet add(RuleSet ruleSet)
throws EpServiceException
add in interface RuleSetServiceruleSet - the ruleSet to add
EpServiceException - - in case of any errorspublic java.util.List findByModifiedDate(java.util.Date date)
RuleSets where the last modified date is later than the specified date.
findByModifiedDate in interface RuleSetServicedate - date to compare with the last modified date
RuleSet whose last modified date is later than the specified date
public RuleSet findByScenarioId(int scenarioId)
throws EpServiceException
findByScenarioId in interface RuleSetServicescenarioId - the id of the scenario (see Scenarios interface)
EpServiceException - - in case of any errors
public RuleSet get(long ruleSetUid)
throws EpServiceException
get in interface RuleSetServiceruleSetUid - the ruleSet UID
EpServiceException - - in case of any errors
public java.lang.Object getObject(long uid)
throws EpServiceException
getObject in interface EpPersistenceServiceuid - the persisted instance uid
EpServiceException - - in case of any errorspublic TimeService getTimeService()
public java.util.List list()
throws EpServiceException
list in interface RuleSetServiceEpServiceException - - in case of any errors
public RuleSet load(long ruleSetUid)
throws EpServiceException
load in interface RuleSetServiceruleSetUid - the ruleSet UID
EpServiceException - - in case of any errors
public void remove(RuleSet ruleSet)
throws EpServiceException
remove in interface RuleSetServiceruleSet - the ruleSet to remove
EpServiceException - - in case of any errorspublic void setTimeService(TimeService timeService)
timeService - the time service
public void update(RuleSet ruleSet)
throws EpServiceException
update in interface RuleSetServiceruleSet - the ruleSet to update
EpServiceException - - in case of any errorspublic void updateLastModifiedTime(RuleSet ruleSet)
updateLastModifiedTime in interface RuleSetServiceruleSet - the ruleSet whose timestamp is to be updated.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||