|
|||||||||
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.RuleConditionServiceImpl
public class RuleConditionServiceImpl
Provides rule condition component related services.
Constructor Summary | |
---|---|
RuleConditionServiceImpl()
|
Method Summary | |
---|---|
RuleCondition |
add(RuleCondition ruleCondition)
Adds the given ruleCondition. |
RuleCondition |
get(long ruleConditionUid)
Get the ruleCondition with the given UID. |
RuleCondition |
get(long ruleConditionUid,
java.lang.String ruleConditionType)
Get the ruleCondition with the given UID if it is greater than 0; otherwise get new instance of the ruleCondition of the given ruleConditionType from the spring beanFactory (assuming bean id is the same as the ruleConditionType). |
java.lang.Object |
getObject(long uid)
Generic get method for all persistable domain models. |
RuleCondition |
load(long ruleConditionUid)
Load the ruleCondition with the given UID. |
RuleCondition |
load(long ruleConditionUid,
java.lang.String ruleConditionType)
Load the ruleCondition with the given UID if it is greater than 0; otherwise get new instance of the ruleCondition of the given ruleConditionType from the spring beanFactory (assuming bean id is the same as the ruleConditionType). |
void |
remove(RuleCondition ruleCondition)
Delete the ruleCondition. |
void |
update(RuleCondition ruleCondition)
Updates the given ruleConditionle. |
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 RuleConditionServiceImpl()
Method Detail |
---|
public RuleCondition add(RuleCondition ruleCondition) throws EpServiceException
add
in interface RuleConditionService
ruleCondition
- the ruleCondition to add
EpServiceException
- - in case of any errorspublic RuleCondition get(long ruleConditionUid) throws EpServiceException
get
in interface RuleConditionService
ruleConditionUid
- the ruleCondition UID
EpServiceException
- - in case of any errorspublic RuleCondition get(long ruleConditionUid, java.lang.String ruleConditionType) throws EpServiceException
get
in interface RuleConditionService
ruleConditionUid
- the ruleCondition UIDruleConditionType
- the ruleCondition 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 RuleCondition load(long ruleConditionUid) throws EpServiceException
load
in interface RuleConditionService
ruleConditionUid
- the ruleCondition UID
EpServiceException
- - in case of any errorspublic RuleCondition load(long ruleConditionUid, java.lang.String ruleConditionType) throws EpServiceException
load
in interface RuleConditionService
ruleConditionUid
- the ruleCondition UIDruleConditionType
- the ruleCondition type
EpServiceException
- in case of errors.public void remove(RuleCondition ruleCondition) throws EpServiceException
remove
in interface RuleConditionService
ruleCondition
- the ruleCondition to remove
EpServiceException
- - in case of any errorspublic void update(RuleCondition ruleCondition) throws EpServiceException
update
in interface RuleConditionService
ruleCondition
- the ruleCondition to update
EpServiceException
- - in case of any errors
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |