Interface ResourceCollection
-
@ProviderType public interface ResourceCollectionTheResourceCollectionrepresents 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.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNN_FILTERName of the node containing filter definitions' itemsstatic java.lang.StringPN_FILTER_ROOTProperty name of a filter's item root path
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetPath()Returns collection pathbooleanhasNode(java.lang.String path)java.util.List<javax.jcr.Node>list(java.lang.String[] allowedNodeOrResourceTypes)All collection members are returnedvoidremove(javax.jcr.Node node)Remove member
-
-
-
Field Detail
-
NN_FILTER
static final java.lang.String NN_FILTER
Name of the node containing filter definitions' items- See Also:
- Constant Field Values
-
PN_FILTER_ROOT
static final java.lang.String PN_FILTER_ROOT
Property name of a filter's item root path- See Also:
- Constant Field Values
-
-
Method Detail
-
list
@Nonnull java.util.List<javax.jcr.Node> list(java.lang.String[] allowedNodeOrResourceTypes) throws javax.jcr.RepositoryExceptionAll collection members are returned- Parameters:
allowedNodeOrResourceTypes- list of node primary or sling resource types to be considered. The selection by resource type doesn't include inheritance- Returns:
- a list of all members
- Throws:
javax.jcr.RepositoryException- in case an error occurs while fetching the list.
-
remove
void remove(javax.jcr.Node node)
Remove member- Parameters:
node- node to remove
-
getPath
java.lang.String getPath()
Returns collection path- Returns:
- collection path
-
hasNode
boolean hasNode(java.lang.String path)
- Parameters:
path- path to be find- Returns:
- true if member exist, false otherwise
-
-