Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 871 Rev 935
1
package org.tela_botanica.client.modeles;
1
package org.tela_botanica.client.modeles.collection;
2
 
2
 
3
import org.tela_botanica.client.Mediateur;
3
import org.tela_botanica.client.Mediateur;
4
import org.tela_botanica.client.RegistreId;
4
import org.tela_botanica.client.RegistreId;
5
import org.tela_botanica.client.http.JsonRestRequestBuilder;
5
import org.tela_botanica.client.http.JsonRestRequestBuilder;
6
import org.tela_botanica.client.http.JsonRestRequestCallback;
6
import org.tela_botanica.client.http.JsonRestRequestCallback;
7
import org.tela_botanica.client.interfaces.Rafraichissable;
7
import org.tela_botanica.client.interfaces.Rafraichissable;
-
 
8
import org.tela_botanica.client.modeles.Information;
-
 
9
import org.tela_botanica.client.modeles.projet.ProjetListe;
8
import org.tela_botanica.client.util.UtilDAO;
10
import org.tela_botanica.client.util.UtilDAO;
9
 
11
 
10
import com.extjs.gxt.ui.client.Registry;
12
import com.extjs.gxt.ui.client.Registry;
11
import com.google.gwt.core.client.GWT;
13
import com.google.gwt.core.client.GWT;
12
import com.google.gwt.http.client.URL;
14
import com.google.gwt.http.client.URL;
13
import com.google.gwt.json.client.JSONArray;
15
import com.google.gwt.json.client.JSONArray;
14
import com.google.gwt.json.client.JSONObject;
16
import com.google.gwt.json.client.JSONObject;
15
import com.google.gwt.json.client.JSONValue;
17
import com.google.gwt.json.client.JSONValue;
16
 
18
 
