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