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