atg.security
Class GenericPersona

java.lang.Object
  extended by atg.security.PersonaAdapter
      extended by atg.security.GenericPersona
All Implemented Interfaces:
Persona, java.io.Serializable, java.security.Principal
Direct Known Subclasses:
GenericDefaultGroupPersona, GenericGroupPersona, GenericLoginPersona

public class GenericPersona
extends PersonaAdapter

Implements a generic persona, which is an identity used to grant access control rights within a security domain.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
           
 
Constructor Summary
GenericPersona(Account pAccount)
          Creates a new persona given an Account object.
GenericPersona(java.lang.String pName, UserAuthority pAuthority)
          Creates a new persona with a given name and user authority.
 
Method Summary
 Account getAccount()
          Returns the account that is associated with this persona.
 void setAccount(Account pAccount)
          Changes the account that is associated with this persona.
 
Methods inherited from class atg.security.PersonaAdapter
addSubPersona, equals, getAccessRights, getAttribute, getName, getSubPersonae, getUserAuthority, hashCode, hasPersona, hasRole, isReadOnly, main, removeSubPersona, setAttribute, setAttributes, setReadOnly, setSubPersonae, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Constructor Detail

GenericPersona

public GenericPersona(java.lang.String pName,
                      UserAuthority pAuthority)
Creates a new persona with a given name and user authority.


GenericPersona

public GenericPersona(Account pAccount)
Creates a new persona given an Account object. The account's account manager must be an instance of UserAuthority.

Method Detail

getAccount

public Account getAccount()
Returns the account that is associated with this persona.

See Also:
mAccount

setAccount

public void setAccount(Account pAccount)
Changes the account that is associated with this persona.

See Also:
mAccount