| Line 1... |
Line 1... |
| 1 |
package org.tela_botanica.client;
|
1 |
package org.tela_botanica.client;
|
| Line 2... |
Line 2... |
| 2 |
|
2 |
|
| 3 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
3 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
| 4 |
import org.tela_botanica.client.modeles.PersonneListe;
|
4 |
import org.tela_botanica.client.modeles.PersonneListe;
|
| - |
|
5 |
import org.tela_botanica.client.modeles.PersonnesAsyncDao;
|
| - |
|
6 |
import org.tela_botanica.client.modeles.ProjetsListe;
|
| 5 |
import org.tela_botanica.client.modeles.PersonneListeAsyncDao;
|
7 |
import org.tela_botanica.client.modeles.ProjetsListeAsyncDao;
|
| 6 |
import org.tela_botanica.client.modeles.PublicationListe;
|
8 |
import org.tela_botanica.client.modeles.PublicationListe;
|
| 7 |
import org.tela_botanica.client.modeles.PublicationListeAsyncDao;
|
9 |
import org.tela_botanica.client.modeles.PublicationListeAsyncDao;
|
| 8 |
import org.tela_botanica.client.modeles.Structure;
|
10 |
import org.tela_botanica.client.modeles.Structure;
|
| 9 |
import org.tela_botanica.client.modeles.StructureAsyncDao;
|
11 |
import org.tela_botanica.client.modeles.StructureAsyncDao;
|
| Line 13... |
Line 15... |
| 13 |
import org.tela_botanica.client.modeles.UtilisateurAsyncDao;
|
15 |
import org.tela_botanica.client.modeles.UtilisateurAsyncDao;
|
| 14 |
import org.tela_botanica.client.modeles.ValeurListe;
|
16 |
import org.tela_botanica.client.modeles.ValeurListe;
|
| 15 |
import org.tela_botanica.client.modeles.ValeurListeAsyncDao;
|
17 |
import org.tela_botanica.client.modeles.ValeurListeAsyncDao;
|
| Line 16... |
Line 18... |
| 16 |
|
18 |
|
| - |
|
19 |
import com.extjs.gxt.ui.client.Registry;
|
| Line 17... |
Line 20... |
| 17 |
import com.extjs.gxt.ui.client.Registry;
|
20 |
import com.google.gwt.user.client.Window;
|
| 18 |
|
21 |
|
| Line 19... |
Line 22... |
| 19 |
// TODO : le transformer en SINGLETON
|
22 |
// TODO : le transformer en SINGLETON
|
| Line 32... |
Line 35... |
| 32 |
((Mediateur) Registry.get(RegistreId.MEDIATEUR)).afficherListeValeurs((ValeurListe) nouvelleDonnees);
|
35 |
((Mediateur) Registry.get(RegistreId.MEDIATEUR)).afficherListeValeurs((ValeurListe) nouvelleDonnees);
|
| 33 |
} else if (nouvelleDonnees instanceof PublicationListe) {
|
36 |
} else if (nouvelleDonnees instanceof PublicationListe) {
|
| 34 |
((Mediateur) Registry.get(RegistreId.MEDIATEUR)).afficherListePublication((PublicationListe) nouvelleDonnees);
|
37 |
((Mediateur) Registry.get(RegistreId.MEDIATEUR)).afficherListePublication((PublicationListe) nouvelleDonnees);
|
| 35 |
} else if (nouvelleDonnees instanceof PersonneListe) {
|
38 |
} else if (nouvelleDonnees instanceof PersonneListe) {
|
| 36 |
((Mediateur) Registry.get(RegistreId.MEDIATEUR)).afficherListePersonnes((PersonneListe) nouvelleDonnees);
|
39 |
((Mediateur) Registry.get(RegistreId.MEDIATEUR)).afficherListePersonnes((PersonneListe) nouvelleDonnees);
|
| - |
|
40 |
} else if (nouvelleDonnees instanceof ProjetsListe) {
|
| - |
|
41 |
((Mediateur) Registry.get(RegistreId.MEDIATEUR)).afficherListeProjets((ProjetsListe) nouvelleDonnees);
|
| 37 |
}
|
42 |
}
|
| Line 38... |
Line 43... |
| 38 |
|
43 |
|
| Line 39... |
Line 44... |
| 39 |
}
|
44 |
}
|
| Line 51... |
Line 56... |
| 51 |
public void obtenirListePersonnes() {
|
56 |
public void obtenirListePersonnes() {
|
| Line 52... |
Line 57... |
| 52 |
|
57 |
|
| 53 |
/*
|
58 |
/*
|
| 54 |
* Lance le service JREST associƩ au personne via la class PersonneListeAsyncDAO
|
59 |
* Lance le service JREST associƩ au personne via la class PersonneListeAsyncDAO
|
| 55 |
* */
|
60 |
* */
|
| 56 |
PersonneListeAsyncDao plDao = new PersonneListeAsyncDao(this);
|
61 |
PersonnesAsyncDao plDao = new PersonnesAsyncDao(this);
|
| Line 57... |
Line 62... |
| 57 |
plDao.obtenirListePersonnes();
|
62 |
plDao.obtenirListePersonnes();
|
| Line 58... |
Line 63... |
| 58 |
|
63 |
|
| Line 88... |
Line 93... |
| 88 |
public void supprimerListeStructure(Rafraichissable r, String idUtilisateur, String idStr) {
|
93 |
public void supprimerListeStructure(Rafraichissable r, String idUtilisateur, String idStr) {
|
| 89 |
StructureAsyncDao structureDao = new StructureAsyncDao();
|
94 |
StructureAsyncDao structureDao = new StructureAsyncDao();
|
| 90 |
structureDao.supprimer(r, idUtilisateur, idStr);
|
95 |
structureDao.supprimer(r, idUtilisateur, idStr);
|
| 91 |
}
|
96 |
}
|
| Line -... |
Line 97... |
| - |
|
97 |
|
| - |
|
98 |
public void obtenirListeProjets () {
|
| - |
|
99 |
ProjetsListeAsyncDao projetsDao = new ProjetsListeAsyncDao(this);
|
| - |
|
100 |
projetsDao.obtenirListeProjets();
|
| - |
|
101 |
|
| - |
|
102 |
}
|
| - |
|
103 |
|
| 92 |
|
104 |
|
| 93 |
}
|
105 |
}
|