@Override public void doneMerge( Version version ) throws VersionException, InvalidItemStateException, UnsupportedRepositoryOperationException, RepositoryException { versionManager().doneMerge(this, version); }
@Override public Version checkin() throws VersionException, UnsupportedRepositoryOperationException, InvalidItemStateException, LockException, RepositoryException { return versionManager().checkin(this); }
@Override public void cancelMerge( Version version ) throws VersionException, InvalidItemStateException, UnsupportedRepositoryOperationException, RepositoryException { versionManager().cancelMerge(this, version); }
@Override public void checkout() throws UnsupportedRepositoryOperationException, LockException, ActivityViolationException, RepositoryException { versionManager().checkout(this); }
@Override public void cancelMerge( Version version ) throws VersionException, InvalidItemStateException, UnsupportedRepositoryOperationException, RepositoryException { versionManager().cancelMerge(this, version); }
@Override public void checkout() throws UnsupportedRepositoryOperationException, LockException, ActivityViolationException, RepositoryException { versionManager().checkout(this); }
@Override public void doneMerge( Version version ) throws VersionException, InvalidItemStateException, UnsupportedRepositoryOperationException, RepositoryException { versionManager().doneMerge(this, version); }
@Override public Version checkin() throws VersionException, UnsupportedRepositoryOperationException, InvalidItemStateException, LockException, RepositoryException { return versionManager().checkin(this); }
@Override public JcrVersionHistoryNode getVersionHistory() throws UnsupportedRepositoryOperationException, RepositoryException { return versionManager().getVersionHistory(this); }
@Override public JcrVersionHistoryNode getVersionHistory() throws UnsupportedRepositoryOperationException, RepositoryException { return versionManager().getVersionHistory(this); }
@Override public NodeIterator merge( String srcWorkspace, boolean bestEffort ) throws NoSuchWorkspaceException, AccessDeniedException, MergeException, LockException, InvalidItemStateException, RepositoryException { CheckArg.isNotNull(srcWorkspace, "srcWorkspace"); checkNotProtected(); return versionManager().merge(this, srcWorkspace, bestEffort, false); }
@Override public NodeIterator merge( String srcWorkspace, boolean bestEffort ) throws NoSuchWorkspaceException, AccessDeniedException, MergeException, LockException, InvalidItemStateException, RepositoryException { CheckArg.isNotNull(srcWorkspace, "srcWorkspace"); checkNotProtected(); return versionManager().merge(this, srcWorkspace, bestEffort, false); }
@Override public void restore( Version version, boolean removeExisting ) throws VersionException, ItemExistsException, InvalidItemStateException, UnsupportedRepositoryOperationException, LockException, RepositoryException { try { checkNotProtected(); } catch (ConstraintViolationException cve) { throw new UnsupportedRepositoryOperationException(cve); } versionManager().restoreAtAbsPath(getPath(), version, removeExisting, false); }
@Override public void restore( Version version, boolean removeExisting ) throws VersionException, ItemExistsException, InvalidItemStateException, UnsupportedRepositoryOperationException, LockException, RepositoryException { try { checkNotProtected(); } catch (ConstraintViolationException cve) { throw new UnsupportedRepositoryOperationException(cve); } versionManager().restoreAtAbsPath(getPath(), version, removeExisting, false); }
@Override public void restore( Version version, String relPath, boolean removeExisting ) throws PathNotFoundException, ItemExistsException, VersionException, ConstraintViolationException, UnsupportedRepositoryOperationException, LockException, InvalidItemStateException, RepositoryException { checkNotProtected(); PathFactory pathFactory = session.pathFactory(); Path relPathAsPath = pathFactory.create(relPath); if (relPathAsPath.isAbsolute()) throw new RepositoryException(JcrI18n.invalidRelativePath.text(relPath)); Path actualPath = pathFactory.create(path(), relPathAsPath).getCanonicalPath(); versionManager().restoreAtAbsPath(session.stringFactory().create(actualPath), version, removeExisting, false); }
@Override public void restore( Version version, String relPath, boolean removeExisting ) throws PathNotFoundException, ItemExistsException, VersionException, ConstraintViolationException, UnsupportedRepositoryOperationException, LockException, InvalidItemStateException, RepositoryException { checkNotProtected(); PathFactory pathFactory = session.pathFactory(); Path relPathAsPath = pathFactory.create(relPath); if (relPathAsPath.isAbsolute()) throw new RepositoryException(JcrI18n.invalidRelativePath.text(relPath)); Path actualPath = pathFactory.create(path(), relPathAsPath).getCanonicalPath(); versionManager().restoreAtAbsPath(session.stringFactory().create(actualPath), version, removeExisting, false); }