org.apache.manifoldcf.ui.beans
Class AdminProfile

java.lang.Object
  extended by org.apache.manifoldcf.ui.beans.AdminProfile
All Implemented Interfaces:
java.util.EventListener, javax.servlet.http.HttpSessionBindingListener

public class AdminProfile
extends java.lang.Object
implements javax.servlet.http.HttpSessionBindingListener

The profile object contains an admin user's login information, and helps establish the session model for the application. This particular bean maintains the user (against the IAdminUserManager service).


Field Summary
static java.lang.String _rcsid
           
 
Constructor Summary
AdminProfile()
          Constructor.
 
Method Summary
 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.
 java.lang.String getUserID()
          Get the admin user id.
 java.lang.String session()
          Get the current session identifier.
 void setPassword(java.lang.String userPassword)
          Log on the user, with the already-set user id and company description.
 void setUserID(java.lang.String userID)
          Set the admin user id.
 void valueBound(javax.servlet.http.HttpSessionBindingEvent e)
           
 void valueUnbound(javax.servlet.http.HttpSessionBindingEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_rcsid

public static final java.lang.String _rcsid
See Also:
Constant Field Values
Constructor Detail

AdminProfile

public AdminProfile()
Constructor.

Method Detail

session

public java.lang.String session()
Get the current session identifier.

Returns:
the identifier.

setUserID

public void setUserID(java.lang.String userID)
Set the admin user id.

Parameters:
userID - is the ID of the admin user to log in.

getUserID

public java.lang.String getUserID()
Get the admin user id.

Returns:
the last login user id.

getManageUsers

public boolean getManageUsers()
Get whether this user can manage users.

Returns:
true if the user can manage other users.

setPassword

public void setPassword(java.lang.String userPassword)
Log on the user, with the already-set user id and company description.

Parameters:
userPassword - is the login password for the user.

getLoggedOn

public boolean getLoggedOn()
Get the logged-in status, which will be false if the log-in did not succeed, or timed out.

Returns:
the current login status: true if logged in.

getLoginTime

public java.lang.String getLoginTime()
Get the current login time as a string.

Returns:
the last login time.

getLoginTimeLong

public long getLoginTimeLong()
Get the current login time as a long.

Returns:
the last login time.

valueBound

public void valueBound(javax.servlet.http.HttpSessionBindingEvent e)
Specified by:
valueBound in interface javax.servlet.http.HttpSessionBindingListener

valueUnbound

public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent e)
Specified by:
valueUnbound in interface javax.servlet.http.HttpSessionBindingListener