@Named @ApplicationScoped public class Authenticator extends Object implements Serializable
| Constructor and Description |
|---|
Authenticator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate()
Method, that invoked when user try to login to the application.
|
User |
getUser() |
void |
goToRegister()
Method, that invoked when user want to go to the registration screen
|
boolean |
isConversationStarted() |
boolean |
isLoginFailed() |
void |
logout()
Method, that invoked when user logout from application.
|
void |
register(User user)
Method, that invoked when user try to register in the application.
|
void |
setConversationStarted(boolean conversationStarted) |
void |
setLoginFailed(boolean loginFailed) |
void |
setUser(User user) |
String |
startConversation()
Method, that invoked when new conversation is started.
|
public User getUser()
public void setUser(User user)
public boolean authenticate()
public void logout()
public void register(User user)
user - - user object, that will be passed to registration procedure.public void goToRegister()
@PostConstruct public String startConversation()
public boolean isLoginFailed()
public void setLoginFailed(boolean loginFailed)
public boolean isConversationStarted()
public void setConversationStarted(boolean conversationStarted)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.