net.sf.mud4j.dao
Interface AccountDao

All Known Implementing Classes:
AccountDaoHibernate

public interface AccountDao

Account dao interface.

Author:
Matthew Purland

Method Summary
 java.util.List getAccounts()
          Get list of accounts.
 Account loadAccount(java.lang.String username)
          Load an account from the username.
 Account loadAccount(java.lang.String username, java.lang.String password)
          Load an account from the username accessed by a password.
 

Method Detail

getAccounts

java.util.List getAccounts()
                           throws org.springframework.dao.DataAccessException
Get list of accounts.

Returns:
Returns a list of accounts.
Throws:
org.springframework.dao.DataAccessException - in case of data access I/O problems

loadAccount

Account loadAccount(java.lang.String username)
                    throws org.springframework.dao.DataAccessException
Load an account from the username.

Parameters:
username - Username of the account to load.
Returns:
Returns an account from the username.
Throws:
org.springframework.dao.DataAccessException - in case of data access I/O problems

loadAccount

Account loadAccount(java.lang.String username,
                    java.lang.String password)
                    throws org.springframework.dao.DataAccessException,
                           org.springframework.dao.PermissionDeniedDataAccessException
Load an account from the username accessed by a password.

Parameters:
username - Username of the account.
password - Password of the account to verify.
Returns:
Returns an account if verified.
Throws:
org.springframework.dao.DataAccessException - in case of data access I/O
org.springframework.dao.PermissionDeniedDataAccessException - if password is incorrect


Copyright © 2006-2007 mud4j. All Rights Reserved.