Subversion Repositories eFlore/Applications.coel

Rev

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

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