Subversion Repositories eFlore/Applications.coel

Rev

Rev 1691 | Rev 1784 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1691 Rev 1763
Line 19... Line 19...
19
import org.tela_botanica.client.modeles.collection.CollectionAsyncDao;
19
import org.tela_botanica.client.modeles.collection.CollectionAsyncDao;
20
import org.tela_botanica.client.modeles.commentaire.Commentaire;
20
import org.tela_botanica.client.modeles.commentaire.Commentaire;
21
import org.tela_botanica.client.modeles.commentaire.CommentaireAsyncDao;
21
import org.tela_botanica.client.modeles.commentaire.CommentaireAsyncDao;
22
import org.tela_botanica.client.modeles.personne.Personne;
22
import org.tela_botanica.client.modeles.personne.Personne;
23
import org.tela_botanica.client.modeles.personne.PersonneAsyncDao;
23
import org.tela_botanica.client.modeles.personne.PersonneAsyncDao;
24
import org.tela_botanica.client.modeles.projet.Projet;
-
 
25
import org.tela_botanica.client.modeles.projet.ProjetAsyncDao;
-
 
26
import org.tela_botanica.client.modeles.publication.Publication;
24
import org.tela_botanica.client.modeles.publication.Publication;
27
import org.tela_botanica.client.modeles.publication.PublicationAPersonne;
25
import org.tela_botanica.client.modeles.publication.PublicationAPersonne;
28
import org.tela_botanica.client.modeles.publication.PublicationAPersonneAsyncDao;
26
import org.tela_botanica.client.modeles.publication.PublicationAPersonneAsyncDao;
29
import org.tela_botanica.client.modeles.publication.PublicationAsyncDao;
27
import org.tela_botanica.client.modeles.publication.PublicationAsyncDao;
30
import org.tela_botanica.client.modeles.structure.Structure;
28
import org.tela_botanica.client.modeles.structure.Structure;
Line 115... Line 113...
115
		
113
		
116
		pAdao.modifier(personne);
114
		pAdao.modifier(personne);
Line 117... Line 115...
117
	}
115
	}
118
	
-
 
119
	//+----------------------------------------------------------------------------------------------------------------+
-
 
120
	//												GESTION DES PROJETS
-
 
121
	//+----------------------------------------------------------------------------------------------------------------+
-
 
122
	
-
 
123
	public void selectionnerProjet(Rafraichissable vueARafraichir, String projetId, String nom, int start, int nbElements, String formatRetour, boolean paginationProgressive, Integer seqId) {
-
 
124
		ProjetAsyncDao pADAO = new ProjetAsyncDao(vueARafraichir);
-
 
125
		pADAO.selectionner(paginationProgressive, projetId, nom, start, nbElements, formatRetour, seqId);
-
 
126
	}
-
 
127
	
-
 
128
	public void selectionnerProjet(Rafraichissable vueARafraichir, String recherche, int start, int nbElements, Integer seqId) {
-
 
129
		ProjetAsyncDao pADAO = new ProjetAsyncDao(vueARafraichir);
-
 
130
		pADAO.selectionner(true, null, recherche, start, nbElements, null, seqId);
-
 
131
	}
-
 
132
 
-
 
133
	public void ajouterProjet(Rafraichissable vueARafraichir, Projet projetCollecte) {
-
 
134
		ProjetAsyncDao pADAO = new ProjetAsyncDao(vueARafraichir);
-
 
135
		pADAO.ajouter(projetCollecte);
-
 
136
	}
-
 
137
 
-
 
138
	public void modifierProjet(Rafraichissable vueARafraichir, Projet projetCollecte) {
-
 
139
		ProjetAsyncDao pADAO = new ProjetAsyncDao(vueARafraichir);
-
 
140
		pADAO.modifier(projetCollecte);
-
 
141
	}
-
 
142
 
116
	
143
	//+----------------------------------------------------------------------------------------------------------------+
117
	//+----------------------------------------------------------------------------------------------------------------+
Line 144... Line 118...
144
	//												GESTION DES STRUCTURES
118
	//												GESTION DES STRUCTURES
145
	//+----------------------------------------------------------------------------------------------------------------+
119
	//+----------------------------------------------------------------------------------------------------------------+
146
 
120
 
