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

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.RuleTemplateAttributeBo
All Implemented Interfaces:
Serializable, Comparable<RuleTemplateAttributeBo>, org.apache.ojb.broker.PersistenceBrokerAware, Inactivatable, MutableInactivatable, GloballyUnique, Identifiable, Versioned, ModelObjectBasic, RuleTemplateAttributeContract, BusinessObject, PersistableBusinessObject

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

A model bean which services as the link between a RuleTemplateBo 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
RuleTemplateAttributeBo()
           
 
Method Summary
 int compareTo(RuleTemplateAttributeBo ruleTemplateAttribute)
           
 Boolean getActive()
           
 Object getAttribute()
           
 String getDefaultValue()
           
 Integer getDisplayOrder()
           
 String getId()
          The unique identifier for an object.
 Boolean getRequired()
           
 RuleAttribute getRuleAttribute()
           
 String getRuleAttributeId()
           
 Map<String,String> getRuleExtensionMap()
           
 List<RuleExtensionBo> getRuleExtensions()
           
 RuleTemplateBo getRuleTemplate()
           
 String getRuleTemplateId()
           
 RuleValidationAttribute getRuleValidationAttribute()
          Instantiates and returns a new instance of the RuleValidationAttribute class configured on this template.
 WorkflowRuleAttribute 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 setId(String id)
           
 void setRequired(Boolean required)
           
 void setRuleAttribute(RuleAttribute ruleAttribute)
           
 void setRuleAttributeId(String ruleAttributeId)
           
 void setRuleExtensions(List<RuleExtensionBo> ruleExtensions)
           
 void setRuleTemplate(RuleTemplateBo ruleTemplate)
           
 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
toString
 
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.common.Versioned
getVersionNumber
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.GloballyUnique
getObjectId
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
 

Constructor Detail

RuleTemplateAttributeBo

public RuleTemplateAttributeBo()
Method Detail

compareTo

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

getAttribute

public Object getAttribute()

isWorkflowAttribute

public boolean isWorkflowAttribute()

isRuleValidationAttribute

public boolean isRuleValidationAttribute()

getWorkflowAttribute

public WorkflowRuleAttribute 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<RuleExtensionBo> getRuleExtensions()

getRuleExtensionMap

public Map<String,String> getRuleExtensionMap()
Specified by:
getRuleExtensionMap in interface RuleTemplateAttributeContract

setRuleExtensions

public void setRuleExtensions(List<RuleExtensionBo> ruleExtensions)

getRuleAttribute

public RuleAttribute getRuleAttribute()
Specified by:
getRuleAttribute in interface RuleTemplateAttributeContract

setRuleAttribute

public void setRuleAttribute(RuleAttribute ruleAttribute)

getRuleTemplate

public RuleTemplateBo getRuleTemplate()

setRuleTemplate

public void setRuleTemplate(RuleTemplateBo ruleTemplate)

getDefaultValue

public String getDefaultValue()
Specified by:
getDefaultValue in interface RuleTemplateAttributeContract

setDefaultValue

public void setDefaultValue(String defaultValue)

getDisplayOrder

public Integer getDisplayOrder()
Specified by:
getDisplayOrder in interface RuleTemplateAttributeContract

setDisplayOrder

public void setDisplayOrder(Integer displayOrder)

isRequired

public boolean isRequired()
Specified by:
isRequired in interface RuleTemplateAttributeContract

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)

getId

public String getId()
Description copied from interface: Identifiable
The unique identifier for an object. This can be null.

Specified by:
getId in interface Identifiable
Returns:
the id

setId

public void setId(String id)

getRuleTemplateId

public String getRuleTemplateId()
Specified by:
getRuleTemplateId in interface RuleTemplateAttributeContract

setRuleTemplateId

public void setRuleTemplateId(String ruleTemplateId)


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