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, saveChangesequals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitneedsSave, rename, revertChanges, saveChangesremoveequals, getId, getName, getParent, getParentPath, getPath, hashCodegetMetadataHolderpublic 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()
Taskpublic ModifiableRichText getDescription()
TaskgetDescription in interface ModifiableTaskgetDescription in interface Taskpublic Date getStartDate()
TaskgetStartDate in interface Taskpublic Date getEndDate()
TaskgetEndDate in interface Taskpublic Task.TaskStatus getStatus()
Taskpublic Task.TaskPriority getPriority()
TaskgetPriority in interface Taskpublic Double getInitialLoad()
TaskgetInitialLoad in interface Taskpublic Double getProgress()
TaskgetProgress in interface Taskpublic List<UserIdentity> getAssignment()
TaskgetAssignment in interface Taskpublic List<UserIdentity> getSubscribers()
TaskgetSubscribers in interface Taskpublic UserIdentity getAuthor()
Taskpublic void setTaskId(String taskId)
ModifiableTasksetTaskId in interface ModifiableTasktaskId - The idpublic void setLabel(String title)
ModifiableTasksetLabel in interface ModifiableTasktitle - The titlepublic void setStartDate(Date startDate)
ModifiableTasksetStartDate in interface ModifiableTaskstartDate - The start datepublic void setEndDate(Date endDate)
ModifiableTasksetEndDate in interface ModifiableTaskendDate - The end datepublic void setStatus(Task.TaskStatus status)
ModifiableTasksetStatus in interface ModifiableTaskstatus - The statuspublic void setPriority(Task.TaskPriority priority)
ModifiableTasksetPriority in interface ModifiableTaskpriority - the prioritypublic void setInitialLoad(Double initialLoad)
ModifiableTasksetInitialLoad in interface ModifiableTaskinitialLoad - The initial loadpublic void setProgress(Double progress)
ModifiableTasksetProgress in interface ModifiableTaskprogress - The progress, in percentagepublic void setAssignment(List<UserIdentity> assignment)
ModifiableTasksetAssignment in interface ModifiableTaskassignment - The assignment listpublic void setSubscribers(List<UserIdentity> subscribers)
ModifiableTasksetSubscribers in interface ModifiableTasksubscribers - The list of subscriberspublic Date getCreationDate()
TaskgetCreationDate in interface Taskpublic void setCreationDate(Date startDate)
ModifiableTasksetCreationDate in interface ModifiableTaskstartDate - the post's creation date.public Date getLastModified()
TaskgetLastModified in interface Taskpublic void setLastModified(Date date)
ModifiableTasksetLastModified in interface ModifiableTaskdate - the last modification date to set.public void setAuthor(UserIdentity author)
ModifiableTasksetAuthor in interface ModifiableTaskauthor - the author