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