de.iai.ilcd.webgui.controller.admin
Class LoginHandler

java.lang.Object
  extended by de.iai.ilcd.webgui.controller.admin.LoginHandler
All Implemented Interfaces:
java.io.Serializable

public class LoginHandler
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
LoginHandler()
          Creates a new instance of LoginHandler
 
Method Summary
 java.lang.String getLoginName()
          Get the current login name
 java.lang.String getPassword()
          Get the current password
 boolean isLoggedIn()
          Determine if a user is currently logged in.
 java.lang.String login()
          Do login by user provided credentials
 void logout()
          Logout the current user
 void setLoginName(java.lang.String loginName)
          Set the login name from user input
 void setPassword(java.lang.String password)
          Set the password from user input
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginHandler

public LoginHandler()
Creates a new instance of LoginHandler

Method Detail

getLoginName

public java.lang.String getLoginName()
Get the current login name

Returns:
current login name

setLoginName

public void setLoginName(java.lang.String loginName)
Set the login name from user input

Parameters:
loginName - current input value

getPassword

public java.lang.String getPassword()
Get the current password

Returns:
current password

setPassword

public void setPassword(java.lang.String password)
Set the password from user input

Parameters:
password - current input value

login

public java.lang.String login()
Do login by user provided credentials

Returns:
always null

logout

public void logout()
Logout the current user


isLoggedIn

public boolean isLoggedIn()
Determine if a user is currently logged in. Delegates to UserLoginActions.isLoggedIn().

Returns:
true if user is logged in, else false