org.appfuse.dao
Interface UserDao

All Superinterfaces:
GenericDao<org.appfuse.model.User,java.lang.Long>
All Known Implementing Classes:
UserDaoJpa

public interface UserDao
extends GenericDao<org.appfuse.model.User,java.lang.Long>

User Data Access Object (GenericDao) interface.

Author:
Matt Raible

Method Summary
 java.lang.String getUserPassword(java.lang.String username)
          Retrieves the password in DB for a user
 java.util.List<org.appfuse.model.User> getUsers()
          Gets a list of users ordered by the uppercase version of their username.
 org.acegisecurity.userdetails.UserDetails loadUserByUsername(java.lang.String username)
          Gets users information based on login name.
 org.appfuse.model.User saveUser(org.appfuse.model.User user)
          Saves a user's information.
 
Methods inherited from interface org.appfuse.dao.GenericDao
exists, get, getAll, remove, save
 

Method Detail

loadUserByUsername

@Transactional
org.acegisecurity.userdetails.UserDetails loadUserByUsername(java.lang.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

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

Returns:
List populated list of users

saveUser

org.appfuse.model.User saveUser(org.appfuse.model.User user)
Saves a user's information.

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

getUserPassword

@Transactional(propagation=NOT_SUPPORTED)
java.lang.String getUserPassword(java.lang.String username)
Retrieves the password in DB for a user

Parameters:
username - the user's username
Returns:
the password in DB, if the user is already persisted


Copyright © 2003-2007. All Rights Reserved.