atg.security
Class RemoteUserAuthorityImpl

java.lang.Object
  extended by atg.security.RemoteUserAuthorityImpl
All Implemented Interfaces:
AccountTypes, RemoteUserAuthority, java.rmi.Remote

public class RemoteUserAuthorityImpl
extends java.lang.Object
implements RemoteUserAuthority

Implementation of a remote user authority that wraps a normal user authority so that persona lookups can be accomplished. All other capabilities are not remotable.


Field Summary
static java.lang.String CLASS_VERSION
           
 
Fields inherited from interface atg.security.AccountTypes
ANY_ACCOUNT, GROUP_ACCOUNT, LOGIN_ACCOUNT, PRIVILEGE_ACCOUNT
 
Method Summary
static RemoteUserAuthority createProxy(UserAuthority pUserAuthority)
           
 Persona getPersona(java.lang.Object pId)
          Returns a persona for the given ID object.
 Persona[] getPersonae(int pAccountType)
          Returns all personae of a given type if the remote user authority also implements the AccountManager interface.
 Persona[] getPersonae(java.lang.Object[] pIds)
          Returns a set of personae from a set of IDs.
 java.lang.String getUserAuthorityName()
          Returns the name of the user authority.
 
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
Method Detail

createProxy

public static RemoteUserAuthority createProxy(UserAuthority pUserAuthority)
                                       throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getUserAuthorityName

public java.lang.String getUserAuthorityName()
Returns the name of the user authority.

Specified by:
getUserAuthorityName in interface RemoteUserAuthority

getPersona

public Persona getPersona(java.lang.Object pId)
Returns a persona for the given ID object. This is typically used by an ACL parser, where the ID is usually a string. Returns null if there is no persona for the indicated ID.

Specified by:
getPersona in interface RemoteUserAuthority

getPersonae

public Persona[] getPersonae(java.lang.Object[] pIds)
Returns a set of personae from a set of IDs. This is intended to be a performance enhancer when you want to reduce RMI traffic.

Specified by:
getPersonae in interface RemoteUserAuthority

getPersonae

public Persona[] getPersonae(int pAccountType)
Returns all personae of a given type if the remote user authority also implements the AccountManager interface. If it does not, this will return null.

This method is intended to be used by the ClientUserAuthority.loadPersonae() method to preload the client-side persona cache as a performance enhancement.

Specified by:
getPersonae in interface RemoteUserAuthority
See Also:
AccountManager, AccountTypes