This class is for dealing with Issue Attribute Values
author: John McNally author: Jon S. Stevens author: Elicia David version: $Id: AttributeValue.java 10131 2006-06-01 13:50:56Z dabbous $
getActivity() Gets the Activity record associated with this AttributeValue
It can only be retrieved after the save() method has been called
since that is when it is generated.
init() Override this method if you need any initialization for this attr.
public boolean
isQuickSearchAttribute() if the Attribute related to this value is marked as relevant
to quick search in the module related to the Issue
related to this value.
setResources(Object resources) This method is used by an Attribute instance to obtain
specific resources such as option list for SelectOneAttribute.
It may, for example put them into instance variables.
Gets the Activity record associated with this AttributeValue
It can only be retrieved after the save() method has been called
since that is when it is generated.
Creates, initializes and returns a new AttributeValue.
new Attribute instance Parameters: rma - the Attribute's rma Parameters: issue - Issue object which this attribute is associated with
Creates, initializes and returns a new AttributeValue.
new AttributeValue instance Parameters: issue - Issue object which this attributeValue is associated Parameters: attId - the Attribute's Id
Creates, initializes and returns a new AttributeValue.
new AttributeValue instance Parameters: attribute - the Attribute Parameters: issue - Issue object which this attributeValue is associated
This method returns a flat List of all AttributeValues that might
be chained to this one. This AttributeValue will be first in the List.
a List of AttributeValue's
Loads from database data specific for this Attribute including Name.
These are data common to all Attribute instances with same id.
Data retrieved here will then be used in setResources.
Object containing Attribute resources which will be used in setResources.
This method is used by an Attribute instance to obtain
specific resources such as option list for SelectOneAttribute.
It may, for example put them into instance variables. Attributes
may use common resources as-is or create it's own resources
based on common, it should not, however, modify common resources
since they will be used by other Attribute instances.
Parameters: resources - Resources common for Attributes with the specified id.
setUserId
public void setUserId(Integer userId) throws TorqueException(Code)
Makes sure to set the Value as well, to make display of the
user easier
Parameters: userId - a Integer value
Enters this attribute value into a activitySet. All changes to a
value must occur within a activitySet. The activitySet is cleared
once the attribute value is saved.
Parameters: activitySet - a ActivitySet value exception: ScarabException - if a new activitySet is set beforethe value is saved.