org.appfuse.dao.UserDao Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appfuse-hibernate Show documentation
Show all versions of appfuse-hibernate Show documentation
AppFuse DAO backend implemented with Hibernate (http://hibernate.org).
package org.appfuse.dao;
import java.util.List;
import org.acegisecurity.userdetails.UserDetails;
import org.acegisecurity.userdetails.UsernameNotFoundException;
import org.appfuse.model.User;
import org.springframework.transaction.annotation.Transactional;
/**
* User Data Access Object (GenericDao) interface.
*
* @author Matt Raible
*/
public interface UserDao extends GenericDao {
/**
* Gets users information based on login name.
* @param username the user's username
* @return userDetails populated userDetails object
*/
@Transactional
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException;
/**
* Gets a list of users ordered by the uppercase version of their username.
*
* @return List populated list of users
*/
public List getUsers();
/**
* Saves a user's information.
* @param user the object to be saved
*/
public void saveUser(User user);
}