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