org.richfaces.photoalbum.bean
Class UserBean
java.lang.Object
org.richfaces.photoalbum.bean.UserBean
- All Implemented Interfaces:
- Serializable
@Named
@ApplicationScoped
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserBean
public UserBean()
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
getUser
@Produces
@Preferred
public User getUser()
refreshUser
public void refreshUser()
isLoggedIn
public boolean isLoggedIn()
logout
public void logout()
reset
public void reset()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.