interface NodeProcessor
DirectoryService
to
perform tasks on the subtree or entire tree. The visit()
method of the object that implements this interface will be called for each
node of the tree until instance of some object is returned or all nodes are
visited.
There are several possible uses of this interface. The simplest one is a search operation which is not supported by the back-end. In this case object which implements this interface can just return nodeId once node which meet search criteria. Or it can collect all matching node in internal data where caller can retrieve it after traversing entire subtree. Other use is subtree backup operation. If all nodes are visited in the "top-down" order can just copy each visited node into external data storage or even into other subtree of the same tree.
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
visit(Remapper service,
java.lang.String nodeId)
This method in called for each visited node.
|
java.lang.Object visit(Remapper service, java.lang.String nodeId)
service
- Remapper instance which is traversednodeId
- Node Idnull
to continue operation.