edu.jhu.tmaj.client.shared
Class CurrentUser

java.lang.Object
  extended by edu.jhu.tmaj.client.shared.CurrentUser

public final class CurrentUser
extends java.lang.Object

Stores information about the user who is currently using the application.


Method Summary
static java.lang.String getPassword()
          Returns the digested password of the person using this application.
static UserBean getUserBean()
          Returns the UserBean of the person using this application.
static int getUserID()
          Gets the userID of the person currently logged on.
static java.lang.String getUsername()
          Returns the user name of the person using this application.
static void reset()
          Gets a fresh copy of the userBean data from the database.
static void setUserBean(UserBean user_bean)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getUsername

public static java.lang.String getUsername()
Returns the user name of the person using this application.


getPassword

public static java.lang.String getPassword()
Returns the digested password of the person using this application.


getUserBean

public static UserBean getUserBean()
Returns the UserBean of the person using this application.


getUserID

public static int getUserID()
Gets the userID of the person currently logged on.


setUserBean

public static void setUserBean(UserBean user_bean)

reset

public static void reset()
Gets a fresh copy of the userBean data from the database. This is useful if the info has been changed on the server side but not updated on the client side. For example, maybe the user went into the admin app and updated their permissions.