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 String
METADATA_ASSIGNMENT
Metadata Assignmentstatic String
METADATA_AUTHOR
Metadata Authorstatic String
METADATA_CREATIONDATE
Metadata Creationdatestatic String
METADATA_DESCRIPTION
Metadata Descriptionstatic String
METADATA_ENDDATE
Metadata Enddatestatic String
METADATA_INITIALLOAD
Metadata Initialloadstatic String
METADATA_LABEL
Metadata Labelstatic String
METADATA_LASTMODIFIED
Metadata Lastmodifiedstatic String
METADATA_PRIORITY
Metadata Prioritystatic String
METADATA_PROGRESS
Metadata Progressstatic String
METADATA_STARTDATE
Metadata Startdatestatic String
METADATA_STATUS
Metadata Statusstatic String
METADATA_SUBSCRIBERS
Metadata Subscribersstatic String
METADATA_TASKID
Metadata 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 taskUserIdentity
getAuthor()
Get the creator of the taskDate
getCreationDate()
Get the post's creation date.ModifiableRichText
getDescription()
The description of the taskDate
getEndDate()
The ending date of the taskDouble
getInitialLoad()
Get the initial load estimated for this taskString
getLabel()
The title of the taskDate
getLastModified()
Get the post's last modification date.Task.TaskPriority
getPriority()
Get the task priorityDouble
getProgress()
Get the progress of the taskDate
getStartDate()
The starting date of the taskTask.TaskStatus
getStatus()
The status of the taskList<UserIdentity>
getSubscribers()
Get the list of user subscribed to this taskString
getTaskId()
The 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
setLabel(String title)
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
setTaskId(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, getAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getAllRevisions, getBaseNode, getBaseVersion, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsers, getLabels, getLabels, getNode, 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:Task
The identifier of a task
-
getDescription
public ModifiableRichText 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
public Date getStartDate()
Description copied from interface:Task
The starting date of the task- Specified by:
getStartDate
in interfaceTask
- Returns:
- The start date
-
getEndDate
public Date getEndDate()
Description copied from interface:Task
The ending date of the task- Specified by:
getEndDate
in interfaceTask
- Returns:
- The end date
-
getStatus
public Task.TaskStatus getStatus()
Description copied from interface:Task
The status of the task
-
getPriority
public Task.TaskPriority getPriority()
Description copied from interface:Task
Get the task priority- Specified by:
getPriority
in interfaceTask
- Returns:
- the priority
-
getInitialLoad
public Double getInitialLoad()
Description copied from interface:Task
Get the initial load estimated for this task- Specified by:
getInitialLoad
in interfaceTask
- Returns:
- The initial load
-
getProgress
public Double getProgress()
Description copied from interface:Task
Get the progress of the task- Specified by:
getProgress
in interfaceTask
- Returns:
- The progress, in percentage
-
getAssignment
public List<UserIdentity> 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
public List<UserIdentity> 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
public UserIdentity getAuthor()
Description copied from interface:Task
Get the creator of the task
-
setTaskId
public void setTaskId(String taskId)
Description copied from interface:ModifiableTask
Set the identifier of a task- Specified by:
setTaskId
in interfaceModifiableTask
- Parameters:
taskId
- The id
-
setLabel
public void setLabel(String title)
Description copied from interface:ModifiableTask
Set the title of the task- Specified by:
setLabel
in interfaceModifiableTask
- Parameters:
title
- The title
-
setStartDate
public void setStartDate(Date startDate)
Description copied from interface:ModifiableTask
Set the starting date of the task- Specified by:
setStartDate
in interfaceModifiableTask
- Parameters:
startDate
- The start date
-
setEndDate
public void setEndDate(Date endDate)
Description copied from interface:ModifiableTask
Set the ending date of the task- Specified by:
setEndDate
in interfaceModifiableTask
- Parameters:
endDate
- The end date
-
setStatus
public void setStatus(Task.TaskStatus status)
Description copied from interface:ModifiableTask
Set the status of the task- Specified by:
setStatus
in interfaceModifiableTask
- Parameters:
status
- The status
-
setPriority
public void setPriority(Task.TaskPriority priority)
Description copied from interface:ModifiableTask
Set the task priority- Specified by:
setPriority
in interfaceModifiableTask
- Parameters:
priority
- the priority
-
setInitialLoad
public void setInitialLoad(Double initialLoad)
Description copied from interface:ModifiableTask
Set the initial load estimated for this task- Specified by:
setInitialLoad
in interfaceModifiableTask
- Parameters:
initialLoad
- The initial load
-
setProgress
public void setProgress(Double progress)
Description copied from interface:ModifiableTask
Set the progress of the task- Specified by:
setProgress
in interfaceModifiableTask
- Parameters:
progress
- The progress, in percentage
-
setAssignment
public void setAssignment(List<UserIdentity> assignment)
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
public void setSubscribers(List<UserIdentity> subscribers)
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
public Date getCreationDate()
Description copied from interface:Task
Get the post's creation date.- Specified by:
getCreationDate
in interfaceTask
- Returns:
- the post's creation date.
-
setCreationDate
public void setCreationDate(Date startDate)
Description copied from interface:ModifiableTask
Set the post's creation date.- Specified by:
setCreationDate
in interfaceModifiableTask
- Parameters:
startDate
- the post's creation date.
-
getLastModified
public 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
public void setLastModified(Date date)
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
public void setAuthor(UserIdentity author)
Description copied from interface:ModifiableTask
Set the author of this task.- Specified by:
setAuthor
in interfaceModifiableTask
- Parameters:
author
- the author
-
-