View Javadoc
1   /*
2    * Copyright (c) 2002-2021, City of Paris
3    * All rights reserved.
4    *
5    * Redistribution and use in source and binary forms, with or without
6    * modification, are permitted provided that the following conditions
7    * are met:
8    *
9    *  1. Redistributions of source code must retain the above copyright notice
10   *     and the following disclaimer.
11   *
12   *  2. Redistributions in binary form must reproduce the above copyright notice
13   *     and the following disclaimer in the documentation and/or other materials
14   *     provided with the distribution.
15   *
16   *  3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its
17   *     contributors may be used to endorse or promote products derived from
18   *     this software without specific prior written permission.
19   *
20   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23   * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
24   * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25   * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26   * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27   * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28   * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30   * POSSIBILITY OF SUCH DAMAGE.
31   *
32   * License 1.0
33   */
34  package fr.paris.lutece.plugins.ctv.constants;
35  
36  public class CtvConstants
37  {
38  
39      /**
40       * Clés necessaires pour la gestion de passage d'etapes
41       */
42      public static final String KEY_ETAPE = "etape";
43      public static final String ACTION_NEXT = "next";
44      public static final String ACTION_DOWNLOAD = "download";
45      public static final String ACTION_SAVE = "save";
46      public static final String ACTION_ABANDON = "abandon";
47      public static final String SESSION_NUM_DEMANDE_ID = "numDemande";
48      public static final String SESSION_CR_VISITE_ID = "compteRenduVisiteId";
49      public static final String SESSION_CONFERENCE_ID = "conferenceCoordinationId";
50  
51      public static final String REQUIRED_FIELS_IN_ERROR = "requiredFielsInError";
52      public static final String FIELDS_IN_ERROR = "fieldsInError";
53      public static final String DEMANDE = "demande";
54      public static final String CONFIRMATION_VIEW = "confirmation";
55  
56      // Redirections conférence coordination vers demande
57      public static final String TYPE_DEMANDE_TRAVAUX = "INTENTION_TRAVAUX";
58      public static final String TYPE_DEMANDE_TRAVAUX_NON_PROGRAMMES = "TRAVAUX_IMPERATIFS_NON_PROGRAMMES";
59      public static final String TYPE_BARRAGE_US = "BARRAGE_US";
60      public static final String TYPE_DEMANDE_INTERVENTION = "INTERVENTION";
61      public static final String TYPE_DEMANDE_OCCUPATION = "OCCUPATION";
62      public static final String REDIRECTION_DEMANDE_TRAVAUX = "intention/demandeIntention.jsp?num_demande=";
63      public static final String REDIRECTION_DEMANDE_INTERVENTION = "intervention/demandeIntervention.jsp?num_demande=";
64      public static final String REDIRECTION_DEMANDE_OCCUPATION = "occupation/demandeOccupation.jsp?num_demande=";
65  
66      /*
67       * Etapes du formulaire dans l'ordre d'apparition
68       */
69      public static final String PAGE_PORTAL = "Portal.jsp?page=";
70      public static final String PAGE_PORTAL_FULL = "jsp/site/Portal.jsp?page=";
71      public static final String ACCUEIL = "/site/plugins/ctv/accueil.html";
72      public static final String XPAGE_ACCUEIL = "accueil";
73      public static final String ETAPE_DEMANDEUR = "demandeur";
74      public static final String ETAPE_CHANTIER = "chantier";
75      public static final String ETAPE_EXECUTANT_TRAVAUX = "executant";
76      public static final String ETAPE_EMPRISE = "emprises";
77      public static final String RECAP_EMPRISES = "recap_emprises";
78      public static final String ETAPE_DOCUMENTS_JOINTS = "documents";
79      public static final String ETAPE_VALIDATION = "validation";
80      public static final String ETAPE_CONFIRMATION = "confirmation";
81      public static final String ETAPE_GESTION_CONFLITS = "gestion_conflits";
82      public static final String ETAPE_SUPERVISEUR = "superviseur";
83      public static final String ETAPE_INSTRUCTION = "instruction";
84      public static final String XPAGE_EDITION = "edition";
85      public static final String SUPPRIMER_BROUILLON = "supprimerBrouillon";
86      public static final String DEMANDE_GENERIC = "demandeGeneric";
87  
88      /*
89       * Templates html des etapes dans l'ordre d'apparition
90       */
91      public static final String TEMPLATE_DEMANDEUR = "/site/plugins/ctv/etapes/demandeur.html";
92      public static final String TEMPLATE_CHANTIER = "/site/plugins/ctv/etapes/chantier.html";
93      public static final String TEMPLATE_EXECUTANT_TRAVAUX = "/site/plugins/ctv/etapes/executantTravaux.html";
94      public static final String TEMPLATE_EMPRISES = "/site/plugins/ctv/etapes/emprises.html";
95      public static final String TEMPLATE_DETAILS_EMPRISE = "/site/plugins/ctv/etapes/detailsEmprise.html";
96      public static final String TEMPLATE_RECAP_EMPRISES = "/site/plugins/ctv/etapes/recapEmprises.html";
97      public static final String TEMPLATE_DOCUMENTS_JOINTS = "/site/plugins/ctv/etapes/documentsJoints.html";
98      public static final String TEMPLATE_VALIDATION = "/site/plugins/ctv/etapes/validation.html";
99      public static final String TEMPLATE_CONFIRMATION = "/site/plugins/ctv/etapes/confirmation.html";
100 
101     /*
102      * Templates html des etapes formulaire intervention dans l'ordre d'apparition
103      */
104 
105     /*
106      * Templates html des etapes formulaire intention dans l'ordre d'apparition
107      */
108 
109     public static final String TEMPLATE_DEMANDEUR_INTENTION = "/admin/plugins/ctv/demandeIntention/etapesIntention/demandeur.html";
110     public static final String TEMPLATE_CHANTIER_INTENTION = "/admin/plugins/ctv/demandeIntention/etapesIntention/chantier.html";
111 
112     /*
113      * Templates html des etapes formulaire intervention dans l'ordre d'apparition
114      */
115     public static final String TEMPLATE_DEMANDEUR_INTERVENTION = "/admin/plugins/ctv/demandeIntervention/etapesIntervention/demandeur.html";
116     public static final String TEMPLATE_CHANTIER_INTERVENTION = "/admin/plugins/ctv/demandeIntervention/etapesIntervention/chantier.html";
117     public static final String TEMPLATE_RECAP_EMPRISES_INTERVENTION = "/admin/plugins/ctv/demandeIntervention/etapesIntervention/recapEmprises.html";
118     public static final String TEMPLATE_VALIDATION_INTERVENTION = "/admin/plugins/ctv/demandeIntervention/etapesIntervention/validation.html";
119     public static final String TEMPLATE_CONFIRMATION_INTERVENTION = "/admin/plugins/ctv/demandeIntervention/etapesIntervention/confirmation.html";
120 
121     /*
122      * Templates html hors formulaire
123      */
124     public static final String TEMPLATE_MON_ESPACE_DEMANDEUR = "/site/plugins/ctv/mon_espace.html";
125     public static final String TEMPLATE_PROJET = "/admin/plugins/ctv/projet.html";
126     public static final String TEMPLATE_COORDINATION_CONFERENCE = "/admin/plugins/ctv/conferenceCoordination/conferenceCoordination.html";
127     public static final String TEMPLATE_CREATION_CR_VISITE = "/admin/plugins/ctv/gestionCompteRenduVisites/creationCompteRenduVisite.html";
128     public static final String TEMPLATE_CONSULTATION_CR_VISITE = "/admin/plugins/ctv/gestionCompteRenduVisites/consultationCompteRenduVisite.html";
129 
130     /*
131      * Constantes pour emprises
132      */
133     public static final String PARAMETER_ADD = "add_parameter";
134     public static final String EMPRISE_ID_PARAM_REQUEST = "emprise_id";
135     public static final String EMPRISE_ID = "emprise_id";
136     public static final String DELETE_EMPRISE = "delete_emprise";
137     public static final String DETAILS_EMPRISE = "details_emprise";
138     public static final String SAVE_EMPRISE = "save_emprise";
139     public static final String SAVE_DETAILS_EMPRISE = "save_details_emprise";
140     public static final String TYPES_LOCALISATION = "typesLocalisation";
141     public static final String TYPES_PRECISIONS_LOCALISATION = "typesPrecisionLocalisation";
142     public static final String TYPES_ZONE_STATIONNEMENT = "typesZoneStationnement";
143     public static final String TYPES_ECHAFAUDAGE = "typesEchafaudage";
144     public static final String TYPES_CONFIG = "typesConfigurationSpecifique";
145     public static final String TYPES_MATERIEL = "typesMateriel";
146     public static final String EMPRISES_IN_ERROR = "emprisesInError";
147     public static final String LISTE_EMPRISES_RECAP = "listeEmprisesRecap";
148 
149     /*
150      * Autres
151      */
152     public static final String ACTION_COMPLETE_LATER = "complete_later";
153     public static final String NEW_EMPRISE = "newEmprise";
154     public static final String MAX_FILE_SIZE = "maxFileSize";
155     public static final String MON_ESPACE_DEMANDEUR = "mon_espace";
156 
157     public static final String ACTION_COMPLETE = "complete";
158     public static final String ACTION_DELETE = "delete";
159     public static final String ACTION_CANCEL = "cancel";
160     public static final String ACTION_END_OF_WORKS = "end_of_works";
161     public static final String ACTION_PROLONGATION = "prolongation";
162 
163     public static final String KEY_DATE_GEL = "dateDeGel";
164     public static final String KEY_DATE_FIN_RESEAU = "dateFinDeTravauxReseaux";
165     public static final String KEY_DATE_FIN_VOIRIE = "dateFinDeTravauxVoirie";
166 
167     public static final String PARAMETER_NEXT_STEP = "nextStep";
168 
169     public static final String COMMENTAIRE_USAGER = "commentaireUsager";
170 
171     /*
172      * Constantes pour le download
173      */
174     public static final String NOM_FICHIER = "nomFichier";
175     public static final String TYPE_FICHIER = "typeFichier";
176 
177     /*
178      * Constantes pour chantier
179      */
180     public static final String TYPES_CHANTIER_LISTE = "typesChantier";
181 
182     /*
183      * Constantes pour les entités
184      */
185     public static final String DEMANDEUR = "demandeur";
186 
187     /*
188      * Constantes pour les entites
189      */
190 
191     public static final String CIVILITES = "civilites";
192     public static final String PROFILS_ENTITE = "profilsEntite";
193     public static final String NATURES_CHANTIER = "natures_chantier";
194     public static final String FORMES_EMRPISE = "formes_emprise";
195     public static final String EXONERATION_DE_TAXE = "exonerationDeTaxe";
196 
197     /*
198      * Constantes pour superviseur
199      */
200     public static final String HAS_ERRORS = "errors";
201     /*
202      * Constantes messages
203      */
204     public static final String ERROR_CONFLITS = "#dskey{sitelabels.site_property.demande.occupation.etape.conflits.erreur}";
205 
206     /*
207      * MIME TYPES
208      */
209     public static final String MIME_PDF = "application/pdf";
210     public static final String MIME_ZIP = "application/zip";
211 
212     /*
213      * Constantes envoi de mail
214      */
215     public static final int EMAIL_CONFIRMATION = 1;
216     public static final int EMAIL_DEMANDE_SIGNE = 2;
217     public static final int EMAIL_DEMANDE_RENVOI_DEMANDEUR = 3;
218     public static final String EMAIL_DATE_FORMAT = "dd MMMM yyyy";
219     public static final String EMAIL_DEFAULT_TEMPLATE_NAME = "template";
220     public static final int EMAIL_REFUS_DEMANDE_TRAVAUX_RESEAUX = 4;
221     public static final int EMAIL_REFUS_DEMANDE_TRAVAUX_VOIRIE = 5;
222     public static final int EMAIL_REFUS_DEMANDE_REMISE_EN_CIRCULATION = 6;
223     public static final int EMAIL_ACCEPTATION_REMISE_EN_CIRCULATION = 7;
224     public static final int EMAIL_REFUS_PROLONGATION = 8;
225     public static final int EMAIL_ACCEPTATION_PROLONGATION = 9;
226     public static final int EMAIL_ACCEPTATION_PROLONGATION_INTERVENTION = 10;
227     public static final int EMAIL_SOUMISSION_CONVENTION = 15;
228     public static final int EMAIL_VALIDATION_CONVENTION = 16;
229     public static final int EMAIL_REFUS_CONVENTION = 17;
230 
231     /*
232      * Action Emprise Intention
233      */
234     public static final String ANNULER_EMPRISE = "annuler_emprise";
235     public static final String VALIDATE_CARTO = "validate_carto";
236     public static final String RELOAD_CARTO = "reload_carto";
237     public static final String SEND_DEMANDE = "send_demande";
238     public static final String ANNULER_INTENTION = "annuler_intention";
239     public static final String ANNULER_INTENTION_INSTRUCTEUR = "annuler_intention_instructeur";
240     public static final String TRANSFORMER_INTENTION = "transformer_intention";
241     public static final String A_MODIFIER_EMPRISE = "a_modifier_emprise";
242     public static final String VALIDER_EMPRISE = "valider_emprise";
243     public static final String MODIFIER_DATE_MASSE = "modifier_date_masse";
244     public static final String VALIDER_TRANSFERT = "valider_transfert";
245     public static final String READ_COMMENTAIRE_CONFERENCE = "read_commentaire_conference";
246 
247     /*
248      * Action Emprise Intervention
249      */
250     public static final String ANNULER_INTERVENTION = "annuler_intervention";
251 
252     /*
253      * Action Declaration fin de travaux
254      */
255     public static final String DECLARATION_FIN_TRAVAUX_RESEAU = "declaration_fin_travaux_reseau";
256     public static final String DECLARATION_FIN_TRAVAUX_VOIRIE = "declaration_fin_travaux_voirie";
257     public static final String DECLARATION_FIN_TRAVAUX_CIRCULATION = "declaration_fin_travaux_circulation";
258 
259     /*
260      * Action Declaration de prolongation
261      */
262     public static final String DECLARATION_PROLONGATION = "declaration_prolongation";
263 
264     /*
265      * Action acceptation fin de travaux
266      */
267     public static final String ACCEPTATION_FIN_TRAVAUX_RESEAU = "acceptation_fin_travaux_reseau";
268     public static final String ACCEPTATION_FIN_TRAVAUX_VOIRIE = "acceptation_fin_travaux_voirie";
269     public static final String ACCEPTATION_REMISE_EN_CIRCULATION = "acceptation_remise_en_circulation";
270 
271     /*
272      * Action refus fin de travaux
273      */
274     public static final String REFUS_FIN_TRAVAUX_RESEAU = "refus_fin_travaux_reseau";
275     public static final String REFUS_FIN_TRAVAUX_VOIRIE = "refus_fin_travaux_voirie";
276     public static final String REFUS_FIN_TRAVAUX_CIRCULATION = "refus_remise_en_circulation";
277     public static final String REFUS_PROLONGATION = "refus_prolongation";
278     public static final String ACCEPTATION_PROLONGATION = "acceptation_prolongation";
279 
280     public static final String GET_EMPRISES_PDF = "get_emprises_pdf";
281 
282     public static final String ANNULATION_EMPRISE = "annulation_emprise";
283 
284     /*
285      * Constantes pour les valeurs par defaut des criteres de recherche de la conference de coordination
286      */
287     public static final String SEARCH_CONF_COORD_FILTRE_CONFLIT = "enConflit";
288     public static final Integer SEARCH_CONF_COORD_JOUR_DEPART = 5;
289     public static final Integer SEARCH_CONF_COORD_JOUR_FIN = 5;
290     public static final Integer SEARCH_CONF_COORD_EXT_RAYON = 20;
291 
292     private CtvConstants( )
293     {
294         throw new AssertionError( );
295     }
296 
297 }