|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.auth.impl.LoginInfo
public class 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 User |
user
The corresponding user. |
| Constructor Summary | |
|---|---|
LoginInfo(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. |
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 User user
protected List applications
| Constructor Detail |
|---|
public LoginInfo(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 User getUser()
public List getApplications()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||