View Javadoc
1   /*
2    * Copyright (c) 2002-2017, 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.jsr168.pluto;
35  
36  
37  /**
38   * Defined constants for Lutece/Pluto connector (JSR 168 plugin)
39   */
40  public class LutecePlutoConstant
41  {
42      /////////////////////////////////////////////////////////////////////////
43      // Properties defined in "conf/plugins/jsr168.properties" configuration file 
44      public static final String PROPERTY_FILE_SERVICES = "portlet.jsr168.file.services";
45      public static final String PROPERTY_PROBLEM_INITIALIZATION = "portlet.jsr168.message.problem.initialization";
46      public static final String PROPERTY_PROBLEM_RENDER = "portlet.jsr168.message.problem.render";
47      public static final String PROPERTY_LOG_PREFIX = "portlet.jsr168.log.prefix";
48      public static final String PROPERTY_LOG_INITIALIZATION_FAIL = "portlet.jsr168.log.initializationFail";
49  
50      /////////////////////////////////////////////////////////////////////////
51      // Properties defined in "services.xml" configuration file 
52      // Properties for base service "org.apache.pluto.portalImpl.services.config.ConfigService"
53      public static final String CONFIG_SERVICES_PARAM_HOST_NAME = "host.name";
54      public static final String CONFIG_SERVICES_PARAM_HOST_NAME_DEFAULT = "localhost";
55      public static final String CONFIG_SERVICES_PARAM_HOST_PORT_HTTP = "host.port.http";
56      public static final String CONFIG_SERVICES_PARAM_HOST_PORT_HTTP_DEFAULT = "80";
57      public static final String CONFIG_SERVICES_PARAM_HOST_PORT_HTTPS = "host.port.https";
58      public static final String CONFIG_SERVICES_PARAM_HOST_PORT_HTTPS_DEFAULT = "443";
59      public static final String CONFIG_SERVICES_PARAM_UNIQUE_CONTAINERNAME = "portletcontainer.uniquename";
60      public static final String CONFIG_SERVICES_PARAM_UNIQUE_CONTAINERNAME_DEFAULT = "lutece2Pluto";
61      public static final String CONFIG_SERVICES_PARAM_SUPPORTED_PORTLETMODE = "supported.portletmode";
62      public static final String CONFIG_SERVICES_PARAM_SUPPORTED_WINDOWSTATE = "supported.windowstate";
63  
64      // Properties for log service "org.apache.pluto.portalImpl.services.log.LogService"
65      public static final String CONFIG_SERVICES_LOG_DEBUG_ENABLED = "debug.enable";
66      public static final Boolean CONFIG_SERVICES_LOG_DEBUG_ENABLED_DEFAULT = Boolean.FALSE;
67      public static final String CONFIG_SERVICES_LOG_INFO_ENABLED = "info.enable";
68      public static final Boolean CONFIG_SERVICES_LOG_INFO_ENABLED_DEFAULT = Boolean.FALSE;
69      public static final String CONFIG_SERVICES_LOG_WARN_ENABLED = "warn.enable";
70      public static final Boolean CONFIG_SERVICES_LOG_WARN_ENABLED_DEFAULT = Boolean.FALSE;
71      public static final String CONFIG_SERVICES_LOG_ERROR_ENABLED = "error.enable";
72      public static final Boolean CONFIG_SERVICES_LOG_ERROR_ENABLED_DEFAULT = Boolean.FALSE;
73  
74      // Properties for web & portlet mapping service "org.apache.pluto.portalImpl.services.portletdefinitionregistry.PortletDefinitionRegistryService"
75      // Mapping for access and read web.xml deploiement descriptor   
76      public static final String CONFIG_SERVICES_PORTLETDEF_WEBXML_MAPPING = "web.mapping";
77      public static final String CONFIG_SERVICES_PORTLETDEF_WEBXML_MAPPING_DEFAULT = "WEB-INF/pluto/mapping/servletdefinitionmapping.xml";
78      public static final String CONFIG_SERVICES_PORTLETDEF_WEBXML_RESSOURCE = "web.ressource";
79      public static final String CONFIG_SERVICES_PORTLETDEF_WEBXML_RESSOURCE_DEFAULT = "WEB-INF/web.xml";
80  
81      // Mapping for access and read portlet.xml deploiement descriptor   
82      public static final String CONFIG_SERVICES_PORTLETDEF_PORTLETXML_MAPPING = "portlet.mapping";
83      public static final String CONFIG_SERVICES_PORTLETDEF_PORTLETXML_MAPPING_DEFAULT = "WEB-INF/pluto/mapping/portletdefinitionmapping.xml";
84      public static final String CONFIG_SERVICES_PORTLETDEF_PORTLETXML_RESSOURCE = "portlet.ressource";
85      public static final String CONFIG_SERVICES_PORTLETDEF_PORTLETXML_RESSOURCE_DEFAULT = "WEB-INF/portlet.xml";
86  
87      // Properties for entity mapping service "org.apache.pluto.portalImpl.services.portletentityregistry.PortletEntityRegistryService"  
88      public static final String CONFIG_SERVICES_ENTITYXML_MAPPING = "mapping";
89      public static final String CONFIG_SERVICES_ENTITYXML_MAPPING_DEFAULT = "WEB-INF/pluto/mapping/portletentitymapping.xml";
90      public static final String CONFIG_SERVICES_ENTITYXML_RESSOURCE = "ressource";
91      public static final String CONFIG_SERVICES_ENTITYXML_RESSOURCE_DEFAULT = "WEB-INF/pluto/portletentityregistry.xml";
92  
93      /////////////////////////////////////////////////////////////////////////
94      // Properties used in Lutece/Pluto connector
95      public static final String LUTECEPLUTO_SESSION_PORTLET = "fr.paris.lutece.plugins.jsr168";
96  
97      /////////////////////////////////////////////////////////////////////////
98      // Properties used in Pluto portal modifications
99      public static final String PLUTO_PORTAL_REQUEST_PORTALENV = "fr.paris.lutece.plugins.jsr168.pluto.PortalEnvironment";
100 
101     /////////////////////////////////////////////////////////////////////////
102     // WEBAPP is used to workaround Pluto search of application web
103     // This constant, web application name, must be used in entity XML file. 
104     public static final String WEBAPP = "lutece"; // XXX
105     public static final String LOG_CATEGORY = "fr.paris.lutece.plugins.jsr168";
106     public static final String URL_JSR168_ACTION = "/jsp/site/plugins/jsr168/DoAction.jsp?";
107     public static final String URL_LUTECE_PORTAL = "/jsp/site/Portal.jsp?";
108 }