@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.
|
boolean |
authenticateWithFacebook() |
boolean |
authenticateWithGPlus() |
void |
editUser(SimpleEvent se)
Method, that invoked when user want to edit her profile.
|
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) |
void |
startConversation()
Method, that invoked when new conversation is started.
|
public User getUser()
public void setUser(User user)
public boolean authenticate()
public boolean authenticateWithFacebook()
public boolean authenticateWithGPlus()
public void logout()
public void register(User user)
user
- - user object, that will be passed to registration procedure.public void editUser(@Observes SimpleEvent se)
public void goToRegister()
@PostConstruct public void startConversation()
public boolean isLoginFailed()
public void setLoginFailed(boolean loginFailed)
public boolean isConversationStarted()
public void setConversationStarted(boolean conversationStarted)
Copyright © 2015. All rights reserved.