public class AdminProfile extends Object implements javax.servlet.http.HttpSessionBindingListener
Constructor and Description |
---|
AdminProfile()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getLoggedOn()
Get the logged-in status, which will be false if the log-in did not succeed, or
timed out.
|
String |
getLoginTime()
Get the current login time as a string.
|
long |
getLoginTimeLong()
Get the current login time as a long.
|
boolean |
getManageUsers()
Get whether this user can manage users.
|
PasswordMapper |
getPasswordMapper()
Get the password mapper object.
|
String |
getUserID()
Get the admin user id.
|
void |
login(IThreadContext threadContext,
String userID,
String userPassword)
Log on the user, with the already-set user id and company
description.
|
void |
logout()
Log out the current user.
|
String |
session()
Get the current session identifier.
|
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent e) |
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent e) |
public static final String _rcsid
public String session()
public String getUserID()
public boolean getManageUsers()
public void logout()
public void login(IThreadContext threadContext, String userID, String userPassword)
userPassword
- is the login password for the user.public boolean getLoggedOn()
public String getLoginTime()
public long getLoginTimeLong()
public PasswordMapper getPasswordMapper()
public void valueBound(javax.servlet.http.HttpSessionBindingEvent e)
valueBound
in interface javax.servlet.http.HttpSessionBindingListener
public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent e)
valueUnbound
in interface javax.servlet.http.HttpSessionBindingListener