public class JahiaPersistenceCopier extends Object
PersistenceCopier.PersistenceCopier| Constructor and Description |
|---|
JahiaPersistenceCopier(org.apache.jackrabbit.core.persistence.PersistenceManager source,
org.apache.jackrabbit.core.persistence.PersistenceManager target,
org.apache.jackrabbit.core.data.DataStore store,
int batchSize)
Creates a tool for copying content from one persistence manager to another.
|
| Modifier and Type | Method and Description |
|---|---|
void |
copy(org.apache.jackrabbit.core.id.NodeId id)
Recursively copies the identified node and all its descendants.
|
void |
excludeNode(org.apache.jackrabbit.core.id.NodeId id)
Explicitly exclude the identified node from being copied.
|
void |
flush()
Should be called at the end of the copying to finalize the writes.
|
public JahiaPersistenceCopier(org.apache.jackrabbit.core.persistence.PersistenceManager source,
org.apache.jackrabbit.core.persistence.PersistenceManager target,
org.apache.jackrabbit.core.data.DataStore store,
int batchSize)
source - source persistence managertarget - target persistence managerstore - target data storebatchSize - the number of change logs to handle in a batchpublic void copy(org.apache.jackrabbit.core.id.NodeId id)
throws javax.jcr.RepositoryException
id - identifier of the node to be copiedjavax.jcr.RepositoryException - if the copy operation failspublic void excludeNode(org.apache.jackrabbit.core.id.NodeId id)
id - identifier of the node to be excludedpublic void flush()
throws javax.jcr.RepositoryException
org.apache.jackrabbit.core.state.ItemStateExceptionjavax.jcr.RepositoryExceptionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.