Class JCRTasksList
java.lang.Object
org.ametys.plugins.repository.AbstractAmetysObject
org.ametys.plugins.repository.jcr.SimpleAmetysObject<F>
org.ametys.plugins.repository.jcr.DefaultTraversableAmetysObject<JCRTasksListFactory>
org.ametys.plugins.workspaces.tasks.jcr.JCRTasksList
- All Implemented Interfaces:
ACLAmetysObject
,AmetysObject
,DataAwareAmetysObject
,ModelAwareDataAwareAmetysObject
,ModifiableModelAwareDataAwareAmetysObject
,DataHolder
,ModelAwareDataHolder
,ModifiableDataHolder
,ModifiableModelAwareDataHolder
,JCRAmetysObject
,JCRTraversableAmetysObject
,MetadataAwareAmetysObject
,ModifiableMetadataAwareAmetysObject
,ModifiableACLAmetysObject
,ModifiableAmetysObject
,ModifiableTraversableAmetysObject
,RemovableAmetysObject
,TraversableAmetysObject
,TasksList
public class JCRTasksList
extends DefaultTraversableAmetysObject<JCRTasksListFactory>
implements TasksList
JCR implementation of the tasks list
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Attribute Authorstatic final String
Attribute Colorstatic final String
Attribute Creationdatestatic final String
Attribute Iconstatic final String
Attribute Idstatic final String
Attribute Labelstatic final String
Attribute Lastmodifiedstatic final String
Attribute PositionFields inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
ALTERNATIVE_SUFFIX, COMMENTS_SUFFIX, STATUS_SUFFIX
-
Constructor Summary
ConstructorDescriptionJCRTasksList
(javax.jcr.Node node, String parentPath, JCRTasksListFactory factory) Default constructor for the JCRTasksList -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a taskGet the author of the taskgetColor()
Get the tasks list colorGet the task's creation date.Returns theDataHolder
of thisAmetysObject
.getIcon()
Get the tasks list icongetLabel()
The title of the taskGet the task's last modification date.The id of the task listThe position of the task listgetTasks()
Get the list of tasksvoid
setAuthor
(UserIdentity author) Set the author of this task.void
Set the tasks list colorvoid
setCreationDate
(ZonedDateTime creationDate) Set the post's creation date.void
Set the tasks list iconvoid
Set the tasks list labelvoid
setLastModified
(ZonedDateTime lastModifiedDate) Set the post's modification date.void
Set the tasks list idvoid
setPosition
(Long position) Set the tasks list positionMethods inherited from class org.ametys.plugins.repository.jcr.DefaultTraversableAmetysObject
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, createChild, disallowInheritance, getChild, getChildren, getProfilesForAnonymousAndAnyConnectedUser, getProfilesForGroups, getProfilesForUsers, hasChild, isInheritanceDisallowed, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers
Methods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObject
_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getNode, 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.data.ametysobject.DataAwareAmetysObject
copyTo, dataToSAX, dataToSAX
Methods inherited from interface org.ametys.plugins.repository.jcr.JCRAmetysObject
getNode
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelAwareDataAwareAmetysObject
getComments, getDataNames, getDefinition, getExternalValue, getLocalValue, getModel, getStatus, getValue, getValue, hasComments, hasDefinition, hasExternalValue, hasExternalValueOrEmpty, hasLocalValue, hasLocalValueOrEmpty, hasValue, hasValueOrEmpty
Methods inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
commentsToSAX, dataToMap, dataToMap, dataToMap, dataToMap, dataToSAX, dataToSAX, dataToSAX, dataToSAX, dataToSAXForEdition, getDataNames, getType, getValue, hasValue, hasValueOrEmpty, isMultiple
Methods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChanges
Methods inherited from interface org.ametys.plugins.repository.metadata.ModifiableMetadataAwareAmetysObject
getMetadataHolder
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModifiableModelAwareDataAwareAmetysObject
getComposite, getComposite, getExternalComposite, getExternalComposite, getExternalRepeater, getExternalRepeater, getLocalComposite, getLocalComposite, getLocalRepeater, getLocalRepeater, getParentDataHolder, getRepeater, getRepeater, getRepositoryData, getRootDataHolder, removeExternalizableMetadataIfExists, removeExternalValue, removeLocalValue, removeValue, setComments, setExternalValue, setLocalValue, setStatus, setValue, synchronizeValues, synchronizeValues, synchronizeValues, synchronizeValues
Methods inherited from interface org.ametys.plugins.repository.RemovableAmetysObject
remove
Methods inherited from interface org.ametys.plugins.repository.TraversableAmetysObject
getChildAt, getChildPosition
-
Field Details
-
ATTRIBUTE_ID
Attribute Id- See Also:
-
ATTRIBUTE_POSITION
Attribute Position- See Also:
-
ATTRIBUTE_LABEL
Attribute Label- See Also:
-
ATTRIBUTE_COLOR_ID
Attribute Color- See Also:
-
ATTRIBUTE_ICON_ID
Attribute Icon- See Also:
-
ATTRIBUTE_AUTHOR
Attribute Author- See Also:
-
ATTRIBUTE_CREATIONDATE
Attribute Creationdate- See Also:
-
ATTRIBUTE_LASTMODIFIED
Attribute Lastmodified- See Also:
-
-
Constructor Details
-
JCRTasksList
Default constructor for the JCRTasksList- Parameters:
node
- The JCR nodeparentPath
- The JCR parent pathfactory
- The factory
-
-
Method Details
-
getListId
Description copied from interface:TasksList
The id of the task list -
setListId
Description copied from interface:TasksList
Set the tasks list id -
getPosition
Description copied from interface:TasksList
The position of the task list- Specified by:
getPosition
in interfaceTasksList
- Returns:
- The position
-
setPosition
Description copied from interface:TasksList
Set the tasks list position- Specified by:
setPosition
in interfaceTasksList
- Parameters:
position
- the position
-
getLabel
Description copied from interface:TasksList
The title of the task -
setLabel
Description copied from interface:TasksList
Set the tasks list label -
getColor
Description copied from interface:TasksList
Get the tasks list color -
setColor
Description copied from interface:TasksList
Set the tasks list color -
getIcon
Description copied from interface:TasksList
Get the tasks list icon -
setIcon
Description copied from interface:TasksList
Set the tasks list icon -
getTasks
Description copied from interface:TasksList
Get the list of tasks -
addTask
Description copied from interface:TasksList
Add a task -
getAuthor
Description copied from interface:TasksList
Get the author of the task -
setAuthor
Description copied from interface:TasksList
Set the author of this task. -
getCreationDate
Description copied from interface:TasksList
Get the task's creation date.- Specified by:
getCreationDate
in interfaceTasksList
- Returns:
- the task's creation date.
-
setCreationDate
Description copied from interface:TasksList
Set the post's creation date.- Specified by:
setCreationDate
in interfaceTasksList
- Parameters:
creationDate
- the post's creation date.
-
getLastModified
Description copied from interface:TasksList
Get the task's last modification date.- Specified by:
getLastModified
in interfaceTasksList
- Returns:
- the task's last modification date.
-
setLastModified
Description copied from interface:TasksList
Set the post's modification date.- Specified by:
setLastModified
in interfaceTasksList
- Parameters:
lastModifiedDate
- the last modification date to set.
-
getDataHolder
Description copied from interface:DataAwareAmetysObject
Returns theDataHolder
of thisAmetysObject
.- Specified by:
getDataHolder
in interfaceDataAwareAmetysObject
- Specified by:
getDataHolder
in interfaceModelAwareDataAwareAmetysObject
- Specified by:
getDataHolder
in interfaceModifiableModelAwareDataAwareAmetysObject
- Returns:
- the
DataHolder
of thisAmetysObject
-