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

    Methods
    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` | `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.springframework.security.userdetails.UserDetails loadUserByUsername(String username)
                                                                                  throws org.springframework.security.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
        `org.springframework.security.userdetails.UsernameNotFoundException`

    - #### 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 © 2015. All rights reserved.