1 | /** |
---|
2 | * Constantes Ether |
---|
3 | * |
---|
4 | * @version $Id: Constants.java,v 1.1 2001/01/15 15:38:47 pn Exp $ |
---|
5 | * @author ppa |
---|
6 | */ |
---|
7 | package fr.alcatel.ether.app.common; |
---|
8 | import java.text.*; |
---|
9 | |
---|
10 | public interface Constants |
---|
11 | { |
---|
12 | public static String PATH_CONF = "path_conf"; |
---|
13 | |
---|
14 | /** nb de colonnes du tableau gestion des expériences */ |
---|
15 | public static int experience_gestion_nb_col = 6; |
---|
16 | |
---|
17 | /** nb de colonnesB de la table Utilisateur */ |
---|
18 | public static int utilisateur_proprietes_nb_col = 15; |
---|
19 | |
---|
20 | /** Format de date en base */ |
---|
21 | public static String dateFormatBase = "DD/MM/YYYY HH24:MI:SS"; |
---|
22 | |
---|
23 | /** Format de date sur page de critère*/ |
---|
24 | public static SimpleDateFormat dateFormatter |
---|
25 | = new SimpleDateFormat( "yyyy/MM/dd HH:mm:ss.SSS" ); |
---|
26 | |
---|
27 | public static SimpleDateFormat[] dateFormatters = |
---|
28 | { |
---|
29 | new SimpleDateFormat( "yyyy/MM/dd HH:mm:ss.SSS" ), |
---|
30 | new SimpleDateFormat( "yyyy/MM/dd HH:mm:ss" ), |
---|
31 | new SimpleDateFormat( "yyyy/MM/dd HH:mm" ), |
---|
32 | new SimpleDateFormat( "yyyy/MM/dd" ) |
---|
33 | }; |
---|
34 | |
---|
35 | public static final int CODE_PATH = -1; |
---|
36 | public static final int CODE_TAR_FILE = -2; |
---|
37 | public static final int CODE_PREDEFINED_PERIODS = -3; |
---|
38 | public static final int CODE_PREDEFINED_ZONES = -4; |
---|
39 | public static final int CODE_EMPTY_LINE = -5; |
---|
40 | public static final int CODE_SPECIFIC = 0; |
---|
41 | public static final int CODE_EXPERIMENT = 1; |
---|
42 | public static final int CODE_PARAMETER = 2; |
---|
43 | public static final int CODE_CEOS_LEVEL = 3; |
---|
44 | public static final int CODE_CEOS_SUBLEVEL = 4; |
---|
45 | public static final int CODE_DATASET_VERSION = 5; |
---|
46 | public static final int CODE_MIN_LONGITUDE = 6; |
---|
47 | public static final int CODE_MAX_LONGITUDE = 7; |
---|
48 | public static final int CODE_MIN_LATITUDE = 8; |
---|
49 | public static final int CODE_MAX_LATITUDE = 9; |
---|
50 | public static final int CODE_ATMOSPHERIC_LEVEL = 10; |
---|
51 | public static final int CODE_LOWER_ALTITUDE = 11; |
---|
52 | public static final int CODE_UPPER_ALTITUDE = 12; |
---|
53 | public static final int CODE_FIRST_DATE = 13; |
---|
54 | public static final int CODE_LAST_DATE = 14; |
---|
55 | public static final int CODE_FORMAT = 15; |
---|
56 | public static final int CODE_SUB_PARAMETER = 16; |
---|
57 | public static final int NB_ATTRIBUTES = 16; |
---|
58 | |
---|
59 | |
---|
60 | |
---|
61 | /** Valeurs des beans utilisés dans la session */ |
---|
62 | public static final String GROUP_LIST_BEAN = "groupBean"; |
---|
63 | |
---|
64 | |
---|
65 | /** Clés pour la recherche d'un jeux de données */ |
---|
66 | /** Clés pouvant appartenir à des lignes et à des colonnes de l'arbre */ |
---|
67 | public static final String KEY_FORMAT = "FORMAT"; |
---|
68 | public static final String KEY_EXPERIMENT = "EXPERIMENT"; |
---|
69 | public static final String KEY_PARAMETER = "PARAMETER"; |
---|
70 | public static final String KEY_SUB_PARAMETER = "SUB_PARAMETER"; |
---|
71 | public static final String KEY_ATMOSPHERIC = "ATMOSPHERIC_LEVEL"; |
---|
72 | public static final String KEY_VERSION = "DATASET_VERSION"; |
---|
73 | public static final String KEY_CEOS_LEVEL = "CEOS_LEVEL"; |
---|
74 | public static final String KEY_CEOS_SUBLEVEL = "CEOS_SUB_LEVEL"; |
---|
75 | |
---|
76 | /** Clé pour la recherche multi jeux de critères */ |
---|
77 | public static final String NB_SEARCH = "nb_search"; |
---|
78 | |
---|
79 | |
---|
80 | /** Clés pouvant appartenir à des colonnes du tableau */ |
---|
81 | public static final String KEY_FIRST_DATE = "FIRST_DATE"; |
---|
82 | public static final String KEY_LAST_DATE = "LAST_DATE"; |
---|
83 | public static final String KEY_LON_MIN = "LON_MIN"; |
---|
84 | public static final String KEY_LON_MAX = "LON_MAX"; |
---|
85 | public static final String KEY_LAT_MIN = "LAT_MIN"; |
---|
86 | public static final String KEY_LAT_MAX = "LAT_MAX"; |
---|
87 | public static final String KEY_UPPER_ALTITUDE = "UPPER_ALTITUDE"; |
---|
88 | public static final String KEY_LOWER_ALTITUDE = "LOWER_ALTITUDE"; |
---|
89 | |
---|
90 | /** Paramètre d'affichage por les arbres */ |
---|
91 | public static final String INDENTATION = " "; |
---|
92 | |
---|
93 | |
---|
94 | /** Oracle Sequences */ |
---|
95 | public static final String SEQ_ETHER_SHOPPINGLIST = "seq_ether_shoppinglist"; |
---|
96 | public static final String SEQ_ETHER_ORDER = "seq_ether_order"; |
---|
97 | public static final String SEQ_ETHER_SERVICE = "seq_ether_service"; |
---|
98 | public static final String SEQ_ETHER_APPLICABLE_SERVICE = "seq_ether_applicable_service"; |
---|
99 | |
---|
100 | /** activation du mode DEBUG */ |
---|
101 | public static final boolean DEBUG = true ; |
---|
102 | |
---|
103 | /** Class names of Ether beans */ |
---|
104 | public static final String BEAN_SHOPPINGLIST_CLASS = "fr.alcatel.ether.bean.ShoppingListBean"; |
---|
105 | public static final String BEAN_ORDER_CLASS = "fr.alcatel.ether.bean.OrderBean"; |
---|
106 | public static final String BEAN_ORDERABLE_CLASS = "fr.alcatel.ether.bean.OrderableBean"; |
---|
107 | public static final String BEAN_ORDERABLE_OBJECT_CLASS = "fr.alcatel.ether.bean.OrderableBeanObject"; |
---|
108 | public static final String BEAN_EXPERIMENT_CLASS = "fr.alcatel.ether.bean.ExperimentBean"; |
---|
109 | public static final String BEAN_SEARCH_CLASS = "fr.alcatel.ether.bean.SearchBean"; |
---|
110 | public static final String BEAN_SEARCH_TOP_CLASS = "fr.alcatel.ether.bean.SearchTopBean"; |
---|
111 | public static final String BEAN_USER_CLASS = "fr.alcatel.ether.bean.UserBean"; |
---|
112 | public static final String BEAN_SERVICE_CLASS = "fr.alcatel.ether.bean.ServiceBean"; |
---|
113 | public static final String BEAN_STATISTICS_CLASS = "fr.alcatel.ether.bean.StatisticsBean"; |
---|
114 | public static final String BEAN_WORKFLOW_CLASS = "fr.alcatel.ether.bean.WorkflowBean"; |
---|
115 | |
---|
116 | /** valeur par défaut utilisateur */ |
---|
117 | public static final int NETWORKQUOTA = 500; |
---|
118 | public static final int REPOSITORYLIFETIME = 5; |
---|
119 | public static final int REPOSITORYMAXSIZE = 500; |
---|
120 | |
---|
121 | |
---|
122 | |
---|
123 | //--------------------------------------------------------------------- |
---|
124 | |
---|
125 | /** Actions dans les servlets , DEBUT */ |
---|
126 | /** ShoppingListServlet début*/ |
---|
127 | public static final int SHOPPINGLIST_INIT_SHOPPING = 1; |
---|
128 | public static final int SHOPPINGLIST_LIST_SHOPPING = 2; |
---|
129 | public static final int SHOPPINGLIST_WIN_SHOPPING = 3; |
---|
130 | public static final int SHOPPINGLIST_OPEN_SHOPPING = 4; |
---|
131 | public static final int SHOPPINGLIST_DELETE_SHOPPING = 5; |
---|
132 | public static final int SHOPPINGLIST_SAVE_SHOPPING = 6; |
---|
133 | public static final int SHOPPINGLIST_CUT_SHOPPING = 7; |
---|
134 | public static final int SHOPPINGLIST_NEXT = 8; |
---|
135 | public static final int SHOPPINGLIST_PREVIOUS = 9; |
---|
136 | public static final int SHOPPINGLIST_SELECT_ALL_ORDERABLE =10; |
---|
137 | public static final int SHOPPINGLIST_DELETE_ALL_ORDERABLE =11; |
---|
138 | public static final int SHOPPINGLIST_CHOOSE_MEDIA =12; |
---|
139 | public static final int SHOPPINGLIST_INIT_INFO_SHOPPING =13; |
---|
140 | public static final int SHOPPINGLIST_LIST_INFO_SHOPPING =14; |
---|
141 | public static final int SHOPPINGLIST_INFO_NEXT =15; |
---|
142 | public static final int SHOPPINGLIST_INFO_PREVIOUS =16; |
---|
143 | /** ShoppingListServlet fin*/ |
---|
144 | /** OrderServlet début */ |
---|
145 | // Point d'entrée du menu |
---|
146 | // Effectuer une commande |
---|
147 | public static final int ORDER_INIT_ORDERS = 1; |
---|
148 | // Gestion des commandes par l'administrateur |
---|
149 | public static final int ORDER_INIT_ORDERS_ADM = 2; |
---|
150 | // Liste des commandes pour un utilisateur |
---|
151 | public static final int ORDER_INIT_ORDERS_USER = 3; |
---|
152 | // Visualiser le contenu d'une commande |
---|
153 | public static final int ORDER_INIT_CONTENT = 4; |
---|
154 | // Visualiser le contenu d'une commande pour l'administrateur |
---|
155 | public static final int ORDER_INIT_CONTENT_ADM = 5; |
---|
156 | // Traiter next et previous pour commandes d'un administrateur |
---|
157 | public static final int ORDER_LIST_ORDERS_ADM_NEXT = 10; |
---|
158 | public static final int ORDER_LIST_ORDERS_ADM_PREV = 11; |
---|
159 | // Traiter next et previous pour commandes d'un utilisateur |
---|
160 | public static final int ORDER_LIST_ORDERS_USER_NEXT = 12; |
---|
161 | public static final int ORDER_LIST_ORDERS_USER_PREV = 13; |
---|
162 | // Traiter next et previous pour le contenu d'une commande |
---|
163 | public static final int ORDER_LIST_CONTENT_NEXT = 14; |
---|
164 | public static final int ORDER_LIST_CONTENT_PREV = 15; |
---|
165 | public static final int ORDER_LIST_CONTENT_ADM_NEXT = 16; |
---|
166 | public static final int ORDER_LIST_CONTENT_ADM_PREV = 17; |
---|
167 | // Mettre à jour le statut d'une commande (admin) |
---|
168 | public static final int ORDER_CHANGE_STATUS_ADM = 18; |
---|
169 | // Supprimer une commande (admin) |
---|
170 | public static final int ORDER_DELETE_ADM = 19; |
---|
171 | // Voir commandes en cours - pour debugging |
---|
172 | public static final int ORDER_PENDING_ORDERS = 20; |
---|
173 | // Supprimer une commande (user) |
---|
174 | public static final int ORDER_DELETE_USER = 21; |
---|
175 | public static final int ORDER_DELETE_USER_CONFIRMED = 22 ; |
---|
176 | |
---|
177 | // Operations for PENDING_ORDERS |
---|
178 | public static final String OP_PARAMETER = "do"; |
---|
179 | public static final int OP_SUSPEND = 1; |
---|
180 | public static final int OP_RESUME = 2; |
---|
181 | public static final int OP_ABORT = 3; |
---|
182 | public static final int OP_TERMINATE = 4; |
---|
183 | |
---|
184 | /** OrderServlet fin */ |
---|
185 | /** SearchDataSetServlet , DEBUT*/ |
---|
186 | public static final int SEARCH_DATASET_INIT_SEARCH_EXPERIMENT = 1; |
---|
187 | public static final int SEARCH_DATASET_INIT_SEARCH_PARAMETER = 2; |
---|
188 | public static final int SEARCH_DATASET_INIT_SEARCH_ATMOSPHERIC = 3; |
---|
189 | public static final int SEARCH_DATASET_ELEMENT_SELECTED = 4; |
---|
190 | public static final int SEARCH_DATASET_ADDTO_SHOPPINGLIST = 5; |
---|
191 | /** SearchDataSetServlet fin */ |
---|
192 | /** UserSpaceServlet , DEBUT*/ |
---|
193 | public static final int USER_SPACE_INIT_SEARCH = 1; |
---|
194 | public static final int USER_SPACE_ELEMENT_SELECTED = 2; |
---|
195 | public static final int USER_SPACE_CHOOSE_TRANSFER = 3; |
---|
196 | public static final int USER_SPACE_EXECUTE_TRANSFER = 4; |
---|
197 | public static final int USER_SPACE_CUT = 5; |
---|
198 | public static final int USER_SPACE_CUT_OK = 6; |
---|
199 | public static final int USER_SPACE_DISPLAY_INTERACTIF = 7; |
---|
200 | public static final int USER_SPACE_EXECUTE_INTERACTIF = 8; |
---|
201 | public static final int USER_SPACE_ADD_TO_SHOPPING = 9; |
---|
202 | public static final int USER_SPACE_ADD_EMPTY_TO_SHOPPING = 10; |
---|
203 | public static final int USER_SPACE_PREPARING_TRANFER = 11; |
---|
204 | public static final int USER_SPACE_REDIRECT_TO_FILE = 12; |
---|
205 | /** UserSpaceServlet , FIN*/ |
---|
206 | /** ServiceServlet , DEBUT */ |
---|
207 | public static final int SERVICE_INIT = 1; |
---|
208 | public static final int SERVICE_LIST = 2; |
---|
209 | public static final int SERVICE_UPDATE = 3; |
---|
210 | public static final int SERVICE_DELETE = 4; |
---|
211 | public static final int SERVICE_CREATE = 5; |
---|
212 | public static final int SERVICE_DELETE_VALIDATION = 6; |
---|
213 | public static final int SERVICE_UPDATE_VALIDATION = 7; |
---|
214 | public static final int SERVICE_NEXT = 8; |
---|
215 | public static final int SERVICE_PREV = 9; |
---|
216 | public static final int SERVICE_INIT_SERVICE_RIGHT =10; |
---|
217 | public static final int SERVICE_ADD_GROUP_TO_LIST =11; |
---|
218 | public static final int SERVICE_REMOVE_GROUP_FROM_LIST =12; |
---|
219 | public static final int SERVICE_VALIDATION_SERVICE_RIGHT =13; |
---|
220 | /** ServiceServlet ,FIN */ |
---|
221 | /** ServiceSelectionServlet , DEBUT */ |
---|
222 | public static final int SERVICE_DISPLAY_SERVICES_DATASET =1; |
---|
223 | public static final int SERVICE_DISPLAY_SERVICES_FILE =2; |
---|
224 | public static final int SERVICE_DISPLAY_PARAMETERS =3; |
---|
225 | public static final int SERVICE_VALIDATION_PARAMETERS =4; |
---|
226 | public static final int SERVICE_VALIDATION_DATASET =5; |
---|
227 | public static final int SERVICE_VALIDATION_FILE =6; |
---|
228 | public static final int SERVICE_DISPLAY_SERVICES_ORDERABLE =7; |
---|
229 | public static final int SERVICE_VALIDATION_ORDERABLE =8; |
---|
230 | public static final int SERVICE_INIT_SERVICE_INTERACTIF =9; |
---|
231 | /** ServiceSelectionServlet , FIN */ |
---|
232 | /** RightDataSetServlet , DEBUT */ |
---|
233 | public static final int RIGHT_DATASET_INIT_SEARCH_EXPERIMENT =1; |
---|
234 | public static final int RIGHT_DATASET_INIT_SEARCH_PARAMETER =2; |
---|
235 | public static final int RIGHT_DATASET_INIT_SEARCH_ATMOSPHERIC =3; |
---|
236 | public static final int RIGHT_DATASET_ELEMENT_SELECTED =4; |
---|
237 | public static final int RIGHT_DATASET_INIT_DATASET_RIGHT =5; |
---|
238 | public static final int RIGHT_DATASET_ADD_GROUP_TO_LIST =6; |
---|
239 | public static final int RIGHT_DATASET_REMOVE_GROUP_FROM_LIST =7; |
---|
240 | public static final int RIGHT_DATASET_VALIDATION_DATASET_RIGHT =8; |
---|
241 | public static final int RIGHT_DATASET_DISPLAY_CRITERES =9; |
---|
242 | public static final int RIGHT_DATASET_VALIDATION_CRITERES =10; |
---|
243 | public static final int RIGHT_DATASET_LIST_DATASET_RIGHT =11; |
---|
244 | public static final int RIGHT_DATASET_INIT_SELECTION_FOR_DATASET=12; |
---|
245 | public static final int RIGHT_DATASET_ADD_TO_DATASET_LIST =13; |
---|
246 | public static final int RIGHT_DATASET_REMOVE_FROM_DATASET_LIST =14; |
---|
247 | public static final int RIGHT_DATASET_VALIDATION_FOR_DATASET =15; |
---|
248 | public static final int RIGHT_DATASET_CONFIRM_ARCHIVE_DATASET =16; |
---|
249 | public static final int RIGHT_DATASET_CONFIRM_DELETE_DATASET =17; |
---|
250 | public static final int RIGHT_DATASET_ARCHIVE_DATASET =18; |
---|
251 | public static final int RIGHT_DATASET_DELETE_DATASET =19; |
---|
252 | public static final int RIGHT_INIT_CREATION_OFFLINE_DATASET =20; |
---|
253 | public static final int RIGHT_VALIDATION_OFFLINE_DATASET =21; |
---|
254 | |
---|
255 | /** RightDataSetServlet , FIN */ |
---|
256 | |
---|
257 | /** Actions dans les servlets , FIN */ |
---|
258 | |
---|
259 | //--------------------------------------------------------------------- |
---|
260 | |
---|
261 | /** Attributs stockés dans la session , DEBUT */ |
---|
262 | /** Deux attributs ne peuvent pas porter le même nom */ |
---|
263 | |
---|
264 | /** Attributs utilisés par plusieurs servlets */ |
---|
265 | public static final String SHOPPINGLIST = "ShoppingList"; |
---|
266 | public static final String SHOPPINGLIST_SERVICE = "ShoppingListService"; |
---|
267 | public static final String USER = "User"; |
---|
268 | public static final String USERORDER = "UserOrder"; |
---|
269 | public static final String ORDERED_SERVICES = "OrderedServices"; |
---|
270 | public static final String EXPERIMENT_ID_SESSION = "experimentIdSession"; |
---|
271 | public static final String EXPERIMENT_FOR_SERVICE_SELECTION = "expIdForService"; |
---|
272 | public static final String DATASET_FOR_SERVICE_SELECTION= "datasetForService"; |
---|
273 | |
---|
274 | public static final String SELECT_SERVICE_BEAN = "selectServiceBean"; |
---|
275 | public static final String SELECT_SERVICE_FILE_BEAN = "selectServiceFileBean"; |
---|
276 | public static final String SELECT_SERVICE_DATASET_BEAN = "selectServiceDatasetBean"; |
---|
277 | |
---|
278 | public static final String SEARCH_LIST_OF_COMMON = "searchListOfCommon"; |
---|
279 | public static final String SERVICE_LIST_OF_COMMON = "serviceListOfCommon"; |
---|
280 | public static final String SERVICE_INTERACTIF_INFO= "serviceInteractifInfo"; |
---|
281 | |
---|
282 | /** Attributs utilisés par une servlet pour communication avec pages JSP */ |
---|
283 | /** ShoppingListServlet début*/ |
---|
284 | public static final String SHOPPINGLIST_BEAN = "shoppingListBean"; |
---|
285 | public static final String SHOPPINGLIST_USER = "shoppingListUser"; |
---|
286 | public static final String SHOPPINGLIST_USER_BEAN = "shoppingListUserBean"; |
---|
287 | /** ShoppingListServlet fin*/ |
---|
288 | /** OrderServlet début */ |
---|
289 | public static final String ORDER_LIST = "orderList"; |
---|
290 | public static final String ORDER_LIST_BEAN = "orderListBean"; |
---|
291 | public static final String ORDER_CONTENT_BEAN = "orderContentBean"; |
---|
292 | public static final String SHOPPINGLIST_ORDER_BEAN = "shoppingListOrderBean"; |
---|
293 | public static final String ORDER_WORKFLOW_BEAN = "workflowBean"; |
---|
294 | /** OrderServlet fin */ |
---|
295 | |
---|
296 | /** UserServlet début */ |
---|
297 | public static final String USER_LIST_BEAN = "userBean"; |
---|
298 | /** UserServlet fin */ |
---|
299 | |
---|
300 | |
---|
301 | /** SearchDataSetServlet début */ |
---|
302 | public static final String LIST_BEAN = "searchDataSetTable"; |
---|
303 | /** SearchDataSetServlet fin */ |
---|
304 | /** UserSpaceServlet début */ |
---|
305 | public static final String USER_SPACE_BEAN = "userSpace"; |
---|
306 | public static final String FILE_TO_TRANSFER = "fileToTranfer"; |
---|
307 | /** UserSpaceServlet fin */ |
---|
308 | /** ServiceServlet début */ |
---|
309 | public static final String SERVICE_BEAN = "serviceBean"; |
---|
310 | public static final String SERVICE_LIST_BEAN = "serviceListBean"; |
---|
311 | public static final String BACKGROUND_SERVICE = "serviceBack"; |
---|
312 | /** ServiceServlet fin */ |
---|
313 | |
---|
314 | /** Attributs stockés dans la session , FIN */ |
---|
315 | |
---|
316 | //--------------------------------------------------------------------- |
---|
317 | |
---|
318 | /** Attribut utilisés dans une request */ |
---|
319 | /** Deux attributs dans une même servlet ne peuvent pas porter le même nom */ |
---|
320 | /** Atttibuts communs */ |
---|
321 | public static final String ACTION_TO_PERMIT = "actionToPermit"; |
---|
322 | public static final int ACTION_NEXT = 1; |
---|
323 | public static final int ACTION_PREVIOUS = 2; |
---|
324 | public static final int ACTION_NEXT_AND_PREVIOUS = 3; |
---|
325 | public static final int ACTION_EMPTY = 4; |
---|
326 | |
---|
327 | /** ShoppingListServlet , DEBUT */ |
---|
328 | public static final String NAME_CURRENT_SHOPPING = "nomPanierCourant"; |
---|
329 | public static final String ID_CURRENT_SHOPPING = "idPanierCourant"; |
---|
330 | /** ShoppingListServlet , FIN */ |
---|
331 | |
---|
332 | //--------------------------------------------------------------------- |
---|
333 | /** Nombre de lignes par défaut à afficher par un bean */ |
---|
334 | public static int DEFAULT_TABSIZE = 5; |
---|
335 | |
---|
336 | //--------------------------------------------------------------------- |
---|
337 | /** Identifiants des paramètres utilisés en appel des servlets */ |
---|
338 | /** Identifiants communs */ |
---|
339 | public static final String INDEX = "index" ; |
---|
340 | public static final String SECOND_INDEX = "index2" ; |
---|
341 | public static final String CHECKBOX = "CHECKED_" ; |
---|
342 | public static final String CHECKBOX_KEEP = "CHECKEDKEEP_" ; |
---|
343 | |
---|
344 | public static final String METHOD = "method"; |
---|
345 | public static final String DATASET_SELECTED = "dataset_selected" ; |
---|
346 | public static final String SERVICE_SELECTED = "service"; |
---|
347 | |
---|
348 | /** Libellé du paramètre action dans les pages JSP */ |
---|
349 | public static final String ACTION = "action"; |
---|
350 | /** Libellé du paramètre media dans OrderServlet */ |
---|
351 | public static final String MEDIA = "media"; |
---|
352 | |
---|
353 | /** Identifiants spécifiques à une servlet */ |
---|
354 | /** ShoppingListServlet , OrderServlet , DEBUT */ |
---|
355 | public static final String SELECT = "select"; |
---|
356 | public static final String TEXTFIELD = "textfield"; |
---|
357 | public static final String ID = "id"; |
---|
358 | public static final String STATUS = "order_status"; |
---|
359 | /** ShoppingListServlet , OrderServlet , FIN */ |
---|
360 | /** SearchDataSetServlet DEBUT */ |
---|
361 | /** SearchDataSetServlet FIN*/ |
---|
362 | /** UserSpaceServlet DEBUT */ |
---|
363 | public static final int ZIP = 1; |
---|
364 | public static final int TAR_GZ = 2; |
---|
365 | public static final int FTP = 1; |
---|
366 | public static final int HTTP = 2; |
---|
367 | public static final String TRANSFER_TYPE = "type"; |
---|
368 | /** UserSpaceServlet FIN */ |
---|
369 | /** ServiceServlet DEBUT */ |
---|
370 | public static final String SERVICE_ACTIVATION = "activation"; |
---|
371 | public static final String SERVICE_CODING ="coding"; |
---|
372 | public static final String SERVICE_DESCRIPTION ="description"; |
---|
373 | public static final String SERVICE_DESIGNER ="designer"; |
---|
374 | public static final String SERVICE_EXEC_FILE_NAME ="execFileName"; |
---|
375 | public static final String SERVICE_HOST ="host"; |
---|
376 | public static final String SERVICE_INFORMATION ="information"; |
---|
377 | public static final String SERVICE_INTERACTIF ="interactif"; |
---|
378 | public static final String SERVICE_ORDER_OUT ="orderOut"; |
---|
379 | public static final String SERVICE_NAME ="name"; |
---|
380 | public static final String SERVICE_KEEP_ORIGINAL ="keepOriginal"; |
---|
381 | public static final String SERVICE_PARAM_FILE ="paramFile"; |
---|
382 | public static final String SERVICE_PATH_EXEC_FILES ="pathExecFiles"; |
---|
383 | public static final String SERVICE_PATH_SOURCE_FILES ="pathSourceFiles"; |
---|
384 | public static final String SERVICE_STATE ="state"; |
---|
385 | public static final String SERVICE_VERSION ="version"; |
---|
386 | public static final String SERVICE_QUOTA ="quota"; |
---|
387 | public static final String SERVICE_PARAMETER_PAGE ="parameterPage"; |
---|
388 | public static final String SERVICE_COEFFICIENT ="coefficient"; |
---|
389 | |
---|
390 | /** ServiceServlet FIN */ |
---|
391 | |
---|
392 | |
---|
393 | |
---|
394 | //--------------------------------------------------------------------- |
---|
395 | /** Constante pour balise html INPUT du type SELECT MULTIPLE (Liste multiple) */ |
---|
396 | public static final int MULTIPLE_SELECT = 0; |
---|
397 | |
---|
398 | /** Constante pour balise html INPUT du type SELECT (liste simple) */ |
---|
399 | public static final int SINGLE_SELECT = 1; |
---|
400 | |
---|
401 | /** Constante pour balise html INPUT (une ligne de saisie) */ |
---|
402 | public static final int TEXT = 2; |
---|
403 | |
---|
404 | //--------------------------------------------------------------------- |
---|
405 | // Gestion des répertoires |
---|
406 | //--------------------------------------------------------------------- |
---|
407 | /** répertoire de l'espace utilisateurs par défaut */ |
---|
408 | public static final String PATH_USERS = "/space/ether/users"; |
---|
409 | /** répertoire de l'espace d'exécution des services par défaut */ |
---|
410 | public static final String PATH_SERVICES = "/space/ether/services"; |
---|
411 | /** répertoire de l'espace d'exécution des services interactif par défaut */ |
---|
412 | public static final String PATH_SERVICES_INTERACTIF = "/space/ether/interactif"; |
---|
413 | /** répertoire de l'espace de création d'images par défaut */ |
---|
414 | public static final String PATH_MEDIA = "/space/ether/media"; |
---|
415 | /** répertoire de l'espace des fichiers offline par défaut */ |
---|
416 | public static final String PATH_OFFLINE = "/space/ether/offline"; |
---|
417 | /** répertoire de l'espace des données par défaut */ |
---|
418 | public static final String PATH_DATA = "/space/DATA"; |
---|
419 | /** répertoire de l'espace temporaire par défaut */ |
---|
420 | public static final String PATH_TEMP = "/space/ether/temp"; |
---|
421 | /** répertoire de l'espace download par défaut */ |
---|
422 | public static final String PATH_DOWNLOAD = "/space/ether/download"; |
---|
423 | /** nom par défaut du répertoire où se trouveront les fichiers d'entrée pour un service */ |
---|
424 | public static final String SERVICE_PARAM_FILE_NAME = "param.dat"; |
---|
425 | /** nom par défaut du fichier de paramètres pour un service */ |
---|
426 | public static final String PATH_SERVICE_IN = "IN"; |
---|
427 | /** nom par défaut du répertoire où se trouveront les résultats d'exécution d'un service à valeur ajoutée */ |
---|
428 | public static final String PATH_SERVICE_OUT = "resultats"; |
---|
429 | |
---|
430 | /** répertoire de stockage des objets serializable par défaut */ |
---|
431 | public static final String PATH_OBJECT = "/space/ether/object"; |
---|
432 | |
---|
433 | |
---|
434 | /** nom de la machine hôte où réside les répertoires utilisateurs Ether */ |
---|
435 | public static final String HOST_USERS = "sugiton"; |
---|
436 | /** nom de la machine hôte où réside les services Ether */ |
---|
437 | public static final String HOST_SERVICES = "sugiton"; |
---|
438 | /** nom de la machine hôte où réside les fichiers images media Ether */ |
---|
439 | public static final String HOST_MEDIA = "sugiton"; |
---|
440 | /** nom de la machine hôte où réside les fichiers offline rapatriés Ether */ |
---|
441 | public static final String HOST_OFFLINE = "sugiton"; |
---|
442 | /** nom de la machine hôte où réside les données Ether - en prod devrait être la même que database.host */ |
---|
443 | public static final String HOST_DATA = "sormiou"; |
---|
444 | /** nom de la machine hôte où réside les données temporaires Ether */ |
---|
445 | public static final String HOST_TEMP = "sugiton"; |
---|
446 | /** nom de la machine hôte où s'exécute le serveur de workflow */ |
---|
447 | public static final String HOST_WORKFLOW = "sugiton"; |
---|
448 | /** nom de la machine hôte où s'exécute le serveur de journalisation */ |
---|
449 | public static final String HOST_LOG = "hobbes"; |
---|
450 | /** port où écoute le serveur de journalisation */ |
---|
451 | public static final String PORT_LOG = "hobbes"; |
---|
452 | |
---|
453 | public static final String ANY = "any"; |
---|
454 | /** Langue par defaut (ENGLISH ou FRENCH) */ |
---|
455 | public static final String LANGUE = "FRENCH"; |
---|
456 | |
---|
457 | /** taille par défaut fenêtre d'aide en ligne */ |
---|
458 | public static final String WINPARAM = "menubar=no,resizable=yes,scrollbars=yes,width=700,height=600"; |
---|
459 | |
---|
460 | /** taille par défaut fenêtre d'info */ |
---|
461 | public static final String WININFO = "menubar=no,resizable=yes,scrollbars=yes,width=700,height=600"; |
---|
462 | |
---|
463 | |
---|
464 | /** Nom en session de l'utilisateur couramment sélectionné dans UserServlet */ |
---|
465 | public static final String SELECTED_USER = "selectedUser"; |
---|
466 | |
---|
467 | /** Nom en session du groupe couramment sélectionné dans GroupServlet */ |
---|
468 | public static final String SELECTED_GROUP = "selectedGroup"; |
---|
469 | |
---|
470 | /** Nom en session de l'expérience couramment sélectionnée dans ExperimentServlet */ |
---|
471 | public static final String SELECTED_EXPERIMENT = "selectedExp"; |
---|
472 | |
---|
473 | /** Nom en session de l'attribut couramment sélectionnée dans AttributeServlet */ |
---|
474 | public static final String SELECTED_ATTRIBUTE = "selectedAtt"; |
---|
475 | |
---|
476 | /** Nom en session de l'utilisateur couramment sélectionné dans UserServlet */ |
---|
477 | public static final String CURRENT_USERS = "currentUsers"; |
---|
478 | |
---|
479 | /** Nom en session des critères de recherche courantes dans ServiceSelectionServlet */ |
---|
480 | public static final String SEARCH_PARAMETERS = "params"; |
---|
481 | /** Nom du bean pour page jsp de gestion des expériences */ |
---|
482 | public static final String EXPERIMENT_LIST_BEAN="expBean"; |
---|
483 | |
---|
484 | /** Nom du bean pour page jsp de gestion des attributs */ |
---|
485 | public static final String ATTRIBUTE_LIST_BEAN = "attBean"; |
---|
486 | |
---|
487 | /** Nom du bean pour page jsp sauver/charger critères de recherche */ |
---|
488 | public static final String CRITERIA_LIST_BEAN = "critBean"; |
---|
489 | |
---|
490 | /** Nom du bean pour page jsp de recherche par saisie de critères */ |
---|
491 | public static final String RESULTLIST_BEAN = "resultBean"; |
---|
492 | |
---|
493 | |
---|
494 | //--------------------------------------------------------------------- |
---|
495 | // Default user name for CTSO services |
---|
496 | // Here for compatibility with CTSO services used in Bordeaux |
---|
497 | // without Ether |
---|
498 | //--------------------------------------------------------------------- |
---|
499 | public static final String DEFAULT_CTSO_USER = "REMOTE_USER"; |
---|
500 | //--------------------------------------------------------------------- |
---|
501 | // Default prefix used for orders in user space |
---|
502 | //--------------------------------------------------------------------- |
---|
503 | public static final String DIRECTORY_PREFIX_FOR_ORDER = "Commande"; |
---|
504 | //--------------------------------------------------------------------- |
---|
505 | // Default smtp mail server |
---|
506 | //--------------------------------------------------------------------- |
---|
507 | public static final String DEFAULT_SMTP_SERVER = "esprit"; |
---|
508 | //--------------------------------------------------------------------- |
---|
509 | // Mail from and to Administrator goes here |
---|
510 | // Used for messages warning that offline files are ready |
---|
511 | //--------------------------------------------------------------------- |
---|
512 | public static final int DEFAULT_OFFLINE_ADM_ID = 0; |
---|
513 | public static final int DEFAULT_MEDIA_ADM_ID = 0; |
---|
514 | public static final int DEFAULT_SERVICE_ADM_ID = 0; |
---|
515 | |
---|
516 | //--------------------------------------------------------------------- |
---|
517 | // MEDIA ID of Network media |
---|
518 | //--------------------------------------------------------------------- |
---|
519 | public static final int DEFAULT_NETWORK_MEDIA_ID = 0; |
---|
520 | //--------------------------------------------------------------------- |
---|
521 | // MEDIA ID of default media if user has no predefined media |
---|
522 | // (should not be same as DEFAULT_NETWORK_MEDIA_ID !!) |
---|
523 | //--------------------------------------------------------------------- |
---|
524 | public static final int DEFAULT_MEDIA_ID = 1; |
---|
525 | |
---|
526 | /** Nom en session des critères sauvegardés par un utilisateur */ |
---|
527 | public static final String CRITERIA = "criteres"; |
---|
528 | |
---|
529 | /** Colonne 'identifiant' dans la table des attributs spécifiques ETHER_DATA_xx */ |
---|
530 | public static final String COLUMN_ID = "ID"; |
---|
531 | |
---|
532 | /** Type de la colonne 'identifiant' dans la table des attributs spécifiques ETHER_DATA_xx */ |
---|
533 | public static final String TYPE_ID = "number(9)"; |
---|
534 | |
---|
535 | /** Constante de conversion octets -> mega-octets ou kilo-octets -> giga-octets*/ |
---|
536 | public static final long DIVISOR_MEGA = 1024*1024; |
---|
537 | |
---|
538 | /** Les différent types d'orderable */ |
---|
539 | public static final int DATASET_TYPE = 0; |
---|
540 | public static final int ETHERFILE_TYPE= 1; |
---|
541 | public static final int DISKFILE_TYPE = 2; |
---|
542 | public static final int EMPTYORDERABLE_TYPE = 3; |
---|
543 | |
---|
544 | /** Constante indiquant que le fichier est inexistant */ |
---|
545 | /** Utilisée pour initialiser les champs path et tarfile */ |
---|
546 | /** Ce cas se produit pour les jeux offline dont on ne connait pas les noms des fichiers */ |
---|
547 | public static final String INEXISTANT_FILE = "ETHER_INEXISTANT_FILE" ; |
---|
548 | |
---|
549 | // Codes des attributs communs |
---|
550 | int[] codes = { |
---|
551 | Constants.CODE_PARAMETER, Constants.CODE_SUB_PARAMETER, |
---|
552 | Constants.CODE_CEOS_LEVEL, |
---|
553 | Constants.CODE_CEOS_SUBLEVEL, Constants.CODE_ATMOSPHERIC_LEVEL, |
---|
554 | Constants.CODE_FORMAT, Constants.CODE_DATASET_VERSION, |
---|
555 | Constants.CODE_MIN_LONGITUDE, Constants.CODE_MAX_LONGITUDE, |
---|
556 | Constants.CODE_MIN_LATITUDE, Constants.CODE_MAX_LATITUDE, |
---|
557 | Constants.CODE_LOWER_ALTITUDE, Constants.CODE_UPPER_ALTITUDE, |
---|
558 | Constants.CODE_FIRST_DATE, Constants.CODE_LAST_DATE |
---|
559 | }; |
---|
560 | |
---|
561 | } |
---|