|
|||||||||
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.RuleElementServiceImpl
public class RuleElementServiceImpl
Provides rule condition component related services.
Constructor Summary | |
---|---|
RuleElementServiceImpl()
|
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). |
java.lang.Object |
getObject(long uid)
Generic get method for all persistable domain models. |
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 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 RuleElementServiceImpl()
Method Detail |
---|
public RuleElement add(RuleElement ruleElement) throws EpServiceException
add
in interface RuleElementService
ruleElement
- the ruleElement to add
EpServiceException
- - in case of any errorspublic RuleElement get(long ruleElementUid) throws EpServiceException
get
in interface RuleElementService
ruleElementUid
- the ruleElement UID
EpServiceException
- - in case of any errorspublic RuleElement get(long ruleElementUid, java.lang.String ruleElementType) throws EpServiceException
get
in interface RuleElementService
ruleElementUid
- the ruleElement UIDruleElementType
- the ruleElement type
EpServiceException
- in case of errors.public java.lang.Object getObject(long uid) throws EpServiceException
getObject
in interface EpPersistenceService
uid
- the persisted instance uid
EpServiceException
- - in case of any errorspublic RuleElement load(long ruleElementUid) throws EpServiceException
load
in interface RuleElementService
ruleElementUid
- the ruleElement UID
EpServiceException
- - in case of any errorspublic RuleElement load(long ruleElementUid, java.lang.String ruleElementType) throws EpServiceException
load
in interface RuleElementService
ruleElementUid
- the ruleElement UIDruleElementType
- the ruleElement type
EpServiceException
- in case of errors.public void remove(RuleElement ruleElement) throws EpServiceException
remove
in interface RuleElementService
ruleElement
- the ruleElement to remove
EpServiceException
- - in case of any errorspublic void update(RuleElement ruleElement) throws EpServiceException
update
in interface RuleElementService
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 |