org.appfuse.persistence
Interface UserDAO

All Superinterfaces:
DAO
All Known Implementing Classes:
UserDAOHibernate

public interface UserDAO
extends DAO

User Data Access Object (DAO) interface.

View Source

Version:
$Revision: 1.1 $ $Date: 2004/03/31 13:04:28 $
Author:
Matt Raible

Method Summary
 User getUser(String username)
          Gets users information based on login name.
 UserCookie getUserCookie(String cookieId)
          Gets a userCookie object from the database, based on cookieId
 List getUsers(User user)
          Gets a list of users based on parameters passed in.
 void removeUser(User user)
          Removes a user from the database by id
 void removeUserCookies(String username)
          Removes all cookies for a specified username
 User saveUser(User user)
          Saves a user's information
 void saveUserCookie(UserCookie cookie)
          Saves a userCookie object to the database
 

Method Detail

getUser

public User getUser(String username)
             throws DAOException
Gets users information based on login name.

Parameters:
username - the current username
Returns:
user populated user object
Throws:
DAOException

getUsers

public List getUsers(User user)
              throws DAOException
Gets a list of users based on parameters passed in.

Returns:
List populated list of users
Throws:
DAOException

saveUser

public User saveUser(User user)
              throws DAOException
Saves a user's information

Parameters:
user - the object to be saved
Throws:
DAOException

removeUser

public void removeUser(User user)
                throws DAOException
Removes a user from the database by id

Parameters:
user - the object to be removed
Throws:
DAOException

getUserCookie

public UserCookie getUserCookie(String cookieId)
                         throws DAOException
Gets a userCookie object from the database, based on cookieId

Parameters:
cookieId -
Throws:
DAOException

saveUserCookie

public void saveUserCookie(UserCookie cookie)
                    throws DAOException
Saves a userCookie object to the database

Parameters:
cookie -
Throws:
DAOException

removeUserCookies

public void removeUserCookies(String username)
Removes all cookies for a specified username

Parameters:
username -


Copyright © 2002-2004