Package com.xwiki.task.model
Class Task
java.lang.Object
com.xwiki.task.model.Task
The model of a Task.
- Since:
- 3.0
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the ASSIGNEE field.static final StringThe name of the COMPLETE_DATE field.static final StringThe name of the CREATE_DATE field.static final StringThe name of the DESCRIPTION field.static final StringThe name of the DUE_DATE field.static final StringThe name of the model.static final StringThe name of the NAME field.static final StringThe name of the NUMBER field.static final StringThe name of the OWNER field.static final StringThe name of the PROGRESS field.static final StringThe name of the PROJECT field.static final StringThe name of the ID field.static final StringThe name of the REPORTER field.static final StringThe name of the SEVERITY field.static final StringThe name of the START_DATE field.static final StringThe name of the STATUS field.static final StringThe value of the STATUS field denoting that the task has been completed.static final StringThe value of the STATUS field denoting that the task is still in progress. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.xwiki.model.reference.DocumentReferenceDeprecated.List<org.xwiki.model.reference.DocumentReference>getName()intorg.xwiki.model.reference.DocumentReferencegetOwner()intorg.xwiki.model.reference.DocumentReferenceorg.xwiki.model.reference.DocumentReferencevoidsetAssignee(org.xwiki.model.reference.DocumentReference assignee) Deprecated.voidsetAssignees(List<org.xwiki.model.reference.DocumentReference> assignees) voidsetCompleteDate(Date completeDate) voidsetCreateDate(Date createDate) voidsetDescription(String description) voidsetDuedate(Date duedate) voidvoidsetNumber(int number) voidsetOwner(org.xwiki.model.reference.DocumentReference owner) voidsetProgress(int progress) voidsetProject(String project) voidsetReference(org.xwiki.model.reference.DocumentReference reference) voidsetReporter(org.xwiki.model.reference.DocumentReference reporter) voidsetSeverity(String severity) voidsetStartDate(Date startDate) void
-
Field Details
-
MACRO_NAME
The name of the model.- See Also:
-
NAME
The name of the NAME field.- See Also:
-
NUMBER
The name of the NUMBER field.- See Also:
-
OWNER
The name of the OWNER field.- See Also:
-
REFERENCE
The name of the ID field.- See Also:
-
STATUS
The name of the STATUS field.- See Also:
-
STATUS_DONE
The value of the STATUS field denoting that the task has been completed.- See Also:
-
STATUS_IN_PROGRESS
The value of the STATUS field denoting that the task is still in progress.- See Also:
-
REPORTER
The name of the REPORTER field.- See Also:
-
ASSIGNEE
The name of the ASSIGNEE field.- See Also:
-
CREATE_DATE
The name of the CREATE_DATE field.- See Also:
-
START_DATE
The name of the START_DATE field.- See Also:
-
DUE_DATE
The name of the DUE_DATE field.- See Also:
-
COMPLETE_DATE
The name of the COMPLETE_DATE field.- See Also:
-
PROGRESS
The name of the PROGRESS field.- See Also:
-
PROJECT
The name of the PROJECT field.- See Also:
-
SEVERITY
The name of the SEVERITY field.- See Also:
-
DESCRIPTION
The name of the DESCRIPTION field.- Since:
- 3.10.0
- See Also:
-
-
Constructor Details
-
Task
public Task()Default constructor. -
Task
public Task(org.xwiki.model.reference.DocumentReference documentReference) - Parameters:
documentReference- the reference to this Task.
-
-
Method Details
-
getOwner
public org.xwiki.model.reference.DocumentReference getOwner()- Returns:
- the reference of the document where this task resides.
-
setOwner
public void setOwner(org.xwiki.model.reference.DocumentReference owner) - Parameters:
owner- the reference of the document that contains this task.
-
getReference
public org.xwiki.model.reference.DocumentReference getReference()- Returns:
- a unique identifier for the task within the document.
-
setReference
public void setReference(org.xwiki.model.reference.DocumentReference reference) - Parameters:
reference- the Id of the task. Grouping the tasks by the document reference, their Ids have to be unique.
-
getStatus
- Returns:
- whether the task has been completed or not.
-
setStatus
- Parameters:
status- the current state of the task - true: the task is completed; false: the task is not done.
-
getReporter
public org.xwiki.model.reference.DocumentReference getReporter()- Returns:
- the reference to the user that created this task.
-
setReporter
public void setReporter(org.xwiki.model.reference.DocumentReference reporter) - Parameters:
reporter- the reference to the user that created this task.
-
getAssignee
Deprecated.- Returns:
- a list of references to the users that are assigned to this task.
-
setAssignee
@Deprecated(since="3.7.2") public void setAssignee(org.xwiki.model.reference.DocumentReference assignee) Deprecated.- Parameters:
assignee- a list of references to the users that are assigned to this task.
-
getAssignees
- Returns:
- a list of references to the users that are assigned to this task.
-
setAssignees
- Parameters:
assignees- a list of references to the users that are assigned to this task.
-
getCreateDate
- Returns:
- the timestamp for the creation of the task.
-
setCreateDate
- Parameters:
createDate- the moment the task was created.
-
getStartDate
- Returns:
- the timestamp for the start of the task.
-
setStartDate
- Parameters:
startDate- the moment the task was started.
-
getDueDate
- Returns:
- the deadline of the task.
-
setDuedate
- Parameters:
duedate- the deadline of the task.
-
getCompleteDate
- Returns:
- the date when the task was marked as completed.
-
setCompleteDate
- Parameters:
completeDate- the date when the task was completed.
-
getName
- Returns:
- the name/title given to this task.
-
setName
- Parameters:
name- the name/title given to this task.
-
getNumber
public int getNumber()- Returns:
- the unique number identifying this Task on the current wiki.
-
setNumber
public void setNumber(int number) - Parameters:
number- the number that uniquely identifies the task.
-
getProgress
public int getProgress()- Returns:
- the progress that was made to a specific task. Value from 0 to 100.
-
setProgress
public void setProgress(int progress) - Parameters:
progress- seegetProgress().
-
getSeverity
- Returns:
- the severity of the task.
-
setSeverity
- Parameters:
severity- the severity of the task (Low,Medium,High).
-
getProject
- Returns:
- the project the task is a part of.
-
setProject
- Parameters:
project- the project the task is a part of.
-
getDescription
- Returns:
- the description of the task that is stored in XWiki 2.1 syntax.
- Since:
- 3.10.0
-
setDescription
- Parameters:
description- seegetDescription().- Since:
- 3.10.0
-