147
	public void selectionnerStructure(Rafraichissable vueARafraichir, String projetId, String structureId, String nomStructure, int start, int nbElements, Integer seqId, boolean searchCity) {
121
	public void selectionnerStructure(Rafraichissable vueARafraichir, String structureId, String nomStructure, int start, int nbElements, Integer seqId, boolean searchCity) {
148
		// Gestion des données des tables coel_structure, coel_structure_conservation et coel_structure_valorisation 
122
		// Gestion des données des tables coel_structure, coel_structure_conservation et coel_structure_valorisation 
Line 149... Line 123...
149
		StructureAsyncDao sDao = new StructureAsyncDao(vueARafraichir);
123
		StructureAsyncDao sDao = new StructureAsyncDao(vueARafraichir);
150
		sDao.selectionner(false, projetId, structureId, nomStructure, null, start, nbElements, seqId, searchCity);
124
		sDao.selectionner(false, structureId, nomStructure, null, start, nbElements, seqId, searchCity);
151
	}
125
	}
152
	
126
	
153
	public void selectionnerStructureAvecPaginationProgressive(Rafraichissable vueARafraichir, String projetId, String structureId, String nomStructure, String formatRetour, int start, int nbElements, Integer seqId, boolean searchCity) {
127
	public void selectionnerStructureAvecPaginationProgressive(Rafraichissable vueARafraichir, String structureId, String nomStructure, String formatRetour, int start, int nbElements, Integer seqId, boolean searchCity) {
Line 154... Line 128...
154
		// Gestion des données des tables coel_structure, coel_structure_conservation et coel_structure_valorisation 
128
		// Gestion des données des tables coel_structure, coel_structure_conservation et coel_structure_valorisation 
155
		StructureAsyncDao sDao = new StructureAsyncDao(vueARafraichir);
129
		StructureAsyncDao sDao = new StructureAsyncDao(vueARafraichir);
156
		sDao.selectionner(true, projetId, structureId, nomStructure, formatRetour, start, nbElements, seqId, searchCity);
130
		sDao.selectionner(true, structureId, nomStructure, formatRetour, start, nbElements, seqId, searchCity);
157
	}
131
	}
158
	
132
	
Line 159... Line 133...
159
	public void selectionnerStructure(Rafraichissable vueARafraichir, String recherche, int start, int nbElements, Integer seqId, boolean searchCity) {
133
	public void selectionnerStructure(Rafraichissable vueARafraichir, String recherche, int start, int nbElements, Integer seqId, boolean searchCity) {
160
		// Gestion des données des tables coel_structure, coel_structure_conservation et coel_structure_valorisation 
134
		// Gestion des données des tables coel_structure, coel_structure_conservation et coel_structure_valorisation 
161
		StructureAsyncDao sDao = new StructureAsyncDao(vueARafraichir);
135
		StructureAsyncDao sDao = new StructureAsyncDao(vueARafraichir);
Line 214... Line 188...
214
 
188
 
215
	//+----------------------------------------------------------------------------------------------------------------+
189
	//+----------------------------------------------------------------------------------------------------------------+
216
	//												GESTION DES COLLECTIONS
190
	//												GESTION DES COLLECTIONS
Line 217... Line 191...
217
	//+----------------------------------------------------------------------------------------------------------------+
191
	//+----------------------------------------------------------------------------------------------------------------+
218
	
192
	
219
	public void selectionnerCollection(Rafraichissable vueARafraichir, String projetId, String collectionId, String nom, int start, int nbElements, Integer seqId) {
193
	public void selectionnerCollection(Rafraichissable vueARafraichir, String collectionId, String nom, int start, int nbElements, Integer seqId) {
220
		CollectionAsyncDao cDao = new CollectionAsyncDao(vueARafraichir);
194
		CollectionAsyncDao cDao = new CollectionAsyncDao(vueARafraichir);
Line 221... Line 195...
221
		cDao.selectionner(false, projetId, collectionId, nom, start, nbElements, seqId);
195
		cDao.selectionner(false, collectionId, nom, start, nbElements, seqId);
222
	}
196
	}
223
	
197
	
224
	public void selectionnerCollection(Rafraichissable vueARafraichir, String recherche, int start, int nbElements, Integer seqId) {
198
	public void selectionnerCollection(Rafraichissable vueARafraichir, String recherche, int start, int nbElements, Integer seqId) {
Line 225... Line 199...
225
		CollectionAsyncDao cDao = new CollectionAsyncDao(vueARafraichir);
199
		CollectionAsyncDao cDao = new CollectionAsyncDao(vueARafraichir);
226
		cDao.selectionner(true, null, null, recherche, start, nbElements, seqId);
200
		cDao.selectionner(true, null, recherche, start, nbElements, seqId);
227
	}
201
	}
Line 326... Line 300...
326
	}
300
	}
