Subversion Repositories eFlore/Applications.coel

Rev

Rev 1691 | Rev 1784 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1691 Rev 1763
1
package org.tela_botanica.client;
1
package org.tela_botanica.client;
2
 
2
 
3
import java.util.HashMap;
3
import java.util.HashMap;
4
import java.util.Iterator;
4
import java.util.Iterator;
5
import java.util.List;
5
import java.util.List;
6
 
6
 
7
import org.tela_botanica.client.configuration.Configuration;
7
import org.tela_botanica.client.configuration.Configuration;
8
import org.tela_botanica.client.interfaces.Rafraichissable;
8
import org.tela_botanica.client.interfaces.Rafraichissable;
9
import org.tela_botanica.client.modeles.Utilisateur;
9
import org.tela_botanica.client.modeles.Utilisateur;
10
import org.tela_botanica.client.modeles.UtilisateurAsyncDao;
10
import org.tela_botanica.client.modeles.UtilisateurAsyncDao;
11
import org.tela_botanica.client.modeles.ValeurListeAsyncDao;
11
import org.tela_botanica.client.modeles.ValeurListeAsyncDao;
12
import org.tela_botanica.client.modeles.collection.Collection;
12
import org.tela_botanica.client.modeles.collection.Collection;
13
import org.tela_botanica.client.modeles.collection.CollectionACommentaire;
13
import org.tela_botanica.client.modeles.collection.CollectionACommentaire;
14
import org.tela_botanica.client.modeles.collection.CollectionACommentaireAsyncDao;
14
import org.tela_botanica.client.modeles.collection.CollectionACommentaireAsyncDao;
15
import org.tela_botanica.client.modeles.collection.CollectionAPersonne;
15
import org.tela_botanica.client.modeles.collection.CollectionAPersonne;
16
import org.tela_botanica.client.modeles.collection.CollectionAPersonneAsyncDao;
16
import org.tela_botanica.client.modeles.collection.CollectionAPersonneAsyncDao;
17
import org.tela_botanica.client.modeles.collection.CollectionAPublication;
17
import org.tela_botanica.client.modeles.collection.CollectionAPublication;
18
import org.tela_botanica.client.modeles.collection.CollectionAPublicationAsyncDao;
18
import org.tela_botanica.client.modeles.collection.CollectionAPublicationAsyncDao;
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;
31
import org.tela_botanica.client.modeles.structure.StructureAPersonne;
29
import org.tela_botanica.client.modeles.structure.StructureAPersonne;
32
import org.tela_botanica.client.modeles.structure.StructureAPersonneAsyncDao;
30
import org.tela_botanica.client.modeles.structure.StructureAPersonneAsyncDao;
33
import org.tela_botanica.client.modeles.structure.StructureAsyncDao;
31
import org.tela_botanica.client.modeles.structure.StructureAsyncDao;
34
import org.tela_botanica.client.modeles.structure.StructureConservation;
32
import org.tela_botanica.client.modeles.structure.StructureConservation;
35
import org.tela_botanica.client.modeles.structure.StructureValorisation;
33
import org.tela_botanica.client.modeles.structure.StructureValorisation;
36
import org.tela_botanica.client.synchronisation.Sequenceur;
34
import org.tela_botanica.client.synchronisation.Sequenceur;
37
import org.tela_botanica.client.util.Debug;
35
import org.tela_botanica.client.util.Debug;
38
 
36
 
39
import com.extjs.gxt.ui.client.Registry;
37
import com.extjs.gxt.ui.client.Registry;
40
import com.google.gwt.core.client.GWT;
38
import com.google.gwt.core.client.GWT;
41
import com.google.gwt.user.client.Window;
39
import com.google.gwt.user.client.Window;
42
 
40
 
