net.bryansaunders.jee6divelog.bean
Class LoginBean

java.lang.Object
  extended by net.bryansaunders.jee6divelog.bean.LoginBean

@Named(value="loginBean")
@RequestScoped
public class LoginBean
extends java.lang.Object

Backing Bean for Login Page. Name: loginBean, Scope: Request

Author:
Bryan Saunders

Field Summary
static java.lang.String FAILURE
          Login Failure.
static java.lang.String SUCCESS
          Login Success.
 
Constructor Summary
LoginBean()
           
 
Method Summary
 java.lang.String getEmail()
          Get the email.
 java.lang.String getPassword()
          Get the password.
 boolean isLoginError()
          Get the loginError.
 boolean isRememberMe()
          Get the rememberMe.
 java.lang.String login()
          Logs the user in.
 void setCredentials(Credentials newCredentials)
          Set the credentials.
 void setEmail(java.lang.String newEmail)
          Set the email.
 void setIdentity(Identity newIdentity)
          Set the identity.
 void setLoginError(boolean newLoginError)
          Set the loginError.
 void setPassword(java.lang.String newPassword)
          Set the password.
 void setRememberMe(boolean newRememberMe)
          Set the rememberMe.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUCCESS

public static final java.lang.String SUCCESS
Login Success.

See Also:
Constant Field Values

FAILURE

public static final java.lang.String FAILURE
Login Failure.

See Also:
Constant Field Values
Constructor Detail

LoginBean

public LoginBean()
Method Detail

login

public java.lang.String login()
Logs the user in.

Returns:
Login Result

isLoginError

public boolean isLoginError()
Get the loginError.

Returns:
the loginError

setLoginError

public void setLoginError(boolean newLoginError)
Set the loginError.

Parameters:
newLoginError - the loginError to set

isRememberMe

public boolean isRememberMe()
Get the rememberMe.

Returns:
the rememberMe

setRememberMe

public void setRememberMe(boolean newRememberMe)
Set the rememberMe.

Parameters:
newRememberMe - the rememberMe to set

getEmail

public java.lang.String getEmail()
Get the email.

Returns:
the email

setEmail

public void setEmail(java.lang.String newEmail)
Set the email.

Parameters:
newEmail - the email to set

getPassword

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

Returns:
the password

setPassword

public void setPassword(java.lang.String newPassword)
Set the password.

Parameters:
newPassword - the password to set

setIdentity

public void setIdentity(Identity newIdentity)
Set the identity.

Parameters:
newIdentity - the identity to set

setCredentials

public void setCredentials(Credentials newCredentials)
Set the credentials.

Parameters:
newCredentials - the credentials to set


Copyright © 2012 Bryan Saunders. All Rights Reserved.