Subversion Repositories eFlore/Applications.coel

Rev

Rev 1241 | Rev 1339 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1241 Rev 1271
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
	
286
	
261
	// COURRIEL
287
	// COURRIEL
262
	public String getCourriel() {
288
	public String getCourriel() {
263
		return renvoyerValeurCorrecte("courriel");
289
		return renvoyerValeurCorrecte("courriel");
264
	}
290
	}
265
	public void setCourriel(String courriel) {
291
	public void setCourriel(String courriel) {
266
		this.set("courriel", courriel);
292
		this.set("courriel", courriel);
267
	}
293
	}
268
	
294
	
269
	// URL
295
	// URL
270
	public String getUrl(String type) {
296
	public String getUrl(String type) {
271
		return urls.get(type);
297
		return urls.get(type);
272
	}
298
	}
273
	public String getUrl() {
299
	public String getUrl() {
274
		String urlsDenormalise = "";
300
		String urlsDenormalise = "";
275
		Set<String> proprietes = urls.getProperties().keySet();
301
		Set<String> proprietes = urls.getProperties().keySet();
276
		for (Iterator<String> it = proprietes.iterator(); it.hasNext();) {
302
		for (Iterator<String> it = proprietes.iterator(); it.hasNext();) {
277
			String cle = it.next();
303
			String cle = it.next();
278
			urlsDenormalise += cle+"##"+urls.get(cle)+";;";
304
			urlsDenormalise += cle+"##"+urls.get(cle)+";;";
279
		}
305
		}
280
		urlsDenormalise.replaceFirst(";;$", "");
306
		urlsDenormalise.replaceFirst(";;$", "");
281
		return urlsDenormalise;
307
		return urlsDenormalise;
282
	}
308
	}
283
	public void setUrl(String urlsDenormalise) {
309
	public void setUrl(String urlsDenormalise) {
284
		if (urlsDenormalise != null && !urlsDenormalise.equals("")) {
310
		if (urlsDenormalise != null && !urlsDenormalise.equals("")) {
285
			//GWT.log(urlsDenormalise, null);
311
			//GWT.log(urlsDenormalise, null);
286
			String[] tableauUrls = urlsDenormalise.split(";;");
312
			String[] tableauUrls = urlsDenormalise.split(";;");
287
			for (int i = 0; i < tableauUrls.length; i++) {
313
			for (int i = 0; i < tableauUrls.length; i++) {
288
				String url = tableauUrls[i];
314
				String url = tableauUrls[i];
289
				//GWT.log("\t"+url, null);
315
				//GWT.log("\t"+url, null);
290
				String[] tableauUrl = url.split("##");
316
				String[] tableauUrl = url.split("##");
291
				if (tableauUrl.length == 2) {
317
				if (tableauUrl.length == 2) {
292
					//GWT.log("\t\t"+tableauUrl[0]+"-"+tableauUrl[1], null);
318
					//GWT.log("\t\t"+tableauUrl[0]+"-"+tableauUrl[1], null);
293
					urls.set(tableauUrl[0], tableauUrl[1]);
319
					urls.set(tableauUrl[0], tableauUrl[1]);
294
				}
320
				}
295
			}
321
			}
296
		}
322
		}
297
	}
323
	}
298
	public void setUrl(String type, String url) {
324
	public void setUrl(String type, String url) {
299
		if (url != null) {
325
		if (url != null) {
300
			urls.set(type, url);
326
			urls.set(type, url);
301
		}
327
		}
302
	}
328
	}
303
	
329
	
304
	public int getNbrePersonne() {
330
	public int getNbrePersonne() {
305
		if (renvoyerValeurCorrecte("nbre_personne").equals("")) {
331
		if (renvoyerValeurCorrecte("nbre_personne").equals("")) {
306
			return 0;
332
			return 0;
307
		} else {
333
		} else {
308
			return Integer.parseInt(renvoyerValeurCorrecte("nbre_personne"));
334
			return Integer.parseInt(renvoyerValeurCorrecte("nbre_personne"));
309
		}
335
		}
310
	}
336
	}
311
	public void setNbrePersonne(int nbrePersonne) {
337
	public void setNbrePersonne(int nbrePersonne) {
312
		this.set("nbre_personne", Integer.toString(nbrePersonne));
338
		this.set("nbre_personne", Integer.toString(nbrePersonne));
313
	}
339
	}
314
	
340
	
315
	public String getConditionAcces() {
341
	public String getConditionAcces() {
316
		return renvoyerValeurCorrecte("condition_acces");
342
		return renvoyerValeurCorrecte("condition_acces");
317
	}
343
	}
318
	public void setConditionAcces(String acces) {
344
	public void setConditionAcces(String acces) {
319
		this.set("condition_acces", acces);
345
		this.set("condition_acces", acces);
320
	}
346
	}
321
 
347
 
322
	public String getConditionUsage() {
348
	public String getConditionUsage() {
323
		return renvoyerValeurCorrecte("condition_usage");
349
		return renvoyerValeurCorrecte("condition_usage");
324
	}
350
	}
325
	public void setConditionUsage(String usage) {
351
	public void setConditionUsage(String usage) {
326
		this.set("condition_usage", usage);
352
		this.set("condition_usage", usage);
327
	}
353
	}
328
	
354
	
329
	public StructureAPersonneListe getPersonnel() {
355
	public StructureAPersonneListe getPersonnel() {
330
		return personnel;
356
		return personnel;
331
	}
357
	}
332
	public void setPersonnel(StructureAPersonneListe personnelAStocker) {
358
	public void setPersonnel(StructureAPersonneListe personnelAStocker) {
333
		personnel = personnelAStocker;
359
		personnel = personnelAStocker;
334
	}
360
	}
335
	
361
	
336
	public StructureValorisation getValorisation() {
362
	public StructureValorisation getValorisation() {
337
		return valorisation;
363
		return valorisation;
338
	}
364
	}
339
	public void setValorisation(StructureValorisation valorisationAStocker) {
365
	public void setValorisation(StructureValorisation valorisationAStocker) {
340
		valorisation = valorisationAStocker;
366
		valorisation = valorisationAStocker;
341
	}
367
	}
342
	
368
	
343
	public StructureConservation getConservation() {
369
	public StructureConservation getConservation() {
344
		return conservation;
370
		return conservation;
345
	}
371
	}
346
	public void setConservation(StructureConservation conservationAStocker) {
372
	public void setConservation(StructureConservation conservationAStocker) {
347
		conservation = conservationAStocker;
373
		conservation = conservationAStocker;
348
	}
374
	}
349
	
375
	
350
	public String toString() {
376
	public String toString() {
351
		String sortie = "";
377
		String sortie = "";
352
		
378
		
353
		// Champs du BaseModelData
379
		// Champs du BaseModelData
354
		Set<String> proprietes = this.getProperties().keySet();
380
		Set<String> proprietes = this.getProperties().keySet();
355
		for (Iterator<String> it = proprietes.iterator(); it.hasNext();) {
381
		for (Iterator<String> it = proprietes.iterator(); it.hasNext();) {
356
			String cle = it.next();
382
			String cle = it.next();
357
			sortie += cle+" : "+this.get(cle)+"\n";
383
			sortie += cle+" : "+this.get(cle)+"\n";
358
		}
384
		}
359
		
385
		
360
		// Champs spéciaux
386
		// Champs spéciaux
361
		sortie += getUrl();
387
		sortie += getUrl();
362
		
388
		
363
		return sortie;
389
		return sortie;
364
	}
390
	}
365
	
391
	
366
}
392
}