43
// TODO : le transformer en SINGLETON
41
// TODO : le transformer en SINGLETON
44
public class Modele {
42
public class Modele {
45
 
43
 
46
	public Modele() {
44
	public Modele() {
47
		Registry.register(RegistreId.MODELE, this);
45
		Registry.register(RegistreId.MODELE, this);
48
	}
46
	}
49
 
47
 
50
	//+----------------------------------------------------------------------------------------------------------------+
48
	//+----------------------------------------------------------------------------------------------------------------+
51
	//												GESTION DES VALEURS ET LISTES
49
	//												GESTION DES VALEURS ET LISTES
52
	//+----------------------------------------------------------------------------------------------------------------+
50
	//+----------------------------------------------------------------------------------------------------------------+
53
	public void obtenirListeValeurs(Rafraichissable vue, Integer id, Integer seqId) {
51
	public void obtenirListeValeurs(Rafraichissable vue, Integer id, Integer seqId) {
54
		ValeurListeAsyncDao lsDao = new ValeurListeAsyncDao(vue);
52
		ValeurListeAsyncDao lsDao = new ValeurListeAsyncDao(vue);
55
		lsDao.obtenirListe(id, seqId);
53
		lsDao.obtenirListe(id, seqId);
56
	}
54
	}
57
 
55
 
58
	public void obtenirListeValeurs(Rafraichissable vue, String type, int id, Integer seqId) {
56
	public void obtenirListeValeurs(Rafraichissable vue, String type, int id, Integer seqId) {
59
		ValeurListeAsyncDao lsDao = new ValeurListeAsyncDao(vue);
57
		ValeurListeAsyncDao lsDao = new ValeurListeAsyncDao(vue);
60
		lsDao.obtenirListe(type, String.valueOf(id), seqId);
58
		lsDao.obtenirListe(type, String.valueOf(id), seqId);
61
	}	
59
	}	
62
	
60
	
63
	public void obtenirListeValeurs(Rafraichissable vue, Integer listId, boolean pagination, String recherche, int start, int nbElements, Integer seqId) {
61
	public void obtenirListeValeurs(Rafraichissable vue, Integer listId, boolean pagination, String recherche, int start, int nbElements, Integer seqId) {
64
		ValeurListeAsyncDao lsDao = new ValeurListeAsyncDao(vue);
62
		ValeurListeAsyncDao lsDao = new ValeurListeAsyncDao(vue);
65
		lsDao.obtenirListe(listId, pagination, recherche, start, nbElements, seqId);
63
		lsDao.obtenirListe(listId, pagination, recherche, start, nbElements, seqId);
66
	}
64
	}
67
 
65
 
68
	public void obtenirListeValeurs(Rafraichissable vue, String type, String id, Integer seqId) {
66
	public void obtenirListeValeurs(Rafraichissable vue, String type, String id, Integer seqId) {
69
		ValeurListeAsyncDao lsDao = new ValeurListeAsyncDao(vue);
67
		ValeurListeAsyncDao lsDao = new ValeurListeAsyncDao(vue);
70
		lsDao.obtenirListe(type, String.valueOf(id), seqId);
68
		lsDao.obtenirListe(type, String.valueOf(id), seqId);
71
	}	
69
	}	
72
	
70
	
73
	public void obtenirListeRegion(Rafraichissable vue, Integer id, String region) {
71
	public void obtenirListeRegion(Rafraichissable vue, Integer id, String region) {
74
		ValeurListeAsyncDao lsDao = new ValeurListeAsyncDao(vue);
72
		ValeurListeAsyncDao lsDao = new ValeurListeAsyncDao(vue);
75
		lsDao.selectionner("abv", id, region, null, null);
73
		lsDao.selectionner("abv", id, region, null, null);
76
	}
74
	}
77
	
75
	
78
	public void obtenirValeur(Rafraichissable vue, String type, Integer id, String identifiant, Integer seqId) {
76
	public void obtenirValeur(Rafraichissable vue, String type, Integer id, String identifiant, Integer seqId) {
79
		ValeurListeAsyncDao lsDao = new ValeurListeAsyncDao(vue);
77
		ValeurListeAsyncDao lsDao = new ValeurListeAsyncDao(vue);
80
		lsDao.selectionner(type, id, null, identifiant, seqId);
78
		lsDao.selectionner(type, id, null, identifiant, seqId);
81
	}
79
	}
82
	
80
	
83
	//+----------------------------------------------------------------------------------------------------------------+
81
	//+----------------------------------------------------------------------------------------------------------------+
84
	//												GESTION DES UTILISATEURS
82
	//												GESTION DES UTILISATEURS
85
	//+----------------------------------------------------------------------------------------------------------------+
83
	//+----------------------------------------------------------------------------------------------------------------+
86
	
84
	
87
	public void connecterUtilisateur(Rafraichissable vue, String login, String mdp) {
85
	public void connecterUtilisateur(Rafraichissable vue, String login, String mdp) {
88
		Utilisateur utilisateur = (Utilisateur) Registry.get(RegistreId.UTILISATEUR_COURANT);
86
		Utilisateur utilisateur = (Utilisateur) Registry.get(RegistreId.UTILISATEUR_COURANT);
89
		utilisateur.setLogin(login);
87
		utilisateur.setLogin(login);
90
		utilisateur.setMotDePasse(mdp);
88
		utilisateur.setMotDePasse(mdp);
91
		UtilisateurAsyncDao uDao = new UtilisateurAsyncDao(vue);
89
		UtilisateurAsyncDao uDao = new UtilisateurAsyncDao(vue);
92
		uDao.connecterUtilisateur();		
90
		uDao.connecterUtilisateur();		
93
	}
91
	}
94
	
92
	
95
	public void deconnecterUtilisateur(Rafraichissable vue) {
93
	public void deconnecterUtilisateur(Rafraichissable vue) {
96
		UtilisateurAsyncDao uDao = new UtilisateurAsyncDao(vue);
94
		UtilisateurAsyncDao uDao = new UtilisateurAsyncDao(vue);
97
		uDao.deconnecterUtilisateur();		
95
		uDao.deconnecterUtilisateur();		
98
	}
96
	}
99
	
97
	
100
	public void accepterLicence(Rafraichissable vue)	{
98
	public void accepterLicence(Rafraichissable vue)	{
101
		UtilisateurAsyncDao uDao = new UtilisateurAsyncDao(vue);
99
		UtilisateurAsyncDao uDao = new UtilisateurAsyncDao(vue);
102
		uDao.accepterLicence();
100
		uDao.accepterLicence();
103
		
101
		
104
	}
102
	}
105
	
103
	
106
	public void modifierUtilisateur(Rafraichissable vueARafraichir, Utilisateur utilisateur)	{
104
	public void modifierUtilisateur(Rafraichissable vueARafraichir, Utilisateur utilisateur)	{
107
		PersonneAsyncDao pAdao = new PersonneAsyncDao(vueARafraichir);
105
		PersonneAsyncDao pAdao = new PersonneAsyncDao(vueARafraichir);
108
		
106
		
109
		Personne personne = new Personne();
107
		Personne personne = new Personne();
110
		personne.setId(utilisateur.getId());
108
		personne.setId(utilisateur.getId());
111
		personne.setPrenom(utilisateur.getPrenom());
109
		personne.setPrenom(utilisateur.getPrenom());
112
		personne.setNom(utilisateur.getNom());
110
		personne.setNom(utilisateur.getNom());
113
		personne.setNomComplet(utilisateur.getNomComplet());
111
		personne.setNomComplet(utilisateur.getNomComplet());
114
		personne.setParametre(utilisateur.getParametre());
112
		personne.setParametre(utilisateur.getParametre());
115
		
113
		
116
		pAdao.modifier(personne);
114
		pAdao.modifier(personne);
117
	}
115
	}
118
	
116
	
119
	//+----------------------------------------------------------------------------------------------------------------+
117
	//+----------------------------------------------------------------------------------------------------------------+
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
 
-
 
143
	//+----------------------------------------------------------------------------------------------------------------+
-
 
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 
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) {
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
	
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);
162
		sDao.selectionner(true, null, null, recherche, null, start, nbElements, seqId, searchCity);
136
		sDao.selectionner(true, null, recherche, null, start, nbElements, seqId, searchCity);
163
	}
