org.apache.jackrabbit.rmi.server
Class ServerRepository

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.apache.jackrabbit.rmi.server.ServerObject
                  extended by org.apache.jackrabbit.rmi.server.ServerRepository
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, RemoteRepository

public class ServerRepository
extends ServerObject
implements RemoteRepository

Remote adapter for the JCR Repository interface. This class makes a local repository available as an RMI service using the RemoteRepository interface.

See Also:
Repository, RemoteRepository, Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
ServerRepository(javax.jcr.Repository repository, RemoteAdapterFactory factory)
          Creates a remote adapter for the given local repository.
 
Method Summary
 java.lang.String getDescriptor(java.lang.String name)
          Remote version of the Repository.getDescriptor(String) method.
 java.lang.String[] getDescriptorKeys()
          Remote version of the Repository.getDescriptorKeys() method.
 RemoteSession login()
          Remote version of the Repository.login(} method.
 RemoteSession login(javax.jcr.Credentials credentials)
          Remote version of the Repository.login(Credentials} method.
 RemoteSession login(javax.jcr.Credentials credentials, java.lang.String workspace)
          Remote version of the Repository.login(Credentials,String} method.
 RemoteSession login(java.lang.String workspace)
          Remote version of the Repository.login(String} method.
 
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerObject
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerRepository

public ServerRepository(javax.jcr.Repository repository,
                        RemoteAdapterFactory factory)
                 throws java.rmi.RemoteException
Creates a remote adapter for the given local repository.

Parameters:
repository - local repository
factory - remote adapter factory
Throws:
java.rmi.RemoteException - on RMI errors
Method Detail

getDescriptor

public java.lang.String getDescriptor(java.lang.String name)
                               throws java.rmi.RemoteException
Remote version of the Repository.getDescriptor(String) method.

Specified by:
getDescriptor in interface RemoteRepository
Parameters:
name - descriptor key
Returns:
descriptor value
Throws:
java.rmi.RemoteException - on RMI errors

getDescriptorKeys

public java.lang.String[] getDescriptorKeys()
                                     throws java.rmi.RemoteException
Remote version of the Repository.getDescriptorKeys() method.

Specified by:
getDescriptorKeys in interface RemoteRepository
Returns:
descriptor keys
Throws:
java.rmi.RemoteException - on RMI errors

login

public RemoteSession login()
                    throws javax.jcr.RepositoryException,
                           java.rmi.RemoteException
Remote version of the Repository.login(} method.

Specified by:
login in interface RemoteRepository
Returns:
remote session
Throws:
javax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors

login

public RemoteSession login(java.lang.String workspace)
                    throws javax.jcr.RepositoryException,
                           java.rmi.RemoteException
Remote version of the Repository.login(String} method.

Specified by:
login in interface RemoteRepository
Parameters:
workspace - workspace name
Returns:
remote session
Throws:
javax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors

login

public RemoteSession login(javax.jcr.Credentials credentials)
                    throws javax.jcr.RepositoryException,
                           java.rmi.RemoteException
Remote version of the Repository.login(Credentials} method.

Specified by:
login in interface RemoteRepository
Parameters:
credentials - client credentials
Returns:
remote session
Throws:
javax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors

login

public RemoteSession login(javax.jcr.Credentials credentials,
                           java.lang.String workspace)
                    throws javax.jcr.RepositoryException,
                           java.rmi.RemoteException
Remote version of the Repository.login(Credentials,String} method.

Specified by:
login in interface RemoteRepository
Parameters:
credentials - client credentials
workspace - workspace name
Returns:
remote session
Throws:
javax.jcr.RepositoryException - on repository errors
java.rmi.RemoteException - on RMI errors


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.