org.tigris.scarab.attribute
Class UserAttribute
java.lang.Object
org.apache.torque.om.BaseObject
org.tigris.scarab.om.BaseAttributeValue
org.tigris.scarab.om.AttributeValue
org.tigris.scarab.attribute.UserAttribute
- All Implemented Interfaces:
- org.apache.torque.om.Persistent, org.apache.fulcrum.intake.Retrievable, java.io.Serializable
- public class UserAttribute
- extends AttributeValue
- Version:
- $Revision: 9977 $ $Date: 2005-12-09 01:40:59 +0100 (Fr, 09 Dez 2005) $
- Author:
- John D. McNally
- See Also:
- Serialized Form
| Fields inherited from class org.apache.torque.om.BaseObject |
NEW_ID |
|
Method Summary |
java.lang.String |
getUserName()
Gets the Value attribute of the Attribute object |
java.lang.String |
getValue()
Overrides super method to make sure up-to-date username is provided. |
void |
init()
Override this method if you need any initialization for this attr. |
java.lang.Object |
loadResources()
Returns null |
void |
setResources(java.lang.Object resources)
This method is used by an Attribute instance to obtain
specific resources such as option list for SelectOneAttribute.
|
void |
setUser(ScarabUser user)
|
void |
setValue(java.lang.String username)
Set the value of Value |
| Methods inherited from class org.tigris.scarab.om.AttributeValue |
copy, equals, getActivity, getAttributeOption, getChainedValue, getNewInstance, getNewInstance, getNewInstance, getOptionIdAsString, getOptionIds, getQueryKey, getRModuleAttribute, getUserIds, getValueList, hashCode, isQuickSearchAttribute, isRequired, isSet, save, setActivity, setActivityDescription, setAttributeId, setChainedValue, setIssueId, setNumericValue, setOptionId, setOptionIdOnly, setOptionIds, setProperties, setUserId, setUserIdOnly, setUserIds, setValueOnly, startActivitySet, supportsVoting, toString |
| Methods inherited from class org.tigris.scarab.om.BaseAttributeValue |
copyInto, getAttribute, getAttribute, getAttributeId, getAttributeOption, getByName, getByPeerName, getByPosition, getDeleted, getFieldNames, getIssue, getIssue, getIssueId, getNumericValue, getOptionId, getPeer, getPrimaryKey, getScarabUser, getScarabUser, getUserId, getValueId, isCacheOnSave, save, save, setAttribute, setAttributeKey, setAttributeOption, setAttributeOptionKey, setDeleted, setIssue, setIssueKey, setPrimaryKey, setPrimaryKey, setQueryKey, setScarabUser, setScarabUserKey, setValueId |
| Methods inherited from class org.apache.torque.om.BaseObject |
equals, getLog, isModified, isNew, resetModified, setModified, setNew, setPrimaryKey |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.torque.om.Persistent |
getPrimaryKey, isModified, isNew, save, save, setModified, setNew, setPrimaryKey, setPrimaryKey |
UserAttribute
public UserAttribute()
getUserName
public java.lang.String getUserName()
- Gets the Value attribute of the Attribute object
- Returns:
- The Value value
setUser
public void setUser(ScarabUser user)
throws org.apache.torque.TorqueException
- Throws:
org.apache.torque.TorqueException
setValue
public void setValue(java.lang.String username)
- Description copied from class:
BaseAttributeValue
- Set the value of Value
- Overrides:
setValue in class AttributeValue
getValue
public java.lang.String getValue()
- Overrides super method to make sure up-to-date username is provided.
- Overrides:
getValue in class BaseAttributeValue
- Returns:
- String
init
public void init()
throws org.apache.torque.TorqueException
- Description copied from class:
AttributeValue
- Override this method if you need any initialization for this attr.
- Specified by:
init in class AttributeValue
- Throws:
org.apache.torque.TorqueException - Generic Exception
setResources
public void setResources(java.lang.Object resources)
- Description copied from class:
AttributeValue
- 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.
- Specified by:
setResources in class AttributeValue
- Parameters:
resources - Resources common for Attributes with the specified id.
loadResources
public java.lang.Object loadResources()
throws org.apache.torque.TorqueException
- Returns null
- Specified by:
loadResources in class AttributeValue
- Returns:
- Object containing Attribute resources which will be
used in setResources.
- Throws:
org.apache.torque.TorqueException
Copyright © 2000-2004 Tigris.org. All Rights Reserved.