137
	}
164
	
138
	
165
	/** Lance la creation d'une Structure
139
	/** Lance la creation d'une Structure
166
	 * @param vueARafraichir la vue demandant a être rafraichie
140
	 * @param vueARafraichir la vue demandant a être rafraichie
167
	 * @param structure les données de la structure
141
	 * @param structure les données de la structure
168
	 */
142
	 */
169
	public void ajouterStructure(Rafraichissable vueARafraichir, Structure structure, StructureConservation conservation, StructureValorisation valorisation) {
143
	public void ajouterStructure(Rafraichissable vueARafraichir, Structure structure, StructureConservation conservation, StructureValorisation valorisation) {
170
		StructureAsyncDao structureDao = new StructureAsyncDao(vueARafraichir);
144
		StructureAsyncDao structureDao = new StructureAsyncDao(vueARafraichir);
171
		structureDao.ajouter(structure, conservation, valorisation);
145
		structureDao.ajouter(structure, conservation, valorisation);
172
	}
146
	}
173
 
147
 
174
	public void supprimerStructure(Rafraichissable vueARafraichir, String idStr) {
148
	public void supprimerStructure(Rafraichissable vueARafraichir, String idStr) {
175
		StructureAsyncDao structureDao = new StructureAsyncDao(vueARafraichir);
149
		StructureAsyncDao structureDao = new StructureAsyncDao(vueARafraichir);
176
		structureDao.supprimer(idStr);
150
		structureDao.supprimer(idStr);
177
	}
151
	}
178
	
152
	
179
	public void modifierStructure(Rafraichissable vueARafraichir, String structureId, Structure structure, StructureConservation conservation, StructureValorisation valorisation) {
153
	public void modifierStructure(Rafraichissable vueARafraichir, String structureId, Structure structure, StructureConservation conservation, StructureValorisation valorisation) {
180
		StructureAsyncDao structureDao = new StructureAsyncDao(vueARafraichir);
154
		StructureAsyncDao structureDao = new StructureAsyncDao(vueARafraichir);
181
		structureDao.modifier(structureId, structure, conservation, valorisation);
155
		structureDao.modifier(structureId, structure, conservation, valorisation);
182
	}
156
	}
183
 
157
 
184
	//+----------------------------------------------------------------------------------------------------------------+
158
	//+----------------------------------------------------------------------------------------------------------------+
185
	// GESTION de la relation STRUCTURE A PERSONNE
159
	// GESTION de la relation STRUCTURE A PERSONNE
186
	
160
	
187
	public void selectionnerStructureAPersonne(Rafraichissable vueARafraichir, String structureId, String roleId, Integer seqId) {
161
	public void selectionnerStructureAPersonne(Rafraichissable vueARafraichir, String structureId, String roleId, Integer seqId) {
188
		// Gestion des données de la table coel_structure_a_personne
162
		// Gestion des données de la table coel_structure_a_personne
189
		if (structureId != null && roleId != null) {
163
		if (structureId != null && roleId != null) {
190
			StructureAPersonneAsyncDao sapDao = new StructureAPersonneAsyncDao(vueARafraichir);
164
			StructureAPersonneAsyncDao sapDao = new StructureAPersonneAsyncDao(vueARafraichir);
191
			sapDao.selectionner(false, structureId, roleId, null, 0, -1, seqId);
165
			sapDao.selectionner(false, structureId, roleId, null, 0, -1, seqId);
192
		}
166
		}
193
	}
167
	}
194
	
168
	
