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, remove
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exists, get, getAll, remove
public 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 UserDao
loadUserByUsername
in interface org.springframework.security.userdetails.UserDetailsService
username
- the user's usernameorg.springframework.security.userdetails.UsernameNotFoundException
Copyright © 2015. All rights reserved.