Package com.day.cq.workflow.collection
Interface ResourceCollection
-
@ProviderType public interface ResourceCollection
TheResourceCollectionrepresents 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 StringNN_FILTERName of the node containing filter definitions' itemsstatic StringPN_FILTER_ROOTProperty name of a filter's item root path
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(Node node)Add member to the collectionStringgetPath()Returns collection pathbooleanhasNode(String path)List<Node>list(String[] allowedNodesTypes)All collection members are retournedvoidremove(Node node)Remove membervoidstartRecording(String userId, String rootPath, String[] nodeTypes)Starts the recording.voidstopRecording(String userId)Stops the recording.
-
-
-
Field Detail
-
NN_FILTER
static final String NN_FILTER
Name of the node containing filter definitions' items- See Also:
- Constant Field Values
-
PN_FILTER_ROOT
static final String PN_FILTER_ROOT
Property name of a filter's item root path- See Also:
- Constant Field Values
-
-
Method Detail
-
list
List<Node> list(String[] allowedNodesTypes) throws RepositoryException
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
void add(Node node)
Add member to the collection- Parameters:
node- to add
-
remove
void remove(Node node)
Remove member- Parameters:
node- node to remove
-
startRecording
void startRecording(String userId, String rootPath, String[] nodeTypes)
Starts the recording.- Parameters:
userId- user idrootPath- root path to nodesnodeTypes- nodes to be removed
-
stopRecording
void stopRecording(String userId)
Stops the recording.- Parameters:
userId- user id
-
getPath
String getPath()
Returns collection path- Returns:
- collection path
-
hasNode
boolean hasNode(String path)
- Parameters:
path- path to be find- Returns:
- true if member exist, false otherwise
-
-