|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.starbase.starteam.CacheRef
|
+--com.starbase.starteam.NamedCacheRef
|
+--com.starbase.starteam.TypedResource
|
+--com.starbase.starteam.SimpleTypedResource
|
+--com.starbase.starteam.Item
|
+--com.starbase.starteam.TreeItem
|
+--com.starbase.starteam.Topic
Represents a StarTeam Topic.
| Nested Class Summary |
| Nested classes inherited from class com.starbase.starteam.Item |
Item.LockType |
| Constructor Summary | |
Topic(Folder parentFolder)
Creates a new topic in the specified folder. |
|
Topic(Topic parentTopic)
Creates a new topic that is a subtopic of an existing topic. |
|
| Method Summary | |
void |
addRecipient(int userID)
Adds the specified user ID as a recipient for this topic. |
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
int |
getAmIRecipient()
Returns a value indicating whether the logged on user is a recipient of this topic. |
int |
getChildrenCount()
Returns the number of topics that are subtopics of this one. |
int |
getNumber()
Returns the topic number of this topic. |
int |
getParentTopic()
Returns the object ID of this topic's parent. |
int[] |
getPossiblePriority()
Returns the possible enum codes that are valid values for the Priority property. |
int[] |
getPossibleReadStatus()
Returns the possible enum codes that are valid values for the ReadStatus property. |
int[] |
getPossibleStatus()
Returns the possible enum codes that are valid values for the Status property. |
int |
getPriority()
Returns the Priority of this topic. |
java.lang.String |
getPriorityDisplayName(int value)
Returns a user-friendly display name for the given Priority value. |
int |
getReadStatus()
A flag indicating whether or not the user has read this item before. |
java.lang.String |
getReadStatusDisplayName(int value)
Returns a user-friendly display name for the given ReadStatus value. |
int |
getRecipientCount()
Returns the number of recipients assigned to this topic. |
int[] |
getRecipients()
Returns the IDs of the users assigned as recipients of this topic. |
int |
getStatus()
Returns the Status of this topic. |
java.lang.String |
getStatusDisplayName(int value)
Returns a user-friendly display name for the given Status value. |
java.lang.String |
getText()
Returns the text or body of the topic. |
java.lang.String |
getTitle()
Returns the title or subject of the topic. |
int |
hashCode()
returns a unique hash for all instances of this type |
void |
modifyReadStatusForUser(boolean bSetAsRead)
Modifies this item's read status for the logged-in user. |
void |
removeRecipient(int userID)
Removes the specified user ID as a recipient from this topic. |
void |
setPriority(int Priority)
Sets the Priority of this topic. |
void |
setStatus(int Status)
Sets the Status of this topic. |
void |
setText(java.lang.String text)
Sets the text or body of this topic. |
void |
setTitle(java.lang.String title)
Sets the title or subject of this topic. |
| Methods inherited from class com.starbase.starteam.TreeItem |
createChild, getParentID, move, moveTo, moveTo, remove, shareTo |
| Methods inherited from class com.starbase.starteam.TypedResource |
addToIntArray, removeFromIntArray |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Topic(Folder parentFolder)
parentFolder - The folder to which this new topic will be added.public Topic(Topic parentTopic)
parentTopic - The parent topic.| Method Detail |
public int getParentTopic()
Item.getObjectID(),
PropertyNames.TOPIC_PARENTpublic java.lang.String getTitle()
PropertyNames.TOPIC_TITLEpublic void setTitle(java.lang.String title)
title - The new topic title.public java.lang.String getText()
PropertyNames.TOPIC_DESCRIPTIONpublic void setText(java.lang.String text)
text - The new tex or body for this topic.public int getNumber()
PropertyNames.TOPIC_NUMBERpublic int getChildrenCount()
DisembodiedItemException - if the Topic is disembodiedItem.isDisembodied(),
PropertyNames.TOPIC_CHILDREN_COUNTpublic int getPriority()
Topic.getPossiblePriority(),
Topic.getPriorityDisplayName(int),
PropertyNames.TOPIC_PRIORITYpublic void setPriority(int Priority)
Priority - The new Priority for this topic.public int[] getPossiblePriority()
Topic.getPriority(),
Topic.getPriorityDisplayName(int),
TypedResource.getPossibleValues(java.lang.String),
PropertyNames.TOPIC_PRIORITYpublic java.lang.String getPriorityDisplayName(int value)
value - The Priority value to be converted to a display name.
Topic.getPriority(),
Topic.getPossiblePriority(),
TypedResource.getEnumDisplayName(java.lang.String, int),
PropertyNames.TOPIC_PRIORITYpublic int getStatus()
Topic.getPossibleStatus(),
Topic.getStatusDisplayName(int),
PropertyNames.TOPIC_STATUSpublic void setStatus(int Status)
Status - The new Status for this topic.public int[] getPossibleStatus()
Topic.getStatus(),
Topic.getStatusDisplayName(int),
TypedResource.getPossibleValues(java.lang.String),
PropertyNames.TOPIC_STATUSpublic java.lang.String getStatusDisplayName(int value)
value - The Status value to be converted to a display name.
Topic.getStatus(),
Topic.getPossibleStatus(),
TypedResource.getEnumDisplayName(java.lang.String, int),
PropertyNames.TOPIC_STATUSpublic int getRecipientCount()
PropertyNames.RECIPIENT_COUNTpublic int[] getRecipients()
PropertyNames.RECIPIENT_IDSpublic void addRecipient(int userID)
userID - the user ID to add as a recipient for this topic,public void removeRecipient(int userID)
userID - the user ID recipient to remove from this topic.public int getAmIRecipient()
PropertyNames.AM_I_RECIPIENT,
Topic.addRecipient(int),
Topic.removeRecipient(int),
Topic.getRecipients(),
PropertyEnums.AM_I_RECIPIENT_YES,
PropertyEnums.AM_I_RECIPIENT_NOpublic int getReadStatus()
getReadStatus in class ItemItem.getReadStatus()public void modifyReadStatusForUser(boolean bSetAsRead)
modifyReadStatusForUser in class ItembSetAsRead - this item's new read statusItem.modifyReadStatusForUser(boolean)public int[] getPossibleReadStatus()
getPossibleReadStatus in class ItemItem.getPossibleReadStatus()public java.lang.String getReadStatusDisplayName(int value)
getReadStatusDisplayName in class Itemvalue - The ReadStatus value to be converted to a display name.
Item.getReadStatusDisplayName(int)public boolean equals(java.lang.Object source)
equals in class Itemsource - Object the source to comapre with
public int hashCode()
hashCode in class Item
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||