public class UserDaoHibernate extends GenericDaoHibernate<User,Long> implements UserDao, org.springframework.security.userdetails.UserDetailsService
log| Constructor and Description |
|---|
UserDaoHibernate()
Constructor that sets the entity to User.class.
|
| Modifier and Type | Method and Description |
|---|---|
List<User> |
getUsers()
Gets a list of users ordered by the uppercase version of their username.
|
org.springframework.security.userdetails.UserDetails |
loadUserByUsername(String username)
Gets users information based on login name.
|
User |
save(User user)
Overridden simply to call the saveUser method.
|
User |
saveUser(User user)
Saves a user's information.
|
exists, get, getAll, removecheckDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexists, get, getAll, removepublic UserDaoHibernate()
public List<User> getUsers()
public User save(User user)
save in interface GenericDao<User,Long>save in class GenericDaoHibernate<User,Long>user - the user to savepublic org.springframework.security.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.userdetails.UsernameNotFoundException
loadUserByUsername in interface UserDaoloadUserByUsername in interface org.springframework.security.userdetails.UserDetailsServiceusername - the user's usernameorg.springframework.security.userdetails.UsernameNotFoundExceptionCopyright © 2015. All rights reserved.