@Named(value="registerController") @RequestScoped public class RegisterController extends Object implements Serializable
| Constructor and Description |
|---|
RegisterController()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
confirmRegister()
Gets the token received in the URL and confirms the register.
|
String |
getEmail()
Gets the local variable "email"
|
String |
getError()
Gets the local variable "error"
|
String |
getLogin()
Gets the local variable "login"
|
String |
getName()
Gets the local variable "name"
|
String |
getPassword()
Gets the local variable "password"
|
String |
getPasswordrepeat()
Gets the local variable "passwordrepeat"
|
String |
getSurname()
Gets the local variable "surname"
|
String |
getYesnot()
Gets the local variable "yesnot"
|
String |
registerUser()
Sends the mail to confirm the register and redirects the user to the next page if the login inserted does not exist.
|
void |
setEmail(String email)
Sets a value to the local variable "email"
|
void |
setError(String error)
Sets a value to the local variable "error"
|
void |
setLogin(String login)
Sets a value to the local variable "login"
|
void |
setName(String name)
Sets a value to the local variable "name"
|
void |
setPassword(String password)
Sets a value to the local variable "password"
|
void |
setPasswordrepeat(String passwordrepeat)
Sets a value to the local variable "passwordrepeat"
|
void |
setSurname(String surname)
Sets a value to the local variable "surname"
|
void |
setYesnot(String yesnot)
Sets a value to the local variable "yesnot"
|
public String getLogin()
public void setLogin(String login)
login - a string with the login inserted.public String getName()
public void setName(String name)
name - a string with the name inserted.public String getSurname()
public void setSurname(String surname)
surname - a string with the surname inserted.public String getPassword()
public void setPassword(String password)
password - a string with the password inserted.public String getPasswordrepeat()
public void setPasswordrepeat(String passwordrepeat)
passwordrepeat - a string with the passwordrepeat inserted.public String getEmail()
public void setEmail(String email)
email - a string with the email inserted.public String getError()
public void setError(String error)
error - a string with the error message.public String getYesnot()
public void setYesnot(String yesnot)
yesnot - a string that will be assigned to the variable.public String registerUser()
@PostConstruct public void confirmRegister()
Copyright © 2017. All rights reserved.