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.whatsnew.utils.constants;
35  
36  
37  /**
38   *
39   * WhatsNewConstants
40   *
41   */
42  public final class WhatsNewConstants
43  {
44      // CONSTANTS
45      public static final String EQUAL = "=";
46      public static final String AMPERSAND = "&";
47      public static final String INTERROGATION_MARK = "?";
48      public static final String DELIMITER_SEMI_COLON = ";";
49      public static final String DELIMITER_COMA = ",";
50      public static final String UNDERSCORE = "_";
51      public static final String DOCUMENT_PLUGIN_NAME = "document";
52      public static final String ZERO = "0";
53      public static final int DISPLAY_ASC = 1;
54      public static final int DISPLAY_DESC = 0;
55  
56      // MARKS 
57      public static final String MARK_COMBO_PERIOD = "combo_period";
58      public static final String MARK_DEFAULT_PERIOD = "default_period";
59      public static final String MARK_WHATSNEW_PORTLET = "whatsnew_portlet";
60      public static final String MARK_WHATSNEW_PORTLET_ID = "whatsnew_portlet_id";
61      public static final String MARK_DISPLAY_ORDER_DATE = "display_order_date";
62      public static final String MARK_DISPLAY_ORDER_ALPHA = "display_order_alpha";
63      public static final String MARK_DISPLAY_ORDER_ASC = "display_order_asc";
64      public static final String MARK_DISPLAY_ORDER_DESC = "display_order_desc";
65      public static final String MARK_PLUGIN_DOCUMENT_ACTIVATED = "plugin_document_activated";
66      public static final String MARK_MODERATED_ELEMENTS_LIST = "moderated_elements_list";
67      public static final String MARK_ELEMENT = "element";
68      public static final String MARK_ELEMENTS_LIST = "elements_list";
69      public static final String MARK_WHATSNEW_TYPE = "whatsnew_type";
70      public static final String MARK_LIST_PARAM_DEFAULT_VALUES = "list_param_default_values";
71  
72      // PARAMETERS
73      public static final String PARAMETER_DOCUMENT_ID = "document_id";
74      public static final String PARAMETER_MIN_DISPLAY = "min_display";
75      public static final String PARAMETER_SHOW_PAGES = "show_pages";
76      public static final String PARAMETER_SHOW_PORTLETS = "show_portlets";
77      public static final String PARAMETER_SHOW_DOCUMENTS = "show_documents";
78      public static final String PARAMETER_PERIOD = "text_period";
79      public static final String PARAMETER_NB_ELEMENTS_MAX = "text_nbElements";
80      public static final String PARAMETER_DISPLAY_ORDER = "display_order";
81      public static final String PARAMETER_DISPLAY_ORDER_ASC_DESC = "display_order_asc_desc";
82      public static final String PARAMETER_IS_DYNAMIC = "is_dynamic";
83      public static final String PARAMETER_MODERATED_PAGE = "moderated_page";
84      public static final String PARAMETER_MODERATED_PORTLET = "moderated_portlet";
85      public static final String PARAMETER_MODERATED_DOCUMENT = "moderated_document";
86      public static final String PARAMETER_WHATSNEW_PORTLET_ID = "whatsnew_portlet_id";
87  
88      // PROPERTIES
89      public static final String PROPERTY_FRAGMENT_DAYS_COMBO_LIST = "portlet.whatsnew.days.combo.list";
90      public static final String PROPERTY_TYPE_DOCUMENT = "whatsnew.type.document";
91      public static final String PROPERTY_TYPE_PORTLET = "whatsnew.type.portlet";
92      public static final String PROPERTY_TYPE_PAGE = "whatsnew.type.page";
93      public static final String PROPERTY_DAEMON_MODERATED_ELEMENTS_CLEANER_LANGUAGE = "daemon.whatsNewModeratedElementsCleaner.language";
94  
95      // MESSAGES
96      public static final String MESSAGE_MANDATORY_PORTLET_NB_ELEMENTS_MAX = "whatsnew.message.portlet.nbelementsmax.mandatory";
97      public static final String MESSAGE_NOT_VALID_PORTLET_NB_ELEMENTS_MAX = "whatsnew.message.portlet.nbelementsmax.not.valid";
98      public static final String MESSAGE_NEGATIVE_PORTLET_NB_ELEMENTS_MAX = "whatsnew.message.portlet.nbelementsmax.negative";
99      public static final String MESSAGE_NOT_NUMERIC = "whatsnew.message.portlet.not.numeric";
100     public static final String MESSAGE_OBJECT_NOT_FOUND = "whatsnew.message.object_not_found";
101 
102     // TAGS
103     public static final String TAG_WHATS_NEW_ELEMENT = "whatsnew-element";
104     public static final String TAG_WHATS_NEW_TITLE = "whatsnew-title";
105     public static final String TAG_WHATS_NEW_TYPE = "whatsnew-type";
106     public static final String TAG_WHATS_NEW_DESCRIPTION = "whatsnew-description";
107     public static final String TAG_WHATS_NEW_DATE_UPDATE = "whatsnew-date-update";
108     public static final String TAG_WHATS_NEW_URL = "whatsnew-url";
109     public static final String TAG_WHATS_NEW_PORTLET = "whatsnew-list-portlet";
110     public static final String TAG_WHATS_NEW_MIN_DISPLAY = "whatsnew-min-display";
111     public static final String TAG_WHATS_NEW_NUMBER_DISPLAY = "whatsnew-number-display";
112 
113     // SPRING
114     public static final String BEAN_WHATSNEW_TYPE_PAGE = "whatsnew.whatsNewTypePage";
115     public static final String BEAN_WHATSNEW_TYPE_PORTLET = "whatsnew.whatsNewTypePortlet";
116     public static final String BEAN_WHATSNEW_TYPE_DOCUMENT = "whatsnew.whatsNewTypeDocument";
117 
118     /**
119      * public constructor
120      */
121     private WhatsNewConstants(  )
122     {
123     }
124 }