Subversion Repositories eFlore/Applications.coel

Rev

Rev 1193 | Rev 1292 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1193 Rev 1284
1
package org.tela_botanica.client.modeles.structure;
1
package org.tela_botanica.client.modeles.structure;
2
 
2
 
3
import java.util.Date;
3
import java.util.Date;
4
import java.util.Iterator;
4
import java.util.Iterator;
5
import java.util.Set;
5
import java.util.Set;
6
 
6
 
7
import org.tela_botanica.client.modeles.aDonnee;
7
import org.tela_botanica.client.modeles.aDonnee;
8
import org.tela_botanica.client.modeles.personne.Personne;
8
import org.tela_botanica.client.modeles.personne.Personne;
-
 
9
import org.tela_botanica.client.util.UtilString;
9
 
10
 
10
import com.extjs.gxt.ui.client.data.BaseModelData;
11
import com.extjs.gxt.ui.client.data.BaseModelData;
11
import com.google.gwt.i18n.client.DateTimeFormat;
12
import com.google.gwt.i18n.client.DateTimeFormat;
12
import com.google.gwt.json.client.JSONObject;
13
import com.google.gwt.json.client.JSONObject;
13
 
14
 
14
public class Structure extends aDonnee {
15
public class Structure extends aDonnee {
15
	
16
	
16
	private static final long serialVersionUID = -5623886668593288218L;
17
	private static final long serialVersionUID = -5623886668593288218L;
17
 
18
 
18
	public static final String PREFIXE = "cs";
19
	public static final String PREFIXE = "cs";
19
	public static final String URL_SITE = "WEB";
20
	public static final String URL_SITE = "WEB";
20
	public static final String URL_LOGO = "LOGO";
21
	public static final String URL_LOGO = "LOGO";
21
	
22
	
22
	private BaseModelData urls = null;
23
	private BaseModelData urls = null;
23
	private StructureAPersonneListe personnel = null;
24
	private StructureAPersonneListe personnel = null;
24
	private StructureValorisation valorisation = null;
25
	private StructureValorisation valorisation = null;
25
	private StructureConservation conservation = null;
26
	private StructureConservation conservation = null;
26
	public static String[] champsObligatoires = {"cs_id_structure", "csc_id_structure", "csv_id_structure"};
27
	public static String[] champsObligatoires = {"cs_id_structure", "csc_id_structure", "csv_id_structure"};
27
	
28
	
28
	public Structure() {
29
	public Structure() {
29
		// Constructions du tableau des urls interne
30
		// Constructions du tableau des urls interne
30
		urls = new BaseModelData();
31
		urls = new BaseModelData();
31
	}
32
	}
32
	
33
	
33
	public Structure(JSONObject institution) {
34
	public Structure(JSONObject institution) {
34
		// Constructions du tableau des urls interne
35
		// Constructions du tableau des urls interne
35
		urls = new BaseModelData();
36
		urls = new BaseModelData();
36
 
37
 
37
		// l'objet JSON est une table de hachage
38
		// l'objet JSON est une table de hachage
38
		Set<String> im = institution.keySet();
39
		Set<String> im = institution.keySet();
39
 
40
 
40
		// Parcourt pour chaque clé
41
		// Parcourt pour chaque clé
41
		for (Iterator<String> it = im.iterator(); it.hasNext();) {
42
		for (Iterator<String> it = im.iterator(); it.hasNext();) {
42
			// Si elle est associée à une valeur, nous l'ajoutons
43
			// Si elle est associée à une valeur, nous l'ajoutons
43
			String cle = it.next();
44
			String cle = it.next();
44
			if (cle.startsWith(PREFIXE+"_")) {
45
			if (cle.startsWith(PREFIXE+"_")) {
45
				// Suppression de l'abréviation du champ. Inutile dans le contexte d'un objet
46
				// Suppression de l'abréviation du champ. Inutile dans le contexte d'un objet
46
				String cleObjet = cle.replaceFirst("^"+PREFIXE+"_", "");
47
				String cleObjet = cle.replaceFirst("^"+PREFIXE+"_", "");
47
				// Sinon, nous ajoutons la clé avec une valeur vide
48
				// Sinon, nous ajoutons la clé avec une valeur vide
48
				String valeur = "";
49
				String valeur = "";
49
				if (institution.get(cle).isString() != null) {
50
				if (institution.get(cle).isString() != null) {
50
					valeur = institution.get(cle).isString().stringValue();
51
					valeur = institution.get(cle).isString().stringValue();
51
				}
52
				}
52
				if (cleObjet.equals("truk_url")) {
53
				if (cleObjet.equals("truk_url")) {
53
					this.setUrl(valeur);
54
					this.setUrl(valeur);
54
				} else {
55
				} else {
55
					this.set(cleObjet, valeur);
56
					this.set(cleObjet, valeur);
56
				}
57
				}
57
			}
58
			}
58
		}
59
		}
59
	}
60
	}
60
	
61
	
61
	@Override
62
	@Override
62
	protected String getPrefixe() {
63
	protected String getPrefixe() {
63
		return PREFIXE;
64
		return PREFIXE;
64
	}
65
	}
65
	
66
	
66
	protected String[] getChampsObligatoires()	{
67
	protected String[] getChampsObligatoires()	{
67
		return champsObligatoires;
68
		return champsObligatoires;
68
	}
69
	}
69
	
70
	
70
	public String getId() {
71
	public String getId() {
71
		return renvoyerValeurCorrecte("id_structure");
72
		return renvoyerValeurCorrecte("id_structure");
72
	}
73
	}
73
	public void setId(String idStructure) {
74
	public void setId(String idStructure) {
74
		this.set("id_structure", idStructure);
75
		this.set("id_structure", idStructure);
75
	}
76
	}
76
	
77
	
77
	public String getIdProjet() {
78
	public String getIdProjet() {
78
		return renvoyerValeurCorrecte("ce_projet");
79
		return renvoyerValeurCorrecte("ce_projet");
79
	}
80
	}
80
	public void setIdProjet(String idProjet) {
81
	public void setIdProjet(String idProjet) {
81
		this.set("ce_projet", idProjet);
82
		this.set("ce_projet", idProjet);
82
	}
83
	}
83
	
84
	
84
	public String getIdMere() {
85
	public String getIdMere() {
85
		return renvoyerValeurCorrecte("ce_mere");
86
		return renvoyerValeurCorrecte("ce_mere");
86
	}
87
	}
87
	public void setIdMere(String idMere) {
88
	public void setIdMere(String idMere) {
88
		this.set("ce_mere", idMere);
89
		this.set("ce_mere", idMere);
89
	}
90
	}
90
	
91
	
91
	public String getGuid() {
92
	public String getGuid() {
92
		return renvoyerValeurCorrecte("guid");
93
		return renvoyerValeurCorrecte("guid");
93
	}
94
	}
94
	public void setGuid(String guid) {
95
	public void setGuid(String guid) {
95
		this.set("guid", guid);
96
		this.set("guid", guid);
96
	}
97
	}
97
	
98
	
98
	public String getIdAlternatif() {
99
	public String getIdAlternatif() {
99
		return renvoyerValeurCorrecte("truk_identifiant_alternatif");
100
		return renvoyerValeurCorrecte("truk_identifiant_alternatif");
100
	}
101
	}
101
	public void setIdAlternatif(String idAlter) {
102
	public void setIdAlternatif(String idAlter) {
102
		this.set("truk_identifiant_alternatif", idAlter);
103
		this.set("truk_identifiant_alternatif", idAlter);
103
	}
104
	}
104
	
105
	
105
	public String getNom() {
106
	public String getNom() {
106
		return renvoyerValeurCorrecte("nom");
107
		return renvoyerValeurCorrecte("nom");
107
	}
108
	}
108
	public void setNom(String nom) {
109
	public void setNom(String nom) {
109
		this.set("nom", nom);
110
		this.set("nom", nom);
110
	}
111
	}
111
	
112
	
112
	public String getNomAlternatif() {
113
	public String getNomAlternatif() {
113
		return renvoyerValeurCorrecte("truk_nom_alternatif");
114
		return renvoyerValeurCorrecte("truk_nom_alternatif");
114
	}
115
	}
115
	
116
	
116
	public String getDescription() {
117
	public String getDescription() {
117
		return renvoyerValeurCorrecte("description");
118
		return renvoyerValeurCorrecte("description");
118
	}
119
	}
119
	public void setDescription(String description) {
120
	public void setDescription(String description) {
120
		this.set("description", description);
121
		this.set("description", description);
121
	}
122
	}
122
	
123
	
123
	public String getType() {
124
	public String getType() {
124
		return renvoyerValeurCorrecte("ce_type");
125
		return renvoyerValeurCorrecte("ce_type");
125
	}
126
	}
126
	public void setType(String type) {
127
	public void setType(String type) {
127
		this.set("ce_type", type);
128
		this.set("ce_type", type);
128
	}
129
	}
129
	
130
	
130
	public String getTypePrive() {
131
	public String getTypePrive() {
131
		return renvoyerValeurCorrecte("ce_truk_type_prive");
132
		return renvoyerValeurCorrecte("ce_truk_type_prive");
132
	}
133
	}
133
	public void setTypePrive(String typePrive) {
134
	public void setTypePrive(String typePrive) {
134
		this.set("ce_truk_type_prive", typePrive);
135
		this.set("ce_truk_type_prive", typePrive);
135
	}
136
	}
136
	
137
	
137
	public String getTypePublic() {
138
	public String getTypePublic() {
138
		return renvoyerValeurCorrecte("ce_truk_type_public");
139
		return renvoyerValeurCorrecte("ce_truk_type_public");
139
	}
140
	}
140
	public void setTypePublic(String typePublic) {
141
	public void setTypePublic(String typePublic) {
141
		this.set("ce_truk_type_public", typePublic);
142
		this.set("ce_truk_type_public", typePublic);
142
	}
143
	}
143
	
144
	
144
	public String getAdresse() {
145
	public String getAdresse() {
145
		return (String) renvoyerValeurCorrecte("adresse_01");
146
		return (String) renvoyerValeurCorrecte("adresse_01");
146
	}
147
	}
147
	public void setAdresse(String adr) {
148
	public void setAdresse(String adr) {
148
		this.set("adresse_01", adr);
149
		this.set("adresse_01", adr);
149
	}
150
	}
150
	
151
	
151
	public String getAdresseComplement() {
152
	public String getAdresseComplement() {
152
		return renvoyerValeurCorrecte("adresse_02");
153
		return renvoyerValeurCorrecte("adresse_02");
153
	}
154
	}
154
	public void setAdresseComplement(String adr) {
155
	public void setAdresseComplement(String adr) {
155
		this.set("adresse_02", adr);
156
		this.set("adresse_02", adr);
156
	}
157
	}
157
 
158
 
158
	public String getDateFondationFormatMysql() {
159
	public String getDateFondationFormatMysql() {
159
		return renvoyerValeurCorrecte("date_fondation");
160
		return renvoyerValeurCorrecte("date_fondation");
160
	}
161
	}
161
	public String getDateFondationFormatLong() {
162
	public String getDateFondationFormatLong() {
162
		String dateFormatee = "";
163
		String dateFormatee = "";
163
		Date dateFondation = getDateFondation();
164
		Date dateFondation = getDateFondation();
164
		if (dateFondation != null) {
165
		if (dateFondation != null) {
165
			dateFormatee = DateTimeFormat.getLongDateFormat().format(dateFondation);
166
			dateFormatee = DateTimeFormat.getLongDateFormat().format(dateFondation);
166
		}
167
		}
167
		return dateFormatee;
168
		return dateFormatee;
168
	}
169
	}
-
 
170
	
-
 
171
	public String getAnneOuDateFondationFormatLong() {
-
 
172
		String dateFormatee = "";
-
 
173
		String dateFondation =  renvoyerValeurCorrecte("date_fondation");
-
 
174
		if (!dateFondation.equals(""))	{
-
 
175
			if (dateFondation.endsWith("00-00"))	{
-
 
176
			dateFormatee = dateFondation.substring(0, 4);
-
 
177
			} else {
-
 
178
				Date date = DateTimeFormat.getFormat("yyyy-MM-dd").parse(dateFondation);
-
 
179
				dateFormatee = DateTimeFormat.getLongDateFormat().format(date);
-
 
180
			}
-
 
181
		}
-
 
182
		return dateFormatee;
-
 
183
	}
169
	public Date getDateFondation() {
184
	public Date getDateFondation() {
170
		Date fondationDate = null;
185
		Date fondationDate = null;
171
		String fondationChaine = renvoyerValeurCorrecte("date_fondation");
186
		String fondationChaine = renvoyerValeurCorrecte("date_fondation");
172
		if (!fondationChaine.isEmpty() && !fondationChaine.equals("0000-00-00")) {
187
		if (!fondationChaine.isEmpty() && !fondationChaine.equals("0000-00-00")) {
173
			fondationDate = DateTimeFormat.getFormat("yyyy-MM-dd").parseStrict(fondationChaine);
188
			fondationDate = DateTimeFormat.getFormat("yyyy-MM-dd").parseStrict(fondationChaine);
174
		}
189
		}
175
		return fondationDate;
190
		return fondationDate;
176
	}
191
	}
-
 
192
	
-
 
193
	public String getAnneeOuDateFondation()	{
-
 
194
		 String valeurDateFondation = get("date_fondation");
-
 
195
		 if (!UtilString.isEmpty(valeurDateFondation) && valeurDateFondation.endsWith("00-00")) {
-
 
196
			 valeurDateFondation = valeurDateFondation.substring(0, 4);
-
 
197
		 } else if (UtilString.isEmpty(valeurDateFondation) && valeurDateFondation.equals("0000-00-00")) {
-
 
198
			 valeurDateFondation  = "";
-
 
199
		 }
-
 
200
		 return valeurDateFondation;
-
 
201
	}
-
 
202
	
177
	public void setDateFondation(Date dateFondation) {
203
	public void setDateFondation(Date dateFondation) {
178
		if (dateFondation != null) {
204
		if (dateFondation != null) {
179
			this.set("date_fondation", DateTimeFormat.getFormat("yyyy-MM-dd").format(dateFondation));
205
			this.set("date_fondation", DateTimeFormat.getFormat("yyyy-MM-dd").format(dateFondation));
180
		}
206
		}
181
	}
207
	}
182
	public void setDateFondation(String dateFondation) {
208
	public void setDateFondation(String dateFondation) {
183
		if (dateFondation != null) {
209
		if (dateFondation != null) {
184
			this.set("date_fondation", dateFondation);
210
			this.set("date_fondation", dateFondation);
185
		}
211
		}
186
	}
212
	}
187
		
213
		
188
	public String getCodePostal() {
214
	public String getCodePostal() {
189
		return renvoyerValeurCorrecte("code_postal");
215
		return renvoyerValeurCorrecte("code_postal");
190
	}
216
	}
191
	public void setCodePostal(String codePostal) {
217
	public void setCodePostal(String codePostal) {
192
		this.set("code_postal", codePostal);
218
		this.set("code_postal", codePostal);
193
	}
219
	}
194
	
220
	
195
	public String getVille() {
221
	public String getVille() {
196
		return renvoyerValeurCorrecte("ville");
222
		return renvoyerValeurCorrecte("ville");
197
	}
223
	}
198
	public void setVille(String ville) {
224
	public void setVille(String ville) {
199
		this.set("ville", ville);
225
		this.set("ville", ville);
200
	}
226
	}
201
	
227
	
202
	public String getRegion() {
228
	public String getRegion() {
203
		return getChaineDenormaliseUnique("ce_truk_region");
229
		return getChaineDenormaliseUnique("ce_truk_region");
204
	}
230
	}
205
	public void setRegion(String region) {
231
	public void setRegion(String region) {
206
		this.set("ce_truk_region", region);
232
		this.set("ce_truk_region", region);
207
	}
233
	}
208
	
234
	
209
	public String getPays() {
235
	public String getPays() {
210
		return getChaineDenormaliseUnique("ce_truk_pays");
236
		return getChaineDenormaliseUnique("ce_truk_pays");
211
	}
237
	}
212
	public void setPays(String pays) {
238
	public void setPays(String pays) {
213
		this.set("ce_truk_pays", pays);
239
		this.set("ce_truk_pays", pays);
214
	}
240
	}
215
	
241
	
216
	public String getLatitude() {
242
	public String getLatitude() {
217
		return renvoyerValeurCorrecte("latitude");
243
		return renvoyerValeurCorrecte("latitude");
218
	}
244
	}
219
	public void setLatitude(String latitude) {
245
	public void setLatitude(String latitude) {
220
		if (latitude != null)	{
246
		if (latitude != null)	{
221
			latitude = latitude.replace(".", ",");
247
			latitude = latitude.replace(".", ",");
222
		}
248
		}
223
		this.set("latitude", latitude);
249
		this.set("latitude", latitude);
224
	}
250
	}
225
 
251
 
226
	public String getLongitude() {
252
	public String getLongitude() {
227
		return renvoyerValeurCorrecte("longitude");
253
		return renvoyerValeurCorrecte("longitude");
228
	}
254
	}
229
	public void setLongitude(String longitude) {
255
	public void setLongitude(String longitude) {
230
		if (longitude != null) {
256
		if (longitude != null) {
231
			longitude = longitude.replace(".", ",");
257
			longitude = longitude.replace(".", ",");
232
		}
258
		}
233
		this.set("longitude", longitude);
259
		this.set("longitude", longitude);
234
	}
260
	}
235
	
261
	
236
	// TELEPHONE
262
	// TELEPHONE
237
	public String getTelephone() {
263
	public String getTelephone() {
238
		return renvoyerValeurCorrecte("truk_telephone");
264
		return renvoyerValeurCorrecte("truk_telephone");
239
	}
265
	}
240
	public void setTelephone(String tel) {
266
	public void setTelephone(String tel) {
241
		this.set("truk_telephone", tel);
267
		this.set("truk_telephone", tel);
242
	}
268
	}
243
	
269
	
244
	// TELEPHONE FIXE
270
	// TELEPHONE FIXE
245
	public String getTelephoneFixe() {
271
	public String getTelephoneFixe() {
246
		return getInfoDenormaliseParType(renvoyerValeurCorrecte("truk_telephone"), Personne.TELEPHONE_FIXE);
272
		return getInfoDenormaliseParType(renvoyerValeurCorrecte("truk_telephone"), Personne.TELEPHONE_FIXE);
247
	}
273
	}
248
	public void setTelephoneFixe(String fixe) {
274
	public void setTelephoneFixe(String fixe) {
249
		modifierChaineDenormaliseParType("truk_telephone", Personne.TELEPHONE_FIXE, fixe);
275
		modifierChaineDenormaliseParType("truk_telephone", Personne.TELEPHONE_FIXE, fixe);
250
	}
276
	}
251
	
277
	
252
	//TELEPHONE FAX
278
	//TELEPHONE FAX
253
	public String getFax() {
279
	public String getFax() {
254
		return getInfoDenormaliseParType(renvoyerValeurCorrecte("truk_telephone"), Personne.TELEPHONE_FAX);
280
		return getInfoDenormaliseParType(renvoyerValeurCorrecte("truk_telephone"), Personne.TELEPHONE_FAX);
255
	}
281
	}
256
	public void setFax(String fax) {
282
	public void setFax(String fax) {
257
		modifierChaineDenormaliseParType("truk_telephone", Personne.TELEPHONE_FAX, fax);
283
		modifierChaineDenormaliseParType("truk_telephone", Personne.TELEPHONE_FAX, fax);
258
	}
284
	}
259
	
285
	
260
	// COURRIEL
286
	// COURRIEL
261
	public String getCourriel() {
287
	public String getCourriel() {
262
		return renvoyerValeurCorrecte("courriel");
288
		return renvoyerValeurCorrecte("courriel");
263
	}
289
	}
264
	public void setCourriel(String courriel) {
290
	public void setCourriel(String courriel) {
265
		this.set("courriel", courriel);
291
		this.set("courriel", courriel);
266
	}
292
	}
267
	
293
	
268
	// URL
294
	// URL
269
	public String getUrl(String type) {
295
	public String getUrl(String type) {
270
		return urls.get(type);
296
		return urls.get(type);
271
	}
297
	}
272
	public String getUrl() {
298
	public String getUrl() {
273
		String urlsDenormalise = "";
299
		String urlsDenormalise = "";
274
		Set<String> proprietes = urls.getProperties().keySet();
300
		Set<String> proprietes = urls.getProperties().keySet();
275
		for (Iterator<String> it = proprietes.iterator(); it.hasNext();) {
301
		for (Iterator<String> it = proprietes.iterator(); it.hasNext();) {
276
			String cle = it.next();
302
			String cle = it.next();
277
			urlsDenormalise += cle+"##"+urls.get(cle)+";;";
303
			urlsDenormalise += cle+"##"+urls.get(cle)+";;";
278
		}
304
		}
279
		urlsDenormalise.replaceFirst(";;$", "");
305
		urlsDenormalise.replaceFirst(";;$", "");
280
		return urlsDenormalise;
306
		return urlsDenormalise;
281
	}
307
	}
282
	public void setUrl(String urlsDenormalise) {
308
	public void setUrl(String urlsDenormalise) {
283
		if (urlsDenormalise != null && !urlsDenormalise.equals("")) {
309
		if (urlsDenormalise != null && !urlsDenormalise.equals("")) {
284
			//GWT.log(urlsDenormalise, null);
310
			//GWT.log(urlsDenormalise, null);
285
			String[] tableauUrls = urlsDenormalise.split(";;");
311
			String[] tableauUrls = urlsDenormalise.split(";;");
286
			for (int i = 0; i < tableauUrls.length; i++) {
312
			for (int i = 0; i < tableauUrls.length; i++) {
287
				String url = tableauUrls[i];
313
				String url = tableauUrls[i];
288
				//GWT.log("\t"+url, null);
314
				//GWT.log("\t"+url, null);
289
				String[] tableauUrl = url.split("##");
315
				String[] tableauUrl = url.split("##");
290
				if (tableauUrl.length == 2) {
316
				if (tableauUrl.length == 2) {
291
					//GWT.log("\t\t"+tableauUrl[0]+"-"+tableauUrl[1], null);
317
					//GWT.log("\t\t"+tableauUrl[0]+"-"+tableauUrl[1], null);
292
					urls.set(tableauUrl[0], tableauUrl[1]);
318
					urls.set(tableauUrl[0], tableauUrl[1]);
293
				}
319
				}
294
			}
320
			}
295
		}
321
		}
296
	}
322
	}
297
	public void setUrl(String type, String url) {
323
	public void setUrl(String type, String url) {
298
		if (url != null) {
324
		if (url != null) {
299
			urls.set(type, url);
325
			urls.set(type, url);
300
		}
326
		}
301
	}
327
	}
302
	
328
	
303
	public int getNbrePersonne() {
329
	public int getNbrePersonne() {
304
		if (renvoyerValeurCorrecte("nbre_personne").equals("")) {
330
		if (renvoyerValeurCorrecte("nbre_personne").equals("")) {
305
			return 0;
331
			return 0;
306
		} else {
332
		} else {
307
			return Integer.parseInt(renvoyerValeurCorrecte("nbre_personne"));
333
			return Integer.parseInt(renvoyerValeurCorrecte("nbre_personne"));
308
		}
334
		}
309
	}
335
	}
310
	public void setNbrePersonne(int nbrePersonne) {
336
	public void setNbrePersonne(int nbrePersonne) {
311
		this.set("nbre_personne", Integer.toString(nbrePersonne));
337
		this.set("nbre_personne", Integer.toString(nbrePersonne));
312
	}
338
	}
313
	
339
	
314
	public String getConditionAcces() {
340
	public String getConditionAcces() {
315
		return renvoyerValeurCorrecte("condition_acces");
341
		return renvoyerValeurCorrecte("condition_acces");
316
	}
342
	}
317
	public void setConditionAcces(String acces) {
343
	public void setConditionAcces(String acces) {
318
		this.set("condition_acces", acces);
344
		this.set("condition_acces", acces);
319
	}
345
	}
320
 
346
 
321
	public String getConditionUsage() {
347
	public String getConditionUsage() {
322
		return renvoyerValeurCorrecte("condition_usage");
348
		return renvoyerValeurCorrecte("condition_usage");
323
	}
349
	}
324
	public void setConditionUsage(String usage) {
350
	public void setConditionUsage(String usage) {
325
		this.set("condition_usage", usage);
351
		this.set("condition_usage", usage);
326
	}
352
	}
327
	
353
	
328
	public StructureAPersonneListe getPersonnel() {
354
	public StructureAPersonneListe getPersonnel() {
329
		return personnel;
355
		return personnel;
330
	}
356
	}
331
	public void setPersonnel(StructureAPersonneListe personnelAStocker) {
357
	public void setPersonnel(StructureAPersonneListe personnelAStocker) {
332
		personnel = personnelAStocker;
358
		personnel = personnelAStocker;
333
	}
359
	}
334
	
360
	
335
	public StructureValorisation getValorisation() {
361
	public StructureValorisation getValorisation() {
336
		return valorisation;
362
		return valorisation;
337
	}
363
	}
338
	public void setValorisation(StructureValorisation valorisationAStocker) {
364
	public void setValorisation(StructureValorisation valorisationAStocker) {
339
		valorisation = valorisationAStocker;
365
		valorisation = valorisationAStocker;
340
	}
366
	}
341
	
367
	
342
	public StructureConservation getConservation() {
368
	public StructureConservation getConservation() {
343
		return conservation;
369
		return conservation;
344
	}
370
	}
345
	public void setConservation(StructureConservation conservationAStocker) {
371
	public void setConservation(StructureConservation conservationAStocker) {
346
		conservation = conservationAStocker;
372
		conservation = conservationAStocker;
347
	}
373
	}
348
	
374
	
349
	public String toString() {
375
	public String toString() {
350
		String sortie = "";
376
		String sortie = "";
351
		
377
		
352
		// Champs du BaseModelData
378
		// Champs du BaseModelData
353
		Set<String> proprietes = this.getProperties().keySet();
379
		Set<String> proprietes = this.getProperties().keySet();
354
		for (Iterator<String> it = proprietes.iterator(); it.hasNext();) {
380
		for (Iterator<String> it = proprietes.iterator(); it.hasNext();) {
355
			String cle = it.next();
381
			String cle = it.next();
356
			sortie += cle+" : "+this.get(cle)+"\n";
382
			sortie += cle+" : "+this.get(cle)+"\n";
357
		}
383
		}
358
		
384
		
359
		// Champs spéciaux
385
		// Champs spéciaux
360
		sortie += getUrl();
386
		sortie += getUrl();
361
		
387
		
362
		return sortie;
388
		return sortie;
363
	}
389
	}
364
	
390
	
365
}
391
}