View Javadoc
1   /*
2    * Copyright (c) 2002-2022, 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.portal.web.constants;
35  
36  /**
37   * This class provides the Parameters interface which contains the common parameters
38   */
39  public final class Parameters
40  {
41      public static final String PAGE_ID = "page_id";
42      public static final String PAGE_NAME = "page_name";
43      public static final String PAGE_DESCRIPTION = "page_description";
44      public static final String PAGE_TEMPLATE_ID = "page_template_id";
45      public static final String PAGE_TEMPLATE_DESCRIPTION = "page_template_description";
46      public static final String PAGE_TEMPLATE_FILE = "page_template_file";
47      public static final String PAGE_TEMPLATE_PICTURE = "page_template_picture";
48      public static final String PARENT_ID = "parent_id";
49      public static final String CHILD_PAGE_NAME = "child_page_name";
50      public static final String CHILD_PAGE_DESCRIPTION = "child_page_description";
51      public static final String PORTLET_TYPE_ID = "portlet_type_id";
52      public static final String PORTLET_ID = "portlet_id";
53      public static final String PORTLET_NAME = "portlet_name";
54      public static final String ACCEPT_ALIAS = "accept_alias";
55      public static final String DISPLAY_PORTLET_TITLE = "display_portlet_title";
56      public static final String ORDER = "order";
57      public static final String STYLE = "style";
58      public static final String COLUMN = "column";
59      public static final String STYLESHEET_ID = "stylesheet_id";
60      public static final String SEARCH_MESSAGE = "search_message";
61      public static final String ROLE = "role"; /* since v1.1 */
62      public static final String WORKGROUP_KEY = "workgroup_key"; /* since v2.2.0b1 */
63      public static final String THEME = "theme"; /* since v1.1 */
64      public static final String META_KEYWORDS = "meta_keywords";
65      public static final String META_DESCRIPTION = "meta_description";
66      public static final String DISPLAY_ON_SMALL_DEVICE = "display_on_small_device";
67      public static final String DISPLAY_ON_NORMAL_DEVICE = "display_on_normal_device";
68      public static final String DISPLAY_ON_LARGE_DEVICE = "display_on_large_device";
69      public static final String DISPLAY_ON_XLARGE_DEVICE = "display_on_xlarge_device";
70      public static final String BASE_URL = "base_url"; /* since v5.0.1 */
71      public static final String PARAMETER_DISPLAY_UPDATE_DATE = "display_update_date";
72      public static final String PARAMETER_ENABLE_MANUAL_UPDATE_DATE = "enable_manual_update_date";
73      public static final String PARAMETER_MANUAL_UPDATE_DATE = "manual_update_date";
74  
75      // url parameter for redirection after admin
76      public static final String REDIRECT_URL = "redirectUrl";
77  
78      // Stylesheet
79      public static final String STYLESHEET_NAME = "stylesheet_name";
80      public static final String STYLESHEET_FILE = "stylesheet_file";
81      public static final String STYLESHEET_SOURCE = "stylesheet_source";
82      public static final String MODE_STYLESHEET = "mode_stylesheet";
83      public static final String STYLESHEET_ERROR = "stylesheet_error";
84  
85      // User
86      public static final String ACCESS_CODE = "access_code";
87      public static final String PASSWORD = "password";
88      public static final String PASSWORD_CURRENT = "password_current";
89      public static final String NEW_PASSWORD = "new_password";
90      public static final String CONFIRM_NEW_PASSWORD = "confirm_new_password";
91      public static final String USER_ID = "user_id";
92      public static final String USER_LASTNAME = "user_lastname";
93      public static final String USER_FIRSTNAME = "user_firstname";
94      public static final String IP_ADDRESS = "ip_address";
95      public static final String EMAIL = "email";
96      public static final String PROVIDER = "providers";
97      public static final String STATUS = "status";
98  
99      // Rights
100     public static final String RIGHT_LEVEL_0_1_2 = "0";
101     public static final String RIGHT_LEVEL_2_3 = "2";
102     public static final String RIGHT_LEVEL_3 = "3";
103     public static final String RIGHTS = "rights";
104     public static final String LEVEL_ID = "level_id";
105     public static final String LEVEL_NAME = "level_name";
106 
107     // Styles - Portlets
108     public static final String PORTLET_TYPE = "portlet_type";
109     public static final String STYLE_ID = "style_id";
110     public static final String STYLE_NAME = "style_name";
111     public static final String STYLES = "styles";
112     public static final String PORTAL_COMPONENT = "portal_component";
113 
114     // Modes
115     public static final String MODE_ID = "mode_id";
116     public static final String MODE_DESCRIPTION = "mode_description";
117     public static final String MODE_PATH = "mode_path";
118     public static final String MODE_OUTPUT_XSL_METHOD = "mode_output_xsl_method"; /* Since v1.2 */
119     public static final String MODE_OUTPUT_XSL_VERSION = "mode_output_xsl_version"; /* Since v1.2 */
120     public static final String MODE_OUTPUT_XSL_MEDIA_TYPE = "mode_output_xsl_media_type"; /* Since v1.2 */
121     public static final String MODE_OUTPUT_XSL_ENCODING = "mode_output_xsl_encoding"; /* Since v1.2 */
122     public static final String MODE_OUTPUT_XSL_INDENT = "mode_output_xsl_indent"; /* Since v1.2 */
123     public static final String MODE_OUTPUT_XSL_OMIT_XML_DECLARATION = "mode_output_xsl_omit_xml_declaration"; /* Since v1.2 */
124     public static final String MODE_OUTPUT_XSL_STANDALONE = "mode_output_xsl_standalone"; /* Since v1.2 */
125 
126     // Image Servlet
127     public static final String IMAGE_SERVLET = "image";
128     public static final String RESOURCE_ID = "id";
129     public static final String RESOURCE_TYPE = "resource_type";
130 
131     // Sorted list
132     public static final String SORTED_ATTRIBUTE_NAME = "sorted_attribute_name";
133     public static final String SORTED_ASC = "asc_sort";
134 
135     /** Private constructor */
136     private Parameters( )
137     {
138     }
139 }