com.nurelm.nucontent.model
Class Task
java.lang.Object
com.nurelm.nucontent.model.Task
- public class Task
- extends java.lang.Object
This object represents an edit or review task in NuContent. It is used
in a few different ways:
- When a page is locked, a new lock task is created.
- When an author clicks on any edit buttons on an unlocked page, a new
edit task is created.
- Once the author is finished editing the page, the user can 1) log a
comment with the page (and sub-pages that have been modified if desired),
and 2) choose to deploy the changes immediately or on a scheduled date.
In any case, the current task is completed and saved.
- If the page does not have to be reviewed, and if it is to be
deployed immediately, the updated page is made the current version
- If the page must be reviewed, a new review task is created and sent
to the reviewer
- If the page is to be scheduled later, a schedule task is created
- When a reviewer finished reviewing a page, the review task is
completed. If the changes were accepted, they replace the current page
version. If not, then another edit task is created and sent to the page
author.
- All tasks are maintained as a log of each page's changes
|
Constructor Summary |
Task(int type,
java.util.Date assignedDate,
java.util.Date requestedCompletionDate,
java.util.Date actualCompletionDate,
User assignedTo,
User assignedBy,
java.lang.String comment)
Creates a new Task. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EDIT
public static final int EDIT
- See Also:
- Constant Field Values
REVIEW
public static final int REVIEW
- See Also:
- Constant Field Values
DEPLOY
public static final int DEPLOY
- See Also:
- Constant Field Values
LOCK
public static final int LOCK
- See Also:
- Constant Field Values
Task
public Task(int type,
java.util.Date assignedDate,
java.util.Date requestedCompletionDate,
java.util.Date actualCompletionDate,
User assignedTo,
User assignedBy,
java.lang.String comment)
- Creates a new
Task.
- Parameters:
type - The type of this task.assignedDate - The task assignment date.requestedCompletionDate - The requested completion date.actualCompletionDate - The actual completion date.assignedTo - The user to whom the task was assigned.assignedBy - The assigner of the task.comment - A comment entered by the user or the system.
setTaskType
public void setTaskType(int taskType)
getTaskType
public int getTaskType()
setAssignedDate
public void setAssignedDate(java.util.Date assignedDate)
getAssignedDate
public java.util.Date getAssignedDate()
setRequestedCompletionDate
public void setRequestedCompletionDate(java.util.Date requestedCompletionDate)
getRequestedCompletionDate
public java.util.Date getRequestedCompletionDate()
setActualCompletionDate
public void setActualCompletionDate(java.util.Date actualCompletionDate)
getActualCompletionDate
public java.util.Date getActualCompletionDate()
setAssignedTo
public void setAssignedTo(User assignedTo)
getAssignedTo
public User getAssignedTo()
setAssignedBy
public void setAssignedBy(User assignedBy)
getAssignedBy
public User getAssignedBy()
setComment
public void setComment(java.lang.String comment)
getComment
public java.lang.String getComment()