org.kuali.rice.kew.rule.bo
Class RuleTemplateAttribute

java.lang.Object
  extended by org.kuali.rice.krad.bo.BusinessObjectBase
      extended by org.kuali.rice.krad.bo.PersistableBusinessObjectBase
          extended by org.kuali.rice.kew.rule.bo.RuleTemplateAttribute
All Implemented Interfaces:
Serializable, Comparable<RuleTemplateAttribute>, org.apache.ojb.broker.PersistenceBrokerAware, Inactivatable, GloballyUnique, Versioned, ModelObjectBasic, BusinessObject, MutableInactivatable, PersistableBusinessObject

@Entity
public class RuleTemplateAttribute
extends PersistableBusinessObjectBase
implements Comparable<RuleTemplateAttribute>, MutableInactivatable

A model bean which services as the link between a RuleTemplate and a RuleAttribute.

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

Field Summary
 
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
RuleTemplateAttribute()
           
 
Method Summary
 int compareTo(RuleTemplateAttribute ruleTemplateAttribute)
           
 Boolean getActive()
           
 Object getAttribute()
           
 String getDefaultValue()
           
 Integer getDisplayOrder()
           
 Boolean getRequired()
           
 RuleAttribute getRuleAttribute()
           
 String getRuleAttributeId()
           
 List<RuleExtension> getRuleExtensions()
           
 RuleTemplate getRuleTemplate()
           
 String getRuleTemplateAttributeId()
           
 String getRuleTemplateId()
           
 RuleValidationAttribute getRuleValidationAttribute()
          Instantiates and returns a new instance of the RuleValidationAttribute class configured on this template.
 WorkflowAttribute getWorkflowAttribute()
          Instantiates and returns a new instance of the WorkflowAttribute class configured on this template.
 boolean isActive()
          The active indicator for an object.
 boolean isRequired()
           
 boolean isRuleValidationAttribute()
           
 boolean isWorkflowAttribute()
           
 void setActive(boolean active)
          Sets the record to active or inactive.
 void setActive(Boolean active)
           
 void setDefaultValue(String defaultValue)
           
 void setDisplayOrder(Integer displayOrder)
           
 void setRequired(Boolean required)
           
 void setRuleAttribute(RuleAttribute ruleAttribute)
           
 void setRuleAttributeId(String ruleAttributeId)
           
 void setRuleExtensions(List<RuleExtension> ruleExtensions)
           
 void setRuleTemplate(RuleTemplate ruleTemplate)
           
 void setRuleTemplateAttributeId(String ruleTemplateAttributeId)
           
 void setRuleTemplateId(String ruleTemplateId)
           
 
Methods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
 
Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase
prepareForWorkflow, toString, toStringBuilder, toStringMapper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
 

Constructor Detail

RuleTemplateAttribute

public RuleTemplateAttribute()
Method Detail

compareTo

public int compareTo(RuleTemplateAttribute ruleTemplateAttribute)
Specified by:
compareTo in interface Comparable<RuleTemplateAttribute>

getAttribute

public Object getAttribute()

isWorkflowAttribute

public boolean isWorkflowAttribute()

isRuleValidationAttribute

public boolean isRuleValidationAttribute()

getWorkflowAttribute

public WorkflowAttribute getWorkflowAttribute()
Instantiates and returns a new instance of the WorkflowAttribute class configured on this template. The calling code should be sure to call isWorkflowAttribute first to verify the type of this attribute is that of a WorkflowAttribute. Otherwise a RuntimeException will be thrown.


getRuleValidationAttribute

public RuleValidationAttribute getRuleValidationAttribute()
Instantiates and returns a new instance of the RuleValidationAttribute class configured on this template. The calling code should be sure to call isRuleValidationAttribute first to verify the type of this attribute is that of a RuleValidationAttribute. Otherwise a RuntimeException will be thrown.


getRuleExtensions

public List<RuleExtension> getRuleExtensions()

setRuleExtensions

public void setRuleExtensions(List<RuleExtension> ruleExtensions)

getRuleAttribute

public RuleAttribute getRuleAttribute()

setRuleAttribute

public void setRuleAttribute(RuleAttribute ruleAttribute)

getRuleTemplate

public RuleTemplate getRuleTemplate()

setRuleTemplate

public void setRuleTemplate(RuleTemplate ruleTemplate)

getDefaultValue

public String getDefaultValue()

setDefaultValue

public void setDefaultValue(String defaultValue)

getDisplayOrder

public Integer getDisplayOrder()

setDisplayOrder

public void setDisplayOrder(Integer displayOrder)

isRequired

public boolean isRequired()

getRequired

public Boolean getRequired()

setRequired

public void setRequired(Boolean required)

isActive

public boolean isActive()
Description copied from interface: Inactivatable
The active indicator for an object.

Specified by:
isActive in interface Inactivatable
Returns:
true if active false if not.

getActive

public Boolean getActive()

setActive

public void setActive(Boolean active)

setActive

public void setActive(boolean active)
Description copied from interface: MutableInactivatable
Sets the record to active or inactive.

Specified by:
setActive in interface MutableInactivatable

getRuleAttributeId

public String getRuleAttributeId()

setRuleAttributeId

public void setRuleAttributeId(String ruleAttributeId)

getRuleTemplateAttributeId

public String getRuleTemplateAttributeId()

setRuleTemplateAttributeId

public void setRuleTemplateAttributeId(String ruleTemplateAttributeId)

getRuleTemplateId

public String getRuleTemplateId()

setRuleTemplateId

public void setRuleTemplateId(String ruleTemplateId)


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