-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-Added method setSessionAttributes in LoginController -Added method getPersonalInfo in DAOPersonalInfo -Refactored DAOAPersonalInfo to DAOPersonalInfo -Added method getPersonalInfo to UserRegistry -Added methods getUserByIdOrEmail and isTherapist in UserData -Added Servlet-API in pom.xml
- Loading branch information
1 parent
42a34a5
commit cdebe7d
Showing
5 changed files
with
51 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
package model.service.user; | ||
|
||
import model.DAO.DAOPersonalInfo; | ||
import model.entity.PersonalInfo; | ||
|
||
public class UserRegistry implements UserRegistryInterface { | ||
DAOPersonalInfo db = new DAOPersonalInfo(); | ||
|
||
public boolean firstAccess(int id, String name, String surname) {//TODO e da inserire nel metodo di registrazione! | ||
System.out.println("hello, this is a placeholder"); | ||
return true; //TODO Remove it! | ||
} | ||
|
||
public PersonalInfo getPersonalInfo(int id) { | ||
return db.getPersonalInfo(id); | ||
} | ||
|
||
} |