195
	public void selectionnerStructureAPersonne(Rafraichissable vueARafraichir, String structureId, String roleId, String recherche, int start, int nbElements, Integer seqId) {
169
	public void selectionnerStructureAPersonne(Rafraichissable vueARafraichir, String structureId, String roleId, String recherche, int start, int nbElements, Integer seqId) {
196
		StructureAPersonneAsyncDao sapDao = new StructureAPersonneAsyncDao(vueARafraichir);
170
		StructureAPersonneAsyncDao sapDao = new StructureAPersonneAsyncDao(vueARafraichir);
197
		sapDao.selectionner(true, structureId, roleId, recherche, start, nbElements, seqId);
171
		sapDao.selectionner(true, structureId, roleId, recherche, start, nbElements, seqId);
198
	}
172
	}
199
	
173
	
200
	public void modifierStructureAPersonne(Rafraichissable vueARafraichir, StructureAPersonne personnel) {
174
	public void modifierStructureAPersonne(Rafraichissable vueARafraichir, StructureAPersonne personnel) {
201
		StructureAPersonneAsyncDao structureAPersonneDao = new StructureAPersonneAsyncDao(vueARafraichir);
175
		StructureAPersonneAsyncDao structureAPersonneDao = new StructureAPersonneAsyncDao(vueARafraichir);
202
		structureAPersonneDao.modifier(personnel);
176
		structureAPersonneDao.modifier(personnel);
203
	}
177
	}
204
	
178
	
205
	public void ajouterStructureAPersonne(Rafraichissable vueARafraichir, String structureId, StructureAPersonne personnel) {
179
	public void ajouterStructureAPersonne(Rafraichissable vueARafraichir, String structureId, StructureAPersonne personnel) {
206
		StructureAPersonneAsyncDao structureAPersonneDao = new StructureAPersonneAsyncDao(vueARafraichir);
180
		StructureAPersonneAsyncDao structureAPersonneDao = new StructureAPersonneAsyncDao(vueARafraichir);
207
		structureAPersonneDao.ajouter(structureId, personnel);	
181
		structureAPersonneDao.ajouter(structureId, personnel);	
208
	}
182
	}
209
	
183
	
210
	public void supprimerStructureAPersonne(Rafraichissable vueARafraichir, String personnelId) {
184
	public void supprimerStructureAPersonne(Rafraichissable vueARafraichir, String personnelId) {
211
		StructureAPersonneAsyncDao structureAPersonneDao = new StructureAPersonneAsyncDao(vueARafraichir);
185
		StructureAPersonneAsyncDao structureAPersonneDao = new StructureAPersonneAsyncDao(vueARafraichir);
212
		structureAPersonneDao.supprimer(personnelId);
186
		structureAPersonneDao.supprimer(personnelId);
213
	}
187
	}
214
 
188
 
215
	//+----------------------------------------------------------------------------------------------------------------+
189
	//+----------------------------------------------------------------------------------------------------------------+
216
	//												GESTION DES COLLECTIONS
190
	//												GESTION DES COLLECTIONS
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);
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) {
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
	}
228
	
202
	
229
	public void ajouterCollection(Rafraichissable vueARafraichir, Collection collection) {
203
	public void ajouterCollection(Rafraichissable vueARafraichir, Collection collection) {
230
		CollectionAsyncDao cDao = new CollectionAsyncDao(vueARafraichir);
204
		CollectionAsyncDao cDao = new CollectionAsyncDao(vueARafraichir);
231
		cDao.ajouter(collection);
205
		cDao.ajouter(collection);
232
	}
206
	}
233
 
207
 
234
	public void modifierCollection(Rafraichissable vueARafraichir, Collection collection) {
208
	public void modifierCollection(Rafraichissable vueARafraichir, Collection collection) {
235
		CollectionAsyncDao cDao = new CollectionAsyncDao(vueARafraichir);
209
		CollectionAsyncDao cDao = new CollectionAsyncDao(vueARafraichir);
236
		cDao.modifier(collection);
210
		cDao.modifier(collection);
237
	}
211
	}
238
 
212
 
239
	public void supprimerCollection(Rafraichissable vueARafraichir, String identifiantsCollectionSepareParVirgule) {
213
	public void supprimerCollection(Rafraichissable vueARafraichir, String identifiantsCollectionSepareParVirgule) {
240
		CollectionAsyncDao cDao = new CollectionAsyncDao(vueARafraichir);
214
		CollectionAsyncDao cDao = new CollectionAsyncDao(vueARafraichir);
241
		cDao.supprimer(identifiantsCollectionSepareParVirgule);
215
		cDao.supprimer(identifiantsCollectionSepareParVirgule);
242
	}
216
	}
243
	
217
	
244
	//+----------------------------------------------------------------------------------------------------------------+
218
	//+----------------------------------------------------------------------------------------------------------------+
245
	// GESTION de la relation COLLECTION A PERSONNE
219
	// GESTION de la relation COLLECTION A PERSONNE
246
	
220
	
247
	public void selectionnerCollectionAPersonne(Rafraichissable vueARafraichir, String collectionId, String roleId, String recherche, int start, int nbElements, Integer seqId) {
221
	public void selectionnerCollectionAPersonne(Rafraichissable vueARafraichir, String collectionId, String roleId, String recherche, int start, int nbElements, Integer seqId) {
248
		CollectionAPersonneAsyncDao sapDao = new CollectionAPersonneAsyncDao(vueARafraichir);
222
		CollectionAPersonneAsyncDao sapDao = new CollectionAPersonneAsyncDao(vueARafraichir);
249
		sapDao.selectionner(true, collectionId, roleId, recherche, start, nbElements, seqId);
223
		sapDao.selectionner(true, collectionId, roleId, recherche, start, nbElements, seqId);
250
	}
224
	}
