org.apache.jackrabbit.rmi.server.principal
Class ServerPrincipal

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.principal.ServerPrincipal
All Implemented Interfaces:
Serializable, Remote, RemotePrincipal
Direct Known Subclasses:
ServerGroup

public class ServerPrincipal
extends ServerObject
implements RemotePrincipal

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
ServerPrincipal(Principal principal, RemoteAdapterFactory factory)
           
 
Method Summary
 String getName()
           
 Principal getPrincipal()
          Returns the Principal encapsulated in this instance.
 
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

ServerPrincipal

public ServerPrincipal(Principal principal,
                       RemoteAdapterFactory factory)
                throws RemoteException
Throws:
RemoteException
Method Detail

getName

public String getName()
Specified by:
getName in interface RemotePrincipal
See Also:
Principal.getName()

getPrincipal

public Principal getPrincipal()
Returns the Principal encapsulated in this instance.

NOTE: This method is intended to only be used in the JCR RMI implementation to be able to "send back" remote principals to the server for implementation of the remote JCR API.

Returns:
the Principal encapsulated in this instance.


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