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
Fields Modifier and Type Field Description static String
APPLICATION_ID
application id for resources collections.private static String
METADATA_DESCRIPTION
-
Constructor Summary
Constructors Constructor Description JCRTasksList(Node node, String parentPath, JCRTasksListFactory factory)
Default constructor for the JCRTasksList
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getApplicationId()
Returns the application id corresponding to this Node.String
getDescription()
Get the tasks list descriptionString
getExplorerPath()
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.String
getIconCls()
Returns the icon css class for this Node.List<Task>
getTasks()
Get the list of tasksList<Task>
getTasks(Date startDate, Date endDate)
Get the list of tasks, delimited by start and end dateboolean
hasChildExplorerNodes()
Returns true if this explorer node contains child explorer nodes.void
setDescription(String description)
Set the list description-
Methods 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 Detail
-
APPLICATION_ID
public static final String APPLICATION_ID
application id for resources collections.- See Also:
- Constant Field Values
-
METADATA_DESCRIPTION
private static final String METADATA_DESCRIPTION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JCRTasksList
public JCRTasksList(Node node, String parentPath, JCRTasksListFactory factory)
Default constructor for the JCRTasksList- Parameters:
node
- The JCR nodeparentPath
- The JCR parent pathfactory
- The factory
-
-
Method Detail
-
getDescription
public String 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
public List<Task> getTasks()
Description copied from interface:TasksList
Get the list of tasks
-
getTasks
public List<Task> getTasks(Date startDate, Date endDate)
Description copied from interface:TasksList
Get the list of tasks, delimited by start and end date
-
getIconCls
public String 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
public String 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
public String 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
public boolean hasChildExplorerNodes() throws AmetysRepositoryException
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
public void setDescription(String description)
Description copied from interface:ModifiableTasksList
Set the list description- Specified by:
setDescription
in interfaceModifiableExplorerNode
- Specified by:
setDescription
in interfaceModifiableTasksList
- Parameters:
description
- The description
-
-