@Named(value="register") @RequestScoped public class RegisterManagedBean extends Object
| Constructor and Description |
|---|
RegisterManagedBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkToken()
Validates the parameter token.
|
String |
doRedirectToLogin()
Return the id of the login view.
|
String |
doRegisterUser()
Register a user and return the id of the register view.
|
Principal |
getCurrentUser()
Return the current User.
|
String |
getRegisterSuccessMessage()
Return the Register Success Message
|
String |
getRegisterSuccessTitle()
Return the Register Success Title
|
String |
getUserEmail()
Return the User email.
|
String |
getUserIdentificationDocument()
Return the User identification document.
|
String |
getUserLogin()
Return the User login.
|
String |
getUserName()
Return the User name.
|
String |
getUserPassword()
Return the User password.
|
String |
getUserPasswordConfirmation()
Return the User password confirmation.
|
String |
getUserPhone()
Return the User phone.
|
String |
getUserSurname()
Return the User surname.
|
boolean |
isActivateSuccess()
Return true if token parameter is valid and the user was successfully
activated, false otherwise.
|
boolean |
isError()
Return true if there are errors in the register and false otherwise.
|
boolean |
isRegisterSuccess()
Return true if the user was registered and false otherwise.
|
void |
setUserEmail(String userEmail)
Set the user Email.
|
void |
setUserIdentificationDocument(String userIdentificationDocument)
Set the user Identification Document.
|
void |
setUserLogin(String userLogin)
Set the user login.
|
void |
setUserName(String userName)
Set the user name.
|
void |
setUserPassword(String userPassword)
Set the user password.
|
void |
setUserPasswordConfirmation(String userPasswordConfirmation)
Set the user password confirmation.
|
void |
setUserPhone(String userPhone)
Set the user Phone.
|
void |
setUserSurname(String userSurname)
Set the user surname.
|
@PostConstruct public void checkToken()
public String doRegisterUser()
public String getRegisterSuccessTitle()
public String getRegisterSuccessMessage()
public String getUserLogin()
public void setUserLogin(String userLogin)
userLogin - The new user login.public String getUserName()
public void setUserName(String userName)
userName - The new user name.public String getUserSurname()
public void setUserSurname(String userSurname)
userSurname - The new user surname.public String getUserPassword()
public void setUserPassword(String userPassword)
userPassword - The new user password.public String getUserPasswordConfirmation()
public void setUserPasswordConfirmation(String userPasswordConfirmation)
userPasswordConfirmation - The new user password confirmation.public String getUserIdentificationDocument()
public void setUserIdentificationDocument(String userIdentificationDocument)
userIdentificationDocument - The new user Identification Document.public String getUserPhone()
public void setUserPhone(String userPhone)
userPhone - The new user Phone.public String getUserEmail()
public void setUserEmail(String userEmail)
userEmail - The new user Email.public Principal getCurrentUser()
public boolean isError()
public boolean isRegisterSuccess()
public boolean isActivateSuccess()
public String doRedirectToLogin()
Copyright © 2017. All rights reserved.