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.explorer.tasks.jcr.JCRTasksList
- All Implemented Interfaces:
ExplorerNode
,ModifiableExplorerNode
,ModifiableTasksList
,TasksList
,ACLAmetysObject
,AmetysObject
,JCRAmetysObject
,JCRTraversableAmetysObject
,MetadataAwareAmetysObject
,ModifiableMetadataAwareAmetysObject
,ModifiableACLAmetysObject
,ModifiableAmetysObject
,ModifiableTraversableAmetysObject
,RemovableAmetysObject
,TraversableAmetysObject
public class JCRTasksList
extends DefaultTraversableAmetysObject<JCRTasksListFactory>
implements ModifiableTasksList
JCR implementation of the tasks list
-
Field Summary
-
Constructor Summary
ConstructorDescriptionJCRTasksList
(Node node, String parentPath, JCRTasksListFactory factory) Default constructor for the JCRTasksList -
Method Summary
Modifier and TypeMethodDescriptionReturns the application id corresponding to this Node.Get the tasks list descriptionReturns the path of this explorer node in the explorer hierarchy (which is a subset of the whole repository).
If this collection is the root explorer node, "" is returned.Returns the icon css class for this Node.getTasks()
Get the list of tasksGet the list of tasks, delimited by start and end dateboolean
Returns true if this explorer node contains child explorer nodes.void
setDescription
(String description) Set the list descriptionMethods 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.jcr.JCRAmetysObject
getNode
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.RemovableAmetysObject
remove
Methods inherited from interface org.ametys.plugins.repository.TraversableAmetysObject
getChildAt, getChildPosition
-
Field Details
-
APPLICATION_ID
application id for resources collections.- See Also:
-
-
Constructor Details
-
JCRTasksList
Default constructor for the JCRTasksList- Parameters:
node
- The JCR nodeparentPath
- The JCR parent pathfactory
- The factory
-
-
Method Details
-
getDescription
Description copied from interface:TasksList
Get the tasks list description- Specified by:
getDescription
in interfaceExplorerNode
- Specified by:
getDescription
in interfaceTasksList
- Returns:
- The description
-
getTasks
Description copied from interface:TasksList
Get the list of tasks -
getTasks
Description copied from interface:TasksList
Get the list of tasks, delimited by start and end date -
getIconCls
Description copied from interface:ExplorerNode
Returns the icon css class for this Node.- Specified by:
getIconCls
in interfaceExplorerNode
- Returns:
- the icon css class for this Node for rendering in the tree.
-
getApplicationId
Description copied from interface:ExplorerNode
Returns the application id corresponding to this Node.- Specified by:
getApplicationId
in interfaceExplorerNode
- Returns:
- the application id corresponding to this Node.
-
getExplorerPath
Description copied from interface:ExplorerNode
Returns the path of this explorer node in the explorer hierarchy (which is a subset of the whole repository).
If this collection is the root explorer node, "" is returned.- Specified by:
getExplorerPath
in interfaceExplorerNode
- Returns:
- the path of this node in its hierarchy.
-
hasChildExplorerNodes
Description copied from interface:ExplorerNode
Returns true if this explorer node contains child explorer nodes.- Specified by:
hasChildExplorerNodes
in interfaceExplorerNode
- Returns:
- true if this explorer node contains child explorer nodes.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
setDescription
Description copied from interface:ModifiableTasksList
Set the list description- Specified by:
setDescription
in interfaceModifiableExplorerNode
- Specified by:
setDescription
in interfaceModifiableTasksList
- Parameters:
description
- The description
-