Interface ResourceCollectionManager
The
ResourceCollectionManager can read, list all available
resource collections respectovely manage the resource collections...-
Method Summary
Modifier and TypeMethodDescriptioncreateCollection(Node node) Creates aResourceCollectionobject from the given node if possible.getCollections(Session session) Lists all availableResourceCollections which are accessible be the givenSessiongetCollectionsForNode(Node node) List all availableResourceCollections for the givenNode.
-
Method Details
-
createCollection
Creates aResourceCollectionobject from the given node if possible.- Parameters:
node- node to createResourceCollectionobject- Returns:
ResourceCollectionornullif the node can not be turned into such an object.
-
getCollections
Lists all availableResourceCollections which are accessible be the givenSession- Parameters:
session- user session- Returns:
- all available
ResourceCollections
-
getCollectionsForNode
List all availableResourceCollections for the givenNode. If the given node itself is a resource collection, then only this single collection is returned. Otherwise the method starts recursively searching all child nodes for resource collections.- Parameters:
node- The node to look up for resource collections.- Returns:
- All available
ResourceCollections or an empty list if the node or any of its children is not a resource collection.
-