Search in sources :

Example 1 with RemoteVersionManager

use of org.apache.jackrabbit.rmi.remote.RemoteVersionManager in project jackrabbit by apache.

the class ServerWorkspace method getVersionManager.

public RemoteVersionManager getVersionManager() throws RepositoryException, RemoteException {
    try {
        if (remoteVersionManager == null) {
            VersionManager versionManager = workspace.getVersionManager();
            remoteVersionManager = getFactory().getRemoteVersionManager(workspace.getSession(), versionManager);
        }
        return remoteVersionManager;
    } catch (RepositoryException ex) {
        throw getRepositoryException(ex);
    }
}
Also used : RepositoryException(javax.jcr.RepositoryException) RemoteVersionManager(org.apache.jackrabbit.rmi.remote.RemoteVersionManager) VersionManager(javax.jcr.version.VersionManager)

Aggregations

RepositoryException (javax.jcr.RepositoryException)1 VersionManager (javax.jcr.version.VersionManager)1 RemoteVersionManager (org.apache.jackrabbit.rmi.remote.RemoteVersionManager)1