Line 327... Line 301...
327
	
301
	
328
	//+----------------------------------------------------------------------------------------------------------------+
302
	//+----------------------------------------------------------------------------------------------------------------+
329
	//												GESTION DES PERSONNES
303
	//												GESTION DES PERSONNES
-
 
304
	//+----------------------------------------------------------------------------------------------------------------+
330
	//+----------------------------------------------------------------------------------------------------------------+
305
	
331
	public void selectionnerPersonne(Rafraichissable vueARafraichir, String personneId, String projetId, String nomComplet, int start, int nbElements) {
306
	public void selectionnerPersonne(Rafraichissable vueARafraichir, String personneId, String nomComplet, int start, int nbElements) {
332
		selectionnerPersonne(vueARafraichir, personneId, projetId, nomComplet, start, nbElements, null);
307
		selectionnerPersonne(vueARafraichir, personneId, nomComplet, start, nbElements, null);
Line 333... Line 308...
333
	}
308
	}
334
	
309
	
335
	public void selectionnerPersonne(Rafraichissable vueARafraichir, String personneId, String projetId, String nomComplet, int start, int nbElements, Integer seqId) {
310
	public void selectionnerPersonne(Rafraichissable vueARafraichir, String personneId, String nomComplet, int start, int nbElements, Integer seqId) {
336
		PersonneAsyncDao pDao = new PersonneAsyncDao(vueARafraichir);
311
		PersonneAsyncDao pDao = new PersonneAsyncDao(vueARafraichir);
Line 337... Line 312...
337
		pDao.selectionner(false, personneId, projetId, nomComplet, start, nbElements, seqId);
312
		pDao.selectionner(false, personneId, nomComplet, start, nbElements, seqId);
338
	}
313
	}
339
	
314
	
340
	public void selectionnerPersonne(Rafraichissable vueARafraichir, String recherche, int start, int nbElements, Integer seqId) {
315
	public void selectionnerPersonne(Rafraichissable vueARafraichir, String recherche, int start, int nbElements, Integer seqId) {
Line 341... Line 316...
341
		PersonneAsyncDao pDao = new PersonneAsyncDao(vueARafraichir);
316
		PersonneAsyncDao pDao = new PersonneAsyncDao(vueARafraichir);
342
		pDao.selectionner(true, null, null, recherche, start, nbElements, seqId);
317
		pDao.selectionner(true, null, recherche, start, nbElements, seqId);
343
	}
318
	}
Line 359... Line 334...
359
 
334
 
360
	//+----------------------------------------------------------------------------------------------------------------+
335
	//+----------------------------------------------------------------------------------------------------------------+
361
	//												GESTION DES PUBLICATIONS
336
	//												GESTION DES PUBLICATIONS
Line 362... Line 337...
362
	//+----------------------------------------------------------------------------------------------------------------+
337
	//+----------------------------------------------------------------------------------------------------------------+
363
	
338
	
364
	public void selectionnerPublication(Rafraichissable vueARafraichir, String publicationId, String projetId, String nomComplet, int pageCourante, int nbElements, Integer seqId) {
339
	public void selectionnerPublication(Rafraichissable vueARafraichir, String publicationId, String nomComplet, int pageCourante, int nbElements, Integer seqId) {
365
		PublicationAsyncDao lsDao = new PublicationAsyncDao(vueARafraichir);
340
		PublicationAsyncDao lsDao = new PublicationAsyncDao(vueARafraichir);
Line 366... Line 341...
366
		lsDao.selectionner(false, publicationId, projetId, nomComplet, pageCourante, nbElements, seqId);
341
		lsDao.selectionner(false, publicationId, nomComplet, pageCourante, nbElements, seqId);
367
	}
342
	}
