1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
/**
*
* @author alex
*/
@WebService(serviceName = "UtilisateurWs")
public class UtilisateurWs {
@EJB(name = "Dst")
private DstSessionLocal dst;
@EJB
@WebMethod(operationName = "hello")
public String Bonjour(@WebParam(name = "name") String txt) {
return "Bonjour " + txt + " !";
}
@EJB
@WebMethod(operationName = "listeProcByCat")
public List<Procedures> listeProcByCat(@WebParam(name = "idCentre")int idC, @WebParam(name = "idCp")int idCp){
return dst.listeProcByCat(dst.getCentreById(idC), dst.getCatProc(idCp));
}
@EJB
@WebMethod(operationName = "loadListAcq")
public List<ListeAcqu> loadListAcq(@WebParam(name = "id")int id){
return dst.loadListAcq(dst.getProceduresById(id));
}
@EJB
@WebMethod(operationName = "listProcByDiag")
public List<CatProc> listeProcByDiag(){
return dst.listeProcByDiag();
}
@EJB
@WebMethod(operationName = "listUt")
public List<Utilisateur> listeUtByCentre(@WebParam(name = "id")int id){
return dst.listeUtByCentre(dst.getCentreById(id));
} |
Partager