251
	
225
	
252
	public void selectionnerCollectionAPersonne(Rafraichissable vueARafraichir, String collectionId, String roleId, Integer seqId) {
226
	public void selectionnerCollectionAPersonne(Rafraichissable vueARafraichir, String collectionId, String roleId, Integer seqId) {
253
		CollectionAPersonneAsyncDao sapDao = new CollectionAPersonneAsyncDao(vueARafraichir);
227
		CollectionAPersonneAsyncDao sapDao = new CollectionAPersonneAsyncDao(vueARafraichir);
254
		sapDao.selectionner(false, collectionId, roleId, null, 0, -1, seqId);
228
		sapDao.selectionner(false, collectionId, roleId, null, 0, -1, seqId);
255
	}
229
	}
256
	
230
	
257
	public void modifierCollectionAPersonne(Rafraichissable vueARafraichir, CollectionAPersonne collectionAPersonne) {
231
	public void modifierCollectionAPersonne(Rafraichissable vueARafraichir, CollectionAPersonne collectionAPersonne) {
258
		CollectionAPersonneAsyncDao collectionAPersonneDao = new CollectionAPersonneAsyncDao(vueARafraichir);
232
		CollectionAPersonneAsyncDao collectionAPersonneDao = new CollectionAPersonneAsyncDao(vueARafraichir);
259
		collectionAPersonneDao.modifier(collectionAPersonne);
233
		collectionAPersonneDao.modifier(collectionAPersonne);
260
	}
234
	}
261
	
235
	
262
	public void ajouterCollectionAPersonne(Rafraichissable vueARafraichir, String collectionId, CollectionAPersonne collectionAPersonne) {
236
	public void ajouterCollectionAPersonne(Rafraichissable vueARafraichir, String collectionId, CollectionAPersonne collectionAPersonne) {
263
		CollectionAPersonneAsyncDao collectionAPersonneDao = new CollectionAPersonneAsyncDao(vueARafraichir);
237
		CollectionAPersonneAsyncDao collectionAPersonneDao = new CollectionAPersonneAsyncDao(vueARafraichir);
264
		collectionAPersonneDao.ajouter(collectionId, collectionAPersonne);	
238
		collectionAPersonneDao.ajouter(collectionId, collectionAPersonne);	
265
	}
239
	}
266
	
240
	
267
	public void supprimerCollectionAPersonne(Rafraichissable vueARafraichir, String collectionAPersonneId) {
241
	public void supprimerCollectionAPersonne(Rafraichissable vueARafraichir, String collectionAPersonneId) {
268
		CollectionAPersonneAsyncDao collectionAPersonneDao = new CollectionAPersonneAsyncDao(vueARafraichir);
242
		CollectionAPersonneAsyncDao collectionAPersonneDao = new CollectionAPersonneAsyncDao(vueARafraichir);
269
		collectionAPersonneDao.supprimer(collectionAPersonneId);
243
		collectionAPersonneDao.supprimer(collectionAPersonneId);
270
	}
244
	}
271
	
245
	
272
	//+----------------------------------------------------------------------------------------------------------------+
246
	//+----------------------------------------------------------------------------------------------------------------+
273
	// GESTION de la relation COLLECTION A PUBLICATION
247
	// GESTION de la relation COLLECTION A PUBLICATION
274
 
248
 
275
	public void selectionnerCollectionAPublication(Rafraichissable vueARafraichir, String collectionId, String recherche, int start, int nbElements, Integer seqId) {
249
	public void selectionnerCollectionAPublication(Rafraichissable vueARafraichir, String collectionId, String recherche, int start, int nbElements, Integer seqId) {
276
		CollectionAPublicationAsyncDao capDao = new CollectionAPublicationAsyncDao(vueARafraichir);
250
		CollectionAPublicationAsyncDao capDao = new CollectionAPublicationAsyncDao(vueARafraichir);
277
		capDao.selectionner(true, collectionId, recherche, start, nbElements, seqId);
251
		capDao.selectionner(true, collectionId, recherche, start, nbElements, seqId);
278
	}
252
	}
279
	
253
	
280
	public void selectionnerCollectionAPublication(Rafraichissable vueARafraichir, String collectionId, Integer seqId) {
254
	public void selectionnerCollectionAPublication(Rafraichissable vueARafraichir, String collectionId, Integer seqId) {
281
		CollectionAPublicationAsyncDao capDao = new CollectionAPublicationAsyncDao(vueARafraichir);
255
		CollectionAPublicationAsyncDao capDao = new CollectionAPublicationAsyncDao(vueARafraichir);
282
		capDao.selectionner(false, collectionId, null, 0, -1, seqId);
256
		capDao.selectionner(false, collectionId, null, 0, -1, seqId);
283
	}
257
	}
284
	
258
	
285
	public void modifierCollectionAPublication(Rafraichissable vueARafraichir, CollectionAPublication collectionAPublication) {
259
	public void modifierCollectionAPublication(Rafraichissable vueARafraichir, CollectionAPublication collectionAPublication) {
286
		CollectionAPublicationAsyncDao collectionAPublicationDao = new CollectionAPublicationAsyncDao(vueARafraichir);
260
		CollectionAPublicationAsyncDao collectionAPublicationDao = new CollectionAPublicationAsyncDao(vueARafraichir);
287
		collectionAPublicationDao.modifier(collectionAPublication);
261
		collectionAPublicationDao.modifier(collectionAPublication);
288
	}
262
	}
