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