@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); }