|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.auth.impl.LoginInfo
This class keeps track of the number of applications a user is logged into using the same security handler.
Field Summary | |
protected List |
applications
The applications the user is logged in to. |
protected int |
counter
Number of applications using the security handler. |
protected org.apache.cocoon.auth.User |
user
The corresponding user. |
Constructor Summary | |
LoginInfo(org.apache.cocoon.auth.User aUser)
Instantiate new info object. |
Method Summary | |
void |
decUsageCounter(String appName)
Notification of an application that is not using the handler anymore. |
List |
getApplications()
Return the list of all applications. |
org.apache.cocoon.auth.User |
getUser()
Return the corresponding user. |
void |
incUsageCounter(String appName)
Notification of another application using the handler. |
boolean |
isUsed()
Is the handler used by any application. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int counter
protected final org.apache.cocoon.auth.User user
protected List applications
Constructor Detail |
public LoginInfo(org.apache.cocoon.auth.User aUser)
aUser
- The user object returned by the security handler.Method Detail |
public void incUsageCounter(String appName)
appName
- The application name.public void decUsageCounter(String appName)
appName
- The application name.public boolean isUsed()
public org.apache.cocoon.auth.User getUser()
public List getApplications()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |