Interface ResourceCollectionManager
-
@ProviderType public interface ResourceCollectionManager
TheResourceCollectionManager
can read, list all available resource collections respectovely manage the resource collections...
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceCollection
createCollection(Node node)
Creates aResourceCollection
object from the given node if possible.java.util.List<ResourceCollection>
getCollections(Session session)
Lists all availableResourceCollection
s which are accessible be the givenSession
java.util.List<ResourceCollection>
getCollectionsForNode(Node node)
List all availableResourceCollection
s for the givenNode
.
-
-
-
Method Detail
-
createCollection
ResourceCollection createCollection(Node node)
Creates aResourceCollection
object from the given node if possible.- Parameters:
node
- node to createResourceCollection
object- Returns:
ResourceCollection
ornull
if the node can not be turned into such an object.
-
getCollections
java.util.List<ResourceCollection> getCollections(Session session)
Lists all availableResourceCollection
s which are accessible be the givenSession
- Parameters:
session
- user session- Returns:
- all available
ResourceCollection
s
-
getCollectionsForNode
java.util.List<ResourceCollection> getCollectionsForNode(Node node)
List all availableResourceCollection
s 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
ResourceCollection
s or an empty list if the node or any of its children is not a resource collection.
-
-