atg.security
Interface RemoteUserAuthority

All Superinterfaces:
AccountTypes, java.rmi.Remote
All Known Implementing Classes:
RemoteUserAuthorityImpl

public interface RemoteUserAuthority
extends java.rmi.Remote, AccountTypes

Minimal interface that must be implemented by user authorities whose personae can be serialized.


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
 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.
 

Field Detail

CLASS_VERSION

static final java.lang.String CLASS_VERSION
See Also:
Constant Field Values
Method Detail

getUserAuthorityName

java.lang.String getUserAuthorityName()
                                      throws java.rmi.RemoteException
Returns the name of the user authority.

Throws:
java.rmi.RemoteException

getPersona

Persona getPersona(java.lang.Object pId)
                   throws java.rmi.RemoteException
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.

Throws:
java.rmi.RemoteException

getPersonae

Persona[] getPersonae(java.lang.Object[] pIds)
                      throws java.rmi.RemoteException
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.

Throws:
java.rmi.RemoteException

getPersonae

Persona[] getPersonae(int pAccountType)
                      throws java.rmi.RemoteException
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.

Throws:
java.rmi.RemoteException