Subversion Repositories eFlore/Applications.cel

Rev

Rev 1289 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1289 Rev 1542
Line 1... Line 1...
1
package org.tela_botanica.client.modeles.objets;
1
package org.tela_botanica.client.modeles.objets;
Line -... Line 2...
-
 
2
 
-
 
3
import java.util.ArrayList;
-
 
4
import java.util.HashMap;
-
 
5
import java.util.List;
-
 
6
import java.util.Map;
2
 
7
 
-
 
8
import com.google.gwt.i18n.client.Dictionary;
Line 3... Line 9...
3
import com.google.gwt.i18n.client.Dictionary;
9
import com.google.gwt.user.client.Window;
4
 
10
 
5
/**
11
/**
6
 * Classe chargeant certains paramètres de configuration à partir d'un fichier
12
 * Classe chargeant certains paramètres de configuration à partir d'un fichier
Line 47... Line 53...
47
	private static String utiliseRedirectionImage;
53
	private static String utiliseRedirectionImage;
Line 48... Line 54...
48
 
54
 
Line 49... Line 55...
49
	private static String imageRedirectUrl;
55
	private static String imageRedirectUrl;
-
 
56
	
-
 
57
	private static String tailleMaxUpload;
Line 50... Line 58...
50
	
58
	
51
	private static String tailleMaxUpload;
59
	private static List<InfosReferentielNom> referentielsDispos; 
52
 
60
 
53
	/**
61
	/**
Line 80... Line 88...
80
			"cleGoogleMaps");
88
			"cleGoogleMaps");
Line 81... Line 89...
81
			
89
			
82
			lienEfloreBaseUrl = Dictionary.getDictionary("configuration").get(
90
			lienEfloreBaseUrl = Dictionary.getDictionary("configuration").get(
Line 83... Line -...
83
			"lienEfloreBaseUrl");
-
 
84
			
-
 
85
			refTax = Dictionary.getDictionary("configuration").get(
-
 
86
			"refTax");
-
 
87
			
-
 
88
			refTaxVersion = Dictionary.getDictionary("configuration").get(
-
 
89
			"refTaxVersion");
91
			"lienEfloreBaseUrl");
90
			
92
			
Line 91... Line 93...
91
			formatOriginal = Dictionary.getDictionary("configuration").get(
93
			formatOriginal = Dictionary.getDictionary("configuration").get(
92
			"formatOriginal");
94
			"formatOriginal");
Line 107... Line 109...
107
			"imageRedirectUrl");
109
			"imageRedirectUrl");
Line 108... Line 110...
108
			
110
			
109
			tailleMaxUpload = Dictionary.getDictionary("configuration").get(
111
			tailleMaxUpload = Dictionary.getDictionary("configuration").get(
Line 110... Line 112...
110
			"tailleMaxUpload");
112
			"tailleMaxUpload");
-
 
113
			
-
 
114
			referentielsDispos = parserReferentielsDispos(Dictionary.getDictionary("configuration").get(
-
 
115
					"referentielsDispos"));
-
 
116
	}
-
 
117
	
-
 
118
	private List<InfosReferentielNom> parserReferentielsDispos(String chaineListeReferentiels) {
-
 
119
		String[] tabReferentiels = chaineListeReferentiels.split(";");
-
 
120
		List<InfosReferentielNom> referentiels = new ArrayList<InfosReferentielNom>(tabReferentiels.length);
-
 
121
		for (int i = 0; i < tabReferentiels.length; i++) {
-
 
122
			InfosReferentielNom infoRef = new InfosReferentielNom(tabReferentiels[i]);
-
 
123
			referentiels.add(infoRef);
111
			
124
		}
Line 112... Line 125...
112
			//licence = Dictionary.getDictionary("configuration").get("licence");
125
		return referentiels;
113
	}
126
	}
114
 
127
 
Line 177... Line 190...
177
 
190
 
178
	public static String getLienEfloreBaseUrl() {
191
	public static String getLienEfloreBaseUrl() {
179
		return lienEfloreBaseUrl;	
192
		return lienEfloreBaseUrl;	
Line 180... Line -...
180
	}
-
 
181
	
-
 
182
	public static String getRefTax() {
-
 
183
		return refTax;	
-
 
184
	}
-
 
185
	
-
 
186
	public static String getRefTaxVersion() {
-
 
187
		return refTaxVersion;	
-
 
188
	}
193
	}
189
	
194
	
190
	public static String getLicence() {
195
	public static String getLicence() {
Line 191... Line 196...
191
		return licence;
196
		return licence;
Line 216... Line 221...
216
	}
221
	}
Line 217... Line 222...
217
	
222
	
218
	public static String getTailleMaxUpload() {
223
	public static String getTailleMaxUpload() {
219
		return tailleMaxUpload;
224
		return tailleMaxUpload;
-
 
225
	}
-
 
226
	
-
 
227
	public static List<InfosReferentielNom> getReferentielsDispos() {
-
 
228
		return referentielsDispos;
220
	}
229
	}