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 javax.jcr.Node |
getContainingPage(ResourceCollection collection,
javax.jcr.Session session)
A
ResourceCollection can be part of
a cq page. |
static ResourceCollection |
getResourceCollection(javax.jcr.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(javax.jcr.Node node, ResourceCollectionManager manager) throws javax.jcr.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 ResourceCollectionManagerResourceCollection if
such a collection found otherwise nulljavax.jcr.RepositoryException - RepositoryException in case an error occurs while fetching collection.public static javax.jcr.Node getContainingPage(ResourceCollection collection, javax.jcr.Session session) throws javax.jcr.RepositoryException
ResourceCollection can be part of
a cq page. This method returns the containing cq page.collection - the ResourceCollectionsession - the user Sessionjavax.jcr.RepositoryException - RepositoryException in case an error occurs while fetching node page.Copyright © 2010 - 2025 Adobe. All Rights Reserved