289
	
263
	
290
	public void ajouterCollectionAPublication(Rafraichissable vueARafraichir, String collectionId, CollectionAPublication collectionAPublication) {
264
	public void ajouterCollectionAPublication(Rafraichissable vueARafraichir, String collectionId, CollectionAPublication collectionAPublication) {
291
		CollectionAPublicationAsyncDao collectionAPublicationDao = new CollectionAPublicationAsyncDao(vueARafraichir);
265
		CollectionAPublicationAsyncDao collectionAPublicationDao = new CollectionAPublicationAsyncDao(vueARafraichir);
292
		collectionAPublicationDao.ajouter(collectionId, collectionAPublication);	
266
		collectionAPublicationDao.ajouter(collectionId, collectionAPublication);	
293
	}
267
	}
294
	
268
	
295
	public void supprimerCollectionAPublication(Rafraichissable vueARafraichir, String collectionAPublicationId) {
269
	public void supprimerCollectionAPublication(Rafraichissable vueARafraichir, String collectionAPublicationId) {
296
		CollectionAPublicationAsyncDao collectionAPublicationDao = new CollectionAPublicationAsyncDao(vueARafraichir);
270
		CollectionAPublicationAsyncDao collectionAPublicationDao = new CollectionAPublicationAsyncDao(vueARafraichir);
297
		collectionAPublicationDao.supprimer(collectionAPublicationId);
271
		collectionAPublicationDao.supprimer(collectionAPublicationId);
298
	}
272
	}
299
 
273
 
300
	//+----------------------------------------------------------------------------------------------------------------+
274
	//+----------------------------------------------------------------------------------------------------------------+
301
	// GESTION de la relation COLLECTION A COMMENTAIRE
275
	// GESTION de la relation COLLECTION A COMMENTAIRE
302
	
276
	
303
	public void selectionnerCollectionACommentaire(Rafraichissable vueARafraichir, String collectionId, Integer seqId) {
277
	public void selectionnerCollectionACommentaire(Rafraichissable vueARafraichir, String collectionId, Integer seqId) {
304
		CollectionACommentaireAsyncDao cacDao = new CollectionACommentaireAsyncDao(vueARafraichir);
278
		CollectionACommentaireAsyncDao cacDao = new CollectionACommentaireAsyncDao(vueARafraichir);
305
		cacDao.selectionner(false, collectionId, null, 0, -1, seqId);
279
		cacDao.selectionner(false, collectionId, null, 0, -1, seqId);
306
	}
280
	}
307
	
281
	
308
	public void selectionnerCollectionACommentaire(Rafraichissable vueARafraichir, String collectionId, String recherche, int start, int nbElements, Integer seqId) {
282
	public void selectionnerCollectionACommentaire(Rafraichissable vueARafraichir, String collectionId, String recherche, int start, int nbElements, Integer seqId) {
309
		CollectionACommentaireAsyncDao cacDao = new CollectionACommentaireAsyncDao(vueARafraichir);
283
		CollectionACommentaireAsyncDao cacDao = new CollectionACommentaireAsyncDao(vueARafraichir);
310
		cacDao.selectionner(true, collectionId, recherche, start, nbElements, seqId);
284
		cacDao.selectionner(true, collectionId, recherche, start, nbElements, seqId);
311
	}
285
	}
312
	
286
	
313
	public void modifierCollectionACommentaire(Rafraichissable vueARafraichir, CollectionACommentaire collectionACommentaire) {
287
	public void modifierCollectionACommentaire(Rafraichissable vueARafraichir, CollectionACommentaire collectionACommentaire) {
314
		CollectionACommentaireAsyncDao cacDao = new CollectionACommentaireAsyncDao(vueARafraichir);
288
		CollectionACommentaireAsyncDao cacDao = new CollectionACommentaireAsyncDao(vueARafraichir);
315
		cacDao.modifier(collectionACommentaire);
289
		cacDao.modifier(collectionACommentaire);
316
	}
290
	}
317
	
291
	
318
	public void ajouterCollectionACommentaire(Rafraichissable vueARafraichir, String collectionId, CollectionACommentaire collectionACommentaire) {
292
	public void ajouterCollectionACommentaire(Rafraichissable vueARafraichir, String collectionId, CollectionACommentaire collectionACommentaire) {
319
		CollectionACommentaireAsyncDao cacDao = new CollectionACommentaireAsyncDao(vueARafraichir);
293
		CollectionACommentaireAsyncDao cacDao = new CollectionACommentaireAsyncDao(vueARafraichir);
320
		cacDao.ajouter(collectionId, collectionACommentaire);	
294
		cacDao.ajouter(collectionId, collectionACommentaire);	
321
	}
295
	}
322
	
296
	
323
	public void supprimerCollectionACommentaire(Rafraichissable vueARafraichir, String collectionACommentaireId, String mode) {
297
	public void supprimerCollectionACommentaire(Rafraichissable vueARafraichir, String collectionACommentaireId, String mode) {
324
		CollectionACommentaireAsyncDao cacDao = new CollectionACommentaireAsyncDao(vueARafraichir);
298
		CollectionACommentaireAsyncDao cacDao = new CollectionACommentaireAsyncDao(vueARafraichir);
325
		cacDao.supprimer(collectionACommentaireId, mode);
299
		cacDao.supprimer(collectionACommentaireId, mode);
326
	}
300
	}
