935 |
jpm |
1 |
package org.tela_botanica.client.modeles.collection;
|
453 |
jp_milcent |
2 |
|
1173 |
jpm |
3 |
import java.util.LinkedList;
|
|
|
4 |
import java.util.List;
|
|
|
5 |
|
935 |
jpm |
6 |
import org.tela_botanica.client.modeles.aDonnee;
|
1210 |
cyprien |
7 |
import org.tela_botanica.client.util.Debug;
|
935 |
jpm |
8 |
|
453 |
jp_milcent |
9 |
import com.google.gwt.json.client.JSONObject;
|
|
|
10 |
|
|
|
11 |
public class Collection extends aDonnee {
|
|
|
12 |
|
468 |
jp_milcent |
13 |
private static final long serialVersionUID = 3295310312337145716L;
|
|
|
14 |
|
453 |
jp_milcent |
15 |
public static final String PREFIXE = "cc";
|
|
|
16 |
private CollectionBotanique botanique = null;
|
883 |
jpm |
17 |
private CollectionAPersonneListe personnesLiees = null;
|
|
|
18 |
private CollectionAPublicationListe publicationsLiees = null;
|
997 |
jpm |
19 |
private CollectionACommentaireListe commentairesLiees = null;
|
1230 |
cyprien |
20 |
public static String[] champsObligatoires = {"cc_id_collection","cc_ce_type"};
|
1173 |
jpm |
21 |
|
453 |
jp_milcent |
22 |
public Collection() {
|
|
|
23 |
}
|
|
|
24 |
|
|
|
25 |
public Collection(JSONObject collection) {
|
775 |
jpm |
26 |
initialiserModele(collection);
|
453 |
jp_milcent |
27 |
}
|
|
|
28 |
|
748 |
jpm |
29 |
@Override
|
|
|
30 |
protected String getPrefixe() {
|
|
|
31 |
return PREFIXE;
|
|
|
32 |
}
|
|
|
33 |
|
1173 |
jpm |
34 |
protected String[] getChampsObligatoires() {
|
|
|
35 |
return champsObligatoires;
|
|
|
36 |
}
|
|
|
37 |
|
453 |
jp_milcent |
38 |
// BOTANIQUE
|
|
|
39 |
public CollectionBotanique getBotanique() {
|
948 |
jpm |
40 |
if (botanique == null) {
|
|
|
41 |
botanique = new CollectionBotanique();
|
|
|
42 |
}
|
453 |
jp_milcent |
43 |
return botanique;
|
|
|
44 |
}
|
|
|
45 |
public void setBotanique(CollectionBotanique botaniqueAStocker) {
|
|
|
46 |
botanique = botaniqueAStocker;
|
|
|
47 |
}
|
|
|
48 |
|
883 |
jpm |
49 |
// PERSONNES LIÉES
|
|
|
50 |
public CollectionAPersonneListe getPersonnesLiees() {
|
997 |
jpm |
51 |
if (personnesLiees == null) {
|
|
|
52 |
personnesLiees = new CollectionAPersonneListe();
|
|
|
53 |
}
|
883 |
jpm |
54 |
return personnesLiees;
|
|
|
55 |
}
|
|
|
56 |
public void setPersonnesLiees(CollectionAPersonneListe relationsCollectionAPersonne) {
|
|
|
57 |
personnesLiees = relationsCollectionAPersonne;
|
|
|
58 |
}
|
|
|
59 |
|
|
|
60 |
// PUBLICATIONS LIÉES
|
|
|
61 |
public CollectionAPublicationListe getPublicationsLiees() {
|
997 |
jpm |
62 |
if (publicationsLiees == null) {
|
|
|
63 |
publicationsLiees = new CollectionAPublicationListe();
|
|
|
64 |
}
|
883 |
jpm |
65 |
return publicationsLiees;
|
|
|
66 |
}
|
|
|
67 |
public void setPublicationsLiees(CollectionAPublicationListe relationsCollectionAPublication) {
|
|
|
68 |
publicationsLiees = relationsCollectionAPublication;
|
|
|
69 |
}
|
|
|
70 |
|
997 |
jpm |
71 |
// COMMENTAIRES LIÉS
|
|
|
72 |
public CollectionACommentaireListe getCommentairesLiees() {
|
|
|
73 |
if (commentairesLiees == null) {
|
|
|
74 |
commentairesLiees = new CollectionACommentaireListe();
|
|
|
75 |
}
|
|
|
76 |
return commentairesLiees;
|
|
|
77 |
}
|
|
|
78 |
public void setCommentairesLiees(CollectionACommentaireListe relationsCollectionACommentaire) {
|
|
|
79 |
commentairesLiees = relationsCollectionACommentaire;
|
|
|
80 |
}
|
|
|
81 |
|
453 |
jp_milcent |
82 |
// ID
|
|
|
83 |
public String getId() {
|
|
|
84 |
return renvoyerValeurCorrecte("id_collection");
|
|
|
85 |
}
|
|
|
86 |
public void setId(String idCollection) {
|
|
|
87 |
this.set("id_collection", idCollection);
|
|
|
88 |
}
|
|
|
89 |
|
|
|
90 |
// CE PROJET
|
|
|
91 |
public String getIdProjet() {
|
|
|
92 |
return renvoyerValeurCorrecte("ce_projet");
|
|
|
93 |
}
|
|
|
94 |
public void setIdProjet(String idProjet) {
|
|
|
95 |
this.set("ce_projet", idProjet);
|
|
|
96 |
}
|
|
|
97 |
|
867 |
jpm |
98 |
// COLLECTION MERE ID
|
|
|
99 |
public String getCollectionMereId() {
|
|
|
100 |
return renvoyerValeurCorrecte("ce_mere");
|
|
|
101 |
}
|
|
|
102 |
public void setCollectionMereId(String collectionMereId) {
|
|
|
103 |
this.set("ce_mere", collectionMereId);
|
|
|
104 |
}
|
|
|
105 |
|
628 |
jp_milcent |
106 |
// COLLECTION MERE NOM
|
|
|
107 |
public String getCollectionMereNom() {
|
1173 |
jpm |
108 |
return renvoyerValeurCorrecte("_collection_mere_nom_");
|
628 |
jp_milcent |
109 |
}
|
|
|
110 |
public void setCollectionMereNom(String collectionMereNom) {
|
1173 |
jpm |
111 |
this.set("_collection_mere_nom_", collectionMereNom);
|
628 |
jp_milcent |
112 |
}
|
|
|
113 |
|
453 |
jp_milcent |
114 |
// CE STRUCTURE
|
|
|
115 |
public String getIdStructure() {
|
|
|
116 |
return renvoyerValeurCorrecte("ce_structure");
|
|
|
117 |
}
|
|
|
118 |
public void setIdStructure(String idStructure) {
|
|
|
119 |
this.set("ce_structure", idStructure);
|
|
|
120 |
}
|
|
|
121 |
|
|
|
122 |
// GUID
|
|
|
123 |
public String getGuid() {
|
|
|
124 |
return renvoyerValeurCorrecte("guid");
|
|
|
125 |
}
|
|
|
126 |
public void setGuid(String guid) {
|
|
|
127 |
this.set("guid", guid);
|
|
|
128 |
}
|
628 |
jp_milcent |
129 |
|
|
|
130 |
// IDENTIFIANT ALTERNATIF
|
|
|
131 |
public String getIdAlternatif() {
|
|
|
132 |
return renvoyerValeurCorrecte("truk_identifiant_alternatif");
|
|
|
133 |
}
|
|
|
134 |
public void setIdAlternatif(String idAlter) {
|
|
|
135 |
this.set("truk_identifiant_alternatif", idAlter);
|
|
|
136 |
}
|
453 |
jp_milcent |
137 |
|
477 |
jp_milcent |
138 |
// CODE
|
|
|
139 |
public String getCode() {
|
628 |
jp_milcent |
140 |
return renvoyerValeurCorrecte("truk_code");
|
477 |
jp_milcent |
141 |
}
|
|
|
142 |
public void setCode(String code) {
|
628 |
jp_milcent |
143 |
this.set("truk_code", code);
|
477 |
jp_milcent |
144 |
}
|
|
|
145 |
|
453 |
jp_milcent |
146 |
// NOM
|
|
|
147 |
public String getNom() {
|
|
|
148 |
return renvoyerValeurCorrecte("nom");
|
|
|
149 |
}
|
|
|
150 |
public void setNom(String nom) {
|
|
|
151 |
this.set("nom", nom);
|
|
|
152 |
}
|
628 |
jp_milcent |
153 |
|
|
|
154 |
// NOM ALTERNATIF
|
|
|
155 |
public String getNomAlternatif() {
|
|
|
156 |
return renvoyerValeurCorrecte("truk_nom_alternatif");
|
453 |
jp_milcent |
157 |
}
|
628 |
jp_milcent |
158 |
public void setNomAlternatif(String nomAlter) {
|
|
|
159 |
this.set("truk_nom_alternatif", nomAlter);
|
453 |
jp_milcent |
160 |
}
|
477 |
jp_milcent |
161 |
|
|
|
162 |
// DESCRIPTION
|
|
|
163 |
public String getDescription() {
|
|
|
164 |
return renvoyerValeurCorrecte("description");
|
|
|
165 |
}
|
|
|
166 |
public void setDescription(String description) {
|
|
|
167 |
this.set("description", description);
|
|
|
168 |
}
|
|
|
169 |
|
|
|
170 |
// DESCRIPTION SPECIALISTE
|
|
|
171 |
public String getDescriptionSpecialiste() {
|
|
|
172 |
return renvoyerValeurCorrecte("description_specialiste");
|
|
|
173 |
}
|
|
|
174 |
public void setDescriptionSpecialiste(String descriptionSepcialiste) {
|
|
|
175 |
this.set("description_specialiste", descriptionSepcialiste);
|
|
|
176 |
}
|
628 |
jp_milcent |
177 |
|
|
|
178 |
// HISTORIQUE
|
|
|
179 |
public String getHistorique() {
|
|
|
180 |
return renvoyerValeurCorrecte("historique");
|
|
|
181 |
}
|
|
|
182 |
public void setHistorique(String historique) {
|
|
|
183 |
this.set("historique", historique);
|
|
|
184 |
}
|
468 |
jp_milcent |
185 |
|
628 |
jp_milcent |
186 |
// URL
|
|
|
187 |
public String getUrls() {
|
|
|
188 |
return renvoyerValeurCorrecte("truk_url");
|
|
|
189 |
}
|
|
|
190 |
public void setUrls(String urls) {
|
|
|
191 |
this.set("truk_url", urls);
|
|
|
192 |
}
|
|
|
193 |
|
|
|
194 |
// GROUPEMENT PRINCIPE
|
|
|
195 |
public String getGroupementPrincipe() {
|
|
|
196 |
return renvoyerValeurCorrecte("truk_groupement_principe");
|
|
|
197 |
}
|
|
|
198 |
public void setGroupementPrincipe(String groupementPrincipe) {
|
|
|
199 |
this.set("truk_groupement_principe", groupementPrincipe);
|
|
|
200 |
}
|
|
|
201 |
|
|
|
202 |
// GROUPEMENT BUT
|
|
|
203 |
public String getGroupementBut() {
|
|
|
204 |
return renvoyerValeurCorrecte("truk_groupement_but");
|
|
|
205 |
}
|
|
|
206 |
public void setGroupementBut(String groupementBut) {
|
|
|
207 |
this.set("truk_groupement_but", groupementBut);
|
|
|
208 |
}
|
|
|
209 |
|
|
|
210 |
// TYPE NCD
|
|
|
211 |
public String getTypeNcd() {
|
|
|
212 |
return renvoyerValeurCorrecte("ce_type");
|
|
|
213 |
}
|
|
|
214 |
public void setTypeNcd(String typeNcd) {
|
|
|
215 |
this.set("ce_type", typeNcd);
|
|
|
216 |
}
|
|
|
217 |
|
|
|
218 |
// TYPE DEPOT
|
|
|
219 |
public String getTypeDepot() {
|
|
|
220 |
return renvoyerValeurCorrecte("ce_type_depot");
|
|
|
221 |
}
|
|
|
222 |
public void setTypeDepot(String typeDepot) {
|
|
|
223 |
this.set("ce_type_depot", typeDepot);
|
|
|
224 |
}
|
|
|
225 |
|
869 |
jpm |
226 |
// COTE
|
|
|
227 |
public String getCote() {
|
|
|
228 |
return renvoyerValeurCorrecte("cote");
|
|
|
229 |
}
|
|
|
230 |
public void setCote(String cote) {
|
|
|
231 |
this.set("cote", cote);
|
|
|
232 |
}
|
|
|
233 |
|
|
|
234 |
// DIMENSSION
|
|
|
235 |
public String getDimenssion() {
|
|
|
236 |
return renvoyerValeurCorrecte("dimenssion");
|
|
|
237 |
}
|
|
|
238 |
public void setDimenssion(String dimenssion) {
|
|
|
239 |
this.set("dimenssion", dimenssion);
|
|
|
240 |
}
|
|
|
241 |
|
|
|
242 |
// CONDITION ACCÉS
|
|
|
243 |
public String getConditionAcces() {
|
|
|
244 |
return renvoyerValeurCorrecte("condition_acces");
|
|
|
245 |
}
|
|
|
246 |
public void setConditionAcces(String conditionAcces) {
|
|
|
247 |
this.set("condition_acces", conditionAcces);
|
|
|
248 |
}
|
|
|
249 |
|
|
|
250 |
// CONDITION USAGE
|
|
|
251 |
public String getConditionUsage() {
|
|
|
252 |
return renvoyerValeurCorrecte("condition_usage");
|
|
|
253 |
}
|
|
|
254 |
public void setConditionUsage(String conditionUsage) {
|
|
|
255 |
this.set("condition_usage", conditionUsage);
|
|
|
256 |
}
|
|
|
257 |
|
|
|
258 |
// COUVERTURE VERNACULAIRE
|
|
|
259 |
public String getCouvertureVernaculaire() {
|
|
|
260 |
return renvoyerValeurCorrecte("truk_couverture_vernaculaire");
|
|
|
261 |
}
|
|
|
262 |
public void setCouvertureVernaculaire(String couvertureVernaculaire) {
|
|
|
263 |
this.set("truk_couverture_vernaculaire", couvertureVernaculaire);
|
|
|
264 |
}
|
|
|
265 |
|
|
|
266 |
// COUVERTURE TAXONOMIQUE
|
|
|
267 |
public String getCouvertureTaxonomique() {
|
|
|
268 |
return renvoyerValeurCorrecte("truk_couverture_taxonomique");
|
|
|
269 |
}
|
|
|
270 |
public void setCouvertureTaxonomique(String couvertureTaxonomique) {
|
|
|
271 |
this.set("truk_couverture_taxonomique", couvertureTaxonomique);
|
|
|
272 |
}
|
|
|
273 |
|
|
|
274 |
// COUVERTURE REGNE
|
|
|
275 |
public String getCouvertureRegne() {
|
|
|
276 |
return renvoyerValeurCorrecte("truk_couverture_regne");
|
|
|
277 |
}
|
|
|
278 |
public void setCouvertureRegne(String couvertureRegne) {
|
|
|
279 |
this.set("truk_couverture_regne", couvertureRegne);
|
|
|
280 |
}
|
|
|
281 |
|
|
|
282 |
// COUVERTURE TEMPORELLE
|
|
|
283 |
public String getCouvertureTemporelle() {
|
|
|
284 |
return renvoyerValeurCorrecte("truk_couverture_temporelle");
|
|
|
285 |
}
|
|
|
286 |
public void setCouvertureTemporelle(String couvertureTemporelle) {
|
|
|
287 |
this.set("truk_couverture_temporelle", couvertureTemporelle);
|
|
|
288 |
}
|
|
|
289 |
|
|
|
290 |
// COUVERTURE VIE
|
|
|
291 |
public String getCouvertureVie() {
|
|
|
292 |
return renvoyerValeurCorrecte("truk_couverture_vie");
|
|
|
293 |
}
|
|
|
294 |
public void setCouvertureVie(String couvertureVie) {
|
|
|
295 |
this.set("truk_couverture_Vie", couvertureVie);
|
|
|
296 |
}
|
|
|
297 |
|
|
|
298 |
// CONSERVATION STATUT
|
|
|
299 |
public String getConservationStatut() {
|
|
|
300 |
return renvoyerValeurCorrecte("truk_conservation_statut");
|
|
|
301 |
}
|
|
|
302 |
public void setConservationStatut(String conservationStatut) {
|
|
|
303 |
this.set("truk_conservation_statut", conservationStatut);
|
|
|
304 |
}
|
|
|
305 |
|
|
|
306 |
// PRESERVATION
|
|
|
307 |
public String getPreservation() {
|
|
|
308 |
return renvoyerValeurCorrecte("truk_preservation");
|
|
|
309 |
}
|
|
|
310 |
public void setPreservation(String preservation) {
|
|
|
311 |
this.set("truk_preservation", preservation);
|
|
|
312 |
}
|
|
|
313 |
|
|
|
314 |
// DEVELOPPEMENT
|
|
|
315 |
public String getDeveloppement() {
|
|
|
316 |
return renvoyerValeurCorrecte("ce_developpement");
|
|
|
317 |
}
|
|
|
318 |
public void setDeveloppement(String developpement) {
|
|
|
319 |
this.set("ce_developpement", developpement);
|
|
|
320 |
}
|
|
|
321 |
|
|
|
322 |
// PERIODE CONSTITUTION
|
|
|
323 |
public String getPeriodeConstitution() {
|
|
|
324 |
return renvoyerValeurCorrecte("truk_periode_constitution");
|
|
|
325 |
}
|
|
|
326 |
public void setPeriodeConstitution(String periodeConstitution) {
|
1210 |
cyprien |
327 |
if (periodeConstitution.equals(new String("")))
|
|
|
328 |
this.set("truk_periode_constitution", null);
|
|
|
329 |
else
|
|
|
330 |
this.set("truk_periode_constitution", periodeConstitution);
|
869 |
jpm |
331 |
}
|
|
|
332 |
|
867 |
jpm |
333 |
// COUVERTURE LIEU
|
|
|
334 |
public String getCouvertureLieu() {
|
|
|
335 |
return renvoyerValeurCorrecte("truk_couverture_lieu");
|
|
|
336 |
}
|
|
|
337 |
public void setCouvertureLieu(String couvertureLieu) {
|
|
|
338 |
this.set("truk_couverture_lieu", couvertureLieu);
|
|
|
339 |
}
|
|
|
340 |
|
869 |
jpm |
341 |
// COORDONNÉE
|
|
|
342 |
public String getCoordonnee() {
|
|
|
343 |
return renvoyerValeurCorrecte("truk_coordonnee");
|
|
|
344 |
}
|
|
|
345 |
public void setCoordonnee(String coordonnee) {
|
|
|
346 |
this.set("truk_coordonnee", coordonnee);
|
|
|
347 |
}
|
|
|
348 |
|
867 |
jpm |
349 |
// SPECIMEN TYPE
|
|
|
350 |
public String getSpecimenType() {
|
|
|
351 |
return renvoyerValeurCorrecte("ce_specimen_type");
|
|
|
352 |
}
|
|
|
353 |
public void setSpecimenType(String specimenType) {
|
|
|
354 |
this.set("ce_specimen_type", specimenType);
|
|
|
355 |
}
|
|
|
356 |
|
|
|
357 |
// SPECIMEN TYPE NOMBRE
|
|
|
358 |
public String getSpecimenTypeNbre() {
|
|
|
359 |
return renvoyerValeurCorrecte("specimen_type_nbre");
|
|
|
360 |
}
|
|
|
361 |
public void setSpecimenTypeNbre(String specimenTypeNbre) {
|
|
|
362 |
this.set("specimen_type_nbre", specimenTypeNbre);
|
|
|
363 |
}
|
|
|
364 |
|
|
|
365 |
// SPECIMEN TYPE NOMBRE PRECISION
|
|
|
366 |
public String getSpecimenTypeNbrePrecision() {
|
|
|
367 |
return renvoyerValeurCorrecte("ce_specimen_type_nbre_precision");
|
|
|
368 |
}
|
|
|
369 |
public void setSpecimenTypeNbrePrecision(String specimenTypeNbrePrecision) {
|
|
|
370 |
this.set("ce_specimen_type_nbre_precision", specimenTypeNbrePrecision);
|
|
|
371 |
}
|
|
|
372 |
|
|
|
373 |
// SPECIMEN TYPE CLASSEMENT
|
|
|
374 |
public String getSpecimenTypeClassement() {
|
|
|
375 |
return renvoyerValeurCorrecte("ce_specimen_type_classement");
|
|
|
376 |
}
|
|
|
377 |
public void setSpecimenTypeClassement(String specimenTypeClassement) {
|
|
|
378 |
this.set("ce_specimen_type_classement", specimenTypeClassement);
|
|
|
379 |
}
|
|
|
380 |
|
869 |
jpm |
381 |
// EXPEDITION NOM
|
|
|
382 |
public String getExpeditionNom() {
|
|
|
383 |
return renvoyerValeurCorrecte("expedition_nom");
|
|
|
384 |
}
|
|
|
385 |
public void setExpeditionNom(String expeditionNom) {
|
|
|
386 |
this.set("expedition_nom", expeditionNom);
|
|
|
387 |
}
|
|
|
388 |
|
|
|
389 |
// DIGITAL MEDIUM
|
|
|
390 |
public String getDigitalMedium() {
|
|
|
391 |
return renvoyerValeurCorrecte("truk_digital_medium");
|
|
|
392 |
}
|
|
|
393 |
public void setDigitalMedium(String digitalMedium) {
|
|
|
394 |
this.set("truk_digital_medium", digitalMedium);
|
|
|
395 |
}
|
|
|
396 |
|
|
|
397 |
// DIGITAL FORMAT
|
|
|
398 |
public String getDigitalFormat() {
|
|
|
399 |
return renvoyerValeurCorrecte("truk_digital_format");
|
|
|
400 |
}
|
|
|
401 |
public void setDigitalFormat(String digitalFormat) {
|
|
|
402 |
this.set("truk_digital_format", digitalFormat);
|
|
|
403 |
}
|
|
|
404 |
|
|
|
405 |
// PUBLIC
|
|
|
406 |
public boolean etrePublic() {
|
|
|
407 |
String publicMark = getPublic();
|
|
|
408 |
boolean estPublic = true;
|
|
|
409 |
if (publicMark.equals("0")) {
|
|
|
410 |
estPublic = false;
|
|
|
411 |
}
|
|
|
412 |
return estPublic;
|
|
|
413 |
}
|
|
|
414 |
public String getPublic() {
|
|
|
415 |
return renvoyerValeurCorrecte("mark_public");
|
|
|
416 |
}
|
|
|
417 |
public void setBoolPublic(String publicBool) {
|
|
|
418 |
this.set("mark_public", publicBool);
|
|
|
419 |
}
|
|
|
420 |
|
468 |
jp_milcent |
421 |
// +--------------------------------------------------------------------------------------------------------------+
|
|
|
422 |
// STRUCTURE NOM
|
|
|
423 |
public String getStructureNom() {
|
1173 |
jpm |
424 |
return renvoyerValeurCorrecte("_structure_nom_");
|
468 |
jp_milcent |
425 |
}
|
453 |
jp_milcent |
426 |
|
468 |
jp_milcent |
427 |
// STRUCTURE VILLE
|
|
|
428 |
public String getStructureVille() {
|
1173 |
jpm |
429 |
return renvoyerValeurCorrecte("_structure_ville_");
|
883 |
jpm |
430 |
}
|
|
|
431 |
}
|