com.gisgraphy.dao
Interface UserDao

All Superinterfaces:
GenericDao<User,Long>
All Known Implementing Classes:
UserDaoHibernate

public interface UserDao
extends GenericDao<User,Long>

User Data Access Object (GenericDao) interface.

Author:
Matt Raible

Method Summary
 List<User> getUsers()
          Gets a list of users ordered by the uppercase version of their username.
 org.acegisecurity.userdetails.UserDetails loadUserByUsername(String username)
          Gets users information based on login name.
 User saveUser(User user)
          Saves a user's information.
 
Methods inherited from interface com.gisgraphy.dao.GenericDao
exists, get, getAll, remove, save
 

Method Detail

loadUserByUsername

org.acegisecurity.userdetails.UserDetails loadUserByUsername(String username)
                                                             throws org.acegisecurity.userdetails.UsernameNotFoundException
Gets users information based on login name.

Parameters:
username - the user's username
Returns:
userDetails populated userDetails object
Throws:
org.acegisecurity.userdetails.UsernameNotFoundException - thrown when user not found in database

getUsers

List<User> getUsers()
Gets a list of users ordered by the uppercase version of their username.

Returns:
List populated list of users

saveUser

User saveUser(User user)
Saves a user's information.

Parameters:
user - the object to be saved
Returns:
the persisted User object


Copyright © 2012. All Rights Reserved.