Class JCRTask
- java.lang.Object
-
- org.ametys.plugins.repository.AbstractAmetysObject
-
- org.ametys.plugins.repository.jcr.SimpleAmetysObject<F>
-
- org.ametys.plugins.repository.jcr.DefaultAmetysObject<JCRTaskFactory>
-
- org.ametys.plugins.explorer.tasks.jcr.JCRTask
-
- All Implemented Interfaces:
ModifiableTask,Task,ACLAmetysObject,AmetysObject,JCRAmetysObject,MetadataAwareAmetysObject,ModifiableMetadataAwareAmetysObject,ModifiableACLAmetysObject,ModifiableAmetysObject,RemovableAmetysObject,DataAndVersionAwareAmetysObject,ModifiableDataAwareVersionableAmetysObject,VersionableAmetysObject,VersionAwareAmetysObject
public class JCRTask extends DefaultAmetysObject<JCRTaskFactory> implements ModifiableTask
JCR implementation of a task
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.plugins.explorer.tasks.Task
Task.TaskPriority, Task.TaskStatus
-
-
Field Summary
Fields Modifier and Type Field Description static StringMETADATA_ASSIGNMENTMetadata Assignmentstatic StringMETADATA_AUTHORMetadata Authorstatic StringMETADATA_CREATIONDATEMetadata Creationdatestatic StringMETADATA_DESCRIPTIONMetadata Descriptionstatic StringMETADATA_ENDDATEMetadata Enddatestatic StringMETADATA_INITIALLOADMetadata Initialloadstatic StringMETADATA_LABELMetadata Labelstatic StringMETADATA_LASTMODIFIEDMetadata Lastmodifiedstatic StringMETADATA_PRIORITYMetadata Prioritystatic StringMETADATA_PROGRESSMetadata Progressstatic StringMETADATA_STARTDATEMetadata Startdatestatic StringMETADATA_STATUSMetadata Statusstatic StringMETADATA_SUBSCRIBERSMetadata Subscribersstatic StringMETADATA_TASKIDMetadata Taskid-
Fields inherited from class org.ametys.plugins.repository.jcr.DefaultAmetysObject
PROTECTED_PROPERTIES
-
-
Constructor Summary
Constructors Constructor Description JCRTask(Node node, String parentPath, JCRTaskFactory factory)Default constructor for the JCRTask
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<UserIdentity>getAssignment()Get the list of user assigned to this taskUserIdentitygetAuthor()Get the creator of the taskDategetCreationDate()Get the post's creation date.ModifiableRichTextgetDescription()The description of the taskDategetEndDate()The ending date of the taskDoublegetInitialLoad()Get the initial load estimated for this taskStringgetLabel()The title of the taskDategetLastModified()Get the post's last modification date.Task.TaskPrioritygetPriority()Get the task priorityDoublegetProgress()Get the progress of the taskDategetStartDate()The starting date of the taskTask.TaskStatusgetStatus()The status of the taskList<UserIdentity>getSubscribers()Get the list of user subscribed to this taskStringgetTaskId()The identifier of a taskvoidsetAssignment(List<UserIdentity> assignment)Set the list of user assigned to this taskvoidsetAuthor(UserIdentity author)Set the author of this task.voidsetCreationDate(Date startDate)Set the post's creation date.voidsetEndDate(Date endDate)Set the ending date of the taskvoidsetInitialLoad(Double initialLoad)Set the initial load estimated for this taskvoidsetLabel(String title)Set the title of the taskvoidsetLastModified(Date date)Set the post's modification date.voidsetPriority(Task.TaskPriority priority)Set the task priorityvoidsetProgress(Double progress)Set the progress of the taskvoidsetStartDate(Date startDate)Set the starting date of the taskvoidsetStatus(Task.TaskStatus status)Set the status of the taskvoidsetSubscribers(List<UserIdentity> subscribers)Set the list of user subscribed to this taskvoidsetTaskId(String taskId)Set the identifier of a task-
Methods inherited from class org.ametys.plugins.repository.jcr.DefaultAmetysObject
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, addLabel, checkpoint, copyNode, disallowInheritance, getAllLabels, getAllRevisions, getBaseNode, getBaseVersion, getLabels, getLabels, getNode, getProfilesForAnonymousAndAnyConnectedUser, getProfilesForGroups, getProfilesForUsers, getRevision, getRevisionTimestamp, getRevisionTimestamp, getUnversionedDataHolder, getVersionHistory, isInheritanceDisallowed, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers, removeLabel, restoreFromLabel, restoreFromNode, restoreFromRevision, switchToLabel, switchToRevision
-
Methods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObject
_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getParent, getParentPath, getPath, needsSave, remove, rename, revertChanges, saveChanges
-
Methods inherited from class org.ametys.plugins.repository.AbstractAmetysObject
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
-
Methods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChanges
-
Methods inherited from interface org.ametys.plugins.repository.RemovableAmetysObject
remove
-
-
-
-
Field Detail
-
METADATA_TASKID
public static final String METADATA_TASKID
Metadata Taskid- See Also:
- Constant Field Values
-
METADATA_LABEL
public static final String METADATA_LABEL
Metadata Label- See Also:
- Constant Field Values
-
METADATA_DESCRIPTION
public static final String METADATA_DESCRIPTION
Metadata Description- See Also:
- Constant Field Values
-
METADATA_STARTDATE
public static final String METADATA_STARTDATE
Metadata Startdate- See Also:
- Constant Field Values
-
METADATA_ENDDATE
public static final String METADATA_ENDDATE
Metadata Enddate- See Also:
- Constant Field Values
-
METADATA_STATUS
public static final String METADATA_STATUS
Metadata Status- See Also:
- Constant Field Values
-
METADATA_PRIORITY
public static final String METADATA_PRIORITY
Metadata Priority- See Also:
- Constant Field Values
-
METADATA_INITIALLOAD
public static final String METADATA_INITIALLOAD
Metadata Initialload- See Also:
- Constant Field Values
-
METADATA_ASSIGNMENT
public static final String METADATA_ASSIGNMENT
Metadata Assignment- See Also:
- Constant Field Values
-
METADATA_SUBSCRIBERS
public static final String METADATA_SUBSCRIBERS
Metadata Subscribers- See Also:
- Constant Field Values
-
METADATA_PROGRESS
public static final String METADATA_PROGRESS
Metadata Progress- See Also:
- Constant Field Values
-
METADATA_CREATIONDATE
public static final String METADATA_CREATIONDATE
Metadata Creationdate- See Also:
- Constant Field Values
-
METADATA_LASTMODIFIED
public static final String METADATA_LASTMODIFIED
Metadata Lastmodified- See Also:
- Constant Field Values
-
METADATA_AUTHOR
public static final String METADATA_AUTHOR
Metadata Author- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JCRTask
public JCRTask(Node node, String parentPath, JCRTaskFactory factory)
Default constructor for the JCRTask- Parameters:
node- The task nodeparentPath- The parent pathfactory- The factory
-
-
Method Detail
-
getTaskId
public String getTaskId()
Description copied from interface:TaskThe identifier of a task
-
getDescription
public ModifiableRichText getDescription()
Description copied from interface:TaskThe description of the task- Specified by:
getDescriptionin interfaceModifiableTask- Specified by:
getDescriptionin interfaceTask- Returns:
- The description
-
getStartDate
public Date getStartDate()
Description copied from interface:TaskThe starting date of the task- Specified by:
getStartDatein interfaceTask- Returns:
- The start date
-
getEndDate
public Date getEndDate()
Description copied from interface:TaskThe ending date of the task- Specified by:
getEndDatein interfaceTask- Returns:
- The end date
-
getStatus
public Task.TaskStatus getStatus()
Description copied from interface:TaskThe status of the task
-
getPriority
public Task.TaskPriority getPriority()
Description copied from interface:TaskGet the task priority- Specified by:
getPriorityin interfaceTask- Returns:
- the priority
-
getInitialLoad
public Double getInitialLoad()
Description copied from interface:TaskGet the initial load estimated for this task- Specified by:
getInitialLoadin interfaceTask- Returns:
- The initial load
-
getProgress
public Double getProgress()
Description copied from interface:TaskGet the progress of the task- Specified by:
getProgressin interfaceTask- Returns:
- The progress, in percentage
-
getAssignment
public List<UserIdentity> getAssignment()
Description copied from interface:TaskGet the list of user assigned to this task- Specified by:
getAssignmentin interfaceTask- Returns:
- The assignment list
-
getSubscribers
public List<UserIdentity> getSubscribers()
Description copied from interface:TaskGet the list of user subscribed to this task- Specified by:
getSubscribersin interfaceTask- Returns:
- The list of subscribers
-
getAuthor
public UserIdentity getAuthor()
Description copied from interface:TaskGet the creator of the task
-
setTaskId
public void setTaskId(String taskId)
Description copied from interface:ModifiableTaskSet the identifier of a task- Specified by:
setTaskIdin interfaceModifiableTask- Parameters:
taskId- The id
-
setLabel
public void setLabel(String title)
Description copied from interface:ModifiableTaskSet the title of the task- Specified by:
setLabelin interfaceModifiableTask- Parameters:
title- The title
-
setStartDate
public void setStartDate(Date startDate)
Description copied from interface:ModifiableTaskSet the starting date of the task- Specified by:
setStartDatein interfaceModifiableTask- Parameters:
startDate- The start date
-
setEndDate
public void setEndDate(Date endDate)
Description copied from interface:ModifiableTaskSet the ending date of the task- Specified by:
setEndDatein interfaceModifiableTask- Parameters:
endDate- The end date
-
setStatus
public void setStatus(Task.TaskStatus status)
Description copied from interface:ModifiableTaskSet the status of the task- Specified by:
setStatusin interfaceModifiableTask- Parameters:
status- The status
-
setPriority
public void setPriority(Task.TaskPriority priority)
Description copied from interface:ModifiableTaskSet the task priority- Specified by:
setPriorityin interfaceModifiableTask- Parameters:
priority- the priority
-
setInitialLoad
public void setInitialLoad(Double initialLoad)
Description copied from interface:ModifiableTaskSet the initial load estimated for this task- Specified by:
setInitialLoadin interfaceModifiableTask- Parameters:
initialLoad- The initial load
-
setProgress
public void setProgress(Double progress)
Description copied from interface:ModifiableTaskSet the progress of the task- Specified by:
setProgressin interfaceModifiableTask- Parameters:
progress- The progress, in percentage
-
setAssignment
public void setAssignment(List<UserIdentity> assignment)
Description copied from interface:ModifiableTaskSet the list of user assigned to this task- Specified by:
setAssignmentin interfaceModifiableTask- Parameters:
assignment- The assignment list
-
setSubscribers
public void setSubscribers(List<UserIdentity> subscribers)
Description copied from interface:ModifiableTaskSet the list of user subscribed to this task- Specified by:
setSubscribersin interfaceModifiableTask- Parameters:
subscribers- The list of subscribers
-
getCreationDate
public Date getCreationDate()
Description copied from interface:TaskGet the post's creation date.- Specified by:
getCreationDatein interfaceTask- Returns:
- the post's creation date.
-
setCreationDate
public void setCreationDate(Date startDate)
Description copied from interface:ModifiableTaskSet the post's creation date.- Specified by:
setCreationDatein interfaceModifiableTask- Parameters:
startDate- the post's creation date.
-
getLastModified
public Date getLastModified()
Description copied from interface:TaskGet the post's last modification date.- Specified by:
getLastModifiedin interfaceTask- Returns:
- the post's last modification date.
-
setLastModified
public void setLastModified(Date date)
Description copied from interface:ModifiableTaskSet the post's modification date.- Specified by:
setLastModifiedin interfaceModifiableTask- Parameters:
date- the last modification date to set.
-
setAuthor
public void setAuthor(UserIdentity author)
Description copied from interface:ModifiableTaskSet the author of this task.- Specified by:
setAuthorin interfaceModifiableTask- Parameters:
author- the author
-
-