únicos para (Pacientes, medicos de familia, medicos especialista y administradores). Nuevos métodos en EJB común para consultar Entidades por Id y por código (Para el login).
35 lines
1.5 KiB
Java
35 lines
1.5 KiB
Java
package ejb.profile;
|
|
|
|
import javax.ejb.Remote;
|
|
|
|
import TO.FamilyDoctorTO;
|
|
import TO.MedicalSpecialtyTO;
|
|
import TO.PatientTO;
|
|
import TO.PrimaryHealthCareCenterTO;
|
|
import TO.SpecialistDoctorTO;
|
|
|
|
/**
|
|
*
|
|
* @author Marcos García Núñez (mgarcianun@uoc.edu)
|
|
*
|
|
*/
|
|
@Remote
|
|
public interface ProfileFacadeRemote {
|
|
|
|
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 SpecialistDoctorTO registerSpecialistDoctor(int id, 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 PatientTO updatePatientData(int id, String nif, String name, String surname, String password, String email) throws Exception;
|
|
|
|
public SpecialistDoctorTO updateSpecialistDoctorData(int id, String nif, String name, String surname, String password, String email, MedicalSpecialtyTO specialty) throws Exception;
|
|
|
|
public FamilyDoctorTO updateFamilyDoctorData(int id, String nif, String name, String surname, String password, String email, PrimaryHealthCareCenterTO cap) throws Exception;
|
|
|
|
public FamilyDoctorTO changePrimaryHealthCareCenter(int ProfessionalNumberId, PrimaryHealthCareCenterTO newCenter) throws Exception;
|
|
|
|
} |