public class PersistenceCopier extends Object
Constructor and Description |
---|
PersistenceCopier(PersistenceManager source,
PersistenceManager target,
DataStore store)
Creates a tool for copying content from one persistence manager
to another.
|
Modifier and Type | Method and Description |
---|---|
void |
copy(NodeId id)
Recursively copies the identified node and all its descendants.
|
void |
excludeNode(NodeId id)
Explicitly exclude the identified node from being copied.
|
public PersistenceCopier(PersistenceManager source, PersistenceManager target, DataStore store)
source
- source persistence managertarget
- target persistence managerstore
- target data storepublic void excludeNode(NodeId id)
id
- identifier of the node to be excludedpublic void copy(NodeId id) throws RepositoryException
id
- identifier of the node to be copiedRepositoryException
- if the copy operation failsCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.