org.kuali.rice.kew.rule
Class RuleExtensionBo

java.lang.Object
  extended by org.kuali.rice.kew.rule.RuleExtensionBo
All Implemented Interfaces:
Serializable, Versioned, RuleExtensionContract

@Entity
public class RuleExtensionBo
extends Object
implements RuleExtensionContract, Serializable

An extension of a RuleBaseValues. Provides attribute-specific data extensions to the rule for a particular RuleAttribute. Contains a List of RuleExtensionValues.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
RuleBaseValues, RuleAttribute, RuleExtensionValue, Serialized Form

Constructor Summary
RuleExtensionBo()
           
 
Method Summary
 void beforeInsert()
           
 boolean equals(Object o)
           
 List<RuleExtensionValue> getExtensionValues()
           
 Map<String,String> getExtensionValuesMap()
           
 RuleBaseValues getRuleBaseValues()
           
 String getRuleBaseValuesId()
           
 String getRuleExtensionId()
           
 RuleExtensionValue getRuleExtensionValue(int index)
           
 RuleTemplateAttributeBo getRuleTemplateAttribute()
           
 String getRuleTemplateAttributeId()
           
 Long getVersionNumber()
          Returns the version number for this object.
 void setExtensionValues(List<RuleExtensionValue> extensionValues)
           
 void setRuleBaseValues(RuleBaseValues ruleBaseValues)
           
 void setRuleBaseValuesId(String ruleBaseValuesId)
           
 void setRuleExtensionId(String ruleExtensionId)
           
 void setRuleTemplateAttribute(RuleTemplateAttributeBo ruleTemplateAttribute)
           
 void setRuleTemplateAttributeId(String ruleTemplateAttributeId)
           
 void setVersionNumber(Long versionNumber)
           
static RuleExtension to(RuleExtensionBo bo)
          Converts a mutable bo to its immutable counterpart
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RuleExtensionBo

public RuleExtensionBo()
Method Detail

beforeInsert

public void beforeInsert()

getExtensionValues

public List<RuleExtensionValue> getExtensionValues()

setExtensionValues

public void setExtensionValues(List<RuleExtensionValue> extensionValues)

getRuleTemplateAttribute

public RuleTemplateAttributeBo getRuleTemplateAttribute()
Specified by:
getRuleTemplateAttribute in interface RuleExtensionContract

getExtensionValuesMap

public Map<String,String> getExtensionValuesMap()
Specified by:
getExtensionValuesMap in interface RuleExtensionContract

setRuleTemplateAttribute

public void setRuleTemplateAttribute(RuleTemplateAttributeBo ruleTemplateAttribute)

getRuleExtensionValue

public RuleExtensionValue getRuleExtensionValue(int index)

getRuleBaseValues

public RuleBaseValues getRuleBaseValues()

setRuleBaseValues

public void setRuleBaseValues(RuleBaseValues ruleBaseValues)

getVersionNumber

public Long getVersionNumber()
Description copied from interface: Versioned
Returns the version number for this object. In general, this value should only be null if the object has not yet been stored to a persistent data store. This version number is generally used for the purposes of optimistic locking.

Specified by:
getVersionNumber in interface Versioned
Returns:
the version number, or null if one has not been assigned yet

setVersionNumber

public void setVersionNumber(Long versionNumber)

getRuleBaseValuesId

public String getRuleBaseValuesId()

setRuleBaseValuesId

public void setRuleBaseValuesId(String ruleBaseValuesId)

getRuleExtensionId

public String getRuleExtensionId()

setRuleExtensionId

public void setRuleExtensionId(String ruleExtensionId)

getRuleTemplateAttributeId

public String getRuleTemplateAttributeId()

setRuleTemplateAttributeId

public void setRuleTemplateAttributeId(String ruleTemplateAttributeId)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

to

public static RuleExtension to(RuleExtensionBo bo)
Converts a mutable bo to its immutable counterpart

Parameters:
bo - the mutable business object
Returns:
the immutable object


Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.