@Named(value="loginController") @SessionScoped public class LoginController extends Object implements Serializable
| Constructor and Description |
|---|
LoginController()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
doLogin()
Login a user if this user exist or create a error message if this user
don't exist
|
String |
doLogout()
Logout a user
|
String |
getIslogin()
Returns if the user is logged.
|
String |
getLogin()
Returns the login of this user.
|
String |
getMessage()
Returns the error message.
|
String |
getPassword()
Returns the password of this user.
|
void |
setIslogin(String islogin)
Sets true if exist an user logged or empty if not exist a user logged
|
void |
setLogin(String login)
Sets the login of this user.
|
void |
setMessage(String message)
Sets the error message
|
void |
setPassword(String password)
Sets the password of this user.
|
public String getPassword()
public void setPassword(String password)
password - the password of this user.public String getLogin()
public void setLogin(String login)
login - the login of this user.public String getMessage()
public void setMessage(String message)
message - the error messagepublic String getIslogin()
public void setIslogin(String islogin)
islogin - islogin with true if exist an user logged or empty if not
exist a user loggedpublic String doLogin()
public String doLogout()
Copyright © 2017. All rights reserved.