| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Persona
An identity, either of a user or of a user's role. Persona objects may have multiple embedded identities, for instance a user may have several roles (e.g. manager and developer).
The Persona interface is a superset of the standard J2EE Principal interface, and implements the Principle interface for interoperability.
User, 
UserAuthority, 
AccessControlEntry| Field Summary | |
|---|---|
| static java.lang.String | CLASS_VERSION | 
| Method Summary | |
|---|---|
|  void | addSubPersona(Persona newSubPersona)Adds a new sub-persona. | 
|  boolean | equals(java.lang.Object object)Returns true if this persona is equivalent to another. | 
|  java.util.Collection | getAccessRights()Returns the access rights associated with the principal | 
|  java.lang.Object | getAttribute(java.lang.String attributeName)Retrieves the value of a named attribute of the persona's account. | 
|  java.lang.String | getName()Returns the machine-readable name of the persona, useful for persisting the object. | 
|  Persona[] | getSubPersonae()Returns a list of sub-personae that compose this persona. | 
|  UserAuthority | getUserAuthority()Returns the authority that manages this persona. | 
|  boolean | hasPersona(Persona persona)Returns true if this persona matches or encompasses the indicated persona. | 
|  boolean | hasRole(java.lang.String roleName)Returns true if this persona is or has a sub-persona with the given name. | 
|  void | removeSubPersona(Persona oldPersona)Removes a sub-persona. | 
|  void | setSubPersonae(Persona[] newSubPersonae)Changes the list of sub-personae that compose this persona. | 
| Methods inherited from interface java.security.Principal | 
|---|
| hashCode, toString | 
| Field Detail | 
|---|
static final java.lang.String CLASS_VERSION
| Method Detail | 
|---|
java.lang.String getName()
getName in interface java.security.PrincipalUserAuthority getUserAuthority()
boolean equals(java.lang.Object object)
equals in interface java.security.Principalequals in class java.lang.Objectboolean hasPersona(Persona persona)
Persona[] getSubPersonae()
void setSubPersonae(Persona[] newSubPersonae)
                    throws InvalidPersonaException
InvalidPersonaException
void addSubPersona(Persona newSubPersona)
                   throws InvalidPersonaException
InvalidPersonaException
void removeSubPersona(Persona oldPersona)
                      throws InvalidPersonaException
InvalidPersonaExceptionjava.lang.Object getAttribute(java.lang.String attributeName)
SecurityDomain.createResource(java.lang.Object, java.lang.Object, atg.security.AccessControlEntry[])boolean hasRole(java.lang.String roleName)
java.util.Collection getAccessRights()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||