|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 RuleSet s 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 RuleSetService
ruleSet
- the ruleSet to add
EpServiceException
- - in case of any errorspublic java.util.List findByModifiedDate(java.util.Date date)
RuleSet
s where the last modified date is later than the specified date.
findByModifiedDate
in interface RuleSetService
date
- date to compare with the last modified date
RuleSet
whose last modified date is later than the specified datepublic RuleSet findByScenarioId(int scenarioId) throws EpServiceException
findByScenarioId
in interface RuleSetService
scenarioId
- the id of the scenario (see Scenarios
interface)
EpServiceException
- - in case of any errorspublic RuleSet get(long ruleSetUid) throws EpServiceException
get
in interface RuleSetService
ruleSetUid
- the ruleSet UID
EpServiceException
- - in case of any errorspublic java.lang.Object getObject(long uid) throws EpServiceException
getObject
in interface EpPersistenceService
uid
- the persisted instance uid
EpServiceException
- - in case of any errorspublic TimeService getTimeService()
public java.util.List list() throws EpServiceException
list
in interface RuleSetService
EpServiceException
- - in case of any errorspublic RuleSet load(long ruleSetUid) throws EpServiceException
load
in interface RuleSetService
ruleSetUid
- the ruleSet UID
EpServiceException
- - in case of any errorspublic void remove(RuleSet ruleSet) throws EpServiceException
remove
in interface RuleSetService
ruleSet
- the ruleSet to remove
EpServiceException
- - in case of any errorspublic void setTimeService(TimeService timeService)
timeService
- the time servicepublic void update(RuleSet ruleSet) throws EpServiceException
update
in interface RuleSetService
ruleSet
- the ruleSet to update
EpServiceException
- - in case of any errorspublic void updateLastModifiedTime(RuleSet ruleSet)
updateLastModifiedTime
in interface RuleSetService
ruleSet
- the ruleSet whose timestamp is to be updated.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |