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