public class EveryonePersona extends java.lang.Object implements Persona
The StandardSecurityPolicy uses this to detect "EVERYONE" ACL entries, allowing the ACE to apply to all users even though none have this persona explicitly.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION |
static java.lang.String |
NAME |
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static java.lang.String CLASS_VERSION
public static final java.lang.String NAME
public EveryonePersona()
public EveryonePersona(UserAuthority pAuthority)
public void setUserAuthority(UserAuthority pAuthority)
public java.lang.String getName()
public UserAuthority getUserAuthority()
getUserAuthority in interface Personapublic boolean equals(java.lang.Object pObject)
public boolean hasPersona(Persona persona)
hasPersona in interface Personapublic Persona[] getSubPersonae()
getSubPersonae in interface Personapublic void setSubPersonae(Persona[] newSubPersonae) throws InvalidPersonaException
setSubPersonae in interface PersonaInvalidPersonaExceptionpublic void addSubPersona(Persona newSubPersona) throws InvalidPersonaException
addSubPersona in interface PersonaInvalidPersonaExceptionpublic 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)
public java.util.Collection getAccessRights()
getAccessRights in interface Persona