net.sourceforge.apphere.dao.mbeanclient
Class TestUserDAO

java.lang.Object
  extended bynet.sourceforge.apphere.dao.mbeanclient.TestUserDAO
All Implemented Interfaces:
UserDAO

public class TestUserDAO
extends java.lang.Object
implements UserDAO

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

Constructor Summary
TestUserDAO()
           
 
Method Summary
 int addUser(UserValue newDev)
           
 User getUser(int userId)
           
 java.util.List getUsers()
           
 void removeUser(int userId)
           
 void updateUser(UserValue usr)
           
 int validateUser(java.lang.String username, java.lang.String password)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestUserDAO

public TestUserDAO()
Method Detail

validateUser

public int validateUser(java.lang.String username,
                        java.lang.String password)
                 throws AppHereException
Specified by:
validateUser in interface UserDAO
Throws:
AppHereException

addUser

public int addUser(UserValue newDev)
            throws AppHereException
Specified by:
addUser in interface UserDAO
Throws:
AppHereException

updateUser

public void updateUser(UserValue usr)
                throws AppHereException
Specified by:
updateUser in interface UserDAO
Throws:
AppHereException

removeUser

public void removeUser(int userId)
                throws AppHereException
Specified by:
removeUser in interface UserDAO
Throws:
AppHereException

getUsers

public java.util.List getUsers()
                        throws AppHereException
Specified by:
getUsers in interface UserDAO
Throws:
AppHereException

getUser

public User getUser(int userId)
             throws AppHereException
Specified by:
getUser in interface UserDAO
Throws:
AppHereException