| |
|
| java.lang.Object org.apache.cocoon.auth.impl.LoginInfo
LoginInfo | public class LoginInfo implements Serializable(Code) | | This class keeps track of the number of applications a user is logged into
using the same security handler.
version: $Id: LoginInfo.java 433543 2006-08-22 06:22:54Z crossley $ |
Field Summary | |
protected List | applications The applications the user is logged in to. | protected int | counter Number of applications using the security handler. | final protected User | user The corresponding user. |
Constructor Summary | |
public | LoginInfo(User aUser) Instantiate new info object. |
Method Summary | |
public void | decUsageCounter(String appName) Notification of an application that is not using the handler anymore. | public List | getApplications() Return the list of all applications. | public User | getUser() Return the corresponding user. | public void | incUsageCounter(String appName) Notification of another application using the handler. | public boolean | isUsed() Is the handler used by any application. |
applications | protected List applications(Code) | | The applications the user is logged in to.
|
counter | protected int counter(Code) | | Number of applications using the security handler.
|
user | final protected User user(Code) | | The corresponding user.
|
LoginInfo | public LoginInfo(User aUser)(Code) | | Instantiate new info object.
Parameters: aUser - The user object returned by the security handler. |
decUsageCounter | public void decUsageCounter(String appName)(Code) | | Notification of an application that is not using the handler anymore.
Parameters: appName - The application name. |
getApplications | public List getApplications()(Code) | | Return the list of all applications.
The list containing all applications this user is logged in to. |
getUser | public User getUser()(Code) | | Return the corresponding user.
The user generated by the security handler. |
incUsageCounter | public void incUsageCounter(String appName)(Code) | | Notification of another application using the handler.
Parameters: appName - The application name. |
isUsed | public boolean isUsed()(Code) | | Is the handler used by any application.
true if it's used, otherwise false. |
|
|
|