Files
myhealth/1.sources/MyHealth/src/ejb/systemAdmin/SystemAdminFacadeRemote.java
2019-12-30 10:08:53 +01:00

48 lines
1.4 KiB
Java

package ejb.systemAdmin;
import java.util.List;
import javax.ejb.Remote;
import TO.FamilyDoctorTO;
import TO.LoggedUserTO;
import TO.MedicalSpecialtyTO;
import TO.PrimaryHealthCareCenterTO;
/**
*
* @author Marcos García Núñez (mgarcianun@uoc.edu)
*
*/
@Remote
public interface SystemAdminFacadeRemote {
/**
* Definimos la interfaz remota
*/
public LoggedUserTO login(String id, String pwd);
public MedicalSpecialtyTO updateSpecialty(int id, String name, String description) throws Exception;
public MedicalSpecialtyTO findSpecialtyByName(String name);
public void deleteSpecialty(int id) throws Exception;
public MedicalSpecialtyTO insertSpecialty(String name, String description) throws Exception;
public PrimaryHealthCareCenterTO updateHealthCareCenter(int id, String name, String location) throws Exception;
public PrimaryHealthCareCenterTO findHealthCareCenterByName(String name);
public void deleteHealthCareCenter(int id) throws Exception;
public PrimaryHealthCareCenterTO insertHealthCareCenter(String name, String location) throws Exception;
public Long getCAPCount();
public List<PrimaryHealthCareCenterTO> listCAPsPaged(int pageNumber, int pageSize);
public List<FamilyDoctorTO> listAllFamilyDoctorsByCAPPaged(int primaryHealthCareCenterId, int pageNumber, int pageSize);
public Long getPatientCount(int primaryHealthCareCenterId);
}