17
public class CollectionAsyncDao {
19
public class CollectionAsyncDao {
18
	
20
	
19
	public static final String SERVICE_NOM = "CoelCollection";
21
	public static final String SERVICE_NOM = "CoelCollection";
20
	private String utilisateurId = null;
22
	private String utilisateurId = null;
21
	private Rafraichissable vueARafraichir = null;
23
	private Rafraichissable vueARafraichir = null;
22
	
24
	
23
	public CollectionAsyncDao(Rafraichissable vueARafraichirCourrante) {
25
	public CollectionAsyncDao(Rafraichissable vueARafraichirCourrante) {
24
		vueARafraichir = vueARafraichirCourrante;
26
		vueARafraichir = vueARafraichirCourrante;
25
		utilisateurId = ((Mediateur) Registry.get(RegistreId.MEDIATEUR)).getUtilisateurId();
27
		utilisateurId = ((Mediateur) Registry.get(RegistreId.MEDIATEUR)).getUtilisateurId();
26
	}
28
	}
27
	
29
	
28
	public void selectionner(final String projetId, final String collectionId) {
30
	public void selectionner(final String projetId, final String collectionId) {
29
		// Ajout des paramètres et données à selectionner dans l'URL
31
		// Ajout des paramètres et données à selectionner dans l'URL
30
		String[] parametres = {projetId, collectionId};
32
		String[] parametres = {projetId, collectionId};
31
		final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres);
33
		final JsonRestRequestBuilder rb = UtilDAO.construireRequete(SERVICE_NOM, parametres);
32
		rb.envoyerRequete(null, new JsonRestRequestCallback() {
34
		rb.envoyerRequete(null, new JsonRestRequestCallback() {
33
			@Override
35
			@Override
34
			public void surReponse(JSONValue responseValue) {
36
			public void surReponse(JSONValue responseValue) {
35
				if (responseValue != null) {
37
				if (responseValue != null) {
36
					// Si la requête est un succès, reception d'un objet ou d'un tableau
38
					// Si la requête est un succès, reception d'un objet ou d'un tableau
37
					if (responseValue.isObject() != null) {
39
					if (responseValue.isObject() != null) {
38
						final JSONObject reponse = responseValue.isObject();
40
						final JSONObject reponse = responseValue.isObject();
39
						Collection collection = new Collection(reponse);
41
						Collection collection = new Collection(reponse);
40
						CollectionBotanique collectionBotanique = new CollectionBotanique(reponse);
42
						CollectionBotanique collectionBotanique = new CollectionBotanique(reponse);
41
						
43
						
42
						Information info = new Information("selection_collection");
44
						Information info = new Information("selection_collection");
43
						info.setDonnee(0, collection);
45
						info.setDonnee(0, collection);
44
						info.setDonnee(1, collectionBotanique);
46
						info.setDonnee(1, collectionBotanique);
45
						vueARafraichir.rafraichir(info);
47
						vueARafraichir.rafraichir(info);
46
					} else if (responseValue.isArray() != null) {
48
					} else if (responseValue.isArray() != null) {
47
						final JSONArray reponse = responseValue.isArray();
49
						final JSONArray reponse = responseValue.isArray();
48
						CollectionListe collections = new CollectionListe(reponse);
50
						CollectionListe collections = new CollectionListe(reponse);
49
						vueARafraichir.rafraichir(collections);
51
						vueARafraichir.rafraichir(collections);
50
					} else {
52
					} else {
51
						GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas un objet ou un talbeau JSON et vaut : "+responseValue.toString(), null);
53
						GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas un objet ou un talbeau JSON et vaut : "+responseValue.toString(), null);
52
					}
54
					}
53
				} else {
55
				} else {
54
					// Dans le cas, où nous demandons toutes les institutions et qu'il n'y en a pas, nous retournons un objet vide
56
					// Dans le cas, où nous demandons toutes les institutions et qu'il n'y en a pas, nous retournons un objet vide
55
					if (collectionId == null) {
57
					if (collectionId == null) {
56
						CollectionListe collections = new CollectionListe(0);
58
						CollectionListe collections = new CollectionListe(0);
57
						vueARafraichir.rafraichir(collections);								
59
						vueARafraichir.rafraichir(collections);								
58
					}
60
					}
59
				}
61
				}
60
			}
62
			}
61
		});
63
		});
62
	}
64
	}
63
	
65
	
64
	public void ajouter(Collection collection) {
66
	public void ajouter(Collection collection) {
65
		String postDonneesEncodees = construirePost(null, collection);
67
		String postDonneesEncodees = construirePost(null, collection);
66
 
68
 
67
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM);	
69
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM);	
68
		rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
70
		rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
69
			@Override
71
			@Override
70
			public void surReponse(JSONValue responseValue) {
72
			public void surReponse(JSONValue responseValue) {
71
				if (responseValue.isString() != null) {
73
				if (responseValue.isString() != null) {
72
					Information info = new Information("ajout_collection");
74
					Information info = new Information("ajout_collection");
73
					String structureIdOuMessage = responseValue.isString().stringValue();
75
					String structureIdOuMessage = responseValue.isString().stringValue();
74
					if (structureIdOuMessage.matches("^[0-9]+$")) {
76
					if (structureIdOuMessage.matches("^[0-9]+$")) {
75
						info.setDonnee(structureIdOuMessage);
77
						info.setDonnee(structureIdOuMessage);
76
					} else {
78
					} else {
77
						info.setMessage(structureIdOuMessage);
79
						info.setMessage(structureIdOuMessage);
78
					}
80
					}
79
					vueARafraichir.rafraichir(info);
81
					vueARafraichir.rafraichir(info);
80
				} else {
82
				} else {
81
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
83
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
82
				}
84
				}
83
			}
85
			}
84
		});
86
		});
85
	}
87
	}
86
	
88
	
87
	public void modifier(Collection collection) {
89
	public void modifier(Collection collection) {
88
		String postDonneesEncodees = construirePost(collection.getId(), collection);
90
		String postDonneesEncodees = construirePost(collection.getId(), collection);
89
		
91
		
90
		String[] parametres = {collection.getId()};
92
		String[] parametres = {collection.getId()};
91
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
93
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
92
		rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
94
		rb.envoyerRequete(postDonneesEncodees, new JsonRestRequestCallback() {
93
			@Override
95
			@Override
94
			public void surReponse(JSONValue responseValue) {
96
			public void surReponse(JSONValue responseValue) {
95
				// Si la requête est un succès, reception d'une chaine
97
				// Si la requête est un succès, reception d'une chaine
96
				if (responseValue.isString() != null) {
98
				if (responseValue.isString() != null) {
97
					Information info = new Information("modif_collection");
99
					Information info = new Information("modif_collection");
98
					info.setMessage(responseValue.isString().stringValue());
100
					info.setMessage(responseValue.isString().stringValue());
99
					vueARafraichir.rafraichir(info);
101
					vueARafraichir.rafraichir(info);
100
				} else {
102
				} else {
101
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
103
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
102
				}
104
				}
103
			}
105
			}
104
		});
106
		});
105
	}
107
	}
106
	
108
	
