public class JCRTask extends DefaultAmetysObject<JCRTaskFactory> implements ModifiableTask
Task.TaskPriority, Task.TaskStatus
Modifier and Type | Field and Description |
---|---|
static String |
METADATA_ASSIGNMENT
Metadata Assignment
|
static String |
METADATA_AUTHOR
Metadata Author
|
static String |
METADATA_CREATIONDATE
Metadata Creationdate
|
static String |
METADATA_DESCRIPTION
Metadata Description
|
static String |
METADATA_ENDDATE
Metadata Enddate
|
static String |
METADATA_INITIALLOAD
Metadata Initialload
|
static String |
METADATA_LABEL
Metadata Label
|
static String |
METADATA_LASTMODIFIED
Metadata Lastmodified
|
static String |
METADATA_PRIORITY
Metadata Priority
|
static String |
METADATA_PROGRESS
Metadata Progress
|
static String |
METADATA_STARTDATE
Metadata Startdate
|
static String |
METADATA_STATUS
Metadata Status
|
static String |
METADATA_SUBSCRIBERS
Metadata Subscribers
|
static String |
METADATA_TASKID
Metadata Taskid
|
PROTECTED_PROPERTIES
Constructor and Description |
---|
JCRTask(Node node,
String parentPath,
JCRTaskFactory factory)
Default constructor for the JCRTask
|
Modifier and Type | Method and Description |
---|---|
List<UserIdentity> |
getAssignment()
Get the list of user assigned to this task
|
UserIdentity |
getAuthor()
Get the creator of the task
|
Date |
getCreationDate()
Get the post's creation date.
|
ModifiableRichText |
getDescription()
The description of the task
|
Date |
getEndDate()
The ending date of the task
|
Double |
getInitialLoad()
Get the initial load estimated for this task
|
String |
getLabel()
The title of the task
|
Date |
getLastModified()
Get the post's last modification date.
|
Task.TaskPriority |
getPriority()
Get the task priority
|
Double |
getProgress()
Get the progress of the task
|
Date |
getStartDate()
The starting date of the task
|
Task.TaskStatus |
getStatus()
The status of the task
|
List<UserIdentity> |
getSubscribers()
Get the list of user subscribed to this task
|
String |
getTaskId()
The identifier of a task
|
void |
setAssignment(List<UserIdentity> assignment)
Set the list of user assigned to this task
|
void |
setAuthor(UserIdentity author)
Set the author of this task.
|
void |
setCreationDate(Date startDate)
Set the post's creation date.
|
void |
setEndDate(Date endDate)
Set the ending date of the task
|
void |
setInitialLoad(Double initialLoad)
Set the initial load estimated for this task
|
void |
setLabel(String title)
Set the title of the task
|
void |
setLastModified(Date date)
Set the post's modification date.
|
void |
setPriority(Task.TaskPriority priority)
Set the task priority
|
void |
setProgress(Double progress)
Set the progress of the task
|
void |
setStartDate(Date startDate)
Set the starting date of the task
|
void |
setStatus(Task.TaskStatus status)
Set the status of the task
|
void |
setSubscribers(List<UserIdentity> subscribers)
Set the list of user subscribed to this task
|
void |
setTaskId(String taskId)
Set the identifier of a task
|
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, addLabel, checkpoint, copyNode, getAllLabels, getAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getAllRevisions, getBaseNode, getBaseVersion, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsers, getLabels, getLabels, getNode, getRevision, getRevisionTimestamp, getRevisionTimestamp, getUnversionedMetadataHolder, getVersionHistory, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers, removeLabel, restoreFromLabel, restoreFromNode, restoreFromRevision, switchToLabel, switchToRevision
_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getParent, getParentPath, getPath, needsSave, remove, rename, revertChanges, saveChanges
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
needsSave, rename, revertChanges, saveChanges
remove
equals, getId, getName, getParent, getParentPath, getPath, hashCode
getMetadataHolder
public static final String METADATA_TASKID
public static final String METADATA_LABEL
public static final String METADATA_DESCRIPTION
public static final String METADATA_STARTDATE
public static final String METADATA_ENDDATE
public static final String METADATA_STATUS
public static final String METADATA_PRIORITY
public static final String METADATA_INITIALLOAD
public static final String METADATA_ASSIGNMENT
public static final String METADATA_SUBSCRIBERS
public static final String METADATA_PROGRESS
public static final String METADATA_CREATIONDATE
public static final String METADATA_LASTMODIFIED
public static final String METADATA_AUTHOR
public JCRTask(Node node, String parentPath, JCRTaskFactory factory)
node
- The task nodeparentPath
- The parent pathfactory
- The factorypublic String getTaskId()
Task
public ModifiableRichText getDescription()
Task
getDescription
in interface ModifiableTask
getDescription
in interface Task
public Date getStartDate()
Task
getStartDate
in interface Task
public Date getEndDate()
Task
getEndDate
in interface Task
public Task.TaskStatus getStatus()
Task
public Task.TaskPriority getPriority()
Task
getPriority
in interface Task
public Double getInitialLoad()
Task
getInitialLoad
in interface Task
public Double getProgress()
Task
getProgress
in interface Task
public List<UserIdentity> getAssignment()
Task
getAssignment
in interface Task
public List<UserIdentity> getSubscribers()
Task
getSubscribers
in interface Task
public UserIdentity getAuthor()
Task
public void setTaskId(String taskId)
ModifiableTask
setTaskId
in interface ModifiableTask
taskId
- The idpublic void setLabel(String title)
ModifiableTask
setLabel
in interface ModifiableTask
title
- The titlepublic void setStartDate(Date startDate)
ModifiableTask
setStartDate
in interface ModifiableTask
startDate
- The start datepublic void setEndDate(Date endDate)
ModifiableTask
setEndDate
in interface ModifiableTask
endDate
- The end datepublic void setStatus(Task.TaskStatus status)
ModifiableTask
setStatus
in interface ModifiableTask
status
- The statuspublic void setPriority(Task.TaskPriority priority)
ModifiableTask
setPriority
in interface ModifiableTask
priority
- the prioritypublic void setInitialLoad(Double initialLoad)
ModifiableTask
setInitialLoad
in interface ModifiableTask
initialLoad
- The initial loadpublic void setProgress(Double progress)
ModifiableTask
setProgress
in interface ModifiableTask
progress
- The progress, in percentagepublic void setAssignment(List<UserIdentity> assignment)
ModifiableTask
setAssignment
in interface ModifiableTask
assignment
- The assignment listpublic void setSubscribers(List<UserIdentity> subscribers)
ModifiableTask
setSubscribers
in interface ModifiableTask
subscribers
- The list of subscriberspublic Date getCreationDate()
Task
getCreationDate
in interface Task
public void setCreationDate(Date startDate)
ModifiableTask
setCreationDate
in interface ModifiableTask
startDate
- the post's creation date.public Date getLastModified()
Task
getLastModified
in interface Task
public void setLastModified(Date date)
ModifiableTask
setLastModified
in interface ModifiableTask
date
- the last modification date to set.public void setAuthor(UserIdentity author)
ModifiableTask
setAuthor
in interface ModifiableTask
author
- the author