| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.security.EveryonePersona
public class EveryonePersona
A special version of a persona that acts as if it has all other personae in the same user authority as sub-personae.
The StandardSecurityPolicy uses this to detect "EVERYONE" ACL entries, allowing the ACE to apply to all users even though none have this persona explicitly.
| Field Summary | |
|---|---|
| static java.lang.String | CLASS_VERSION | 
| static java.lang.String | NAME | 
| Constructor Summary | |
|---|---|
| EveryonePersona()Creates an un-associated persona that applies to everyone in a user authority. | |
| EveryonePersona(UserAuthority pAuthority)Creates a persona that applies to everyone in a user authority. | |
| Method Summary | |
|---|---|
|  void | addSubPersona(Persona newSubPersona)Adds a new sub-persona. | 
|  boolean | equals(java.lang.Object pObject)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. | 
|  void | setUserAuthority(UserAuthority pAuthority)Changes the authority that manages this persona. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface java.security.Principal | 
|---|
| hashCode, toString | 
| Field Detail | 
|---|
public static java.lang.String CLASS_VERSION
public static final java.lang.String NAME
| Constructor Detail | 
|---|
public EveryonePersona()
public EveryonePersona(UserAuthority pAuthority)
| Method Detail | 
|---|
public void setUserAuthority(UserAuthority pAuthority)
public java.lang.String getName()
getName in interface PersonagetName in interface java.security.Principalpublic UserAuthority getUserAuthority()
getUserAuthority in interface Personapublic boolean equals(java.lang.Object pObject)
equals in interface Personaequals in interface java.security.Principalequals in class java.lang.Objectpublic boolean hasPersona(Persona persona)
hasPersona in interface Personapublic Persona[] getSubPersonae()
getSubPersonae in interface Persona
public void setSubPersonae(Persona[] newSubPersonae)
                    throws InvalidPersonaException
setSubPersonae in interface PersonaInvalidPersonaException
public void addSubPersona(Persona newSubPersona)
                   throws InvalidPersonaException
addSubPersona in interface PersonaInvalidPersonaException
public void removeSubPersona(Persona oldPersona)
                      throws InvalidPersonaException
removeSubPersona in interface PersonaInvalidPersonaExceptionpublic java.lang.Object getAttribute(java.lang.String attributeName)
getAttribute in interface PersonaSecurityDomain.createResource(java.lang.Object, java.lang.Object, atg.security.AccessControlEntry[])public boolean hasRole(java.lang.String roleName)
hasRole in interface Personapublic java.util.Collection getAccessRights()
getAccessRights in interface Persona| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||