com.elasticpath.domain.rules
Interface AppliedRule

All Superinterfaces:
EpDomain, Persistence, java.io.Serializable
All Known Implementing Classes:
AppliedRuleImpl

public interface AppliedRule
extends Persistence

Represents a rule that has been applied to an order.


Method Summary
 java.lang.String getRuleCode()
          Get the rule engine code for the applied rule.
 java.lang.String getRuleName()
          Get the name of the applied rule.
 long getRuleUid()
          Get the UID of the applied rule.
 void initialize(Rule rule)
          Initialize the AppliedRule from the given Rule.
 void setRuleCode(java.lang.String ruleCode)
          Set the rule engine code for the applied rule.
 void setRuleName(java.lang.String ruleName)
          Set the name of the applied rule.
 void setRuleUid(long ruleUid)
          Set the uid of the applied rule.
 
Methods inherited from interface com.elasticpath.domain.Persistence
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Method Detail

getRuleCode

java.lang.String getRuleCode()
Get the rule engine code for the applied rule.

Returns:
the rule engine code.

getRuleName

java.lang.String getRuleName()
Get the name of the applied rule.

Returns:
the name of the applied rule

getRuleUid

long getRuleUid()
Get the UID of the applied rule.

Returns:
the UID

initialize

void initialize(Rule rule)
Initialize the AppliedRule from the given Rule.

Parameters:
rule - the Rule

setRuleCode

void setRuleCode(java.lang.String ruleCode)
Set the rule engine code for the applied rule.

Parameters:
ruleCode - the rule code.

setRuleName

void setRuleName(java.lang.String ruleName)
Set the name of the applied rule.

Parameters:
ruleName - the rule name

setRuleUid

void setRuleUid(long ruleUid)
Set the uid of the applied rule.

Parameters:
ruleUid - the UID