atg.security.proxy
Class UserSessionProxy

java.lang.Object
  extended by atg.security.proxy.UserSessionProxy

public class UserSessionProxy
extends java.lang.Object


Field Summary
static java.lang.String CLASS_VERSION
           
 
Constructor Summary
UserSessionProxy()
           
 
Method Summary
static java.rmi.Remote createProxy(java.rmi.Remote pRemote)
          Create a user session-based proxy for a Remote object, if the object is not already a proxy.
static void registerLayer(java.lang.Object pSessionKey, DevelopmentLine pLayer)
          Associate a particular session key with a layer.
static void registerServerSession(java.lang.Object pSessionKey, User pUser)
          Associate a particular session key with a user.
static void setClientSession(java.lang.Object pSessionKey)
          Set the session key associated with this client VM.
static void unregisterLayer(java.lang.Object pSessionKey)
          Remove a session key, unregistering its layer.
static void unregisterServerSession(java.lang.Object pSessionKey)
          Remove a session key, unregistering its user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Constructor Detail

UserSessionProxy

public UserSessionProxy()
Method Detail

registerServerSession

public static void registerServerSession(java.lang.Object pSessionKey,
                                         User pUser)
Associate a particular session key with a user. This method is only called on an RMI server. After registration, incoming calls from proxies on some RMI client will bind the User associated with the client's session key to the current thread, using the ThreadSecurityManager.


registerLayer

public static void registerLayer(java.lang.Object pSessionKey,
                                 DevelopmentLine pLayer)
Associate a particular session key with a layer. This method is only called on an RMI server. After registration, incoming calls from proxies on some RMI client will bind the layer to the current thread, using the ThreadSecurityManager.


unregisterServerSession

public static void unregisterServerSession(java.lang.Object pSessionKey)
Remove a session key, unregistering its user. This method is only called on the server.


unregisterLayer

public static void unregisterLayer(java.lang.Object pSessionKey)
Remove a session key, unregistering its layer. This method is only called on the server.


setClientSession

public static void setClientSession(java.lang.Object pSessionKey)
Set the session key associated with this client VM. Method invocations on a proxy from this VM will transmit this session key to the server, where it will be used to look up the User for the corresponding session.


createProxy

public static java.rmi.Remote createProxy(java.rmi.Remote pRemote)
                                   throws java.rmi.RemoteException
Create a user session-based proxy for a Remote object, if the object is not already a proxy.

Throws:
java.rmi.RemoteException