private static class DirectoryService.NodeCopier extends java.lang.Object implements NodeProcessor
| Modifier and Type | Field and Description |
|---|---|
private Remapper |
destination
Back-end where subtree will be copied
|
private java.lang.String |
dstBase
Base ID for the destination back-end
|
private boolean |
recursive
Recursive copying mode.
|
private java.lang.String |
srcBase
Base ID for the source back-end
|
| Constructor and Description |
|---|
NodeCopier(java.lang.String srcBase,
Remapper destination,
java.lang.String dstBase,
boolean recursive)
Construct an instance of NodeCopier for specified source ID,
destination ID and back-end.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
visit(Remapper service,
java.lang.String nodeId)
Implementation of the
NodeProcessor interface. |
private final Remapper destination
private final java.lang.String dstBase
private final java.lang.String srcBase
private final boolean recursive
NodeCopier(java.lang.String srcBase,
Remapper destination,
java.lang.String dstBase,
boolean recursive)
srcBase - Node ID for the root of the source subtree.destination - Reference to the destination back-end.dstBase - Node ID for the root of the new subtreerecursive - true enables recursive copying. Otherwise
copying will be stopped after first copy operations.public java.lang.Object visit(Remapper service, java.lang.String nodeId)
NodeProcessor interface. This
method copies node specified by the nodeId from
back-end referenced by service parameter into
destination back-end.visit in interface NodeProcessorservice - Remapper instance which is traversednodeId - Node Idnull to continue operation.