View Javadoc
1   /*
2    * Copyright (c) 2002-2014, Mairie de 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.dila.utils.constants;
35  
36  /**
37   * 
38   * DilaConstants
39   * 
40   */
41  public final class DilaConstants
42  {
43      // MARKERS
44      public static final String MARK_NAME = "name";
45      public static final String MARK_CONTENT_TYPE_ID = "type_contenu_id";
46      public static final String MARK_CONTENT_TYPE_LIST = "type_contenu_list";
47      public static final String MARK_SOURCE = "source";
48      public static final String MARK_STYLESHEET_LIST = "stylesheet_list";
49      public static final String MARK_PAGINATOR = "paginator";
50      public static final String MARK_NB_ITEMS_PER_PAGE = "nb_items_per_page";
51      public static final String MARK_STYLESHEET = "stylesheet";
52      public static final String MARK_STYLESHEET_ID = "stylesheet_id";
53      public static final String MARK_CARD_ID = "id_fiche_locale";
54      public static final String MARK_LOCAL_ID = "id_local";
55      public static final String MARK_ID = "id";
56      public static final String MARK_PERMISSION_CREATE_STYLESHEET = "permission_create_stylesheet";
57      public static final String MARK_PERMISSION_DELETE_STYLESHEET = "permission_delete_stylesheet";
58      public static final String MARK_PERMISSION_MODIFY_STYLESHEET = "permission_modify_stylesheet";
59      public static final String MARK_PERMISSION_VIEW_STYLESHEET = "permission_view_stylesheet";
60      public static final String MARK_COMP_DATA_LIST = "donnees_list";
61      public static final String MARK_XMLURL_PARAM = "XMLURL";
62      public static final String MARK_CATEGORY_PARAM = "CATEGORIE";
63      public static final String MARK_HOW_TO_ID_PARAM = "HOW_TO_ID";
64      public static final String MARK_HOW_TO_TITLE_PARAM = "HOW_TO_TITLE";
65      public static final String MARK_REFERER_PARAM = "REFERER";
66      public static final String MARK_CARDID_PARAM = "FICHEID";
67  
68      // Properties
69      public static final String LABEL_ALL = "dila.manage_style_sheet.label_all";
70      public static final String LABEL_WITHOUT_TYPE = "dila.create_style_sheet.label_without_type";
71      public static final String PROPERTY_PATH_XSL = "path.stylesheet";
72      public static final String PROPERTY_STYLESHEETS_PER_PAGE = "paginator.stylesheet.itemsPerPage";
73      public static final String PROPERTY_TMP_DIRECTORY = "archives.dir.path.tmp";
74      public static final String PROPERTY_XML_DIRECTORY = "archive.dir.path.extract.final";
75      public static final String PROPERTY_XML_DIRECTORY_ASSO = "association.archive.dir.path.extract.final";
76      public static final String PROPERTY_XML_DIRECTORY_INDIVIDUALS = "individual.archive.dir.path.extract.final";
77      public static final String PROPERTY_XML_DIRECTORY_PROFESSIONALS = "professional.archive.dir.path.extract.final";
78      public static final String PROPERTY_XML_DIRECTORY_LOCALES_TOWN = "xmlDirectory.locales.communes";
79      public static final String PROPERTY_XML_DIRECTORY_LOCALES_ORGANISMS = "xmlDirectory.locales.organismes";
80      public static final String PROPERTY_INSEE = "dila.insee";
81      public static final String PROPERTY_XML_URL_INDIVIDUALS = "individual.archive.url";
82      public static final String PROPERTY_XML_NAME_INDIVIDUALS = "individual.archive.name";
83      public static final String PROPERTY_XML_TMP_INDIVIDUALS = "individual.archive.dir.path.extract.tmp";
84      public static final String PROPERTY_XML_FINAL_INDIVIDUALS = "individual.archive.dir.path.extract.final";
85      public static final String PROPERTY_XML_URL_ASSO = "association.archive.url";
86      public static final String PROPERTY_XML_NAME_ASSO = "association.archive.name";
87      public static final String PROPERTY_XML_TMP_ASSO = "association.archive.dir.path.extract.tmp";
88      public static final String PROPERTY_XML_FINAL_ASSO = "association.archive.dir.path.extract.final";
89      public static final String PROPERTY_XML_URL_PME = "professional.archive.url";
90      public static final String PROPERTY_XML_NAME_PME = "professional.archive.name";
91      public static final String PROPERTY_XML_TMP_PME = "professional.archive.dir.path.extract.tmp";
92      public static final String PROPERTY_XML_FINAL_PME = "professional.archive.dir.path.extract.final";
93      public static final String PROPERTY_XML_URL_LOCALES = "local.data.archive.url";
94      public static final String PROPERTY_XML_NAME_LOCALES = "local.data.archive.name";
95      public static final String PROPERTY_XML_TMP_LOCALES = "local.data.archive.dir.path.extract.tmp";
96      public static final String PROPERTY_XML_FINAL_LOCALES = "local.data.archive.dir.path.extract.final";
97      public static final String PROCESS_INDIVIDUAL = "individual";
98      public static final String PROCESS_ASSOCIATION = "association";
99      public static final String PROCESS_PROFESSIONAL = "professional";
100     public static final String PROCESS_LOCAL_DATA = "local data";
101     public static final String EXTENSION_ZIP = ".zip";
102     public static final String EXTENSION_BZIP2 = ".bz2";
103     public static final String EXTENSION_XML = ".xml";
104 
105     // Messages
106     public static final String MESSAGE_MANDATORY_FIELD = "dila.message.mandatory_field";
107     public static final String MESSAGE_STYLESHEET_ALREADY_EXISTS = "dila.message.stylesheetAlreadyExists";
108     public static final String MESSAGE_STYLESHEET_NOT_VALID = "dila.message.stylesheetNotValid";
109     public static final String MESSAGE_STYLESHEET_NAME_EXISTS = "dila.message.stylesheetNameExists";
110     public static final String MESSAGE_ERROR_OCCUR = "dila.message.error.erroroccur";
111     public static final String MESSAGE_TITLE_DELETE_STYLESHEET = "dila.message.title.delete_stylesheet";
112     public static final String MESSAGE_CONFIRMATION_DELETE_STYLESHEET = "dila.message.confirmation.delete_stylesheet";
113     public static final String MESSAGE_CONFIRMATION_DELETE_FICHE = "dila.message.confirmation.delete_fichelocale";
114     public static final String MESSAGE_TITLE_DELETE_FICHE = "dila.message.title.delete_fichelocale";
115     public static final String MESSAGE_CONFIRMATION_DELETE_DOSSIER = "dila.message.confirmation.delete_dossierlocal";
116     public static final String MESSAGE_TITLE_DELETE_DOSSIER = "dila.message.title.delete_dossierlocal";
117     public static final String MESSAGE_CONFIRMATION_DELETE_DONNEE = "dila.message.confirmation.delete_donneecomplementaire";
118     public static final String MESSAGE_TITLE_DELETE_DONNEE = "dila.message.title.delete_donneecomplementaire";
119 
120     // Templates
121     public static final String TEMPLATE_MANAGE_STYLESHEETS = "admin/plugins/dila/manage_stylesheets.html";
122     public static final String TEMPLATE_CREATE_STYLESHEET = "admin/plugins/dila/save_stylesheet.html";
123 
124     // Jsp
125     public static final String JSP_MANAGE_STYLESHEET = "jsp/admin/plugins/dila/ManageStyleSheets.jsp";
126     public static final String JSP_MANAGE_LOCAL = "jsp/admin/plugins/dila/ManageLocalCard.jsp";
127     public static final String JSP_DELETE_DOSSIER = "jsp/admin/plugins/dila/DoDeleteLocalFolder.jsp";
128     public static final String JSP_DELETE_STYLESHEET = "jsp/admin/plugins/dila/DoDeleteStyleSheet.jsp";
129     public static final String JSP_DELETE_FICHE = "jsp/admin/plugins/dila/DoDeleteLocalCard.jsp";
130     public static final String JSP_DELETE_DONNEE = "jsp/admin/plugins/dila/DoDeleteComplementaryData.jsp";
131     public static final String JSP_MANAGE_DONNEES = "jsp/admin/plugins/dila/ManageComplementaryData.jsp";
132     public static final String CACHE_KEY_SEPARATOR = "_";
133     public static final String XML_EXTENSION = ".xml";
134     public static final String XPAGE_REFERER = "jsp/site/Portal.jsp?page=dila&categorie=";
135     public static final String XPAGE_REFERER_XMLFILE = "&xmlFile=";
136     public static final String XPAGE_PARTICULIERS = "jsp/site/Portal.jsp?page=dila&categorie=particuliers";
137     public static final String XPAGE_PME = "jsp/site/Portal.jsp?page=dila&categorie=professionnels";
138     public static final String XPAGE_ASSO = "jsp/site/Portal.jsp?page=dila&categorie=associations";
139     public static final String INDIVIDUAL_PREFIX = "individual";
140     public static final String ASSOCIATION_PREFIX = "association";
141     public static final String PROFESSIONAL_PREFIX = "professional";
142     public static final String PROPERTY_HOME_CARD = ".home.card";
143 
144     /**
145      * Utility class
146      */
147     private DilaConstants( )
148     {
149         // nothing
150     }
151 }