|
||||||||||
| 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.Task
Represents a StarTeam Task item.
| Nested Class Summary |
| Nested classes inherited from class com.starbase.starteam.Item |
Item.LockType |
| Constructor Summary | |
Task(Folder parentFolder)
Creates a new task in the specified folder. |
|
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(int userID)
Adds the specified user ID as a resource for this Task. |
void |
addWorkRecord(WorkRecord record)
Deprecated. Use createWorkRecord instead |
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. |
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
OLEDate |
getActualFinish()
Returns the actual finish date of this task. |
double |
getActualHours()
Returns the actual number of hours spent on this task. |
OLEDate |
getActualStart()
Returns the actual start date of this task. |
java.lang.String |
getAttentionNotes()
Returns the text in the "Needs Attention" note for this task. |
int |
getChildrenCount()
Returns the number of tasks that are subtasks of this one. |
OLEDate |
getConstraintDate()
Returns the task's Constraint Date from MS Project. |
int |
getConstraintType()
Returns the MS Project Constraint Type of this task. |
java.lang.String |
getConstraintTypeDisplayName(int value)
Returns a user-friendly display name for the given ConstraintType value. |
OLEDate |
getDependencyLastUpdate()
Returns the date that a work record or task dependency (predecessor or successor) was last added to this task. |
double |
getDuration()
Returns the number of hours during which at least one user is working on this task. |
OLEDate |
getEstimatedFinish()
Returns the estimated date at which this task will be completed. |
int |
getEstimatedFinishVariance()
Returns the Estimated Finish Variance of this task. |
double |
getEstimatedHours()
Returns an estimate of the number of hours that will be spent completing this task. |
double |
getEstimatedHoursVariance()
Returns the Estimated Hours Variance of this task. |
OLEDate |
getEstimatedStart()
Returns the estimated start date of this task. |
int |
getEstimatedStartVariance()
Returns the Estimated Start Variance of this task. |
java.lang.String |
getGUID()
Returns the MS Project GUID of this task. |
int |
getIsMyTask()
Returns a value indicating whether the logged on user is responsible for this task. |
java.lang.String |
getIsMyTaskDisplayName(int value)
Returns a user-friendly display name for the given IsMyTask value. |
int |
getMilestone()
Returns a value indicating whether or not this task represents a milestone. |
java.lang.String |
getMilestoneDisplayName(int value)
Returns a user-friendly display name for the given Milestone value. |
java.lang.String |
getMSProjectFileName()
Returns the MS Project FileName of this task. |
OLEDate |
getMSProjectLastUpdate()
Returns the date that this task was last updated from MS Project. |
java.lang.String |
getName()
Returns the Name of this task. |
int |
getNeedsAttention()
Returns a value that indicates whether or not this task needs attention. |
java.lang.String |
getNeedsAttentionDisplayName(int value)
Returns a user-friendly display name for the given NeedsAttention value. |
java.lang.String |
getNotes()
Returns the text in the "Notes" for this task. |
int |
getNumber()
Returns the number assigned to this task. |
int |
getOrigin()
Returns a value indicating the origin (e.g., StarTeam or MS Project) of this task. |
java.lang.String |
getOriginDisplayName(int value)
Returns a user-friendly display name for the given Origin value. |
int |
getParentID()
Returns the ObjectID of this task's parent task. |
int |
getPercentComplete()
Returns a percentage indicating how much of the task has been completed. |
int[] |
getPossibleConstraintType()
Returns the possible enum codes that are valid values for the ConstraintType property. |
int[] |
getPossibleIsMyTask()
Returns the possible enum codes that are valid values for the IsMyTask property. |
int[] |
getPossibleMilestone()
Returns the possible enum codes that are valid values for the Milestone property. |
int[] |
getPossibleNeedsAttention()
Returns the possible enum codes that are valid values for the NeedsAttention property. |
int[] |
getPossibleOrigin()
Returns the possible enum codes that are valid values for the Origin property. |
int[] |
getPossiblePriority()
Returns the possible enum codes that are valid values for the Priority property. |
int[] |
getPossibleStatus()
Returns the possible enum codes that are valid values for the Status property. |
int[] |
getPossibleTaskType()
Returns the possible enum codes that are valid values for the TaskType property. |
TaskDependency[] |
getPredecessorLinks()
Returns the predecessor tasks to this this task. |
int |
getPriority()
Returns the Priority of this task. |
java.lang.String |
getPriorityDisplayName(int value)
Returns a user-friendly display name for the given Priority value. |
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. |
int[] |
getResources()
Returns the IDs of the users assigned as resources of this task. |
int |
getResponsibility()
Returns the user ID of the user who is responsibile for this task. |
int |
getStatus()
Returns the Status of this task. |
java.lang.String |
getStatusDisplayName(int value)
Returns a user-friendly display name for the given Status value. |
TaskDependency[] |
getSuccessorLinks()
Returns the successor tasks to this this task. |
int |
getTaskType()
Returns the task's type in MS Project. |
java.lang.String |
getTaskTypeDisplayName(int value)
Returns a user-friendly display name for the given TaskType value. |
int |
getUniqueID()
Returns the MS Project UniqueID of this task. |
ProcessItemUsage |
getUsage()
Gets the usage of this task. |
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. |
int |
hashCode()
returns a unique hash for all instances of this type |
boolean |
isDirty()
Returns true if this task has been modified
and is need of updating. |
boolean |
isProcessTask()
Determines whether or not this task is a process task. |
boolean |
isReplicated()
Returns true if this task is replicated in MS Project. |
java.lang.Object |
put(java.lang.String propertyName,
java.lang.Object value)
Sets the value of the specified property and return the old value. |
void |
removeDependency(TaskDependency dependency)
Removed the specified task dependency from this task. |
void |
removeResource(int userID)
Removes the specified user ID as a resource from this task. |
void |
removeWorkRecord(WorkRecord record)
Removes the work record from this task. |
void |
setAttentionNotes(java.lang.String AttentionNotes)
Sets the text in the "Needs Attention" note for this task. |
void |
setDuration(double Duration)
Sets the number of hours during which at least one user is working on this task. |
void |
setEstimatedFinish(OLEDate EstimatedFinish)
Sets the estimated date at which this task will be completed. |
void |
setEstimatedStart(OLEDate EstimatedStart)
Sets the estimated start date of this task. |
void |
setMilestone(int 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 |
setNeedsAttention(int NeedsAttention)
Sets the value that indicates whether or not this task needs attention. |
void |
setNotes(java.lang.String Notes)
Sets the text in the "Notes" for this task. |
void |
setOrigin(int 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(int Priority)
Sets the Priority of this task. |
void |
setReplicated(boolean replicated)
Sets whether or not this task is replicated in MS Project. |
void |
setResponsibility(int userID)
Sets the user ID of the user who is responsibile for this task. |
void |
setStatus(int Status)
Sets the Status of this task. |
void |
setUsage(ProcessItemUsage usage)
Sets the task usage. |
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.starbase.starteam.TreeItem |
createChild, 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 Task(Folder parentFolder)
parentFolder - The folder to which this new task will be added.public Task(Task parentTask)
parentTask - The parent task.| Method Detail |
public java.lang.Object put(java.lang.String propertyName,
java.lang.Object value)
throws NoSuchPropertyException,
java.lang.ClassCastException
put in class ItempropertyName - the name of 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 double getEstimatedHoursVariance()
PropertyNames.TASK_ESTIMATED_HOURS_VARIANCEpublic int getEstimatedStartVariance()
PropertyNames.TASK_ESTIMATED_START_VARIANCEpublic int getEstimatedFinishVariance()
PropertyNames.TASK_ESTIMATED_FINISH_VARIANCEpublic int getParentID()
getParentID in class TreeItemPropertyNames.TASK_PARENT_IDpublic double getDuration()
PropertyNames.TASK_DURATIONpublic void setDuration(double Duration)
Duration - The number of hours during which at least one user is working on this task.public int getNumber()
PropertyNames.TASK_NUMBERpublic int getNeedsAttention()
Task.getPossibleNeedsAttention(),
Task.getNeedsAttentionDisplayName(int),
PropertyNames.TASK_NEEDS_ATTENTIONpublic void setNeedsAttention(int NeedsAttention)
NeedsAttention - The new value that indicates whether or not this task needs attention.public int[] getPossibleNeedsAttention()
Task.getNeedsAttention(),
Task.getNeedsAttentionDisplayName(int),
TypedResource.getPossibleValues(java.lang.String),
PropertyNames.TASK_NEEDS_ATTENTIONpublic java.lang.String getNeedsAttentionDisplayName(int value)
value - The NeedsAttention value to be converted to a display name.
Task.getNeedsAttention(),
Task.getPossibleNeedsAttention(),
TypedResource.getEnumDisplayName(java.lang.String, int),
PropertyNames.TASK_NEEDS_ATTENTIONpublic java.lang.String getName()
PropertyNames.TASK_NAMEpublic void setName(java.lang.String Name)
Name - The new Name for this task.public java.lang.String getAttentionNotes()
PropertyNames.TASK_ATTENTION_NOTESpublic void setAttentionNotes(java.lang.String AttentionNotes)
AttentionNotes - The text in the "Needs Attention" note for this task.public java.lang.String getNotes()
PropertyNames.TASK_NOTESpublic void setNotes(java.lang.String Notes)
Notes - The new Notes text for this task.public int getPercentComplete()
PropertyNames.TASK_PERCENT_COMPLETEpublic void setPercentComplete(int PercentComplete)
PercentComplete - The new percentage indicating how much of the task has been completed.public int getMilestone()
Task.getPossibleMilestone(),
Task.getMilestoneDisplayName(int),
PropertyNames.TASK_MILESTONEpublic void setMilestone(int Milestone)
Milestone - The new value indicating whether or not this task represents a milestone.public int[] getPossibleMilestone()
Task.getMilestone(),
Task.getMilestoneDisplayName(int),
TypedResource.getPossibleValues(java.lang.String),
PropertyNames.TASK_MILESTONEpublic java.lang.String getMilestoneDisplayName(int value)
value - The Milestone value to be converted to a display name.
Task.getMilestone(),
Task.getPossibleMilestone(),
TypedResource.getEnumDisplayName(java.lang.String, int),
PropertyNames.TASK_MILESTONEpublic int getTaskType()
Task.getPossibleTaskType(),
Task.getTaskTypeDisplayName(int),
PropertyNames.TASK_TYPEpublic int[] getPossibleTaskType()
Task.getTaskType(),
Task.getTaskTypeDisplayName(int),
TypedResource.getPossibleValues(java.lang.String),
PropertyNames.TASK_TYPEpublic java.lang.String getTaskTypeDisplayName(int value)
value - The TaskType value to be converted to a display name.
Task.getTaskType(),
Task.getPossibleTaskType(),
TypedResource.getEnumDisplayName(java.lang.String, int),
PropertyNames.TASK_TYPEpublic int getPriority()
Task.getPossiblePriority(),
Task.getPriorityDisplayName(int),
PropertyNames.TASK_PRIORITYpublic void setPriority(int Priority)
Priority - The new Priority for this task.public int[] getPossiblePriority()
Task.getPriority(),
Task.getPriorityDisplayName(int),
TypedResource.getPossibleValues(java.lang.String),
PropertyNames.TASK_PRIORITYpublic java.lang.String getPriorityDisplayName(int value)
value - The Priority value to be converted to a display name.
Task.getPriority(),
Task.getPossiblePriority(),
TypedResource.getEnumDisplayName(java.lang.String, int),
PropertyNames.TASK_PRIORITYpublic int getConstraintType()
Task.getPossibleConstraintType(),
Task.getConstraintTypeDisplayName(int),
PropertyNames.TASK_CONSTRAINT_TYPEpublic int[] getPossibleConstraintType()
Task.getConstraintType(),
Task.getConstraintTypeDisplayName(int),
TypedResource.getPossibleValues(java.lang.String),
PropertyNames.TASK_CONSTRAINT_TYPEpublic java.lang.String getConstraintTypeDisplayName(int value)
value - The ConstraintType value to be converted to a display name.
Task.getConstraintType(),
Task.getPossibleConstraintType(),
TypedResource.getEnumDisplayName(java.lang.String, int),
PropertyNames.TASK_CONSTRAINT_TYPEpublic OLEDate getConstraintDate()
PropertyNames.TASK_CONSTRAINT_DATEpublic int getResponsibility()
PropertyNames.TASK_RESPONSIBILITYpublic void setResponsibility(int userID)
userID - The user ID of the user who is responsibile for this task.public java.lang.String getGUID()
PropertyNames.TASK_GUIDpublic double getEstimatedHours()
PropertyNames.TASK_ESTIMATED_HOURSpublic int getUniqueID()
PropertyNames.TASK_UNIQUE_IDpublic OLEDate getEstimatedStart()
PropertyNames.TASK_ESTIMATED_STARTpublic void setEstimatedStart(OLEDate EstimatedStart)
EstimatedStart - The new estimated start date of this task.public java.lang.String getWBSCode()
PropertyNames.TASK_WBS_CODEpublic OLEDate getEstimatedFinish()
PropertyNames.TASK_ESTIMATED_FINISHpublic void setEstimatedFinish(OLEDate EstimatedFinish)
EstimatedFinish - The new estimated date at which this task will be completed.public java.lang.String getMSProjectFileName()
PropertyNames.TASK_MSPROJECT_FILENAMEpublic double getActualHours()
PropertyNames.TASK_ACTUAL_HOURSpublic OLEDate getMSProjectLastUpdate()
PropertyNames.TASK_MSPROJECT_LAST_UPDATEpublic OLEDate getActualStart()
PropertyNames.TASK_ACTUAL_STARTpublic OLEDate getActualFinish()
PropertyNames.TASK_ACTUAL_FINISHpublic int getResourceCount()
PropertyNames.TASK_RESOURCE_COUNTpublic int[] getResources()
PropertyNames.TASK_RESOURCE_IDSpublic int getChildrenCount()
DisembodiedItemException - if the Task is disembodiedItem.isDisembodied(),
PropertyNames.TASK_CHILDREN_COUNTpublic int getWorkRecordCount()
PropertyNames.TASK_WORKRECORD_COUNTpublic java.lang.String[] getResourceNames()
PropertyNames.TASK_RESOURCE_NAMESpublic int getIsMyTask()
Task.getPossibleIsMyTask(),
Task.getIsMyTaskDisplayName(int),
PropertyNames.TASK_IS_MY_TASKpublic int[] getPossibleIsMyTask()
Task.getIsMyTask(),
Task.getIsMyTaskDisplayName(int),
TypedResource.getPossibleValues(java.lang.String),
PropertyNames.TASK_IS_MY_TASKpublic java.lang.String getIsMyTaskDisplayName(int value)
value - The IsMyTask value to be converted to a display name.
Task.getIsMyTask(),
Task.getPossibleIsMyTask(),
TypedResource.getEnumDisplayName(java.lang.String, int),
PropertyNames.TASK_IS_MY_TASKpublic int getOrigin()
Task.getPossibleOrigin(),
Task.getOriginDisplayName(int),
PropertyNames.TASK_ORIGINpublic void setOrigin(int origin)
Task.getPossibleOrigin(),
Task.getOrigin(),
PropertyNames.TASK_ORIGINpublic int[] getPossibleOrigin()
Task.getOrigin(),
Task.getOriginDisplayName(int),
TypedResource.getPossibleValues(java.lang.String),
PropertyNames.TASK_ORIGINpublic java.lang.String getOriginDisplayName(int value)
value - The Origin value to be converted to a display name.
Task.getOrigin(),
Task.getPossibleOrigin(),
TypedResource.getEnumDisplayName(java.lang.String, int),
PropertyNames.TASK_ORIGINpublic int getStatus()
Task.getPossibleStatus(),
Task.getStatusDisplayName(int),
PropertyNames.TASK_STATUSpublic void setStatus(int Status)
Status - the new Status for this task.public int[] getPossibleStatus()
Task.getStatus(),
Task.getStatusDisplayName(int),
TypedResource.getPossibleValues(java.lang.String),
PropertyNames.TASK_STATUSpublic java.lang.String getStatusDisplayName(int value)
value - The Status value to be converted to a display name.
Task.getStatus(),
Task.getPossibleStatus(),
TypedResource.getEnumDisplayName(java.lang.String, int),
PropertyNames.TASK_STATUSpublic OLEDate getDependencyLastUpdate()
PropertyNames.TASK_WORK_DEPENDENCY_LAST_UPDATEpublic WorkRecord[] getWorkRecords()
public WorkRecord createWorkRecord(User user)
user - the the user that performs the workpublic void addWorkRecord(WorkRecord record)
record - the work record to be addedTask.createWorkRecord(com.starbase.starteam.User)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.PropertyNames.TASKDEPENDENCY_TYPEpublic void removeDependency(TaskDependency dependency)
dependency - the task depenency to removepublic TaskDependency[] getSuccessorLinks()
TaskDependency object.
public void addResource(int userID)
userID - the user ID to add as a resource for this task,public void removeResource(int userID)
userID - the user ID resource to remove from this task.public void update()
update in class ItemItem.isNew()public void discard()
discard in class ItemItem.refresh()public boolean isDirty()
true if this task has been modified
and is need of updating.
isDirty in class ItemTask.update()public boolean isReplicated()
Task.getOrigin(),
PropertyNames.TASK_IS_REPLICATEDpublic void setReplicated(boolean replicated)
replicated - true if the task should be marked as replicated
in MS projectTask.getOrigin(),
Task.setOrigin(int),
PropertyNames.TASK_IS_REPLICATEDpublic boolean equals(java.lang.Object source)
equals in class Itemsource - Object the source to comapre with
public int hashCode()
hashCode in class Itempublic void setUsage(ProcessItemUsage 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.ProcessItem.Usagepublic ProcessItemUsage getUsage()
public boolean isProcessTask()
Task.getUsage(),
ProcessItem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||