368
	
343
	
369
	public void selectionnerPublication(Rafraichissable vueARafraichir, String recherche, int start, int nbElements, Integer seqId) {
344
	public void selectionnerPublication(Rafraichissable vueARafraichir, String recherche, int start, int nbElements, Integer seqId) {
Line 370... Line 345...
370
		PublicationAsyncDao lsDao = new PublicationAsyncDao(vueARafraichir);
345
		PublicationAsyncDao lsDao = new PublicationAsyncDao(vueARafraichir);
371
		lsDao.selectionner(true, null, null, recherche, start, nbElements, seqId);
346
		lsDao.selectionner(true, null, recherche, start, nbElements, seqId);
372
	}
347
	}
Line 417... Line 392...
417
	public void supprimerPublicationAPersonne(Rafraichissable vueARafraichir, String publicationsAPersonneId) {		
392
	public void supprimerPublicationAPersonne(Rafraichissable vueARafraichir, String publicationsAPersonneId) {		
418
		PublicationAPersonneAsyncDao publicationAPersonneDao = new PublicationAPersonneAsyncDao(vueARafraichir);		
393
		PublicationAPersonneAsyncDao publicationAPersonneDao = new PublicationAPersonneAsyncDao(vueARafraichir);		
419
		publicationAPersonneDao.supprimer(publicationsAPersonneId);
394
		publicationAPersonneDao.supprimer(publicationsAPersonneId);
420
	}
395
	}
Line 421... Line -...
421
 
-
 
422
	public void supprimerProjet(Rafraichissable vueARafraichir,
-
 
423
			List<Projet> projetListe) {
-
 
424
		
-
 
425
		String projetsId = "";
-
 
426
		for(Iterator<Projet> it = projetListe.iterator(); it.hasNext();) {
-
 
427
			Projet proj = it.next();
-
 
428
			projetsId += proj.getId();
-
 
429
			if(it.hasNext()) {
-
 
430
				projetsId += ",";
-
 
431
			}
-
 
432
		}
-
 
433
		ProjetAsyncDao pADAO = new ProjetAsyncDao(vueARafraichir);
-
 
434
		pADAO.supprimer(projetsId);
-
 
435
	}
-
 
436
	
396
 
437
	//+----------------------------------------------------------------------------------------------------------------+
397
	//+----------------------------------------------------------------------------------------------------------------+
438
	//												GESTION DES COMMENTAIRES
398
	//												GESTION DES COMMENTAIRES
Line 439... Line 399...
439
	//+----------------------------------------------------------------------------------------------------------------+
399
	//+----------------------------------------------------------------------------------------------------------------+
440
	
400
	
441
	public void selectionnerCommentaire(Rafraichissable vueARafraichir, String commentaireId, String projetId, String titre, int pageCourante, int nbElements, Integer seqId) {		
401
	public void selectionnerCommentaire(Rafraichissable vueARafraichir, String commentaireId, String titre, int pageCourante, int nbElements, Integer seqId) {		
442
		CommentaireAsyncDao cDao = new CommentaireAsyncDao(vueARafraichir);
402
		CommentaireAsyncDao cDao = new CommentaireAsyncDao(vueARafraichir);
Line 443... Line 403...
443
		cDao.selectionner(false, commentaireId, projetId, titre, pageCourante, nbElements, seqId);
403
		cDao.selectionner(false, commentaireId, titre, pageCourante, nbElements, seqId);
444
	}
404
	}
445
	
405
	
446
	public void selectionnerCommentaire(Rafraichissable vueARafraichir, String recherche, int pageCourante, int nbElements, Integer seqId) {		
406
	public void selectionnerCommentaire(Rafraichissable vueARafraichir, String recherche, int pageCourante, int nbElements, Integer seqId) {		
Line 447... Line 407...
447
		CommentaireAsyncDao cDao = new CommentaireAsyncDao(vueARafraichir);
407
		CommentaireAsyncDao cDao = new CommentaireAsyncDao(vueARafraichir);
448
		cDao.selectionner(true, null, null, recherche, pageCourante, nbElements, seqId);
408
		cDao.selectionner(true, null, recherche, pageCourante, nbElements, seqId);
449
	}
409
	}