com.elasticpath.domain.rules.impl
Class AbstractRuleActionImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractPersistenceImpl
          extended by com.elasticpath.domain.impl.AbstractValueObjectImpl
              extended by com.elasticpath.domain.rules.impl.AbstractRuleElementImpl
                  extended by com.elasticpath.domain.rules.impl.AbstractRuleActionImpl
All Implemented Interfaces:
EpDomain, Persistence, RuleAction, RuleElement, ValueObject, java.io.Serializable
Direct Known Subclasses:
CartCategoryAmountDiscountActionImpl, CartCategoryPercentDiscountActionImpl, CartNFreeSkusActionImpl, CartNthProductPercentDiscountActionImpl, CartProductAmountDiscountActionImpl, CartProductPercentDiscountActionImpl, CartSkuAmountDiscountActionImpl, CartSkuPercentDiscountActionImpl, CartSubtotalAmountDiscountActionImpl, CartSubtotalDiscountActionImpl, CartSubtotalPercentDiscountActionImpl, CatalogSkuAmountDiscountActionImpl, CatalogSkuPercentDiscountActionImpl, ProductAmountDiscountActionImpl, ProductPercentDiscountActionImpl, ShippingAmountDiscountActionImpl, ShippingPercentDiscountActionImpl

public abstract class AbstractRuleActionImpl
extends AbstractRuleElementImpl
implements RuleAction

Abstract base class for Rule Actions.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.elasticpath.domain.rules.impl.AbstractRuleElementImpl
serialVersionUID
 
Fields inherited from interface com.elasticpath.domain.rules.RuleAction
ACTION_KIND, DEFAULT_AGENDA_GROUP, SUBTOTAL_DEPENDENT_AGENDA_GROUP
 
Constructor Summary
AbstractRuleActionImpl()
           
 
Method Summary
 java.lang.String getAgendaGroup()
          Get the agenda group for this action.
 int getSalience()
          Get the salience value for this rule.
 void setAgendaGroup(java.lang.String agendaGroup)
          Set the agenda group.
 void setSalience(int salience)
          Set the salience value.
 
Methods inherited from class com.elasticpath.domain.rules.impl.AbstractRuleElementImpl
addParameter, getExceptions, getKind, getParameters, getType, setDefaultValues, setExceptions, setKind, setParameters, setRuleId, setType, validate
 
Methods inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl
executeBeforePersistAction, getUidPk, isPersistent, setUidPk
 
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl
getElasticPath, setElasticPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.domain.rules.RuleElement
addParameter, appliesInScenario, getAllowedExceptions, getDisplayText, getExceptions, getKind, getParameterKeys, getParameters, getRuleCode, getType, setExceptions, setKind, setParameters, setRuleId, setType, validate
 
Methods inherited from interface com.elasticpath.domain.Persistence
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Constructor Detail

AbstractRuleActionImpl

public AbstractRuleActionImpl()
Method Detail

getAgendaGroup

public java.lang.String getAgendaGroup()
Get the agenda group for this action. The agenda group is used to determine which rules will be fired together.
Only one action in a given rule can specify an agenda group because the group will become the agenda group of the rule

Specified by:
getAgendaGroup in interface RuleAction
Returns:
the agenda group or null if no agenda group is required

getSalience

public int getSalience()
Get the salience value for this rule. The higher the salience, the earlier the actions of the rule will be executed relative to other rules.

Specified by:
getSalience in interface RuleAction
Returns:
the salience value

setAgendaGroup

public void setAgendaGroup(java.lang.String agendaGroup)
Set the agenda group.

Specified by:
setAgendaGroup in interface RuleAction
Parameters:
agendaGroup - the agenda group name
See Also:
getAgendaGroup

setSalience

public void setSalience(int salience)
Set the salience value.

Specified by:
setSalience in interface RuleAction
Parameters:
salience - the new salience value
See Also:
getSalience