Quitado parámetro id en los registros de usuarios.
This commit is contained in:
@@ -96,7 +96,7 @@ public class ProfileFacadeBean implements ProfileFacadeRemote {
|
|||||||
*
|
*
|
||||||
* @return PatientTO Transfer Object correspondiente al paciente registrado.
|
* @return PatientTO Transfer Object correspondiente al paciente registrado.
|
||||||
*/
|
*/
|
||||||
public PatientTO registerPatient(int id, String nif, String name, String surname, String password, String email) {
|
public PatientTO registerPatient(String nif, String name, String surname, String password, String email) {
|
||||||
PatientJPA pat = new PatientJPA(this.getNextPersonalIdentificationCode(), nif, name, surname, HashUtils.hashMD5(password), email, null);
|
PatientJPA pat = new PatientJPA(this.getNextPersonalIdentificationCode(), nif, name, surname, HashUtils.hashMD5(password), email, null);
|
||||||
entman.persist(pat);
|
entman.persist(pat);
|
||||||
|
|
||||||
@@ -117,7 +117,7 @@ public class ProfileFacadeBean implements ProfileFacadeRemote {
|
|||||||
*
|
*
|
||||||
* @return SpecialistDoctorTO Transfer Object correspondiente al médico especialista registrado.
|
* @return SpecialistDoctorTO Transfer Object correspondiente al médico especialista registrado.
|
||||||
*/
|
*/
|
||||||
public SpecialistDoctorTO registerSpecialistDoctor(int id, String nif, String name, String surname, String password, String email, MedicalSpecialtyTO specialty)
|
public SpecialistDoctorTO registerSpecialistDoctor(String nif, String name, String surname, String password, String email, MedicalSpecialtyTO specialty)
|
||||||
throws Exception {
|
throws Exception {
|
||||||
MedicalSpecialtyJPA ms = entman.find(MedicalSpecialtyJPA.class, specialty.getId());
|
MedicalSpecialtyJPA ms = entman.find(MedicalSpecialtyJPA.class, specialty.getId());
|
||||||
if (ms == null) {
|
if (ms == null) {
|
||||||
@@ -143,7 +143,7 @@ public class ProfileFacadeBean implements ProfileFacadeRemote {
|
|||||||
*
|
*
|
||||||
* @return FamilyDoctorTO Transfer Object correspondiente al médico de familia registrado.
|
* @return FamilyDoctorTO Transfer Object correspondiente al médico de familia registrado.
|
||||||
*/
|
*/
|
||||||
public FamilyDoctorTO registerFamilyDoctor(int id, String nif, String name, String surname, String password, String email, PrimaryHealthCareCenterTO cap) throws Exception {
|
public FamilyDoctorTO registerFamilyDoctor(String nif, String name, String surname, String password, String email, PrimaryHealthCareCenterTO cap) throws Exception {
|
||||||
PrimaryHealthCareCenterJPA phcC = entman.find(PrimaryHealthCareCenterJPA.class, cap.getId());
|
PrimaryHealthCareCenterJPA phcC = entman.find(PrimaryHealthCareCenterJPA.class, cap.getId());
|
||||||
if (phcC == null) {
|
if (phcC == null) {
|
||||||
throw new Exception("No se encuentra el centro de atención primaria con identificador: " + cap.getName());
|
throw new Exception("No se encuentra el centro de atención primaria con identificador: " + cap.getName());
|
||||||
|
|||||||
@@ -18,11 +18,11 @@ public interface ProfileFacadeRemote {
|
|||||||
|
|
||||||
public PatientTO changeFamilyDoctor(int id, int newDoctor) throws Exception;
|
public PatientTO changeFamilyDoctor(int id, int newDoctor) throws Exception;
|
||||||
|
|
||||||
public PatientTO registerPatient(int id, String nif, String name, String surname, String password, String email);
|
public PatientTO registerPatient(String nif, String name, String surname, String password, String email);
|
||||||
|
|
||||||
public SpecialistDoctorTO registerSpecialistDoctor(int id, String nif, String name, String surname, String password, String email, MedicalSpecialtyTO specialty) throws Exception;
|
public SpecialistDoctorTO registerSpecialistDoctor(String nif, String name, String surname, String password, String email, MedicalSpecialtyTO specialty) throws Exception;
|
||||||
|
|
||||||
public FamilyDoctorTO registerFamilyDoctor(int id, String nif, String name, String surname, String password, String email, PrimaryHealthCareCenterTO cap) throws Exception;
|
public FamilyDoctorTO registerFamilyDoctor(String nif, String name, String surname, String password, String email, PrimaryHealthCareCenterTO cap) throws Exception;
|
||||||
|
|
||||||
public PatientTO updatePatientData(int id, String nif, String name, String surname, String password, String email) throws Exception;
|
public PatientTO updatePatientData(int id, String nif, String name, String surname, String password, String email) throws Exception;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user