107
	public void supprimer(String collectionsId) {
109
	public void supprimer(String collectionsId) {
108
		String[] parametres = {utilisateurId, collectionsId};
110
		String[] parametres = {utilisateurId, collectionsId};
109
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
111
		final JsonRestRequestBuilder rb = UtilDAO.construireRequetePost(SERVICE_NOM, parametres);
110
		rb.envoyerRequeteSuppression(new JsonRestRequestCallback() {
112
		rb.envoyerRequeteSuppression(new JsonRestRequestCallback() {
111
			@Override
113
			@Override
112
			public void surReponse(JSONValue responseValue) {
114
			public void surReponse(JSONValue responseValue) {
113
				if (responseValue.isString() != null) {
115
				if (responseValue.isString() != null) {
114
					Information info = new Information("suppression_collection");
116
					Information info = new Information("suppression_collection");
115
					info.setMessage(responseValue.isString().stringValue());
117
					info.setMessage(responseValue.isString().stringValue());
116
					vueARafraichir.rafraichir(info);
118
					vueARafraichir.rafraichir(info);
117
				} else {
119
				} else {
118
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
120
					GWT.log(rb.getUrl()+"\n\tLa réponse n'est pas une chaine JSON.", null);
119
				}
121
				}
120
			}
122
			}
121
		});
123
		});
122
	}
124
	}
123
	
125
	
