@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 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 |
---|---|
void |
add(Node node)
Add member to the collection
|
java.lang.String |
getPath()
Returns collection path
|
boolean |
hasNode(java.lang.String path) |
java.util.List<Node> |
list(java.lang.String[] allowedNodesTypes)
All collection members are retourned
|
void |
remove(Node node)
Remove member
|
void |
startRecording(java.lang.String userId,
java.lang.String rootPath,
java.lang.String[] nodeTypes)
Starts the recording.
|
void |
stopRecording(java.lang.String userId)
Stops the recording.
|
static final java.lang.String NN_FILTER
static final java.lang.String PN_FILTER_ROOT
java.util.List<Node> list(java.lang.String[] allowedNodesTypes) throws RepositoryException
allowedNodesTypes
- list of node types to be consideredRepositoryException
- in case an error occurs while
fetching the list.void add(Node node)
node
- to addvoid remove(Node node)
node
- node to removevoid startRecording(java.lang.String userId, java.lang.String rootPath, java.lang.String[] nodeTypes)
userId
- user idrootPath
- root path to nodesnodeTypes
- nodes to be removedvoid stopRecording(java.lang.String userId)
userId
- user idjava.lang.String getPath()
boolean hasNode(java.lang.String path)
path
- path to be findCopyright © 2010 - 2020 Adobe. All Rights Reserved