327
	
301
	
328
	//+----------------------------------------------------------------------------------------------------------------+
302
	//+----------------------------------------------------------------------------------------------------------------+
329
	//												GESTION DES PERSONNES
303
	//												GESTION DES PERSONNES
330
	//+----------------------------------------------------------------------------------------------------------------+
304
	//+----------------------------------------------------------------------------------------------------------------+
-
 
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);
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);
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) {
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
	}
344
 
319
 
345
	public void supprimerPersonne(Rafraichissable vueARafraichir, String idPersonneSepareParVirgule) {
320
	public void supprimerPersonne(Rafraichissable vueARafraichir, String idPersonneSepareParVirgule) {
346
		PersonneAsyncDao personneDao = new PersonneAsyncDao(vueARafraichir);
321
		PersonneAsyncDao personneDao = new PersonneAsyncDao(vueARafraichir);
347
		personneDao.supprimer(idPersonneSepareParVirgule);
322
		personneDao.supprimer(idPersonneSepareParVirgule);
348
	}
323
	}
349
	
324
	
350
	public void ajouterPersonne(Rafraichissable vue, Personne personne)	{
325
	public void ajouterPersonne(Rafraichissable vue, Personne personne)	{
351
		PersonneAsyncDao personneDao = new PersonneAsyncDao(vue);
326
		PersonneAsyncDao personneDao = new PersonneAsyncDao(vue);
352
		personneDao.ajouter(personne);
327
		personneDao.ajouter(personne);
353
	}
328
	}
354
	
329
	
355
	public void modifierPersonne(Rafraichissable vueARafraichir, Personne personne)	{
330
	public void modifierPersonne(Rafraichissable vueARafraichir, Personne personne)	{
356
		PersonneAsyncDao personneDao = new PersonneAsyncDao(vueARafraichir);
331
		PersonneAsyncDao personneDao = new PersonneAsyncDao(vueARafraichir);
357
		personneDao.modifier(personne);
332
		personneDao.modifier(personne);
358
	}
333
	}
359
 
334
 
360
	//+----------------------------------------------------------------------------------------------------------------+
335
	//+----------------------------------------------------------------------------------------------------------------+
361
	//												GESTION DES PUBLICATIONS
336
	//												GESTION DES PUBLICATIONS
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);
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) {
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
	}
373
	
348
	
374
	public void modifierPublication(Rafraichissable vueRafraichir, Publication publication, Integer seqId) {
349
	public void modifierPublication(Rafraichissable vueRafraichir, Publication publication, Integer seqId) {
375
		PublicationAsyncDao pDao = new PublicationAsyncDao(vueRafraichir);
350
		PublicationAsyncDao pDao = new PublicationAsyncDao(vueRafraichir);
376
		pDao.modifier(publication, seqId);
351
		pDao.modifier(publication, seqId);
377
	}
352
	}
378
 
353
 
379
	public void ajouterPublication(Rafraichissable vueARafraichir, Publication publication, Integer seqId) {
354
	public void ajouterPublication(Rafraichissable vueARafraichir, Publication publication, Integer seqId) {
380
		PublicationAsyncDao pDao = new PublicationAsyncDao(vueARafraichir);
355
		PublicationAsyncDao pDao = new PublicationAsyncDao(vueARafraichir);
381
		pDao.ajouter(publication, seqId);
356
		pDao.ajouter(publication, seqId);
382
	}
357
	}
383
 
358
 
384
	public void supprimerPublication(Rafraichissable vueARafraichir, String idPublicationSeparesParVirgule) {		
359
	public void supprimerPublication(Rafraichissable vueARafraichir, String idPublicationSeparesParVirgule) {		
385
		PublicationAsyncDao pDao = new PublicationAsyncDao(vueARafraichir);
360
		PublicationAsyncDao pDao = new PublicationAsyncDao(vueARafraichir);
386
		pDao.supprimer(idPublicationSeparesParVirgule);
361
		pDao.supprimer(idPublicationSeparesParVirgule);
387
	}
362
	}
388
 
363
 
389
	//+----------------------------------------------------------------------------------------------------------------+
364
	//+----------------------------------------------------------------------------------------------------------------+
390
	// GESTION de la relation PUBLICATION A PERSONNE
365
	// GESTION de la relation PUBLICATION A PERSONNE
391
 
366
 
392
	public void selectionPersonnesAPublication(Rafraichissable vueARafraichir, String publicationId, String recherche, int start, int nbElements, Integer seqId) {
367
	public void selectionPersonnesAPublication(Rafraichissable vueARafraichir, String publicationId, String recherche, int start, int nbElements, Integer seqId) {
393
		PublicationAPersonneAsyncDao paDao = new PublicationAPersonneAsyncDao(vueARafraichir);
368
		PublicationAPersonneAsyncDao paDao = new PublicationAPersonneAsyncDao(vueARafraichir);
394
		paDao.selectionner(true, publicationId, null, PublicationAPersonne.ROLE_AUTEUR, recherche, start, nbElements, seqId);
369
		paDao.selectionner(true, publicationId, null, PublicationAPersonne.ROLE_AUTEUR, recherche, start, nbElements, seqId);
395
	}
370
	}
