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.crm.modules.form.util;
35  
36  
37  /**
38   *
39   * Constants
40   *
41   */
42  public final class Constants
43  {
44      // CONSTANTS
45      public static final String SEPARATOR = ",";
46      public static final String INVALID_ID = "-1";
47      public static final String UNDERSCORE = "_";
48  
49      // PARAMETERS
50      public static final String PARAM_ID_DEMAND_TYPE = "id_demand_type";
51      public static final String PARAM_ID_DEMAND = "id_demand";
52      public static final String PARAM_USER_GUID = "user_guid";
53      public static final String PARAM_ID_STATUS_CRM = "id_status_crm";
54      public static final String PARAM_STATUS_TEXT = "status_text";
55      public static final String PARAM_DEMAND_DATA = "demand_data";
56      public static final String PARAM_ID_BLOB = "id_blob";
57      public static final String PARAM_ID_CRM_USER = "id_crm_user";
58      public static final String PARAMETER_URL_RETURN = "url_return";
59      public static final String PARAMETER_ACTION_NAME = "action";
60      public static final String PARAM_CRM_WEBB_APP_CODE = "crm_web_app_code";
61  
62  
63      //SESSION ATTRIBUTE
64      public static final String SESSION_ATTRIBUTE_ID_DEMAND_PARAMS = "FORM_ID_DEMAND";
65      public static final String SESSION_ATTRIBUTE_USER_GUID_PARAMS = "FORM_USER_GUID";
66      public static final String SESSION_ATTRIBUTE_DEMAND_DATA_PARAMS = "FORM_DEMAND_DATA";
67      public static final String SESSION_ATTRIBUTE_DEMAND_CRM_WEBB_APP_CODE_PARAMS= "FORM_CRM_WEB_APP_CODE";
68      
69      // JSON KEY
70      public static final String JSON_KEY_FORM = "form";
71      public static final String JSON_KEY_SUBFORMS = "subforms";
72  
73      // CRM STATUS TEXT
74      public static final String PROPERTY_CRM_STATUS_TEXT_NEW = "module.crm.form.crm.status.text.new";
75      public static final String PROPERTY_CRM_STATUS_TEXT_MODIF = "module.crm.form.crm.status.text.modif";
76      public static final String PROPERTY_CRM_STATUS_TEXT_VALIDATE = "module.crm.form.crm.status.text.validate";
77      public static final String PROPERTY_MESSAGE_STOP_ACCESS_DENIED = "module.crm.form.message.stop.accessDenied";
78      public static final String PROPERTY_MESSAGE_INFO_REMOVE_DEMAND = "module.crm.form.message.info.removeDemand";
79      public static final String PROPERTY_MESSAGE_ERROR_CALLING_WS = "module.crm.form.message.error.calling.ws";
80  
81    
82      // ACTIONS
83      public static final String ACTION_DO_REMOVE_DRAFT = "do_remove_draft";
84      public static final String ACTION_REMOVE_DRAFT = "remove_draft";
85  
86      /**
87       * Constants
88       */
89      private Constants(  )
90      {
91      }
92  }