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 java.lang.String |
NN_FILTER
Name of the node containing filter definitions' items
|
static java.lang.String |
PN_FILTER_ROOT
Property name of a filter's item root path
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPath()
Returns collection path
|
boolean |
hasNode(java.lang.String path) |
java.util.List<Node> |
list(java.lang.String[] allowedNodeOrResourceTypes)
All collection members are returned
|
void |
remove(Node node)
Remove member
|
static final java.lang.String NN_FILTER
static final java.lang.String PN_FILTER_ROOT
java.util.List<Node> list(java.lang.String[] allowedNodeOrResourceTypes) throws RepositoryException
allowedNodeOrResourceTypes
- list of node primary or sling resource types to be considered. The selection by resource type doesn't include inheritancejavax.jcr.RepositoryException
- in case an error occurs while
fetching the list.RepositoryException
void remove(Node node)
node
- node to removejava.lang.String getPath()
boolean hasNode(java.lang.String path)
path
- path to be find"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"