atg.security
Class GenericProxyUserAuthority

java.lang.Object
  extended by atg.security.GenericProxyUserAuthority
All Implemented Interfaces:
ProxyUserAuthority, UserAuthority

public class GenericProxyUserAuthority
extends java.lang.Object
implements ProxyUserAuthority

An implementation of a generic ProxyUserAuthority object.


Field Summary
static java.lang.String CLASS_VERSION
           
 
Constructor Summary
GenericProxyUserAuthority()
           
GenericProxyUserAuthority(UserAuthority pUserAuthority)
           
 
Method Summary
 void addAuthenticationFailedListener(DataListener pListener)
          Adds a listener for "authentication failed" events.
 void addAuthenticationSucceededListener(DataListener pListener)
          Adds a listener for "authentication succeeded" events.
 Persona getPersona(java.lang.Object id)
          Returns a persona for the given ID object.
 UserAuthority getUserAuthority()
          Returns the real user authority that this proxy is a substitute for, if possible.
 java.lang.String getUserAuthorityName()
          Returns the name of the user authority.
 void removeAuthenticationFailedListener(DataListener pListener)
          Removes a listener for "authentication failed" events.
 void removeAuthenticationSucceededListener(DataListener pListener)
          Removes a listener for "authentication succeeded" events.
 void setUserAuthority(UserAuthority pNewAuthority)
          Changes the real user authority that this proxy is a substitute for, if possible.
 void userDestroyed(User user)
          Called by a User object when it is destroyed.
 
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

GenericProxyUserAuthority

public GenericProxyUserAuthority()

GenericProxyUserAuthority

public GenericProxyUserAuthority(UserAuthority pUserAuthority)
Method Detail

getUserAuthorityName

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

Specified by:
getUserAuthorityName in interface UserAuthority

userDestroyed

public void userDestroyed(User user)
Called by a User object when it is destroyed. This can be used to clean up internal references to the user object.

Specified by:
userDestroyed in interface UserAuthority

getPersona

public Persona getPersona(java.lang.Object id)
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 UserAuthority

addAuthenticationSucceededListener

public void addAuthenticationSucceededListener(DataListener pListener)
Adds a listener for "authentication succeeded" events.

Specified by:
addAuthenticationSucceededListener in interface UserAuthority

removeAuthenticationSucceededListener

public void removeAuthenticationSucceededListener(DataListener pListener)
Removes a listener for "authentication succeeded" events.

Specified by:
removeAuthenticationSucceededListener in interface UserAuthority

addAuthenticationFailedListener

public void addAuthenticationFailedListener(DataListener pListener)
Adds a listener for "authentication failed" events.

Specified by:
addAuthenticationFailedListener in interface UserAuthority

removeAuthenticationFailedListener

public void removeAuthenticationFailedListener(DataListener pListener)
Removes a listener for "authentication failed" events.

Specified by:
removeAuthenticationFailedListener in interface UserAuthority

getUserAuthority

public UserAuthority getUserAuthority()
Returns the real user authority that this proxy is a substitute for, if possible. If no authority is known this should return "this" (ie not null).

Specified by:
getUserAuthority in interface ProxyUserAuthority

setUserAuthority

public void setUserAuthority(UserAuthority pNewAuthority)
Changes the real user authority that this proxy is a substitute for, if possible.

Specified by:
setUserAuthority in interface ProxyUserAuthority