|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A task is the fundamental unit of a task list. It handles
creation of sub-tasks, manages each task's meta-data
and task dependencies. Each ITask contains
the following attributes: a start date, end date, risk,
status, notes, and assigned users.
addDependentTask method and then call
store on the task.
All task modifications will not be stored permanently until
store is called.
| Method Summary | |
void |
addAssignedUser(int userID)
Assigns a user to the task. |
void |
addDependentTask(ITask sourceTask)
Adds this task as a dependent task of the given source task, i.e., make the current task depend on the specified source task. |
ITask |
createSubTask(java.lang.String name,
java.lang.String description,
java.util.Date startTime,
java.util.Date endTime)
Creates a sub-task for the current task. |
int[] |
getAssignedUserIDs()
Returns the assigned user IDs. |
IProject |
getContainingProject()
Returns the project that this task belongs to. |
ITaskList |
getContainingTaskList()
Returns the ITaskList that this task belongs to. |
java.util.Date |
getCreatedDate()
Returns the task creation date. |
java.lang.String |
getDescription()
Returns the task description. |
java.lang.String |
getDetailsURL()
Returns the URL at which the task details can be viewed. |
int |
getID()
Returns the task ID for this task. |
int |
getIntStatus()
Returns the status of a task. |
java.util.Date |
getLastModifiedDate()
Returns the task last modified date. |
int |
getLevel()
Returns the level of the task (the maximum level is 4 deep, i.e. |
java.lang.String |
getName()
Returns the task name. |
java.lang.String |
getNotes()
Return the notes. |
int |
getOwnerUserID()
Returns the user ID of the owner of this task. |
ITask |
getParentTask()
Return the parent task, or null if this is a root task. |
TaskRisk |
getRisk()
Returns the risk of a task. |
TaskStatus |
getStatus()
Returns the status of a task. |
ITask[] |
getSubTasks()
Returns an ITask array containing
all sub-tasks of the current task. |
ITask[] |
getTaskDependencies()
Returns an array of ITask that
that this task is dependant on. |
ITask[] |
getTaskDependents()
Returns an array of ITask that
are dependent on this task. |
boolean |
hasCreatedDate()
Returns true if created date is available, else false. |
boolean |
hasLastModifiedDate()
Returns true if last modified date is available, else false. |
void |
removeAssignedUser(int userID)
Removes an assigned user from the task. |
void |
removeDependentTask(ITask sourceTask)
Removes this task a dependent of another task. |
void |
setDescription(java.lang.String description)
Sets the task description. |
void |
setIntStatus(int intStatus)
Sets the status of a task. |
void |
setName(java.lang.String name)
Sets the task name. |
void |
setNotes(java.lang.String notes)
Set the notes for this task. |
void |
setRisk(TaskRisk risk)
Sets the risk of a task. |
void |
setStatus(TaskStatus status)
Sets the status of a task. |
void |
store()
Stores the task. |
| Methods inherited from interface com.plumtree.remote.prc.collaboration.calendar.ICalendarItem |
getEndTime, getStartTime, setEndTime, setStartTime |
| Method Detail |
public void addAssignedUser(int userID)
userID - the user ID; user ID must be positive.
java.lang.IllegalStateException - if the object already been removed.public void addDependentTask(ITask sourceTask)
store
to persist the newly-added dependency. If the source task to be added has sub-tasks,
the current task cannot add that source task as a dependency, and CollaborationException
will be thrown upon calling store.
sourceTask - the source task that the current task
depends on; cannot be null.
java.lang.IllegalStateException - if the object already been removed.
public ITask createSubTask(java.lang.String name,
java.lang.String description,
java.util.Date startTime,
java.util.Date endTime)
throws CollaborationException,
java.rmi.RemoteException
If the current task is a dependent source task of other tasks,
it cannot have any sub-tasks, and CollaborationException
will be thrown.
Note that the value of the start date and end date stored in the database may vary
by a few milliseconds from the supplied date. The date in this object will reflect the stored date
after a call to store.
name - name of the sub-task; cannot be null.description - description of the sub-task; cannot be null.startTime - start time of the sub-task; cannot be null.endTime - end time of the sub-task; cannot be null.
java.lang.IllegalStateException - if the object has not yet been stored or has already been removed.
CollaborationException - if the current task already has task dependency, or if the method call resulted in an error.
java.rmi.RemoteException - if there is a communication problem during the execution of the remote method call.public int[] getAssignedUserIDs()
int array of IDs of users who are
assigned to this task.
java.lang.IllegalStateException - if the object already been removed.
public IProject getContainingProject()
throws CollaborationException,
java.rmi.RemoteException
java.lang.IllegalStateException - if the object already been removed.
CollaborationException - if the method call resulted in an error.
java.rmi.RemoteException - if there is a communication problem during the execution of the remote method call.
public ITaskList getContainingTaskList()
throws CollaborationException,
java.rmi.RemoteException
ITaskList that this task belongs to.
java.lang.IllegalStateException - if the object already been removed.
CollaborationException - if the method call resulted in an error.
java.rmi.RemoteException - if there is a communication problem during the execution of the remote method call.public java.util.Date getCreatedDate()
java.lang.IllegalStateException - if the object has not yet
been stored or has already been removed.public java.lang.String getDescription()
java.lang.IllegalStateException - if the object already been removed.public java.lang.String getDetailsURL()
java.lang.IllegalStateException - if the object has not yet been stored or has already been removed.public int getID()
java.lang.IllegalStateException - if the object has not yet
been stored or has already been removed.public int getIntStatus()
java.lang.IllegalStateException - if the object already been removed.public java.util.Date getLastModifiedDate()
java.lang.IllegalStateException - if the object has not yet
been stored or has already been removed.public int getLevel()
java.lang.IllegalStateException - if the object already been removed.public java.lang.String getName()
java.lang.IllegalStateException - if the object already been removed.public java.lang.String getNotes()
java.lang.IllegalStateException - if the object already been removed.public int getOwnerUserID()
java.lang.IllegalStateException - if the object already been removed.
public ITask getParentTask()
throws CollaborationException,
java.rmi.RemoteException
null if this is a root task.
null if this is a root task.
java.lang.IllegalStateException - if the object already been removed.
CollaborationException - if the method call resulted in an error.
java.rmi.RemoteException - if there is a communication problem during the execution of the remote method call.public TaskRisk getRisk()
java.lang.IllegalStateException - if the object already been removed.
public TaskStatus getStatus()
throws CollaborationException
CollaborationException - if the numeric status is not of any TaskStatus enum value.
java.lang.IllegalStateException - if the object already been removed.public ITask[] getSubTasks()
ITask array containing
all sub-tasks of the current task. If the current task
does not have any sub-tasks, the array will have 0 elements.
ITask array containing all sub-tasks
of the current task.
java.lang.IllegalStateException - if the object already been removed.
public ITask[] getTaskDependencies()
throws CollaborationException,
java.rmi.RemoteException
ITask that
that this task is dependant on. If this task
does not depend on any other tasks, the array will have 0 elements.
ITask that
that this task is dependant on.
java.lang.IllegalStateException - if the object already been removed.
CollaborationException - if the method call resulted in an error.
java.rmi.RemoteException - if there is a communication problem during the execution of the remote method call.
public ITask[] getTaskDependents()
throws CollaborationException,
java.rmi.RemoteException
ITask that
are dependent on this task. If no other tasks
depend on the this task, a zero-length array will be returned.
ITask that are dependent on this task.
java.lang.IllegalStateException - if the object already been removed.
CollaborationException - if the method call resulted in an error.
java.rmi.RemoteException - if there is a communication problem during the execution of the remote method call.public boolean hasCreatedDate()
true if created date is available, else false.
true if created date is available, else false.
java.lang.IllegalStateException - if the object has already
been removed.public boolean hasLastModifiedDate()
true if last modified date is available, else false.
true if last modified date is available, else false.
java.lang.IllegalStateException - if the object has already
been removed.public void removeAssignedUser(int userID)
userID - the user id; userID must be positive.
java.lang.IllegalStateException - if the object already been removed.public void removeDependentTask(ITask sourceTask)
sourceTask - the source task that the current
task depends on; cannot be null.
java.lang.IllegalStateException - if the object already been removed.public void setDescription(java.lang.String description)
description - the description.
java.lang.IllegalStateException - if the object already been removed.public void setIntStatus(int intStatus)
java.lang.IllegalStateException - if the object already been removed.
java.lang.IllegalArgumentException - if the numeric status value is not
of the range 0 - 100.public void setName(java.lang.String name)
name - the task name.
java.lang.IllegalStateException - if the object already been removed.public void setNotes(java.lang.String notes)
notes - the notes to set.
java.lang.IllegalStateException - if the object already been removed.public void setRisk(TaskRisk risk)
risk - the risk of the task.
java.lang.IllegalStateException - if the object already been removed.public void setStatus(TaskStatus status)
status - the status of the task.
java.lang.IllegalStateException - if the object already been removed.
public void store()
throws CollaborationException,
java.rmi.RemoteException
CollaborationException - if the method call resulted in an error.
java.lang.IllegalStateException - if the object already been removed.
java.rmi.RemoteException - if there is a communication problem during the execution of the remote method call.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©2007 BEA Systems, Inc. All Rights Reserved.