Package com.day.cq.workflow.collection
Interface ResourceCollection
The
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.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd member to the collectiongetPath()Returns collection pathbooleanAll collection members are retournedvoidRemove membervoidstartRecording(String userId, String rootPath, String[] nodeTypes) Starts the recording.voidstopRecording(String userId) Stops the recording.
-
Field Details
-
NN_FILTER
Name of the node containing filter definitions' items- See Also:
-
PN_FILTER_ROOT
Property name of a filter's item root path- See Also:
-
-
Method Details
-
list
All collection members are retourned- Parameters:
allowedNodesTypes- list of node types to be considered- Returns:
- a list of all members
- Throws:
RepositoryException- in case an error occurs while fetching the list.
-
add
Add member to the collection- Parameters:
node- to add
-
remove
Remove member- Parameters:
node- node to remove
-
startRecording
Starts the recording.- Parameters:
userId- user idrootPath- root path to nodesnodeTypes- nodes to be removed
-
stopRecording
Stops the recording.- Parameters:
userId- user id
-
getPath
String getPath()Returns collection path- Returns:
- collection path
-
hasNode
- Parameters:
path- path to be find- Returns:
- true if member exist, false otherwise
-