Package org.apache.jackrabbit.core.version

Examples of org.apache.jackrabbit.core.version.GenericVersionSelector


        // checks
        sanityCheck();
        checkSessionHasPending();
        checkLock();

        GenericVersionSelector gvs = new GenericVersionSelector();
        gvs.setName(versionName);
        internalRestore(getVersionHistory().getVersion(versionName), gvs, removeExisting);
        // session.save/revert is done in internal restore
    }
View Full Code Here


        // check if 'own' version
        if (!version.getContainingHistory().isSame(getVersionHistory())) {
            throw new VersionException("Unable to restore version. Not same version history.");
        }

        internalRestore(version, new GenericVersionSelector(version.getCreated()), removeExisting);
        // session.save/revert is done in internal restore
    }
View Full Code Here

                // not found, create new one
                node = addNode(relPath, ((AbstractVersion) version).getFrozenNode());
            }

            // recreate node from frozen state
            node.internalRestore(version, new GenericVersionSelector(version.getCreated()), removeExisting);
            // session.save/revert is done in internal restore
        }
    }
View Full Code Here

        Version v = getVersionHistory().getVersionByLabel(versionLabel);
        if (v == null) {
            throw new VersionException("No version for label " + versionLabel + " found.");
        }
        internalRestore(v, new GenericVersionSelector(versionLabel), removeExisting);
        // session.save/revert is done in internal restore
    }
View Full Code Here

        // checks
        sanityCheck();
        checkSessionHasPending();
        checkLock();

        GenericVersionSelector gvs = new GenericVersionSelector();
        gvs.setName(versionName);
        internalRestore(getVersionHistory().getVersion(versionName), gvs, removeExisting);
        // session.save/revert is done in internal restore
    }
View Full Code Here

        // check if 'own' version
        if (!version.getContainingHistory().isSame(getVersionHistory())) {
            throw new VersionException("Unable to restore version. Not same version history.");
        }

        internalRestore(version, new GenericVersionSelector(version.getCreated()), removeExisting);
        // session.save/revert is done in internal restore
    }
View Full Code Here

                // not found, create new one
                node = addNode(relPath, ((AbstractVersion) version).getFrozenNode());
            }

            // recreate node from frozen state
            node.internalRestore(version, new GenericVersionSelector(version.getCreated()), removeExisting);
            // session.save/revert is done in internal restore
        }
    }
View Full Code Here

        Version v = getVersionHistory().getVersionByLabel(versionLabel);
        if (v == null) {
            throw new VersionException("No version for label " + versionLabel + " found.");
        }
        internalRestore(v, new GenericVersionSelector(versionLabel), removeExisting);
        // session.save/revert is done in internal restore
    }
View Full Code Here

        // checks
        sanityCheck();
        checkSessionHasPending();
        checkLock();

        GenericVersionSelector gvs = new GenericVersionSelector();
        gvs.setName(versionName);
        internalRestore(getVersionHistory().getVersion(versionName), gvs, removeExisting);
        // session.save/revert is done in internal restore
    }
View Full Code Here

        // check if 'own' version
        if (!version.getContainingHistory().isSame(getVersionHistory())) {
            throw new VersionException("Unable to restore version. Not same version history.");
        }

        internalRestore(version, new GenericVersionSelector(version.getCreated()), removeExisting);
        // session.save/revert is done in internal restore
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.core.version.GenericVersionSelector

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.