@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 |
getLocation()
Returns the location of this user.
|
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 |
getProvince()
Returns the province of this user.
|
List<javax.faces.model.SelectItem> |
getProvinces()
Gets the list provinces of the event.
|
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 |
setLocation(String location)
Sets the location of the user.
|
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 |
setProvince(String province)
Sets the province of the user.
|
void |
setProvinces(List<javax.faces.model.SelectItem> provinces)
Sets the list provinces of the event.
|
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 List<javax.faces.model.SelectItem> getProvinces()
public void setProvinces(List<javax.faces.model.SelectItem> provinces)
provinces - the event.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 getLocation()
public void setLocation(String location)
location - the location of the user. This parameter must be a valid location
string, non empty and non null string with a maximum
length of 100 chars.NullPointerException - if null is passed as parameter.IllegalArgumentException - if the string passed is not a valid location string.public String getProvince()
public void setProvince(String province)
province - the province of the user. This parameter must be a valid province
string, non empty and non null string with a maximum
length of 100 chars.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.