|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.TypedResource
com.starteam.LiveObject
com.starteam.TrackedObject
com.starteam.VersionedObject
com.starteam.ViewMember
com.starteam.Item
com.starteam.TreeItem
com.starteam.Task
public class Task
Represents a StarTeam Task item.
| Nested Class Summary | |
|---|---|
static class |
Task.Constraint
Task Constraint Type |
static class |
Task.LifeCycleType
Task LifeCycleType |
static class |
Task.Origin
Task Origin |
static class |
Task.Priority
Priority of the Task |
static class |
Task.ProcessUsage
Indicates the type of operation that created a given process task and its associated process links. |
static class |
Task.Status
Status of the Task |
static class |
Task.TaskType
Task Type |
static class |
Task.Type
Type meta-data (schema) for Task object instances |
static class |
Task.WebCacheTask
Item accessor for cached SDK Tasks contained objects are obtained from the artifact cache |
| Nested classes/interfaces inherited from class com.starteam.TreeItem |
|---|
TreeItem.MoSCoW, TreeItem.WebCacheTreeItem |
| Nested classes/interfaces inherited from class com.starteam.Item |
|---|
Item.WebCacheItem |
| Nested classes/interfaces inherited from class com.starteam.ViewMember |
|---|
ViewMember.LockType, ViewMember.MyLock, ViewMember.ShareState, ViewMember.WebCacheViewMember |
| Nested classes/interfaces inherited from class com.starteam.VersionedObject |
|---|
VersionedObject.WebCacheVersionedObject |
| Nested classes/interfaces inherited from class com.starteam.TrackedObject |
|---|
TrackedObject.WebCacheTrackedObject |
| Nested classes/interfaces inherited from class com.starteam.LiveObject |
|---|
LiveObject.WebCacheLiveObject |
| Nested classes/interfaces inherited from class com.starteam.TypedResource |
|---|
TypedResource.BranchState |
| Constructor Summary | |
|---|---|
Task(Task parentTask)
Creates a new task that is a subtask of an existing task. |
|
| Method Summary | |
|---|---|
void |
addPredecessorLink(int predecessorID,
int lagTime,
int depType)
Adds a new predecessor to this task. |
void |
addResource(User user)
Adds the specified User object as a resource for this Task. |
static Task |
create(Folder prnt)
Create a Task in the specified parent folder. |
WorkRecord |
createWorkRecord(User user)
Creates a new WorkRecord for the specified Task and user. |
void |
discard()
This will discard all cached data associated with this task including changes made but not yet saved. |
Date |
getActualFinishDate()
Returns the actual finish date of this task. |
Date |
getActualStartDate()
Returns the actual start date of this task. |
TimeSpan |
getActualWorkToDate()
Returns the actual number of hours spent on this task. |
java.lang.String |
getAttentionNotes()
Returns the text in the "Needs Attention" note for this task. |
Task.Constraint |
getConstraint()
Returns the MS Project Constraint Type of this task. |
DateTime |
getConstraintDate()
Returns the task's Constraint Date from MS Project. |
DateTime |
getDependencyLastUpdate()
Returns the date that a work record or task dependency (predecessor or successor) was last added to this task. |
java.lang.String |
getDescription()
Returns the description for this task. |
Date |
getEstimatedFinishDate()
Returns the estimated date at which this task will be completed. |
int |
getEstimatedFinishVariance()
Returns the Estimated Finish Variance of this task. |
TimeSpan |
getEstimatedHoursVariance()
Returns the Estimated Hours Variance of this task. |
Date |
getEstimatedStartDate()
Returns the estimated start date of this task. |
int |
getEstimatedStartVariance()
Returns the Estimated Start Variance of this task. |
TimeSpan |
getEstimatedTotalWork()
Returns an estimate of the number of hours that will be spent completing this task. |
GUID |
getGUID()
Returns the MS Project GUID of this task. |
Task.LifeCycleType |
getLifeCycleType()
Returns a value indicating the life cycle type (e.g. |
java.lang.String |
getMSProjectFileName()
Returns the MS Project FileName of this task. |
DateTime |
getMSProjectLastUpdate()
Returns the date that this task was last updated from MS Project. |
Task.TaskType |
getMSProjectTaskType()
Returns the task's type in MS Project. |
java.lang.String |
getName()
Returns the Name of this task. |
java.lang.String |
getNotes()
Returns the text in the "Notes" for this task. |
int |
getNumber()
Returns the number assigned to this task. |
double |
getOrder()
Returns the order in which the task should be worked on. |
DoubleProperty |
getOrderProperty()
Returns a DoubleProperty used for ordering tree item instances Any TreeItem Type that intends to have the children of a particular parent ordered using a default numeric scheme must provide a double property to store the implicit order. |
Task.Origin |
getOrigin()
Returns a value indicating the origin (e.g., StarTeam or MS Project) of this task. |
Story |
getParentStory()
Return the Story containing this Task or null |
int |
getPercentComplete()
Returns a percentage indicating how much of the task has been completed. |
TaskDependency[] |
getPredecessorLinks()
Returns the predecessor tasks to this this task. |
Task.Priority |
getPriority()
Returns the Priority of this task. |
Task.Type.PropertyCollection |
getProperties()
Gets the PropertyCollection for this Task. |
int |
getResourceCount()
Returns the number of resources assigned to this task. |
java.lang.String[] |
getResourceNames()
Returns the names of the users assigned as resources of this task. |
User[] |
getResources()
Returns the User objects assigned as resources of this task. |
User |
getResponsibility()
Returns The User object who is responsible for this task. |
Content |
getRichDescription()
Returns the Rich Description |
TimeSpan |
getScheduledCalendarTime()
Returns the number of hours during which at least one user is working on this task. |
Task.Status |
getStatus()
Returns the Status of this task. |
TaskDependency[] |
getSuccessorLinks()
Returns the successor tasks to this task. |
java.lang.String |
getTeam()
Returns the team for this task. |
int |
getUniqueID()
Returns the MS Project UniqueID of this task. |
Task.ProcessUsage |
getUsage()
Gets the usage of this task. |
java.lang.Object |
getValue(Property property)
Returns the value of the property. |
java.lang.String |
getWBSCode()
Returns the MS Project WBS Code of this task. |
int |
getWorkRecordCount()
Returns the number of work records that have been added to this task. |
WorkRecord[] |
getWorkRecords()
Returns the work records associates with this task. |
boolean |
isAttentionRequired()
Returns a value that indicates whether or not this task needs attention. |
boolean |
isBlocked()
Returns a value indicating whether or not this task is blocked and needs further attention to resolve. |
boolean |
isDirty()
Returns true if this task has been modified and is need of
updating. |
boolean |
isMilestone()
Returns a value indicating whether or not this task represents a milestone. |
boolean |
isMyTask()
Tell if the logged on user is responsible for this task. |
boolean |
isProcessTask()
Determines whether or not this task is a process task. |
boolean |
isReplicated()
Returns true if this task is replicated in MS Project. |
static void |
populateTaskDependencies(Task[] tasks)
Fetches the dependencies(predecessor/successors) that are associated with the given set of tasks in bulk using a single server command. |
static void |
populateWorkRecords(Task[] tasks)
Fetches the work records that are associated with the given set of tasks in bulk using a single server command.This command is supported only on servers from 12.0 release onwards. |
void |
remove()
Removes this item from its current folder. |
void |
removeDependency(TaskDependency dependency)
Removed the specified task dependency from this task. |
void |
removeResource(User user)
Removes the specified User object as a resource from this
task. |
void |
removeWorkRecord(WorkRecord record)
Removes the work record from this task. |
void |
setActualFinishDate(Date ActualFinish)
Sets the actual finish date of this task. |
void |
setActualStartDate(Date ActualStart)
Sets the actual start date of this task. |
void |
setAttentionNotes(java.lang.String AttentionNotes)
Sets the text in the "Needs Attention" note for this task. |
void |
setAttentionRequired(boolean bAttentionRequired)
Sets the value that indicates whether or not this task needs attention. |
void |
setBlocked(boolean blocked)
Sets the value indicating whether or not this task is blocked. |
void |
setDescription(java.lang.String Description)
Sets the new description for this task. |
void |
setEstimatedFinishDate(Date EstimatedFinish)
Sets the estimated date at which this task will be completed. |
void |
setEstimatedStartDate(Date EstimatedStart)
Sets the estimated start date of this task. |
void |
setEstimatedTotalWork(TimeSpan ts)
Set the estimate of the number of hours that will be spent completing this task |
void |
setLifeCycleType(Task.LifeCycleType lifeCycleType)
Sets the value indicating the life cycle type (e.g. |
void |
setMilestone(boolean Milestone)
Sets the value indicating whether or not this task represents a milestone. |
void |
setName(java.lang.String Name)
Sets the Name of this task. |
void |
setNotes(java.lang.String Notes)
Sets the text in the "Notes" for this task. |
void |
setOrder(double order)
Sets the new order in which the task should be worked on. |
void |
setOrigin(Task.Origin origin)
Sets the value indicating the origin (e.g., StarTeam or MS Project) of this task. |
void |
setPercentComplete(int PercentComplete)
Sets the percentage indicating how much of the task has been completed. |
void |
setPriority(Task.Priority priority)
Sets the Priority of this task. |
void |
setReplicated(boolean replicated)
Sets whether or not this task is replicated in MS Project. |
void |
setResponsibility(User user)
Sets the User who is responsible for this task. |
void |
setRichDescription(Content cntnt)
Sets the the Rich Description for the task This property was introduced in 13.0 release of the server. |
void |
setScheduledCalendarTime(TimeSpan Duration)
Sets the number of hours during which at least one user is working on this task. |
void |
setStatus(Task.Status status)
Sets the Status of this task. |
void |
setTeam(java.lang.String team)
Sets the new team for this task. |
void |
setUsage(Task.ProcessUsage usage)
Sets the task usage. |
java.lang.Object |
setValue(Property property,
java.lang.Object value)
Sets the value of the specified property and return the old value. |
java.lang.String |
toString()
Returns the name of this task. |
void |
update()
Either stores this task in the server repository if the task is new or modifies an existing task. |
| Methods inherited from class com.starteam.TreeItem |
|---|
createChild, getChildren, getParent, getParentID, hasChildren, isEqualTo, moveTo, moveTo, setAfter, setBefore, setBetween, setFirst, setLast, shareTo, smartShareTo |
| Methods inherited from class com.starteam.VersionedObject |
|---|
getBranchRevision, getRevisionNumber, getViewVersion, isFromHistory |
| Methods inherited from class com.starteam.TrackedObject |
|---|
getModifiedBy, getModifiedTime |
| Methods inherited from class com.starteam.LiveObject |
|---|
getCreatedBy, getCreatedTime, toStarTeamURL |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.starteam.ISecurable |
|---|
getServer, getType |
| Constructor Detail |
|---|
public Task(Task parentTask)
parentTask - The parent task.| Method Detail |
|---|
public static Task create(Folder prnt)
prnt - the parent folder
public java.lang.Object getValue(Property property)
throws NoSuchPropertyException
getValue in class ViewMemberproperty - the desired property
java.lang.Object
com.starteam.NoSuchPropertyException - if the specified property is not valid for this item
NoSuchPropertyException
public java.lang.Object setValue(Property property,
java.lang.Object value)
throws NoSuchPropertyException,
java.lang.ClassCastException
setValue in class ViewMemberproperty - the property to setvalue - the new value to set for the specified property
NoSuchPropertyException - if the named property does not exist
java.lang.ClassCastException - if the value is of the wrong type for the specified propertypublic Task.Type.PropertyCollection getProperties()
public TimeSpan getEstimatedHoursVariance()
Task.Type.PropertyCollection.ESTIMATED_HOURS_VARIANCEpublic int getEstimatedStartVariance()
Task.Type.PropertyCollection.ESTIMATED_START_VARIANCEpublic int getEstimatedFinishVariance()
Task.Type.PropertyCollection.ESTIMATED_FINISH_VARIANCEpublic TimeSpan getScheduledCalendarTime()
Task.Type.PropertyCollection.DURATIONpublic void setScheduledCalendarTime(TimeSpan Duration)
Duration - The number of hours during which at least one user is working
on this task.public int getNumber()
Task.Type.PropertyCollection.NUMBERpublic boolean isAttentionRequired()
Task.Type.PropertyCollection.NEEDS_ATTENTIONpublic void setAttentionRequired(boolean bAttentionRequired)
bAttentionRequired - The new value that indicates whether or not this task needs
attention.Task.Type.NeedsAttentionProperty.NAMEpublic java.lang.String getName()
Task.Type.PropertyCollection.NAMEpublic void setName(java.lang.String Name)
Name - The new Name for this task.Task.Type.PropertyCollection.NAMEpublic java.lang.String getAttentionNotes()
Task.Type.PropertyCollection.ATTENTION_NOTESpublic void setAttentionNotes(java.lang.String AttentionNotes)
AttentionNotes - The text in the "Needs Attention" note for this task.Task.Type.PropertyCollection.ATTENTION_NOTESpublic java.lang.String getNotes()
Task.Type.PropertyCollection.NOTESpublic void setDescription(java.lang.String Description)
Description - The new description for this task.Task.Type.PropertyCollection.DESCRIPTIONpublic java.lang.String getDescription()
Task.Type.PropertyCollection.DESCRIPTIONpublic void setTeam(java.lang.String team)
team - The new team for this task.Task.Type.PropertyCollection.TEAMpublic java.lang.String getTeam()
Task.Type.PropertyCollection.TEAMpublic Content getRichDescription()
TreeItem.Type.RichDescriptionProperty.NAMEpublic void setRichDescription(Content cntnt)
cntnt - the ContentTreeItem.Type.RichDescriptionProperty.NAMEpublic void setOrder(double order)
order - The new order for this task.Task.Type.PropertyCollection.ORDERpublic double getOrder()
Task.Type.PropertyCollection.ORDERpublic DoubleProperty getOrderProperty()
getOrderProperty in class TreeItempublic void setNotes(java.lang.String Notes)
Notes - The new Notes text for this task.Task.Type.PropertyCollection.NOTESpublic int getPercentComplete()
Task.Type.PropertyCollection.PERCENT_COMPLETEpublic void setPercentComplete(int PercentComplete)
PercentComplete - The new percentage indicating how much of the task has been
completed.public boolean isBlocked()
Task.Type.PropertyCollection.BLOCKEDpublic void setBlocked(boolean blocked)
blocked - The new value indicating whether or not this task is blockedpublic boolean isMilestone()
Task.Type.PropertyCollection.MILESTONEpublic void setMilestone(boolean Milestone)
Milestone - The new value indicating whether or not this task represents a
milestone.public Task.TaskType getMSProjectTaskType()
Task.Type.TaskTypeProperty.NAMEpublic Task.Priority getPriority()
Task.Type.PriorityProperty.NAMEpublic void setPriority(Task.Priority priority)
priority - The new Priority for this task.public Task.Constraint getConstraint()
Task.Type.ConstraintProperty.NAMEpublic DateTime getConstraintDate()
Task.Type.ConstraintDateProperty.NAMEpublic User getResponsibility()
User object who is responsible for this task.
User object who is responsible for this task.Task.Type.ResponsibilityProperty.NAMEpublic void setResponsibility(User user)
User who is responsible for this task.
user - The User who is responsible for this task.public GUID getGUID()
Task.Type.GUIDProperty.NAMEpublic TimeSpan getEstimatedTotalWork()
Task.Type.PropertyCollection.ESTIMATED_HOURSpublic void setEstimatedTotalWork(TimeSpan ts)
ts - an estimate of the number of hourspublic int getUniqueID()
Task.Type.UniqueIDProperty.NAMEpublic Date getEstimatedStartDate()
Task.Type.EstimatedStartProperty.NAMEpublic void setEstimatedStartDate(Date EstimatedStart)
EstimatedStart - The new estimated start date of this task.public java.lang.String getWBSCode()
Task.Type.WBSCodeProperty.NAMEpublic Date getEstimatedFinishDate()
Task.Type.EstimatedFinishProperty.NAMEpublic void setEstimatedFinishDate(Date EstimatedFinish)
EstimatedFinish - The new estimated date at which this task will be completed.public java.lang.String getMSProjectFileName()
Task.Type.MSProjectFileNameProperty.NAMEpublic TimeSpan getActualWorkToDate()
Task.Type.ActualHoursProperty.NAMEpublic DateTime getMSProjectLastUpdate()
Task.Type.MSProjectLastUpdateProperty.NAMEpublic Date getActualStartDate()
Task.Type.ActualStartProperty.NAMEpublic void setActualStartDate(Date ActualStart)
ActualStart - The actual start date of this task.public Date getActualFinishDate()
Task.Type.ActualFinishProperty.NAMEpublic void setActualFinishDate(Date ActualFinish)
ActualFinish - The actual start date of this task.public int getResourceCount()
Task.Type.ResourceCountProperty.NAMEpublic User[] getResources()
User objects assigned as resources of this task.
User assigned as resources of this task.Task.Type.ResourcesProperty.NAMEpublic int getWorkRecordCount()
Task.Type.WorkRecordCountProperty.NAMEpublic java.lang.String[] getResourceNames()
Task.Type.ResourceNamesProperty.NAMEpublic boolean isMyTask()
Task.Type.IsMyTaskProperty.NAMEpublic Task.LifeCycleType getLifeCycleType()
public void setLifeCycleType(Task.LifeCycleType lifeCycleType)
lifeCycleType - the LifecycleType of this taskTask.getLifeCycleType()public Task.Origin getOrigin()
Task.Type.OriginProperty.NAMEpublic void setOrigin(Task.Origin origin)
origin - the origin of this taskTask.getOrigin(),
Task.Type.OriginProperty.NAMEpublic static void populateTaskDependencies(Task[] tasks)
tasks - list of tasks whose work records are required
java.lang.IllegalArgumentException - if the given list of tasks do not belong to the
same view and view configurationpublic static void populateWorkRecords(Task[] tasks)
tasks - list of tasks whose work records are required
java.lang.IllegalArgumentException - if the given list of tasks do not belong to the
same view and view configurationpublic Task.Status getStatus()
Task.Type.StatusProperty.NAMEpublic Story getParentStory()
public void setStatus(Task.Status status)
status - the new Status for this task.Task.Type.StatusProperty.NAMEpublic DateTime getDependencyLastUpdate()
Task.Type.WorkDependencyLastUpdateProperty.NAMEpublic WorkRecord[] getWorkRecords()
public void removeWorkRecord(WorkRecord record)
record - the work record to be removed.public TaskDependency[] getPredecessorLinks()
TaskDependency object.
public void addPredecessorLink(int predecessorID,
int lagTime,
int depType)
predecessorID - the task id of the predecessor tasklagTime - the lag time for this dependencydepType - the dependency type.public void removeDependency(TaskDependency dependency)
dependency - the task dependency to removepublic TaskDependency[] getSuccessorLinks()
TaskDependency object.
public void addResource(User user)
User object as a resource for this Task.
user - the User object to add as a resource for this
task,public void removeResource(User user)
User object as a resource from this
task.
user - the User object resource to remove from this
task.public void update()
update in class TreeItemTypedResource.isNew()public void remove()
remove in class TreeItempublic void discard()
CacheService.discard()public boolean isDirty()
true if this task has been modified and is need of
updating.
isDirty in class TypedResourceTask.update()public boolean isReplicated()
Task.getOrigin(),
Task.Type.PropertyCollection.IS_REPLICATEDpublic void setReplicated(boolean replicated)
replicated - true if the task should be marked as replicated in MS projectTask.getOrigin(),
Task.setOrigin(com.starteam.Task.Origin),
Task.Type.PropertyCollection.IS_REPLICATEDpublic WorkRecord createWorkRecord(User user)
user - the the user that performs the workpublic void setUsage(Task.ProcessUsage usage)
Internally, how the usage is stored depends on the StarTeam server version number. StarTeam server versions 9.5 and later have a system-defined TASK_USAGE property. Earlier servers may have a functionally equivalent TASK_USAGE_90 custom property. For earlier servers that have not been customized, setUsage() will trigger a NoSuchPropertyException.
usage - The usage of this task.Task.Type.ProcessUsageProperty.NAMEpublic Task.ProcessUsage getUsage()
public boolean isProcessTask()
Task.getUsage(),
ProcessItempublic java.lang.String toString()
toString in class Item
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||