com.elasticpath.service.rules
Interface RuleParameterService

All Superinterfaces:
EpPersistenceService, EpService
All Known Implementing Classes:
RuleParameterServiceImpl

public interface RuleParameterService
extends EpPersistenceService

Provides rule parameter related services.


Method Summary
 RuleParameter add(RuleParameter ruleParameter)
          Adds the given ruleParameter.
 java.util.List findUniqueParametersWithKey(java.lang.String parameterKey)
          Get the list of unique RuleParameter value for the given parameter key.
 RuleParameter get(long ruleParameterUid)
          Get the ruleParameter with the given UID.
 RuleParameter load(long ruleParameterUid)
          Load the ruleParameter with the given UID.
 void remove(RuleParameter ruleParameter)
          Delete the ruleParameter.
 void update(RuleParameter ruleParameter)
          Updates the given ruleParameterle.
 
Methods inherited from interface com.elasticpath.service.EpPersistenceService
getObject, getPersistenceEngine, setPersistenceEngine
 
Methods inherited from interface com.elasticpath.service.EpService
getElasticPath, setElasticPath
 

Method Detail

add

RuleParameter add(RuleParameter ruleParameter)
                  throws EpServiceException
Adds the given ruleParameter.

Parameters:
ruleParameter - the ruleParameter to add
Returns:
the persisted instance of ruleParameter
Throws:
EpServiceException - - in case of any errors

findUniqueParametersWithKey

java.util.List findUniqueParametersWithKey(java.lang.String parameterKey)
                                           throws EpServiceException
Get the list of unique RuleParameter value for the given parameter key.

Parameters:
parameterKey - - the RuleParameter key.
Returns:
the list of RuleParameters for the given parameter key.
Throws:
EpServiceException - in case of errors.

get

RuleParameter get(long ruleParameterUid)
                  throws EpServiceException
Get the ruleParameter with the given UID. Return null if no matching record exists.

Parameters:
ruleParameterUid - the ruleParameter UID
Returns:
the ruleParameter if UID exists, otherwise null
Throws:
EpServiceException - - in case of any errors

load

RuleParameter load(long ruleParameterUid)
                   throws EpServiceException
Load the ruleParameter with the given UID. Throw an unrecoverable exception if there is no matching database row.

Parameters:
ruleParameterUid - the ruleParameter UID
Returns:
the rule if UID exists, otherwise null
Throws:
EpServiceException - - in case of any errors

remove

void remove(RuleParameter ruleParameter)
            throws EpServiceException
Delete the ruleParameter.

Parameters:
ruleParameter - the ruleParameter to remove
Throws:
EpServiceException - - in case of any errors

update

void update(RuleParameter ruleParameter)
            throws EpServiceException
Updates the given ruleParameterle.

Parameters:
ruleParameter - the ruleParameter to update
Throws:
EpServiceException - - in case of any errors