public class AdminProfile extends java.lang.Object implements javax.servlet.http.HttpSessionBindingListener, IAuthorizer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
_rcsid |
CAPABILITY_EDIT_CONNECTIONS, CAPABILITY_EDIT_JOBS, CAPABILITY_RUN_JOBS, CAPABILITY_VIEW_CONNECTIONS, CAPABILITY_VIEW_JOBS, CAPABILITY_VIEW_REPORTS
Constructor and Description |
---|
AdminProfile()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkAllowed(IThreadContext threadContext,
int capability)
Check user capability
|
boolean |
getLoggedOn()
Get the logged-in status, which will be false if the log-in did not succeed, or
timed out.
|
java.lang.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.
|
java.lang.String |
getUserID()
Get the admin user id.
|
void |
login(IThreadContext threadContext,
java.lang.String userID,
java.lang.String userPassword)
Log on the user, with the already-set user id and company
description.
|
void |
logout()
Log out the current user.
|
java.lang.String |
session()
Get the current session identifier.
|
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent e) |
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent e) |
public static final java.lang.String _rcsid
public java.lang.String session()
public java.lang.String getUserID()
public boolean getManageUsers()
public void logout()
public void login(IThreadContext threadContext, java.lang.String userID, java.lang.String userPassword)
userPassword
- is the login password for the user.public boolean getLoggedOn()
public java.lang.String getLoginTime()
public long getLoginTimeLong()
public PasswordMapper getPasswordMapper()
public boolean checkAllowed(IThreadContext threadContext, int capability) throws ManifoldCFException
checkAllowed
in interface IAuthorizer
ManifoldCFException
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