RichFaces Photoalbum 4.3.5.Final

org.richfaces.photoalbum.manager
Class Authenticator

java.lang.Object
  extended by org.richfaces.photoalbum.manager.Authenticator
All Implemented Interfaces:
Serializable

@Named
@ApplicationScoped
public class Authenticator
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
Authenticator()
           
 
Method Summary
 boolean authenticate()
          Method, that invoked when user try to login to the application.
 boolean authenticateWithFacebook()
           
 boolean authenticateWithGPlus()
           
 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 setAvatarData(File avatarData)
           
 void setConversationStarted(boolean conversationStarted)
           
 void setLoginFailed(boolean loginFailed)
           
 void setUser(User user)
           
 String startConversation()
          Method, that invoked when new conversation is started.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Authenticator

public Authenticator()
Method Detail

getUser

public User getUser()

setUser

public void setUser(User user)

authenticate

public boolean authenticate()
Method, that invoked when user try to login to the application.

Returns:
boolean indicator, that denotative is user succesfully loginned to the system.

authenticateWithFacebook

public boolean authenticateWithFacebook()

authenticateWithGPlus

public boolean authenticateWithGPlus()

logout

public void logout()
Method, that invoked when user logout from application.


register

public void register(User user)
Method, that invoked when user try to register in the application. If registration was successfull, user immediately will be loginned to the system.

Parameters:
user - - user object, that will be passed to registration procedure.

goToRegister

public void goToRegister()
Method, that invoked when user want to go to the registration screen


startConversation

@PostConstruct
public String startConversation()
Method, that invoked when new conversation is started. This method prevent instantiation of couples of conversations when user refresh the whole page.

Returns:
string outcome to properly redirect on the current page(to assign to page parameters conversationId.

isLoginFailed

public boolean isLoginFailed()

setLoginFailed

public void setLoginFailed(boolean loginFailed)

isConversationStarted

public boolean isConversationStarted()

setConversationStarted

public void setConversationStarted(boolean conversationStarted)

setAvatarData

public void setAvatarData(File avatarData)

RichFaces Photoalbum 4.3.5.Final

Copyright © 2014 JBoss by Red Hat. All Rights Reserved.