|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface that represents a task, the fundamental unit of a task list. It handles
creation of sub-tasks, and manages each task's metadata
and task dependencies. Each ITask
contains
the following attributes: start date, end date, risk,
status, notes, and assigned users.
addDependentTask
method and then calling
store
on the task.
Any 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 (makes 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 user IDs of users assigned to this task. |
IProject |
getContainingProject()
Returns the project that this task belongs to. |
ITaskList |
getContainingTaskList()
Returns the ITaskList object 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's last modified date. |
int |
getLevel()
Returns the level of the task. |
java.lang.String |
getName()
Returns the task name. |
java.lang.String |
getNotes()
Returns the task 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 ITask array of tasks that
that this task is dependent on. |
ITask[] |
getTaskDependents()
Returns an ITask array of tasks that
are dependent on this task. |
boolean |
hasCreatedDate()
Returns true if the task's created date is available, otherwise false . |
boolean |
hasLastModifiedDate()
Returns true if the task's last modified date is available, otherwise false . |
void |
removeAssignedUser(int userID)
Removes an assigned user from the task. |
void |
removeDependentTask(ITask sourceTask)
Removes this task as 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)
Sets 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; must be positive
java.lang.IllegalStateException
- if the object has already been removedpublic 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 has already been removedpublic 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: 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
- the name of the sub-task; cannot be null
description
- the description of the sub-task; cannot be null
startTime
- the start time of the sub-task; cannot be null
endTime
- the 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 was a communication problem during the execution of the remote method callpublic int[] getAssignedUserIDs()
int
array of IDs of the users who are
assigned to this task
java.lang.IllegalStateException
- if the object has already been removedpublic IProject getContainingProject() throws CollaborationException, java.rmi.RemoteException
java.lang.IllegalStateException
- if the object has already been removed
CollaborationException
- if the method call resulted in an error
java.rmi.RemoteException
- if there was a communication problem during the execution of the remote method callpublic ITaskList getContainingTaskList() throws CollaborationException, java.rmi.RemoteException
ITaskList
object that this task belongs to.
java.lang.IllegalStateException
- if the object has already been removed
CollaborationException
- if the method call resulted in an error
java.rmi.RemoteException
- if there was a communication problem during the execution of the remote method callpublic java.util.Date getCreatedDate()
java.lang.IllegalStateException
- if the object has not yet
been stored or has already been removedpublic java.lang.String getDescription()
java.lang.IllegalStateException
- if the object has already been removedpublic java.lang.String getDetailsURL()
java.lang.IllegalStateException
- if the object has not yet been stored or has already been removedpublic 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 has already been removedpublic java.util.Date getLastModifiedDate()
java.lang.IllegalStateException
- if the object has not yet
been stored or has already been removedpublic int getLevel()
java.lang.IllegalStateException
- if the object has already been removedpublic java.lang.String getName()
java.lang.IllegalStateException
- if the object has already been removedpublic java.lang.String getNotes()
java.lang.IllegalStateException
- if the object has already been removedpublic int getOwnerUserID()
java.lang.IllegalStateException
- if the object has already been removedpublic 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 has already been removed
CollaborationException
- if the method call resulted in an error
java.rmi.RemoteException
- if there was a communication problem during the execution of the remote method callpublic TaskRisk getRisk()
java.lang.IllegalStateException
- if the object has already been removedpublic TaskStatus getStatus() throws CollaborationException
CollaborationException
- if the numeric status is not of any TaskStatus enum value
java.lang.IllegalStateException
- if the object has already been removedpublic 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 has already been removedpublic ITask[] getTaskDependencies() throws CollaborationException, java.rmi.RemoteException
ITask
array of tasks that
that this task is dependent on. If this task
does not depend on any other tasks, the array will have 0 elements.
ITask
array of tasks that
that this task is dependant on
java.lang.IllegalStateException
- if the object has already been removed
CollaborationException
- if the method call resulted in an error
java.rmi.RemoteException
- if there was a communication problem during the execution of the remote method callpublic ITask[] getTaskDependents() throws CollaborationException, java.rmi.RemoteException
ITask
array of tasks 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 has already been removed
CollaborationException
- if the method call resulted in an error
java.rmi.RemoteException
- if there was a communication problem during the execution of the remote method callpublic boolean hasCreatedDate()
true
if the task's created date is available, otherwise false
.
true
if created date is available, else false
java.lang.IllegalStateException
- if the object has already been removedpublic boolean hasLastModifiedDate()
true
if the task's last modified date is available, otherwise false
.
true
if last modified date is available, else false
java.lang.IllegalStateException
- if the object has already been removedpublic void removeAssignedUser(int userID)
userID
- the user id; must be positive
java.lang.IllegalStateException
- if the object has already been removedpublic void removeDependentTask(ITask sourceTask)
sourceTask
- the source task that the current
task depends on; cannot be null
java.lang.IllegalStateException
- if the object has already been removedpublic void setDescription(java.lang.String description)
description
- the description.
java.lang.IllegalStateException
- if the object has already been removedpublic void setIntStatus(int intStatus)
java.lang.IllegalStateException
- if the object has 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 has already been removedpublic void setNotes(java.lang.String notes)
notes
- the notes to set
java.lang.IllegalStateException
- if the object has already been removedpublic void setRisk(TaskRisk risk)
risk
- the risk of the task
java.lang.IllegalStateException
- if the object has already been removedpublic void setStatus(TaskStatus status)
status
- the status of the task
java.lang.IllegalStateException
- if the object has already been removedpublic void store() throws CollaborationException, java.rmi.RemoteException
CollaborationException
- if the method call resulted in an error
java.lang.IllegalStateException
- if the object has already been removed
java.rmi.RemoteException
- if there was 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 ©2010 Oracle® Corporation. All Rights Reserved.