124
	private String construirePost(String collectionId, Collection collection) {
126
	private String construirePost(String collectionId, Collection collection) {
125
		String postDonnees = "cmhl_ce_modifier_par=" + URL.encodeComponent(utilisateurId); 
127
		String postDonnees = "cmhl_ce_modifier_par=" + URL.encodeComponent(utilisateurId); 
126
			
128
			
127
		if (collection != null) {
129
		if (collection != null) {
128
			if (collectionId != null) {
130
			if (collectionId != null) {
129
				postDonnees += "&cc_id_collection=" + URL.encodeComponent(collectionId);
131
				postDonnees += "&cc_id_collection=" + URL.encodeComponent(collectionId);
130
			}
132
			}
131
			postDonnees += "&cpr_abreviation=" + URL.encodeComponent(((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).getAbreviation());
133
			postDonnees += "&cpr_abreviation=" + URL.encodeComponent(((ProjetListe) Registry.get(RegistreId.PROJETS)).get(collection.getIdProjet()).getAbreviation());
132
			postDonnees += "&cc_ce_projet=" + URL.encodeComponent(collection.getIdProjet()) +
134
			postDonnees += "&cc_ce_projet=" + URL.encodeComponent(collection.getIdProjet()) +
133
				"&cc_ce_mere=" + URL.encodeComponent(collection.getCollectionMereId()) +
135
				"&cc_ce_mere=" + URL.encodeComponent(collection.getCollectionMereId()) +
134
				"&cc_ce_structure=" + URL.encodeComponent(collection.getIdStructure()) +
136
				"&cc_ce_structure=" + URL.encodeComponent(collection.getIdStructure()) +
135
				"&cc_truk_identifiant_alternatif=" + URL.encodeComponent(collection.getIdAlternatif()) +
137
				"&cc_truk_identifiant_alternatif=" + URL.encodeComponent(collection.getIdAlternatif()) +
136
				"&cc_truk_code=" + URL.encodeComponent(collection.getCode()) +
138
				"&cc_truk_code=" + URL.encodeComponent(collection.getCode()) +
137
				"&cc_nom=" + URL.encodeComponent(collection.getNom()) +
139
				"&cc_nom=" + URL.encodeComponent(collection.getNom()) +
138
				"&cc_truk_nom_alternatif=" + URL.encodeComponent(collection.getNomAlternatif()) +
140
				"&cc_truk_nom_alternatif=" + URL.encodeComponent(collection.getNomAlternatif()) +
139
				"&cc_description=" + URL.encodeComponent(collection.getDescription()) +
141
				"&cc_description=" + URL.encodeComponent(collection.getDescription()) +
140
				"&cc_description_specialiste=" + URL.encodeComponent(collection.getDescriptionSpecialiste()) +
142
				"&cc_description_specialiste=" + URL.encodeComponent(collection.getDescriptionSpecialiste()) +
141
				"&cc_historique=" + URL.encodeComponent(collection.getHistorique()) +
143
				"&cc_historique=" + URL.encodeComponent(collection.getHistorique()) +
142
				"&cc_truk_url=" + URL.encodeComponent(collection.getUrls()) +
144
				"&cc_truk_url=" + URL.encodeComponent(collection.getUrls()) +
143
				"&cc_truk_groupement_principe=" + URL.encodeComponent(collection.getGroupementPrincipe()) +
145
				"&cc_truk_groupement_principe=" + URL.encodeComponent(collection.getGroupementPrincipe()) +
144
				"&cc_truk_groupement_but=" + URL.encodeComponent(collection.getGroupementBut()) +
146
				"&cc_truk_groupement_but=" + URL.encodeComponent(collection.getGroupementBut()) +
145
				"&cc_ce_type=" + URL.encodeComponent(collection.getTypeNcd()) +
147
				"&cc_ce_type=" + URL.encodeComponent(collection.getTypeNcd()) +
146
				"&cc_ce_type_depot=" + URL.encodeComponent(collection.getTypeDepot()) +
148
				"&cc_ce_type_depot=" + URL.encodeComponent(collection.getTypeDepot()) +
147
				"&cc_cote=" + URL.encodeComponent(collection.getCote()) +
149
				"&cc_cote=" + URL.encodeComponent(collection.getCote()) +
148
				"&cc_truk_couverture_lieu=" + URL.encodeComponent(collection.getCouvertureLieu()) +
150
				"&cc_truk_couverture_lieu=" + URL.encodeComponent(collection.getCouvertureLieu()) +
149
				"&cc_ce_specimen_type=" + URL.encodeComponent(collection.getSpecimenType()) +
151
				"&cc_ce_specimen_type=" + URL.encodeComponent(collection.getSpecimenType()) +
150
				"&cc_specimen_type_nbre=" + URL.encodeComponent(collection.getSpecimenTypeNbre()) +
152
				"&cc_specimen_type_nbre=" + URL.encodeComponent(collection.getSpecimenTypeNbre()) +
151
				"&cc_ce_specimen_type_nbre_precision=" + URL.encodeComponent(collection.getSpecimenTypeNbrePrecision()) +
153
				"&cc_ce_specimen_type_nbre_precision=" + URL.encodeComponent(collection.getSpecimenTypeNbrePrecision()) +
152
				"&cc_ce_specimen_type_classement=" + URL.encodeComponent(collection.getSpecimenTypeClassement());
154
				"&cc_ce_specimen_type_classement=" + URL.encodeComponent(collection.getSpecimenTypeClassement());
153
		}
155
		}
154
		
156
		
155
		if (collection.getBotanique() != null) {
157
		if (collection.getBotanique() != null) {
156
			CollectionBotanique collectionBotanique = collection.getBotanique();
158
			CollectionBotanique collectionBotanique = collection.getBotanique();
157
			postDonnees += "&ccb_nbre_echantillon=" + URL.encodeComponent(collectionBotanique.getNbreEchantillon()) +
159
			postDonnees += "&ccb_nbre_echantillon=" + URL.encodeComponent(collectionBotanique.getNbreEchantillon()) +
158
				"&ccb_ce_truk_type=" + URL.encodeComponent(collectionBotanique.getType()) +
160
				"&ccb_ce_truk_type=" + URL.encodeComponent(collectionBotanique.getType()) +
159
				"&ccb_truk_unite_rangement=" + URL.encodeComponent(collectionBotanique.getUniteRangement()) +
161
				"&ccb_truk_unite_rangement=" + URL.encodeComponent(collectionBotanique.getUniteRangement()) +
160
				"&ccb_ce_unite_rangement_etat=" + URL.encodeComponent(collectionBotanique.getUniteRangementEtat()) +
162
				"&ccb_ce_unite_rangement_etat=" + URL.encodeComponent(collectionBotanique.getUniteRangementEtat()) +
161
				"&ccb_truk_unite_base=" + URL.encodeComponent(collectionBotanique.getUniteBase()) +
163
				"&ccb_truk_unite_base=" + URL.encodeComponent(collectionBotanique.getUniteBase()) +
162
				"&ccb_truk_conservation_papier_type=" + URL.encodeComponent(collectionBotanique.getConservationPapierType()) +
164
				"&ccb_truk_conservation_papier_type=" + URL.encodeComponent(collectionBotanique.getConservationPapierType()) +
163
				"&ccb_truk_conservation_methode=" + URL.encodeComponent(collectionBotanique.getConservationMethode()) +
165
				"&ccb_truk_conservation_methode=" + URL.encodeComponent(collectionBotanique.getConservationMethode()) +
164
				"&ccb_specimen_fixation_pourcent=" + URL.encodeComponent(collectionBotanique.getSpecimenFixationPourcent()) +
166
				"&ccb_specimen_fixation_pourcent=" + URL.encodeComponent(collectionBotanique.getSpecimenFixationPourcent()) +
165
				"&ccb_etiquette_fixation_pourcent=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationPourcent()) +
167
				"&ccb_etiquette_fixation_pourcent=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationPourcent()) +
166
				"&ccb_truk_specimen_fixation_methode=" + URL.encodeComponent(collectionBotanique.getSpecimenFixationMethode()) +
168
				"&ccb_truk_specimen_fixation_methode=" + URL.encodeComponent(collectionBotanique.getSpecimenFixationMethode()) +
167
				"&ccb_truk_etiquette_fixation_support=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationSupport()) +
169
				"&ccb_truk_etiquette_fixation_support=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationSupport()) +
168
				"&ccb_truk_etiquette_fixation_specimen=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationSpecimen()) +
170
				"&ccb_truk_etiquette_fixation_specimen=" + URL.encodeComponent(collectionBotanique.getEtiquetteFixationSpecimen()) +
169
				"&ccb_truk_etiquette_ecriture=" + URL.encodeComponent(collectionBotanique.getEtiquetteEcriture()) +
171
				"&ccb_truk_etiquette_ecriture=" + URL.encodeComponent(collectionBotanique.getEtiquetteEcriture()) +
170
				"&ccb_ce_traitement=" + URL.encodeComponent(collectionBotanique.getTraitement()) +
172
				"&ccb_ce_traitement=" + URL.encodeComponent(collectionBotanique.getTraitement()) +
171
				"&ccb_truk_traitement_poison=" + URL.encodeComponent(collectionBotanique.getTraitementPoison()) +
173
				"&ccb_truk_traitement_poison=" + URL.encodeComponent(collectionBotanique.getTraitementPoison()) +
172
				"&ccb_truk_traitement_insecte=" + URL.encodeComponent(collectionBotanique.getTraitementInsecte()) +
174
				"&ccb_truk_traitement_insecte=" + URL.encodeComponent(collectionBotanique.getTraitementInsecte()) +
173
				"&ccb_ce_etat_general=" + URL.encodeComponent(collectionBotanique.getEtatGeneral()) +
175
				"&ccb_ce_etat_general=" + URL.encodeComponent(collectionBotanique.getEtatGeneral()) +
174
				"&ccb_truk_degradation_specimen=" + URL.encodeComponent(collectionBotanique.getDegradationSpecimen()) +
176
				"&ccb_truk_degradation_specimen=" + URL.encodeComponent(collectionBotanique.getDegradationSpecimen()) +
175
				"&ccb_truk_degradation_presentation=" + URL.encodeComponent(collectionBotanique.getDegradationPresentation()) +
177
				"&ccb_truk_degradation_presentation=" + URL.encodeComponent(collectionBotanique.getDegradationPresentation()) +
176
				"&ccb_ce_determination=" + URL.encodeComponent(collectionBotanique.getDetermination()) +
178
				"&ccb_ce_determination=" + URL.encodeComponent(collectionBotanique.getDetermination()) +
177
				"&ccb_truk_nature=" + URL.encodeComponent(collectionBotanique.getNature()) +
179
				"&ccb_truk_nature=" + URL.encodeComponent(collectionBotanique.getNature()) +
178
				"&ccb_specialite=" + URL.encodeComponent(collectionBotanique.getSpecialite()) +
180
				"&ccb_specialite=" + URL.encodeComponent(collectionBotanique.getSpecialite()) +
179
				"&ccb_recolte_date_debut=" + URL.encodeComponent(collectionBotanique.getRecolteDateDebut()) +
181
				"&ccb_recolte_date_debut=" + URL.encodeComponent(collectionBotanique.getRecolteDateDebut()) +
180
				"&ccb_ce_recolte_date_debut_type=" + URL.encodeComponent(collectionBotanique.getRecolteDateDebutType()) +
182
				"&ccb_ce_recolte_date_debut_type=" + URL.encodeComponent(collectionBotanique.getRecolteDateDebutType()) +
181
				"&ccb_recolte_date_fin=" + URL.encodeComponent(collectionBotanique.getRecolteDateFin()) +
183
				"&ccb_recolte_date_fin=" + URL.encodeComponent(collectionBotanique.getRecolteDateFin()) +
182
				"&ccb_ce_recolte_date_fin_type=" + URL.encodeComponent(collectionBotanique.getRecolteDateFinType()) +
184
				"&ccb_ce_recolte_date_fin_type=" + URL.encodeComponent(collectionBotanique.getRecolteDateFinType()) +
183
				"&ccb_annotation_classement=" + URL.encodeComponent(collectionBotanique.getClassementAnnotation()) +
185
				"&ccb_annotation_classement=" + URL.encodeComponent(collectionBotanique.getClassementAnnotation()) +
184
				"&ccb_ce_classement_etat=" + URL.encodeComponent(collectionBotanique.getClassementEtat()) +
186
				"&ccb_ce_classement_etat=" + URL.encodeComponent(collectionBotanique.getClassementEtat()) +
185
				"&ccb_truk_etiquette_renseignement=" + URL.encodeComponent(collectionBotanique.getEtiquetteRenseignement()) +
187
				"&ccb_truk_etiquette_renseignement=" + URL.encodeComponent(collectionBotanique.getEtiquetteRenseignement()) +
186
				"&ccb_ce_precision_localite=" + URL.encodeComponent(collectionBotanique.getPrecisionLocalite()) +
188
				"&ccb_ce_precision_localite=" + URL.encodeComponent(collectionBotanique.getPrecisionLocalite()) +
187
				"&ccb_ce_precision_date=" + URL.encodeComponent(collectionBotanique.getPrecisionDate()) +
189
				"&ccb_ce_precision_date=" + URL.encodeComponent(collectionBotanique.getPrecisionDate()) +
188
				"&ccb_annotation_diverse=" + URL.encodeComponent(collectionBotanique.getAnnotationsDiverses()) +
190
				"&ccb_annotation_diverse=" + URL.encodeComponent(collectionBotanique.getAnnotationsDiverses()) +
189
				"&ccb_ce_collection_integre=" + URL.encodeComponent(collectionBotanique.getCollectionIntegre()) +
191
				"&ccb_ce_collection_integre=" + URL.encodeComponent(collectionBotanique.getCollectionIntegre()) +
190
				"&ccb_ce_collection_integre_info=" + URL.encodeComponent(collectionBotanique.getCollectionIntegreInfo()) +
192
				"&ccb_ce_collection_integre_info=" + URL.encodeComponent(collectionBotanique.getCollectionIntegreInfo()) +
191
				"&ccb_ce_inventaire=" + URL.encodeComponent(collectionBotanique.getInventaire()) +
193
				"&ccb_ce_inventaire=" + URL.encodeComponent(collectionBotanique.getInventaire()) +
192
				"&ccb_ce_inventaire_auteur=" + URL.encodeComponent(collectionBotanique.getInventaireAuteur()) +
194
				"&ccb_ce_inventaire_auteur=" + URL.encodeComponent(collectionBotanique.getInventaireAuteur()) +
193
				"&ccb_ce_inventaire_forme=" + URL.encodeComponent(collectionBotanique.getInventaireForme()) +
195
				"&ccb_ce_inventaire_forme=" + URL.encodeComponent(collectionBotanique.getInventaireForme()) +
194
				"&ccb_inventaire_info=" + URL.encodeComponent(collectionBotanique.getInventaireInfo()) +
196
				"&ccb_inventaire_info=" + URL.encodeComponent(collectionBotanique.getInventaireInfo()) +
195
				"&ccb_ce_truk_inventaire_digital=" + URL.encodeComponent(collectionBotanique.getInventaireDigital()) +
197
				"&ccb_ce_truk_inventaire_digital=" + URL.encodeComponent(collectionBotanique.getInventaireDigital()) +
196
				"&ccb_inventaire_digital_pourcent=" + URL.encodeComponent(collectionBotanique.getInventaireDigitalPourcent()) +
198
				"&ccb_inventaire_digital_pourcent=" + URL.encodeComponent(collectionBotanique.getInventaireDigitalPourcent()) +
197
				"&ccb_ce_inventaire_etat=" + URL.encodeComponent(collectionBotanique.getInventaireEtat()) +
199
				"&ccb_ce_inventaire_etat=" + URL.encodeComponent(collectionBotanique.getInventaireEtat()) +
198
				"&ccb_inventaire_donnee_type=" + URL.encodeComponent(collectionBotanique.getInventaireDonneesTypes());
200
				"&ccb_inventaire_donnee_type=" + URL.encodeComponent(collectionBotanique.getInventaireDonneesTypes());
199
		}
201
		}
200
		
202
		
201
		return postDonnees;
203
		return postDonnees;
202
	}
204
	}
203
}
205
}