Line 26... |
Line 26... |
26 |
Registry.register(RegistreId.MODELE, this);
|
26 |
Registry.register(RegistreId.MODELE, this);
|
27 |
}
|
27 |
}
|
Line 28... |
Line 28... |
28 |
|
28 |
|
29 |
public void rafraichir(Object nouvelleDonnees) {
|
29 |
public void rafraichir(Object nouvelleDonnees) {
|
30 |
if (nouvelleDonnees instanceof StructureListe) {
|
30 |
if (nouvelleDonnees instanceof StructureListe) {
|
31 |
((Mediateur) Registry.get(RegistreId.MEDIATEUR)).afficherListeInstitutions((StructureListe) nouvelleDonnees);
|
31 |
((Mediateur) Registry.get(RegistreId.MEDIATEUR)).afficherListeStructures((StructureListe) nouvelleDonnees);
|
32 |
} else if (nouvelleDonnees instanceof Utilisateur) {
|
32 |
} else if (nouvelleDonnees instanceof Utilisateur) {
|
33 |
((Mediateur) Registry.get(RegistreId.MEDIATEUR)).mettreAJourEtatIdentification((Utilisateur) nouvelleDonnees);
|
33 |
((Mediateur) Registry.get(RegistreId.MEDIATEUR)).mettreAJourEtatIdentification((Utilisateur) nouvelleDonnees);
|
34 |
} else if (nouvelleDonnees instanceof ValeurListe) {
|
34 |
} else if (nouvelleDonnees instanceof ValeurListe) {
|
35 |
((Mediateur) Registry.get(RegistreId.MEDIATEUR)).afficherListeValeurs((ValeurListe) nouvelleDonnees);
|
35 |
((Mediateur) Registry.get(RegistreId.MEDIATEUR)).afficherListeValeurs((ValeurListe) nouvelleDonnees);
|
Line 38... |
Line 38... |
38 |
} else if (nouvelleDonnees instanceof PersonneListe) {
|
38 |
} else if (nouvelleDonnees instanceof PersonneListe) {
|
39 |
((Mediateur) Registry.get(RegistreId.MEDIATEUR)).afficherListePersonnes((PersonneListe) nouvelleDonnees);
|
39 |
((Mediateur) Registry.get(RegistreId.MEDIATEUR)).afficherListePersonnes((PersonneListe) nouvelleDonnees);
|
40 |
} else if (nouvelleDonnees instanceof ProjetsListe) {
|
40 |
} else if (nouvelleDonnees instanceof ProjetsListe) {
|
41 |
((Mediateur) Registry.get(RegistreId.MEDIATEUR)).afficherListeProjets((ProjetsListe) nouvelleDonnees);
|
41 |
((Mediateur) Registry.get(RegistreId.MEDIATEUR)).afficherListeProjets((ProjetsListe) nouvelleDonnees);
|
42 |
}
|
42 |
}
|
43 |
|
- |
|
44 |
}
|
43 |
}
|
Line 45... |
Line 44... |
45 |
|
44 |
|
46 |
public void obtenirListeValeurs(Integer id) {
|
45 |
public void obtenirListeValeurs(Integer id) {
|
47 |
ValeurListeAsyncDao lsDao = new ValeurListeAsyncDao(this);
|
46 |
ValeurListeAsyncDao lsDao = new ValeurListeAsyncDao(this);
|
48 |
lsDao.obtenirListe(id);
|
47 |
lsDao.obtenirListe(id);
|
Line 49... |
Line -... |
49 |
}
|
- |
|
50 |
|
- |
|
51 |
public void obtenirListeInstitutions() {
|
- |
|
52 |
StructureListeAsyncDao lsDao = new StructureListeAsyncDao(this);
|
- |
|
53 |
lsDao.obtenirListeInstitution();
|
- |
|
54 |
}
|
48 |
}
|
55 |
|
- |
|
56 |
public void obtenirListePersonnes() {
|
- |
|
57 |
|
49 |
|
58 |
/*
|
- |
|
59 |
* Lance le service JREST associé au personne via la class PersonneListeAsyncDAO
|
50 |
public void obtenirListePersonnes() {
|
60 |
* */
|
51 |
// Lance le service JREST associé au personne via la class PersonneListeAsyncDAO
|
61 |
PersonnesAsyncDao plDao = new PersonnesAsyncDao(this);
|
- |
|
62 |
plDao.obtenirListePersonnes();
|
52 |
PersonnesAsyncDao plDao = new PersonnesAsyncDao(this);
|
Line 63... |
Line 53... |
63 |
|
53 |
plDao.obtenirListePersonnes();
|
64 |
}
|
54 |
}
|
65 |
|
55 |
|
Line 79... |
Line 69... |
79 |
public void obtenirListePublications() {
|
69 |
public void obtenirListePublications() {
|
80 |
PublicationListeAsyncDao lsDao = new PublicationListeAsyncDao(this);
|
70 |
PublicationListeAsyncDao lsDao = new PublicationListeAsyncDao(this);
|
81 |
lsDao.obtenirListePublication();
|
71 |
lsDao.obtenirListePublication();
|
82 |
}
|
72 |
}
|
Line -... |
Line 73... |
- |
|
73 |
|
- |
|
74 |
public void selectionnerStructure(Rafraichissable r, String idUtilisateur, String idStr) {
|
- |
|
75 |
StructureAsyncDao sDao = new StructureAsyncDao();
|
- |
|
76 |
sDao.selectionner(r, idUtilisateur, idStr);
|
- |
|
77 |
}
|
- |
|
78 |
|
- |
|
79 |
public void selectionnerStructures(String idUtilisateur) {
|
- |
|
80 |
Rafraichissable r = this;
|
- |
|
81 |
String idStr = null;
|
- |
|
82 |
selectionnerStructure(r, idUtilisateur, idStr);
|
- |
|
83 |
}
|
83 |
|
84 |
|
84 |
/** Lance la creation d'une Structure
|
85 |
/** Lance la creation d'une Structure
|
85 |
* @param r la vue demandant a être rafraichie
|
86 |
* @param vue la vue demandant a être rafraichie
|
86 |
* @param structure les données de la structure
|
87 |
* @param structure les données de la structure
|
87 |
*/
|
88 |
*/
|
88 |
public void ajouterStructure(Rafraichissable r, String idUtilisateur, Structure structure) {
|
89 |
public void ajouterStructure(Rafraichissable vue, String idUtilisateur, Structure structure) {
|
89 |
StructureAsyncDao structureDao = new StructureAsyncDao();
|
90 |
StructureAsyncDao structureDao = new StructureAsyncDao();
|
90 |
structureDao.ajouter(r, idUtilisateur, structure);
|
91 |
structureDao.ajouter(vue, idUtilisateur, structure);
|
Line 91... |
Line 92... |
91 |
}
|
92 |
}
|
92 |
|
93 |
|
93 |
public void supprimerListeStructure(Rafraichissable r, String idUtilisateur, String idStr) {
|
94 |
public void supprimerStructure(Rafraichissable vue, String idUtilisateur, String idStr) {
|
- |
|
95 |
StructureAsyncDao structureDao = new StructureAsyncDao();
|
- |
|
96 |
structureDao.supprimer(vue, idUtilisateur, idStr);
|
- |
|
97 |
}
|
- |
|
98 |
|
- |
|
99 |
public void modifierStructure(Rafraichissable vue, String utilisateurId, Structure structure) {
|
94 |
StructureAsyncDao structureDao = new StructureAsyncDao();
|
100 |
StructureAsyncDao structureDao = new StructureAsyncDao();
|
Line 95... |
Line 101... |
95 |
structureDao.supprimer(r, idUtilisateur, idStr);
|
101 |
structureDao.ajouter(vue, utilisateurId, structure);
|
96 |
}
|
102 |
}
|
97 |
|
103 |
|
Line 98... |
Line 104... |
98 |
public void obtenirListeProjets () {
|
104 |
public void obtenirListeProjets () {
|
99 |
ProjetsListeAsyncDao projetsDao = new ProjetsListeAsyncDao(this);
|
- |
|
100 |
projetsDao.obtenirListeProjets();
|
- |
|
101 |
|
105 |
ProjetsListeAsyncDao projetsDao = new ProjetsListeAsyncDao(this);
|
102 |
}
|
106 |
projetsDao.obtenirListeProjets();
|