|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WorkItem
Represents a work item on Team Foundation Server. Implementations must implement equals() and hashCode().
Method Summary | |
---|---|
void |
addWorkItemStateListener(WorkItemStateListener listener)
Adds a listener for the state changed event. |
WorkItem |
copy()
|
WorkItem |
copy(WorkItemType targetType)
|
AttachmentCollection |
getAttachments()
|
WorkItemClient |
getClient()
|
FieldCollection |
getFields()
|
int |
getID()
|
LinkCollection |
getLinks()
|
java.lang.String |
getNextState(java.lang.String action)
Gets the next state of this work item based on the action of a user. |
Project |
getProject()
|
RevisionCollection |
getRevisions()
|
int |
getTemporaryID()
|
java.lang.String |
getTitle()
|
WorkItemType |
getType()
|
java.lang.String |
getURI()
|
boolean |
isDirty()
|
boolean |
isOpen()
|
boolean |
isValid()
Validates the fields of this work item. |
void |
open()
Opens this work item for modification. |
void |
removeWorkItemStateListener(WorkItemStateListener listener)
Removes a listener for the state changed event. |
void |
reset()
Reverts all changes that were made since the last save. |
void |
save()
Saves any pending changes on this work item. |
void |
setTitle(java.lang.String title)
Sets the title of this work item. |
void |
syncToLatest()
Synchronizes the work item to the latest revision. |
Method Detail |
---|
void open()
void save() throws UnableToSaveException
UnableToSaveException
- if there was an error saving the work itemvoid reset()
void syncToLatest()
java.lang.String getNextState(java.lang.String action)
action
- the action string (must not be null
)
WorkItemType getType()
WorkItemType
object that represents the type of this
work item.Project getProject()
Project
object that contains this work item.FieldCollection getFields()
RevisionCollection getRevisions()
RevisionCollection
object that represents a collection
of valid revision numbers for this work item.AttachmentCollection getAttachments()
AttachmentCollection
object that represents the
attachments that belong to this work item.LinkCollection getLinks()
int getID()
int getTemporaryID()
java.lang.String getURI()
java.lang.String getTitle()
void setTitle(java.lang.String title)
title
- the the title of this work itemvoid addWorkItemStateListener(WorkItemStateListener listener)
listener
- the listener to add (must not be null
)void removeWorkItemStateListener(WorkItemStateListener listener)
listener
- the listener to remove (must not be null
)boolean isOpen()
true
this work item is currently open for edit,
false
otherwiseboolean isDirty()
true
this work item has been changed since its last
save, false
otherwiseboolean isValid()
true
if the work item is valid, false
if it is not validWorkItemClient getClient()
WorkItemClient
for this work itemWorkItem copy()
WorkItem
instance.WorkItem copy(WorkItemType targetType)
WorkItem
instance that is of the specified
WorkItemType
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |