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

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.RuleAttribute
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, GloballyUnique, Identifiable, Versioned, ModelObjectBasic, ExtensionDefinitionContract, BusinessObject, PersistableBusinessObject

@Entity
public class RuleAttribute
extends PersistableBusinessObjectBase
implements ExtensionDefinitionContract

Model bean defining a rule attribute. Includes the classname of the attribute class, as well as it's name and other information.

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
RuleAttribute()
           
 
Method Summary
static RuleAttribute from(ExtensionDefinition im)
           
 String getApplicationId()
           
 Map<String,String> getConfiguration()
          Returns a list of key/value settings that the extension was statically configured with when defined.
 String getDescription()
           
 String getId()
          The unique identifier for an object.
 String getLabel()
           
 String getName()
           
 String getResourceDescriptor()
          Retrieves the resource descriptor for this extension.
 String getReturnUrl()
           
 String getRuleAttributeActionsUrl()
           
 List getRuleTemplateAttributes()
           
 String getType()
          The "type" of extension definition.
 List getValidValues()
           
 String getXmlConfigData()
           
 boolean isWorkflowAttribute()
           
static boolean isWorkflowAttribute(String type)
           
 void setApplicationId(String applicationId)
           
 void setDescription(String description)
           
 void setId(String id)
           
 void setLabel(String label)
           
 void setName(String name)
           
 void setResourceDescriptor(String resourceDescriptor)
           
 void setReturnUrl(String returnUrl)
           
 void setRuleTemplateAttributes(List ruleTemplateAttributes)
           
 void setType(String type)
           
 void setValidValues(List ruleAttributeValidValues)
           
 void setXmlConfigData(String xmlConfigData)
           
static ExtensionDefinition to(RuleAttribute ruleAttribute)
           
 
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.ModelObjectBasic
toString
 

Constructor Detail

RuleAttribute

public RuleAttribute()
Method Detail

getValidValues

public List getValidValues()

setValidValues

public void setValidValues(List ruleAttributeValidValues)

getRuleTemplateAttributes

public List getRuleTemplateAttributes()

setRuleTemplateAttributes

public void setRuleTemplateAttributes(List ruleTemplateAttributes)

getDescription

public String getDescription()
Specified by:
getDescription in interface ExtensionDefinitionContract

setDescription

public void setDescription(String description)

getLabel

public String getLabel()
Specified by:
getLabel in interface ExtensionDefinitionContract

setLabel

public void setLabel(String label)

getName

public String getName()
Specified by:
getName in interface ExtensionDefinitionContract

setName

public void setName(String name)

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)

getType

public String getType()
Description copied from interface: ExtensionDefinitionContract
The "type" of extension definition. For example, attributes types are defined in: KewApiConstants.RULE_ATTRIBUTE_TYPES

Specified by:
getType in interface ExtensionDefinitionContract
Returns:
the extension definition type
See Also:
KewApiConstants.RULE_ATTRIBUTE_TYPES

setType

public void setType(String type)

getResourceDescriptor

public String getResourceDescriptor()
Description copied from interface: ExtensionDefinitionContract
Retrieves the resource descriptor for this extension. This gives the calling code the information it needs to locate and execute the extension resource if it needs to. In practice this is a fully qualified class name.

Specified by:
getResourceDescriptor in interface ExtensionDefinitionContract
Returns:
Returns the resourceDescriptor.

setResourceDescriptor

public void setResourceDescriptor(String resourceDescriptor)
Parameters:
resourceDescriptor - The className to set.

getRuleAttributeActionsUrl

public String getRuleAttributeActionsUrl()

getReturnUrl

public String getReturnUrl()

setReturnUrl

public void setReturnUrl(String returnUrl)

getXmlConfigData

public String getXmlConfigData()

getConfiguration

public Map<String,String> getConfiguration()
Description copied from interface: ExtensionDefinitionContract
Returns a list of key/value settings that the extension was statically configured with when defined.

Specified by:
getConfiguration in interface ExtensionDefinitionContract
Returns:
a list of key/value settings that the extension was statically configured with when defined.

setXmlConfigData

public void setXmlConfigData(String xmlConfigData)

getApplicationId

public String getApplicationId()
Specified by:
getApplicationId in interface ExtensionDefinitionContract

setApplicationId

public void setApplicationId(String applicationId)

isWorkflowAttribute

public boolean isWorkflowAttribute()

isWorkflowAttribute

public static boolean isWorkflowAttribute(String type)

to

public static ExtensionDefinition to(RuleAttribute ruleAttribute)

from

public static RuleAttribute from(ExtensionDefinition im)


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