|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.lenya.ac.Identity
public class Identity
Identity object. Used to store the authenticated accreditables in the session.
| Constructor Summary | |
|---|---|
Identity()
Ctor. |
|
| Method Summary | |
|---|---|
void |
addIdentifiable(Identifiable identifiable)
Adds a new identifiable to this identity. |
boolean |
belongsTo(AccreditableManager manager)
Checks if this identity belongs to a certain accreditable manager. |
boolean |
contains(Identifiable identifiable)
Checks if this identity contains a certain identifiable. |
Accreditable[] |
getAccreditables()
Returns the set of accreditables of this accreditable. |
Identifiable[] |
getIdentifiables()
Returns the identifiables of this identity. |
static Identity |
getIdentity(org.apache.cocoon.environment.Session session)
Fetches the identity from a session. |
Machine |
getMachine()
Returns the machine of this identity. |
User |
getUser()
Returns the user of this identity. |
void |
removeIdentifiable(Identifiable identifiable)
Removes a certain identifiable from the idenity. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Identity()
| Method Detail |
|---|
public Identifiable[] getIdentifiables()
public void addIdentifiable(Identifiable identifiable)
identifiable - The identifiable to add.public Accreditable[] getAccreditables()
Accreditable
getAccreditables in interface AccreditableAccreditable.getAccreditables()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
public boolean belongsTo(AccreditableManager manager)
throws AccessControlException
manager - The accreditable manager to check for.
AccessControlException - if an error occurspublic User getUser()
public Machine getMachine()
public boolean contains(Identifiable identifiable)
identifiable - The identifiable to look for.
public static Identity getIdentity(org.apache.cocoon.environment.Session session)
session - The session.
public void removeIdentifiable(Identifiable identifiable)
identifiable - An identifiable.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||