60 |
jpm |
1 |
package org.tela_botanica.client;
|
|
|
2 |
|
898 |
gduche |
3 |
import java.util.HashMap;
|
237 |
aurelien |
4 |
import java.util.Iterator;
|
|
|
5 |
import java.util.List;
|
|
|
6 |
|
60 |
jpm |
7 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
453 |
jp_milcent |
8 |
import org.tela_botanica.client.modeles.Collection;
|
875 |
jpm |
9 |
import org.tela_botanica.client.modeles.CollectionAPersonne;
|
|
|
10 |
import org.tela_botanica.client.modeles.CollectionAPersonneAsyncDao;
|
883 |
jpm |
11 |
import org.tela_botanica.client.modeles.CollectionAPublication;
|
|
|
12 |
import org.tela_botanica.client.modeles.CollectionAPublicationAsyncDao;
|
468 |
jp_milcent |
13 |
import org.tela_botanica.client.modeles.CollectionAsyncDao;
|
388 |
gduche |
14 |
import org.tela_botanica.client.modeles.Personne;
|
268 |
jp_milcent |
15 |
import org.tela_botanica.client.modeles.PersonneAsyncDao;
|
892 |
aurelien |
16 |
import org.tela_botanica.client.modeles.Projet;
|
268 |
jp_milcent |
17 |
import org.tela_botanica.client.modeles.ProjetAsyncDao;
|
228 |
aurelien |
18 |
import org.tela_botanica.client.modeles.Publication;
|
741 |
aurelien |
19 |
import org.tela_botanica.client.modeles.PublicationAPersonneAsyncDao;
|
268 |
jp_milcent |
20 |
import org.tela_botanica.client.modeles.PublicationAsyncDao;
|
119 |
jpm |
21 |
import org.tela_botanica.client.modeles.Structure;
|
231 |
jp_milcent |
22 |
import org.tela_botanica.client.modeles.StructureAPersonne;
|
209 |
jp_milcent |
23 |
import org.tela_botanica.client.modeles.StructureAPersonneAsyncDao;
|
119 |
jpm |
24 |
import org.tela_botanica.client.modeles.StructureAsyncDao;
|
188 |
jp_milcent |
25 |
import org.tela_botanica.client.modeles.StructureConservation;
|
195 |
jp_milcent |
26 |
import org.tela_botanica.client.modeles.StructureValorisation;
|
64 |
jpm |
27 |
import org.tela_botanica.client.modeles.Utilisateur;
|
69 |
jpm |
28 |
import org.tela_botanica.client.modeles.UtilisateurAsyncDao;
|
91 |
jpm |
29 |
import org.tela_botanica.client.modeles.ValeurListeAsyncDao;
|
60 |
jpm |
30 |
|
|
|
31 |
import com.extjs.gxt.ui.client.Registry;
|
673 |
aurelien |
32 |
import com.google.gwt.core.client.GWT;
|
60 |
jpm |
33 |
|
|
|
34 |
// TODO : le transformer en SINGLETON
|
277 |
jp_milcent |
35 |
public class Modele {
|
60 |
jpm |
36 |
|
|
|
37 |
public Modele() {
|
|
|
38 |
Registry.register(RegistreId.MODELE, this);
|
|
|
39 |
}
|
|
|
40 |
|
231 |
jp_milcent |
41 |
//+----------------------------------------------------------------------------------------------------------------+
|
|
|
42 |
// GESTION DES VALEURS ET LISTES
|
|
|
43 |
//+----------------------------------------------------------------------------------------------------------------+
|
|
|
44 |
|
277 |
jp_milcent |
45 |
public void obtenirListeValeurs(Rafraichissable vue, Integer id) {
|
|
|
46 |
ValeurListeAsyncDao lsDao = new ValeurListeAsyncDao(vue);
|
91 |
jpm |
47 |
lsDao.obtenirListe(id);
|
|
|
48 |
}
|
|
|
49 |
|
289 |
gduche |
50 |
|
297 |
gduche |
51 |
public void obtenirListeRegion(Rafraichissable vue, Integer id, String region) {
|
|
|
52 |
ValeurListeAsyncDao lsDao = new ValeurListeAsyncDao(vue);
|
302 |
gduche |
53 |
lsDao.selectionner("abv", id, null, region);
|
297 |
gduche |
54 |
}
|
|
|
55 |
|
302 |
gduche |
56 |
public void obtenirValeur(Rafraichissable vue, String type, Integer id, String identifiant) {
|
297 |
gduche |
57 |
ValeurListeAsyncDao lsDao = new ValeurListeAsyncDao(vue);
|
302 |
gduche |
58 |
lsDao.selectionner(type, id, null, identifiant);
|
289 |
gduche |
59 |
}
|
|
|
60 |
|
231 |
jp_milcent |
61 |
//+----------------------------------------------------------------------------------------------------------------+
|
|
|
62 |
// GESTION DES UTILISATEURS
|
|
|
63 |
//+----------------------------------------------------------------------------------------------------------------+
|
237 |
aurelien |
64 |
|
277 |
jp_milcent |
65 |
public void connecterUtilisateur(Rafraichissable vue, String login, String mdp) {
|
|
|
66 |
Utilisateur utilisateur = (Utilisateur) Registry.get(RegistreId.UTILISATEUR_COURANT);
|
65 |
jpm |
67 |
utilisateur.setLogin(login);
|
|
|
68 |
utilisateur.setMotDePasse(mdp);
|
277 |
jp_milcent |
69 |
UtilisateurAsyncDao uDao = new UtilisateurAsyncDao(vue);
|
65 |
jpm |
70 |
uDao.connecterUtilisateur();
|
64 |
jpm |
71 |
}
|
|
|
72 |
|
277 |
jp_milcent |
73 |
public void deconnecterUtilisateur(Rafraichissable vue) {
|
|
|
74 |
UtilisateurAsyncDao uDao = new UtilisateurAsyncDao(vue);
|
65 |
jpm |
75 |
uDao.deconnecterUtilisateur();
|
64 |
jpm |
76 |
}
|
898 |
gduche |
77 |
|
|
|
78 |
public void accepterLicence(Rafraichissable vue) {
|
|
|
79 |
UtilisateurAsyncDao uDao = new UtilisateurAsyncDao(vue);
|
|
|
80 |
uDao.accepterLicence();
|
453 |
jp_milcent |
81 |
|
898 |
gduche |
82 |
}
|
|
|
83 |
|
|
|
84 |
public void mettreAJourPersonneAnnuaire(Rafraichissable vue, Utilisateur utilisateur) {
|
|
|
85 |
PersonneAsyncDao pAdao = new PersonneAsyncDao(vue);
|
|
|
86 |
HashMap<String, String> infosAnnuaire = utilisateur.getInfosAnnuaire();
|
|
|
87 |
|
|
|
88 |
Personne personne = new Personne();
|
|
|
89 |
personne.setId(utilisateur.getId());
|
|
|
90 |
personne.set("nom", infosAnnuaire.get("nom"));
|
|
|
91 |
personne.set("prenom", infosAnnuaire.get("prenom"));
|
|
|
92 |
personne.setFmtNomComplet("", "");
|
|
|
93 |
personne.setCourriel(infosAnnuaire.get("courriel"));
|
|
|
94 |
personne.set("ce_annuaire_tela", infosAnnuaire.get("id"));
|
|
|
95 |
personne.set("mot_de_passe", infosAnnuaire.get("mot_de_passe"));
|
|
|
96 |
personne.set("code_postal", infosAnnuaire.get("code_postal"));
|
|
|
97 |
personne.set("ville", infosAnnuaire.get("ville"));
|
|
|
98 |
|
|
|
99 |
pAdao.modifier(personne);
|
|
|
100 |
/*
|
|
|
101 |
* "id":"11623","nom":"DUCHE","prenom":"Gr\u00e9goire","mot_de_passe":"9d146bd95317a64b83b5e06cf752da2d",
|
|
|
102 |
* "courriel":"gregoire@tela-botanica.org","code_postal":"34000","ville":"MONTPELLIER","departement":"34",
|
|
|
103 |
* "pays":"FR","date_inscription":"2009-05-11 00:00:00"
|
|
|
104 |
*
|
|
|
105 |
*/
|
|
|
106 |
}
|
453 |
jp_milcent |
107 |
//+----------------------------------------------------------------------------------------------------------------+
|
|
|
108 |
// GESTION DES PROJETS
|
|
|
109 |
//+----------------------------------------------------------------------------------------------------------------+
|
231 |
jp_milcent |
110 |
|
552 |
jp_milcent |
111 |
public void selectionnerProjets(Rafraichissable vueARafraichir) {
|
|
|
112 |
ProjetAsyncDao projetsDao = new ProjetAsyncDao(vueARafraichir);
|
453 |
jp_milcent |
113 |
projetsDao.selectionner();
|
|
|
114 |
}
|
|
|
115 |
|
231 |
jp_milcent |
116 |
//+----------------------------------------------------------------------------------------------------------------+
|
|
|
117 |
// GESTION DES STRUCTURES
|
|
|
118 |
//+----------------------------------------------------------------------------------------------------------------+
|
64 |
jpm |
119 |
|
468 |
jp_milcent |
120 |
public void selectionnerStructure(Rafraichissable vueARafraichir, String projetId, String structureId) {
|
209 |
jp_milcent |
121 |
// Gestion des données des tables coel_structure, coel_structure_conservation et coel_structure_valorisation
|
769 |
jpm |
122 |
StructureAsyncDao sDao = new StructureAsyncDao(vueARafraichir);
|
|
|
123 |
sDao.selectionner(projetId, structureId);
|
156 |
jp_milcent |
124 |
}
|
|
|
125 |
|
119 |
jpm |
126 |
/** Lance la creation d'une Structure
|
468 |
jp_milcent |
127 |
* @param vueARafraichir la vue demandant a être rafraichie
|
119 |
jpm |
128 |
* @param structure les données de la structure
|
|
|
129 |
*/
|
769 |
jpm |
130 |
public void ajouterStructure(Rafraichissable vueARafraichir, Structure structure, StructureConservation conservation, StructureValorisation valorisation) {
|
|
|
131 |
StructureAsyncDao structureDao = new StructureAsyncDao(vueARafraichir);
|
|
|
132 |
structureDao.ajouter(structure, conservation, valorisation);
|
119 |
jpm |
133 |
}
|
135 |
jpm |
134 |
|
769 |
jpm |
135 |
public void supprimerStructure(Rafraichissable vueARafraichir, String idStr) {
|
|
|
136 |
StructureAsyncDao structureDao = new StructureAsyncDao(vueARafraichir);
|
|
|
137 |
structureDao.supprimer(idStr);
|
135 |
jpm |
138 |
}
|
119 |
jpm |
139 |
|
769 |
jpm |
140 |
public void modifierStructure(Rafraichissable vueARafraichir, String structureId, Structure structure, StructureConservation conservation, StructureValorisation valorisation) {
|
|
|
141 |
StructureAsyncDao structureDao = new StructureAsyncDao(vueARafraichir);
|
|
|
142 |
structureDao.modifier(structureId, structure, conservation, valorisation);
|
156 |
jp_milcent |
143 |
}
|
231 |
jp_milcent |
144 |
|
265 |
jp_milcent |
145 |
//+----------------------------------------------------------------------------------------------------------------+
|
|
|
146 |
// GESTION de la relation STRUCTURE A PERSONNE
|
|
|
147 |
|
767 |
jpm |
148 |
public void selectionnerStructureAPersonne(Rafraichissable vueARafraichir, String structureId, String roleId) {
|
265 |
jp_milcent |
149 |
// Gestion des données de la table coel_structure_a_personne
|
|
|
150 |
if (structureId != null && roleId != null) {
|
761 |
jpm |
151 |
StructureAPersonneAsyncDao sapDao = new StructureAPersonneAsyncDao(vueARafraichir);
|
|
|
152 |
sapDao.selectionner(structureId, roleId);
|
265 |
jp_milcent |
153 |
}
|
|
|
154 |
}
|
|
|
155 |
|
767 |
jpm |
156 |
public void modifierStructureAPersonne(Rafraichissable vueARafraichir, StructureAPersonne personnel) {
|
761 |
jpm |
157 |
StructureAPersonneAsyncDao structureAPersonneDao = new StructureAPersonneAsyncDao(vueARafraichir);
|
767 |
jpm |
158 |
structureAPersonneDao.modifier(personnel);
|
231 |
jp_milcent |
159 |
}
|
156 |
jp_milcent |
160 |
|
767 |
jpm |
161 |
public void ajouterStructureAPersonne(Rafraichissable vueARafraichir, String structureId, StructureAPersonne personnel) {
|
761 |
jpm |
162 |
StructureAPersonneAsyncDao structureAPersonneDao = new StructureAPersonneAsyncDao(vueARafraichir);
|
767 |
jpm |
163 |
structureAPersonneDao.ajouter(structureId, personnel);
|
231 |
jp_milcent |
164 |
}
|
|
|
165 |
|
767 |
jpm |
166 |
public void supprimerStructureAPersonne(Rafraichissable vueARafraichir, String personnelId) {
|
761 |
jpm |
167 |
StructureAPersonneAsyncDao structureAPersonneDao = new StructureAPersonneAsyncDao(vueARafraichir);
|
767 |
jpm |
168 |
structureAPersonneDao.supprimer(personnelId);
|
231 |
jp_milcent |
169 |
}
|
453 |
jp_milcent |
170 |
|
231 |
jp_milcent |
171 |
//+----------------------------------------------------------------------------------------------------------------+
|
453 |
jp_milcent |
172 |
// GESTION DES COLLECTIONS
|
231 |
jp_milcent |
173 |
//+----------------------------------------------------------------------------------------------------------------+
|
|
|
174 |
|
453 |
jp_milcent |
175 |
public void selectionnerCollection(Rafraichissable vueARafraichir, String projetId, String collectionId) {
|
872 |
jpm |
176 |
CollectionAsyncDao cDao = new CollectionAsyncDao(vueARafraichir);
|
|
|
177 |
cDao.selectionner(projetId, collectionId);
|
143 |
gduche |
178 |
}
|
453 |
jp_milcent |
179 |
|
751 |
jpm |
180 |
public void ajouterCollection(Rafraichissable vueARafraichir, String utilisateurId, Collection collection) {
|
453 |
jp_milcent |
181 |
// TODO Auto-generated method stub
|
|
|
182 |
|
|
|
183 |
}
|
224 |
aurelien |
184 |
|
872 |
jpm |
185 |
public void modifierCollection(Rafraichissable vueARafraichir, Collection collection) {
|
|
|
186 |
CollectionAsyncDao cDao = new CollectionAsyncDao(vueARafraichir);
|
|
|
187 |
cDao.modifier(collection);
|
453 |
jp_milcent |
188 |
}
|
|
|
189 |
|
751 |
jpm |
190 |
public void supprimerCollection(Rafraichissable vueARafraichir, String utilisateurId, String identifiantsCollectionSepareParVirgule) {
|
453 |
jp_milcent |
191 |
// TODO Auto-generated method stub
|
|
|
192 |
|
|
|
193 |
}
|
|
|
194 |
|
231 |
jp_milcent |
195 |
//+----------------------------------------------------------------------------------------------------------------+
|
875 |
jpm |
196 |
// GESTION de la relation COLLECTION A PERSONNE
|
|
|
197 |
|
|
|
198 |
public void selectionnerCollectionAPersonne(Rafraichissable vueARafraichir, String collectionId, String roleId) {
|
883 |
jpm |
199 |
CollectionAPersonneAsyncDao sapDao = new CollectionAPersonneAsyncDao(vueARafraichir);
|
|
|
200 |
sapDao.selectionner(collectionId, roleId);
|
875 |
jpm |
201 |
}
|
|
|
202 |
|
|
|
203 |
public void modifierCollectionAPersonne(Rafraichissable vueARafraichir, CollectionAPersonne collectionAPersonne) {
|
|
|
204 |
CollectionAPersonneAsyncDao collectionAPersonneDao = new CollectionAPersonneAsyncDao(vueARafraichir);
|
|
|
205 |
collectionAPersonneDao.modifier(collectionAPersonne);
|
|
|
206 |
}
|
|
|
207 |
|
|
|
208 |
public void ajouterCollectionAPersonne(Rafraichissable vueARafraichir, String collectionId, CollectionAPersonne collectionAPersonne) {
|
|
|
209 |
CollectionAPersonneAsyncDao collectionAPersonneDao = new CollectionAPersonneAsyncDao(vueARafraichir);
|
|
|
210 |
collectionAPersonneDao.ajouter(collectionId, collectionAPersonne);
|
|
|
211 |
}
|
|
|
212 |
|
|
|
213 |
public void supprimerCollectionAPersonne(Rafraichissable vueARafraichir, String collectionAPersonneId) {
|
|
|
214 |
CollectionAPersonneAsyncDao collectionAPersonneDao = new CollectionAPersonneAsyncDao(vueARafraichir);
|
|
|
215 |
collectionAPersonneDao.supprimer(collectionAPersonneId);
|
|
|
216 |
}
|
|
|
217 |
|
|
|
218 |
//+----------------------------------------------------------------------------------------------------------------+
|
883 |
jpm |
219 |
// GESTION de la relation COLLECTION A PUBLICATION
|
|
|
220 |
|
|
|
221 |
public void selectionnerCollectionAPublication(Rafraichissable vueARafraichir, String collectionId) {
|
|
|
222 |
CollectionAPublicationAsyncDao capDao = new CollectionAPublicationAsyncDao(vueARafraichir);
|
|
|
223 |
capDao.selectionner(collectionId);
|
|
|
224 |
}
|
|
|
225 |
|
|
|
226 |
public void modifierCollectionAPublication(Rafraichissable vueARafraichir, CollectionAPublication collectionAPublication) {
|
|
|
227 |
CollectionAPublicationAsyncDao collectionAPublicationDao = new CollectionAPublicationAsyncDao(vueARafraichir);
|
|
|
228 |
collectionAPublicationDao.modifier(collectionAPublication);
|
|
|
229 |
}
|
|
|
230 |
|
|
|
231 |
public void ajouterCollectionAPublication(Rafraichissable vueARafraichir, String collectionId, CollectionAPublication collectionAPublication) {
|
|
|
232 |
CollectionAPublicationAsyncDao collectionAPublicationDao = new CollectionAPublicationAsyncDao(vueARafraichir);
|
|
|
233 |
collectionAPublicationDao.ajouter(collectionId, collectionAPublication);
|
|
|
234 |
}
|
|
|
235 |
|
|
|
236 |
public void supprimerCollectionAPublication(Rafraichissable vueARafraichir, String collectionAPublicationId) {
|
|
|
237 |
CollectionAPublicationAsyncDao collectionAPublicationDao = new CollectionAPublicationAsyncDao(vueARafraichir);
|
|
|
238 |
collectionAPublicationDao.supprimer(collectionAPublicationId);
|
|
|
239 |
}
|
|
|
240 |
|
|
|
241 |
//+----------------------------------------------------------------------------------------------------------------+
|
231 |
jp_milcent |
242 |
// GESTION DES PERSONNES
|
|
|
243 |
//+----------------------------------------------------------------------------------------------------------------+
|
|
|
244 |
|
598 |
gduche |
245 |
public void selectionnerPersonne(Rafraichissable vueARafraichir, String personneId, String projetId, String nomComplet, int start, int nbElements) {
|
468 |
jp_milcent |
246 |
PersonneAsyncDao pDao = new PersonneAsyncDao(vueARafraichir);
|
598 |
gduche |
247 |
pDao.selectionner(personneId, projetId, nomComplet, start, nbElements);
|
244 |
jp_milcent |
248 |
}
|
277 |
jp_milcent |
249 |
|
772 |
jpm |
250 |
public void supprimerPersonne(Rafraichissable vueARafraichir, String idPersonneSepareParVirgule) {
|
468 |
jp_milcent |
251 |
PersonneAsyncDao personneDao = new PersonneAsyncDao(vueARafraichir);
|
772 |
jpm |
252 |
personneDao.supprimer(idPersonneSepareParVirgule);
|
277 |
jp_milcent |
253 |
|
|
|
254 |
}
|
244 |
jp_milcent |
255 |
|
430 |
gduche |
256 |
public void ajouterPersonne(Rafraichissable vue, Personne personne) {
|
388 |
gduche |
257 |
PersonneAsyncDao personneDao = new PersonneAsyncDao(vue);
|
748 |
jpm |
258 |
personneDao.ajouter(personne);
|
388 |
gduche |
259 |
}
|
430 |
gduche |
260 |
|
468 |
jp_milcent |
261 |
public void modifierPersonne(Rafraichissable vueARafraichir, Personne personne) {
|
|
|
262 |
PersonneAsyncDao personneDao = new PersonneAsyncDao(vueARafraichir);
|
748 |
jpm |
263 |
personneDao.modifier(personne);
|
430 |
gduche |
264 |
}
|
453 |
jp_milcent |
265 |
|
231 |
jp_milcent |
266 |
//+----------------------------------------------------------------------------------------------------------------+
|
|
|
267 |
// GESTION DES PUBLICATIONS
|
|
|
268 |
//+----------------------------------------------------------------------------------------------------------------+
|
|
|
269 |
|
709 |
jp_milcent |
270 |
public void selectionnerPublication(Rafraichissable vueARafraichir, String publicationId, String projetId, String nomComplet) {
|
468 |
jp_milcent |
271 |
PublicationAsyncDao lsDao = new PublicationAsyncDao(vueARafraichir);
|
751 |
jpm |
272 |
lsDao.selectionner(publicationId, projetId, nomComplet);
|
231 |
jp_milcent |
273 |
}
|
|
|
274 |
|
764 |
jpm |
275 |
public void modifierPublication(Rafraichissable vueRafraichir, Publication publication) {
|
468 |
jp_milcent |
276 |
PublicationAsyncDao pDao = new PublicationAsyncDao(vueRafraichir);
|
764 |
jpm |
277 |
pDao.modifier(publication);
|
228 |
aurelien |
278 |
}
|
|
|
279 |
|
764 |
jpm |
280 |
public void ajouterPublication(Rafraichissable vueARafraichir, Publication publication) {
|
468 |
jp_milcent |
281 |
PublicationAsyncDao pDao = new PublicationAsyncDao(vueARafraichir);
|
764 |
jpm |
282 |
pDao.ajouter(publication);
|
228 |
aurelien |
283 |
}
|
231 |
jp_milcent |
284 |
|
764 |
jpm |
285 |
public void supprimerPublication(Rafraichissable vueARafraichir, List<Publication> publicationListe) {
|
|
|
286 |
String publicationsId = "";
|
237 |
aurelien |
287 |
for(Iterator<Publication> it = publicationListe.iterator(); it.hasNext();) {
|
|
|
288 |
Publication pub = it.next();
|
764 |
jpm |
289 |
publicationsId += pub.getId();
|
237 |
aurelien |
290 |
if(it.hasNext()) {
|
764 |
jpm |
291 |
publicationsId += ",";
|
237 |
aurelien |
292 |
}
|
|
|
293 |
}
|
468 |
jp_milcent |
294 |
PublicationAsyncDao pDao = new PublicationAsyncDao(vueARafraichir);
|
764 |
jpm |
295 |
pDao.supprimer(publicationsId);
|
237 |
aurelien |
296 |
}
|
244 |
jp_milcent |
297 |
|
822 |
jpm |
298 |
//+----------------------------------------------------------------------------------------------------------------+
|
|
|
299 |
// GESTION de la relation PUBLICATION A PERSONNE
|
|
|
300 |
|
|
|
301 |
public void selectionPublicationAPersonne(Rafraichissable vueARafraichir, String publicationId, String personnesId, String roleId) {
|
741 |
aurelien |
302 |
PublicationAPersonneAsyncDao paDao = new PublicationAPersonneAsyncDao(vueARafraichir);
|
822 |
jpm |
303 |
paDao.selectionner(publicationId, personnesId, roleId);
|
741 |
aurelien |
304 |
}
|
822 |
jpm |
305 |
|
|
|
306 |
public void ajouterAuteurPublication(Rafraichissable vueARafraichir, String publicationId, String personnesId, String roleId) {
|
741 |
aurelien |
307 |
PublicationAPersonneAsyncDao paDao = new PublicationAPersonneAsyncDao(vueARafraichir);
|
822 |
jpm |
308 |
paDao.ajouter(publicationId, personnesId, roleId);
|
741 |
aurelien |
309 |
}
|
|
|
310 |
|
822 |
jpm |
311 |
public void modifierAuteurPublication(Rafraichissable vueARafraichir, String publicationId, String personnesId, String roleId) {
|
750 |
aurelien |
312 |
PublicationAPersonneAsyncDao paDao = new PublicationAPersonneAsyncDao(vueARafraichir);
|
822 |
jpm |
313 |
paDao.modifier(publicationId, personnesId, roleId);
|
750 |
aurelien |
314 |
}
|
|
|
315 |
|
877 |
aurelien |
316 |
public void selectionnerProjet(Rafraichissable vueARafraichir,
|
|
|
317 |
String projetId) {
|
880 |
aurelien |
318 |
ProjetAsyncDao pADAO = new ProjetAsyncDao(vueARafraichir);
|
|
|
319 |
pADAO.selectionnerProjet(projetId);
|
877 |
aurelien |
320 |
}
|
|
|
321 |
|
892 |
aurelien |
322 |
public void ajouterProjet(Rafraichissable vueARafraichir,
|
|
|
323 |
Projet projetCollecte) {
|
|
|
324 |
ProjetAsyncDao pADAO = new ProjetAsyncDao(vueARafraichir);
|
|
|
325 |
pADAO.ajouter(projetCollecte);
|
|
|
326 |
|
|
|
327 |
}
|
|
|
328 |
|
|
|
329 |
public void modifierProjet(Rafraichissable vueARafraichir,
|
|
|
330 |
Projet projetCollecte) {
|
|
|
331 |
ProjetAsyncDao pADAO = new ProjetAsyncDao(vueARafraichir);
|
|
|
332 |
pADAO.modifier(projetCollecte);
|
|
|
333 |
}
|
|
|
334 |
|
60 |
jpm |
335 |
}
|