Package org.apache.jackrabbit.core.persistence

Examples of org.apache.jackrabbit.core.persistence.PersistenceCopier


        }
    }

    private void copyVersionStore() throws RepositoryException {
        logger.info("Copying version histories");
        PersistenceCopier copier = new PersistenceCopier(
                source.getVersionManagerImpl().getPersistenceManager(),
                target.getVersionManagerImpl().getPersistenceManager(),
                target.getDataStore());
        copier.copy(RepositoryImpl.VERSION_STORAGE_NODE_ID);
    }
View Full Code Here


            if (!existing.contains(names[i])) {
                target.createWorkspace(names[i]);
            }

            PersistenceCopier copier = new PersistenceCopier(
                    source.getWorkspaceInfo(names[i]).getPersistenceManager(),
                    target.getWorkspaceInfo(names[i]).getPersistenceManager(),
                    target.getDataStore());
            copier.excludeNode(RepositoryImpl.SYSTEM_ROOT_NODE_ID);
            copier.copy(RepositoryImpl.ROOT_NODE_ID);
        }
    }
View Full Code Here

    private void copyVersionStore(
            VersionManagerImpl source, VersionManagerImpl target)
            throws RepositoryException, ItemStateException {
        logger.info("Copying version histories");

        PersistenceCopier copier = new PersistenceCopier(
                source.getPersistenceManager(),
                target.getPersistenceManager());
        copier.copy(RepositoryImpl.VERSION_STORAGE_NODE_ID);
    }
View Full Code Here

            if (!existing.contains(name)) {
                target.createWorkspace(name);
            }

            PersistenceCopier copier = new PersistenceCopier(
                    source.getWorkspaceInfo(name).getPersistenceManager(),
                    target.getWorkspaceInfo(name).getPersistenceManager());
            copier.excludeNode(RepositoryImpl.SYSTEM_ROOT_NODE_ID);
            copier.copy(RepositoryImpl.ROOT_NODE_ID);
        }
    }
View Full Code Here

        }
    }

    private void copyVersionStore() throws RepositoryException {
        logger.info("Copying version histories");
        PersistenceCopier copier = new PersistenceCopier(
                source.getInternalVersionManager().getPersistenceManager(),
                target.getInternalVersionManager().getPersistenceManager(),
                target.getDataStore());
        copier.copy(RepositoryImpl.VERSION_STORAGE_NODE_ID);
        copier.copy(RepositoryImpl.ACTIVITIES_NODE_ID);
    }
View Full Code Here

            if (!existing.contains(name)) {
                target.getRepository().createWorkspace(name);
            }

            // Copy all the workspace content
            PersistenceCopier copier = new PersistenceCopier(
                    source.getRepository().getWorkspaceInfo(name).getPersistenceManager(),
                    target.getRepository().getWorkspaceInfo(name).getPersistenceManager(),
                    target.getDataStore());
            copier.excludeNode(RepositoryImpl.SYSTEM_ROOT_NODE_ID);
            copier.copy(RepositoryImpl.ROOT_NODE_ID);

            // Copy all the active open-scoped locks
            LockManagerImpl sourceLockManager =
                source.getRepository().getLockManager(name);
            LockManagerImpl targetLockManager =
View Full Code Here

        }
    }

    private void copyVersionStore() throws RepositoryException {
        logger.info("Copying version histories");
        PersistenceCopier copier = new PersistenceCopier(
                source.getVersionManagerImpl().getPersistenceManager(),
                target.getVersionManagerImpl().getPersistenceManager(),
                target.getDataStore());
        copier.copy(RepositoryImpl.VERSION_STORAGE_NODE_ID);
        copier.copy(RepositoryImpl.ACTIVITIES_NODE_ID);
    }
View Full Code Here

            if (!existing.contains(name)) {
                target.createWorkspace(name);
            }

            PersistenceCopier copier = new PersistenceCopier(
                    source.getWorkspaceInfo(name).getPersistenceManager(),
                    target.getWorkspaceInfo(name).getPersistenceManager(),
                    target.getDataStore());
            copier.excludeNode(RepositoryImpl.SYSTEM_ROOT_NODE_ID);
            copier.copy(RepositoryImpl.ROOT_NODE_ID);
        }
    }
View Full Code Here

        }
    }

    private void copyVersionStore() throws RepositoryException {
        logger.info("Copying version histories");
        PersistenceCopier copier = new PersistenceCopier(
                source.getVersionManagerImpl().getPersistenceManager(),
                target.getVersionManagerImpl().getPersistenceManager(),
                target.getDataStore());
        copier.copy(RepositoryImpl.VERSION_STORAGE_NODE_ID);
        copier.copy(RepositoryImpl.ACTIVITIES_NODE_ID);
    }
View Full Code Here

            if (!existing.contains(name)) {
                target.createWorkspace(name);
            }

            // Copy all the workspace content
            PersistenceCopier copier = new PersistenceCopier(
                    source.getWorkspaceInfo(name).getPersistenceManager(),
                    target.getWorkspaceInfo(name).getPersistenceManager(),
                    target.getDataStore());
            copier.excludeNode(RepositoryImpl.SYSTEM_ROOT_NODE_ID);
            copier.copy(RepositoryImpl.ROOT_NODE_ID);

            // Copy all the active open-scoped locks
            LockManagerImpl sourceLockManager = source.getLockManager(name);
            LockManagerImpl targetLockManager = target.getLockManager(name);
            targetLockManager.copyOpenScopedLocksFrom(sourceLockManager);
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.core.persistence.PersistenceCopier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.