@ProviderType public interface ResourceCollection
ResourceCollection represents a collection of jcr resources (nodes)
which can be added/removed.
The collection is also able to listen to (jcr) modifications undertaken by
a certain user. this modifications respectively the modified resource is added
to the list as well.| Modifier and Type | Field and Description |
|---|---|
static String |
NN_FILTER
Name of the node containing filter definitions' items
|
static String |
PN_FILTER_ROOT
Property name of a filter's item root path
|
static final String NN_FILTER
static final String PN_FILTER_ROOT
@Nonnull List<Node> list(String[] allowedNodeOrResourceTypes) throws RepositoryException
allowedNodeOrResourceTypes - list of node primary or sling resource types to be considered. The selection by resource type doesn't include inheritanceRepositoryException - in case an error occurs while
fetching the list.void remove(Node node)
node - node to removeString getPath()
boolean hasNode(String path)
path - path to be findCopyright © 2010 - 2020 Adobe. All Rights Reserved