396
	
371
	
397
	public void selectionPublicationsAPersonne(Rafraichissable vueARafraichir, String personneId, String roleIds, String recherche, int start, int nbElements, Integer seqId) {
372
	public void selectionPublicationsAPersonne(Rafraichissable vueARafraichir, String personneId, String roleIds, String recherche, int start, int nbElements, Integer seqId) {
398
		PublicationAPersonneAsyncDao paDao = new PublicationAPersonneAsyncDao(vueARafraichir);
373
		PublicationAPersonneAsyncDao paDao = new PublicationAPersonneAsyncDao(vueARafraichir);
399
		paDao.selectionner(true, null, personneId, roleIds, recherche, start, nbElements, seqId);
374
		paDao.selectionner(true, null, personneId, roleIds, recherche, start, nbElements, seqId);
400
	}
375
	}
401
	
376
	
402
	public void selectionPublicationAPersonne(Rafraichissable vueARafraichir, String publicationId, String personnesId, String roleId, Integer seqId) {
377
	public void selectionPublicationAPersonne(Rafraichissable vueARafraichir, String publicationId, String personnesId, String roleId, Integer seqId) {
403
		PublicationAPersonneAsyncDao paDao = new PublicationAPersonneAsyncDao(vueARafraichir);
378
		PublicationAPersonneAsyncDao paDao = new PublicationAPersonneAsyncDao(vueARafraichir);
404
		paDao.selectionner(false, publicationId, personnesId, roleId, null, 0, -1, seqId);
379
		paDao.selectionner(false, publicationId, personnesId, roleId, null, 0, -1, seqId);
405
	}
380
	}
406
	
381
	
407
	public void ajouterPublicationAPersonne(Rafraichissable vueARafraichir, String publicationId, String personnesId, String ordreAuteursSepareParVirgule, String roleId, Integer seqId) {
382
	public void ajouterPublicationAPersonne(Rafraichissable vueARafraichir, String publicationId, String personnesId, String ordreAuteursSepareParVirgule, String roleId, Integer seqId) {
408
		PublicationAPersonneAsyncDao paDao = new PublicationAPersonneAsyncDao(vueARafraichir);
383
		PublicationAPersonneAsyncDao paDao = new PublicationAPersonneAsyncDao(vueARafraichir);
409
		paDao.ajouter(publicationId, personnesId, ordreAuteursSepareParVirgule, roleId, seqId);
384
		paDao.ajouter(publicationId, personnesId, ordreAuteursSepareParVirgule, roleId, seqId);
410
	}
385
	}
411
	
386
	
412
	public void modifierPublicationAPersonne(Rafraichissable vueARafraichir, String publicationId, String personnesId, String ordreAuteurs, String roleId, Integer seqId) {
387
	public void modifierPublicationAPersonne(Rafraichissable vueARafraichir, String publicationId, String personnesId, String ordreAuteurs, String roleId, Integer seqId) {
413
		PublicationAPersonneAsyncDao paDao = new PublicationAPersonneAsyncDao(vueARafraichir);
388
		PublicationAPersonneAsyncDao paDao = new PublicationAPersonneAsyncDao(vueARafraichir);
414
		paDao.modifier(publicationId, personnesId, ordreAuteurs, roleId, seqId);
389
		paDao.modifier(publicationId, personnesId, ordreAuteurs, roleId, seqId);
415
	}
390
	}
416
 
391
 
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
	}
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
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);
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) {		
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
	}
450
	
410
	
451
	public void modifierCommentaire(Rafraichissable vueRafraichir, Commentaire commentaire) {
411
	public void modifierCommentaire(Rafraichissable vueRafraichir, Commentaire commentaire) {
452
		CommentaireAsyncDao cDao = new CommentaireAsyncDao(vueRafraichir);
412
		CommentaireAsyncDao cDao = new CommentaireAsyncDao(vueRafraichir);
453
		cDao.modifier(commentaire);
413
		cDao.modifier(commentaire);
454
	}
414
	}
455
 
415
 
456
	public void ajouterCommentaire(Rafraichissable vueARafraichir, Commentaire commentaire) {
416
	public void ajouterCommentaire(Rafraichissable vueARafraichir, Commentaire commentaire) {
457
		CommentaireAsyncDao cDao = new CommentaireAsyncDao(vueARafraichir);
417
		CommentaireAsyncDao cDao = new CommentaireAsyncDao(vueARafraichir);
458
		cDao.ajouter(commentaire);
418
		cDao.ajouter(commentaire);
459
	}
419
	}
460
 
420
 
461
	public void supprimerCommentaire(Rafraichissable vueARafraichir, String idCommentaireSeparesParVirgule) {
421
	public void supprimerCommentaire(Rafraichissable vueARafraichir, String idCommentaireSeparesParVirgule) {
462
		CommentaireAsyncDao cDao = new CommentaireAsyncDao(vueARafraichir);
422
		CommentaireAsyncDao cDao = new CommentaireAsyncDao(vueARafraichir);
463
		cDao.supprimer(idCommentaireSeparesParVirgule);	
423
		cDao.supprimer(idCommentaireSeparesParVirgule);	
464
	}
424
	}
465
}
425
}