|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserDAO
The UserDAO is responsible for managing the persistence of application Users. This includes the base User, along with Administrator, Clinician, and Patient entities. It is a component of the Persistance layer of the application. Currently, it contains methods for adding and retrieving both Users and Administrators. In the future, it will also contain methods to handle Patients and Clinicians.
| Method Summary | |
|---|---|
java.lang.String |
addAdministrator(Administrator admin)
This method persists a new administrator. |
java.lang.String |
addPatient(Patient patient)
|
java.lang.String |
addUser(User user)
This method persists a new user. |
Administrator |
getAdministrator(java.lang.String userName,
java.lang.String password)
This method retrieves an Administrator based on their username and password. |
User |
getUser(java.lang.String userName,
java.lang.String password)
The getUser method retrieves a user based on their userName and password. |
| Method Detail |
|---|
java.lang.String addUser(User user)
user - the User to save
User getUser(java.lang.String userName,
java.lang.String password)
userName - the username of the user to findpassword - the password of the user to find
java.lang.String addPatient(Patient patient)
java.lang.String addAdministrator(Administrator admin)
admin - the Administrator to save
Administrator getAdministrator(java.lang.String userName,
java.lang.String password)
userName - the username of the Administrator to findpassword - the password of the Administrator to find
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||