public class ResourceCollectionUtil
extends java.lang.Object
ResourceCollectionUtil
class provides some public utility
methods...Constructor and Description |
---|
ResourceCollectionUtil() |
Modifier and Type | Method and Description |
---|---|
static Node |
getContainingPage(ResourceCollection collection,
Session session)
A
ResourceCollection can be part of
a cq page. |
static ResourceCollection |
getResourceCollection(Node node,
ResourceCollectionManager manager)
The method returns the
ResourceCollection
which is either represented by the given node or one of its children. |
public static ResourceCollection getResourceCollection(Node node, ResourceCollectionManager manager) throws RepositoryException
ResourceCollection
which is either represented by the given node or one of its children.
This is useful in case the ResourceCollection
is somewhere placed on a cq page (e.g.: /aPage/jcr:content/cq:collection/...node
- possible resource collection node.manager
- the ResourceCollectionManager
ResourceCollection
if
such a collection found otherwise null
RepositoryException
- RepositoryException
in case an error occurs while fetching collection.public static Node getContainingPage(ResourceCollection collection, Session session) throws RepositoryException
ResourceCollection
can be part of
a cq page. This method returns the containing cq page.collection
- the ResourceCollection
session
- the user Session
RepositoryException
- RepositoryException
in case an error occurs while fetching node page.Copyright © 2010 - 2020 Adobe. All Rights Reserved