net.sourceforge.apphere.dao
Interface UserDAO

All Known Subinterfaces:
TestImplMBean
All Known Implementing Classes:
TestImpl, TestUserDAO

public interface UserDAO

Author:
Dewi Roberts Chimera - Institute for Socio-Technical Innovation and Research University of Essex

Method Summary
 int addUser(UserValue newUser)
           
 User getUser(int userId)
           
 java.util.List getUsers()
           
 void removeUser(int userId)
           
 void updateUser(UserValue newUserInfo)
           
 int validateUser(java.lang.String username, java.lang.String password)
           
 

Method Detail

validateUser

public int validateUser(java.lang.String username,
                        java.lang.String password)
                 throws AppHereException
Throws:
AppHereException

getUser

public User getUser(int userId)
             throws AppHereException
Throws:
AppHereException

addUser

public int addUser(UserValue newUser)
            throws AppHereException
Throws:
AppHereException

updateUser

public void updateUser(UserValue newUserInfo)
                throws AppHereException
Throws:
AppHereException

removeUser

public void removeUser(int userId)
                throws AppHereException
Throws:
AppHereException

getUsers

public java.util.List getUsers()
                        throws AppHereException
Throws:
AppHereException