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
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
Modifier and TypeFieldDescriptionstatic final String
Metadata Assignmentstatic final String
Metadata Authorstatic final String
Metadata Creationdatestatic final String
Metadata Descriptionstatic final String
Metadata Enddatestatic final String
Metadata Initialloadstatic final String
Metadata Labelstatic final String
Metadata Lastmodifiedstatic final String
Metadata Prioritystatic final String
Metadata Progressstatic final String
Metadata Startdatestatic final String
Metadata Statusstatic final String
Metadata Subscribersstatic final String
Metadata TaskidFields inherited from class org.ametys.plugins.repository.jcr.DefaultAmetysObject
PROTECTED_PROPERTIES
-
Constructor Summary
ConstructorDescriptionJCRTask
(Node node, String parentPath, JCRTaskFactory factory) Default constructor for the JCRTask -
Method Summary
Modifier and TypeMethodDescriptionGet the list of user assigned to this taskGet the creator of the taskGet the post's creation date.The description of the taskThe ending date of the taskGet the initial load estimated for this taskgetLabel()
The title of the taskGet the post's last modification date.Get the task priorityGet the progress of the taskThe starting date of the taskThe status of the taskGet the list of user subscribed to this taskThe identifier of a taskvoid
setAssignment
(List<UserIdentity> assignment) Set the list of user assigned to this taskvoid
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 taskvoid
setInitialLoad
(Double initialLoad) Set the initial load estimated for this taskvoid
Set the title of the taskvoid
setLastModified
(Date date) Set the post's modification date.void
setPriority
(Task.TaskPriority priority) Set the task priorityvoid
setProgress
(Double progress) Set the progress of the taskvoid
setStartDate
(Date startDate) Set the starting date of the taskvoid
setStatus
(Task.TaskStatus status) Set the status of the taskvoid
setSubscribers
(List<UserIdentity> subscribers) Set the list of user subscribed to this taskvoid
Set the identifier of a taskMethods 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 Details
-
METADATA_TASKID
Metadata Taskid- See Also:
-
METADATA_LABEL
Metadata Label- See Also:
-
METADATA_DESCRIPTION
Metadata Description- See Also:
-
METADATA_STARTDATE
Metadata Startdate- See Also:
-
METADATA_ENDDATE
Metadata Enddate- See Also:
-
METADATA_STATUS
Metadata Status- See Also:
-
METADATA_PRIORITY
Metadata Priority- See Also:
-
METADATA_INITIALLOAD
Metadata Initialload- See Also:
-
METADATA_ASSIGNMENT
Metadata Assignment- See Also:
-
METADATA_SUBSCRIBERS
Metadata Subscribers- See Also:
-
METADATA_PROGRESS
Metadata Progress- See Also:
-
METADATA_CREATIONDATE
Metadata Creationdate- See Also:
-
METADATA_LASTMODIFIED
Metadata Lastmodified- See Also:
-
METADATA_AUTHOR
Metadata Author- See Also:
-
-
Constructor Details
-
JCRTask
Default constructor for the JCRTask- Parameters:
node
- The task nodeparentPath
- The parent pathfactory
- The factory
-
-
Method Details
-
getTaskId
Description copied from interface:Task
The identifier of a task -
getLabel
Description copied from interface:Task
The title of the task -
getDescription
Description copied from interface:Task
The description of the task- Specified by:
getDescription
in interfaceModifiableTask
- Specified by:
getDescription
in interfaceTask
- Returns:
- The description
-
getStartDate
Description copied from interface:Task
The starting date of the task- Specified by:
getStartDate
in interfaceTask
- Returns:
- The start date
-
getEndDate
Description copied from interface:Task
The ending date of the task- Specified by:
getEndDate
in interfaceTask
- Returns:
- The end date
-
getStatus
Description copied from interface:Task
The status of the task -
getPriority
Description copied from interface:Task
Get the task priority- Specified by:
getPriority
in interfaceTask
- Returns:
- the priority
-
getInitialLoad
Description copied from interface:Task
Get the initial load estimated for this task- Specified by:
getInitialLoad
in interfaceTask
- Returns:
- The initial load
-
getProgress
Description copied from interface:Task
Get the progress of the task- Specified by:
getProgress
in interfaceTask
- Returns:
- The progress, in percentage
-
getAssignment
Description copied from interface:Task
Get the list of user assigned to this task- Specified by:
getAssignment
in interfaceTask
- Returns:
- The assignment list
-
getSubscribers
Description copied from interface:Task
Get the list of user subscribed to this task- Specified by:
getSubscribers
in interfaceTask
- Returns:
- The list of subscribers
-
getAuthor
Description copied from interface:Task
Get the creator of the task -
setTaskId
Description copied from interface:ModifiableTask
Set the identifier of a task- Specified by:
setTaskId
in interfaceModifiableTask
- Parameters:
taskId
- The id
-
setLabel
Description copied from interface:ModifiableTask
Set the title of the task- Specified by:
setLabel
in interfaceModifiableTask
- Parameters:
title
- The title
-
setStartDate
Description copied from interface:ModifiableTask
Set the starting date of the task- Specified by:
setStartDate
in interfaceModifiableTask
- Parameters:
startDate
- The start date
-
setEndDate
Description copied from interface:ModifiableTask
Set the ending date of the task- Specified by:
setEndDate
in interfaceModifiableTask
- Parameters:
endDate
- The end date
-
setStatus
Description copied from interface:ModifiableTask
Set the status of the task- Specified by:
setStatus
in interfaceModifiableTask
- Parameters:
status
- The status
-
setPriority
Description copied from interface:ModifiableTask
Set the task priority- Specified by:
setPriority
in interfaceModifiableTask
- Parameters:
priority
- the priority
-
setInitialLoad
Description copied from interface:ModifiableTask
Set the initial load estimated for this task- Specified by:
setInitialLoad
in interfaceModifiableTask
- Parameters:
initialLoad
- The initial load
-
setProgress
Description copied from interface:ModifiableTask
Set the progress of the task- Specified by:
setProgress
in interfaceModifiableTask
- Parameters:
progress
- The progress, in percentage
-
setAssignment
Description copied from interface:ModifiableTask
Set the list of user assigned to this task- Specified by:
setAssignment
in interfaceModifiableTask
- Parameters:
assignment
- The assignment list
-
setSubscribers
Description copied from interface:ModifiableTask
Set the list of user subscribed to this task- Specified by:
setSubscribers
in interfaceModifiableTask
- Parameters:
subscribers
- The list of subscribers
-
getCreationDate
Description copied from interface:Task
Get the post's creation date.- Specified by:
getCreationDate
in interfaceTask
- Returns:
- the post's creation date.
-
setCreationDate
Description copied from interface:ModifiableTask
Set the post's creation date.- Specified by:
setCreationDate
in interfaceModifiableTask
- Parameters:
startDate
- the post's creation date.
-
getLastModified
Description copied from interface:Task
Get the post's last modification date.- Specified by:
getLastModified
in interfaceTask
- Returns:
- the post's last modification date.
-
setLastModified
Description copied from interface:ModifiableTask
Set the post's modification date.- Specified by:
setLastModified
in interfaceModifiableTask
- Parameters:
date
- the last modification date to set.
-
setAuthor
Description copied from interface:ModifiableTask
Set the author of this task.- Specified by:
setAuthor
in interfaceModifiableTask
- Parameters:
author
- the author
-