RichFaces Photoalbum 4.3.5.Final

org.richfaces.photoalbum.manager
Class UserBean

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

@Named
@SessionScoped
public class UserBean
extends Object
implements Serializable

This bean will work as a part of a simple security checking

Author:
mpetrov
See Also:
Serialized Form

Constructor Summary
UserBean()
           
 
Method Summary
 User facebookLogIn(String facebookId)
           
 String getFbId()
           
 String getFbPhotoUrl()
           
 String getGplusId()
           
 String getPassword()
           
 User getUser()
           
 String getUsername()
           
 User gPlusLogIn(String gPlusId)
           
 boolean isLoggedIn()
           
 boolean isLoggedInFB()
           
 boolean isLoggedInGPlus()
           
 User logIn(String username, String passwordHash)
           
 void logout()
           
 void refreshUser()
           
 void reset()
           
 void setFbPhotoUrl(String fbPhotoUrl)
           
 void setPassword(String password)
           
 void setUsername(String username)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserBean

public UserBean()
Method Detail

getUsername

public String getUsername()

setUsername

public void setUsername(String username)

getPassword

public String getPassword()

setPassword

public void setPassword(String password)

logIn

public User logIn(String username,
                  String passwordHash)
           throws Exception
Throws:
Exception

facebookLogIn

public User facebookLogIn(String facebookId)

gPlusLogIn

public User gPlusLogIn(String gPlusId)

getUser

@Produces
@Preferred
public User getUser()

refreshUser

public void refreshUser()

isLoggedIn

public boolean isLoggedIn()

isLoggedInFB

public boolean isLoggedInFB()

isLoggedInGPlus

public boolean isLoggedInGPlus()

logout

public void logout()

reset

public void reset()

getFbPhotoUrl

public String getFbPhotoUrl()

setFbPhotoUrl

public void setFbPhotoUrl(String fbPhotoUrl)

toString

public String toString()
Overrides:
toString in class Object

getFbId

public String getFbId()

getGplusId

public String getGplusId()

RichFaces Photoalbum 4.3.5.Final

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