View Javadoc
1   /*
2    * Copyright (c) 2002-2020, 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.plugins.appcenter.modules.fastdeployapplication.util;
35  
36  public class ConstanteUtils
37  {
38      // Beans
39      public static final String BEAN_SVN_SERVICE = "appcenter-fastdeployapplication.SvnService";
40      public static final String BEAN_GITHUB_SERVICE = "appcenter-fastdeployapplication.GithubService";
41      public static final String BEAN_GITLAB_SERVICE = "appcenter-fastdeployapplication.GitlabService";
42      public static final String BEAN_SERVER_APPLICATION_SERVICE = "appcenter-fastdeployapplication.ServerApplicationService";
43      public static final String BEAN_FAST_DEPLOY_ENVIRONMENT_SERVICE = "appcenter-fastdeployapplication.EnvironmentService";
44      public static final String BEAN_WORKFLOW_DEPLOY_SITE_SERVICE = "appcenter-fastdeployapplication.WorkflowDeploySiteService";
45      public static final String BEAN_DATABASE_SERVICE = "appcenter-fastdeployapplication.DatabaseService";
46      public static final String BEAN_DEPLOYMENT_UPLOAD_HANDLER = "appcenter-fastdeployapplication.deploymentUploadHandler";
47      public static final String BEAN_ACTION_SERVICE = "appcenter-fastdeployapplication.ActionService";
48  
49      // Constantes
50      public static final int CONSTANTE_ID_NULL = -1;
51      public static final String CONSTANTE_ALL = "all";
52      public static final int CONSTANTE_DEFAULT_LOG_SIZE = 500;
53      public static final String REGEX_ID = "^[\\d]+$";
54      public static final String CONSTANTE_TAGS = "tags";
55      public static final String CONSTANTE_TRUNK = "trunk";
56      public static final String CONSTANTE_CHECKOUT_ERROR = "Checkout error";
57      public static final String CONSTANTE_SEPARATOR_SLASH = "/";
58      public static final String CONSTANTE_SEPARATOR_POINT = ".";
59      public static final String CONSTANTE_SEPARATOR_VIRGULE = ",";
60      public static final String CONSTANTE_EMPTY_STRING = "";
61      public static final String CONSTANTE_STAR = "*";
62      public static final String CONSTANTE_MARK_STACKTRACE = "stack trace      ";
63      public static final String CONSTANTE_SPACE = " ";
64      public static final String CONSTANTE_POM_XML = "pom.xml";
65      public static final String CONSTANTE_TARGET = "target";
66      public static final String CONSTANTE_MAVEN_HOME_PATH = "appcenter.modules.fastdeployapplication.mavenHomePath";
67      public static final String CONSTANTE_MAVEN_LOCAL_REPOSITORY = "appcenter.modules.fastdeployapplication.mavenLocalRepository";
68      public static final String CONSTANTE__ENVIRONMENT = "appcenter.modules.fastdeployapplication.environment.";
69      public static final String CONSTANTE__SERVER_APPLICATION_INSTANCE = "appcenter.modules.fastdeployapplication.serverApplicationInstance.";
70      public static final String CONSTANTE__ENVIRONMENT_CODE = ".code";
71      public static final String CONSTANTE__ENVIRONMENT_NAME = ".name";
72      public static final String CONSTANTE__ENVIRONMENT_SERVER_APPLICATION_INSTANCE_LIST = ".serverApplicationInstanceList";
73      public static final String CONSTANTE__SERVER_APPLICATION_INSTANCE_CODE = ".code";
74      public static final String CONSTANTE__SERVER_APPLICATION_INSTANCE_NAME = ".name";
75      public static final String CONSTANTE__SERVER_APPLICATION_INSTANCE_SERVER_NAME = ".serverName";
76      public static final String CONSTANTE__SERVER_APPLICATION_INSTANCE_FTP_WEBAPP_Url = ".ftpWebAppUrl";
77      public static final String CONSTANTE__SERVER_APPLICATION_INSTANCE_MAVEN_PROFILE = ".mavenProfile";
78      public static final String CONSTANTE_SQL_WHERE = " WHERE ";
79      public static final String CONSTANTE_SQL_AND = " AND ";
80      public static final String CONSTANTE_SERVER_TOMCAT = "TOMCAT";
81      public static final String CONSTANTE_SERVER_TOM = "TOM";
82      public static final String CONSTANTE_SERVER_MYSQL = "MYSQL";
83      public static final String CONSTANTE_SERVER_MYS = "MYS";
84      public static final String CONSTANTE_SERVER_MAR = "MAR";
85  
86      public static final String CONSTANTE_SERVER_HTTPD = "HTTPD";
87      public static final String CONSTANTE_SERVER_PSQ = "PSQ";
88      public static final String CONSTANTE_REPO_TYPE_SVN = "svn";
89      public static final String CONSTANTE_REPO_TYPE_GITHUB = "github";
90      public static final String CONSTANTE_REPO_TYPE_GITLAB = "gitlab";
91      public static final String CONSTANTE_BRANCH_DEVELOP = "develop";
92      public static final String CONSTANTE_BRANCH_MASTER = "master";
93      public static final String CONSTANT_MAVEN_BASE_CMD = "mvn ";
94      public static final String CONSTANT_DEPLOY_TYPE_SITE = "deploy_site";
95      public static final String CONSTANT_DEPLOY_TYPE_SCRIPT = "deploy_script";
96      public static final String CONSTANT_DEPLOY_TYPE_INIT_APP_CONTEXT = "deploy_init_app_context";
97      public static final String CONSTANT_DEPLOY_TYPE_INIT_DATABASE = "deploy_init_database";
98  
99      public static final String CONSTANTE_SERVER_RO = "RO";
100     public static final String CONSTANTE_MAX_DEPLOY_SITE_CONTEXT_KEY = "max_deploy_site_context_key";
101     public static final String CONSTANTE_ACTION_EXECUTE = "@EXECUTE";
102     public static final String JSON_STATUS = "status";
103     public static final String JSON_ERROR_TYPE = "error_type";
104     public static final String JSON_LOG = "log";
105     public static final String JSON_RUNNING = "running";
106     public static final String JSON_ERROR = "error";
107     public static final String JSON_STATE = "state";
108     public static final String JSON_RESULT = "result";
109     public static final String JSON_ACTION_LIST = "action_list";
110     public static final String JSON_ACTION_ID = "id";
111     public static final String JSON_ACTION_CODE = "action_code";
112     public static final String JSON_ACTION_ICON_CSS_CLASS = "icon_css_class";
113     public static final String JSON_ACTION_NAME = "name";
114     public static final String JSON_ACTION_STATUS = "status";
115     public static final String JSON_ACTION_DISPLAY = "display";
116     public static final String JSON_ACTION_DESCRIPTION = "description";
117 
118     public static final String JSON_JSP_FOM_DISPLAY = "jsp_form_display";
119     public static final String JSON_FORM_ERROR = "form_error";
120     public static final String JSON_SERVER_STATUS = "server_status";
121     public static final String JSON_ID_APPLIACTION = "id_application";
122     public static final String JSON_CODE_ENVIRONMENT = "code_environment";
123     public static final String JSON_CODE_SERVER_APPLICATION_INSTANCE = "code_server_application_instance";
124     public static final String JSON_SERVER_APPLICATION_TYPE = "server_application_type";
125     public static final String JSON_ID_FAST_APPLICATION_DATA = "id_fast_application_data";
126 
127     public static final String CONTEXT_DIRECTORY_NAME = "CONTEXT";
128     public static final String DIRECTORY_INSTALL_NAME = "INSTALLER";
129     public static final String DIRECTORY_SCRIPT_NAME = "EXECUTABLES";
130     public static final String DIRECTORY_DUMP_NAME = "DUMPS";
131 
132     // PROPERTY
133     public static final String PROPERTY_NB_ITEM_PER_PAGE = "appcenter.modules.fastdeployapplication.defaultNbItemPerPage";
134     public static final String PROPERTY_MANAGE_APPLICATION_PAGE_TITLE = "appcenter.modules.fastdeployapplication.manage_application.page_title";
135     public static final String PROPERTY_CREATE_APPLICATION_PAGE_TITLE = "appcenter.modules.fastdeployapplication.create_application.page_title";
136     public static final String PROPERTY_MODIFY_APPLICATION_PAGE_TITLE = "appcenter.modules.fastdeployapplication.create_application.page_title";
137     public static final String PROPERTY_FORM_DEPLOY_SITE_PAGE_TITLE = "appcenter.modules.fastdeployapplication.form_deploy_site.page_title";
138     public static final String PROPERTY_LABEL_CODE = "appcenter.modules.fastdeployapplication.create_application.label_code";
139     public static final String PROPERTY_LABEL_CODE_ENVIRONMENT = "appcenter.modules.fastdeployapplication.form_init_deploy_application.label_code_environment";
140     public static final String PROPERTY_LABEL_CODE_SERVER_APPLICATION_INSTANCE_TOMCAT = "appcenter.modules.fastdeployapplication.form_init_deploy_application.label_code_server_application_instance_tomcat";
141     public static final String PROPERTY_LABEL_CODE_SERVER_APPLICATION_INSTANCE_MYSQL = "appcenter.modules.fastdeployapplication.form_init_deploy_application.label_code_server_application_instance_mysql";
142     public static final String PROPERTY_LABEL_CODE_DATABASE = "appcenter.modules.fastdeployapplication.form_init_deploy_application.label_code_database";
143     public static final String PROPERTY_LABEL_TAG_TO_DEPLOY = "appcenter.modules.fastdeployapplication.form_init_deploy_application.label_tag_to_deploy";
144     public static final String PROPERTY_LABEL_CUSTOM_MAVEN_GOAL = "appcenter.modules.fastdeployapplication.form_init_deploy_application.label_custom_maven_goal";
145     public static final String PROPERTY_LABEL_NAME = "appcenter.modules.fastdeployapplication.create_application.label_name";
146     public static final String PROPERTY_LABEL_WEBAPP_NAME = "appcenter.modules.fastdeployapplication.create_application.label_webapp_name";
147     public static final String PROPERTY_LABEL_SITE = "appcenter.modules.fastdeployapplication.create_application.label_site";
148     public static final String PROPERTY_LABEL_LUTECE_SITE = "appcenter.modules.fastdeployapplication.create_application.label_lutece_site";
149     public static final String PROPERTY_LABEL_URL_REPO = "appcenter.modules.fastdeployapplication.create_application.label_url_repo";
150     public static final String PROPERTY_LABEL_SCRIPT_UPLOAD = "module.appcenter.fastdeployapplication.form_init_deploy_application.label_script_upload";
151     public static final String PROPERTY_MESSAGE_MANDATORY_FIELD = "appcenter.modules.fastdeployapplication.message.mandatory_field";
152     public static final String PROPERTY_MESSAGE_INVALID_REPO_URL = "appcenter.modules.fastdeployapplication.message.invalidRepoUrl";
153     public static final String PROPERTY_MESSAGE_CONFIRM_REMOVE_APPLICATION = "appcenter.modules.fastdeployapplication.message.confirm_remove_application";
154     public static final String PROPERTY_ADMINUSER_ID_ATTRIBUTE_SVN_LOGIN = "appcenter.modules.fastdeployapplication.adminUser.idAttribute.svnLogin";
155     public static final String PROPERTY_ADMINUSER_ID_ATTRIBUTE_SVN_PASSWORD = "appcenter.modules.fastdeployapplication.adminUser.idAttribute.svnPassword";
156     public static final String PROPERTY_SVN_USED_DEPLOYMENT_ACCOUNT = "appcenter.modules.fastdeployapplication.svn.usedDeploymentAccount";
157     public static final String PROPERTY_SVN_LOGIN_APPLICATION_DEPLOYMENT = "appcenter.modules.fastdeployapplication.svn.svnLoginDeployment";
158     public static final String PROPERTY_SVN_PASSWORD_APPLICATION_DEPLOYMENT = "appcenter.modules.fastdeployapplication.svn.svnPasswordDeployment";
159 
160     public static final String PROPERTY_ID_WORKFLOW_TAG_AND_DEPLOY_SITE = "appcenter.modules.fastdeployapplication.idWorkflowTagAndDeploySite";
161     public static final String PROPERTY_ID_WORKFLOW_TAG_AUTOMATICALLY_AND_DEPLOY_SITE = "appcenter.modules.fastdeployapplication.idWorkflowTagAutomaticallyAndDeploySite";
162 
163     public static final String PROPERTY_ID_WORKFLOW_PREFIX = "appcenter.modules.fastdeployapplication.idWorkflow.";
164     public static final String WORKFLOW_DEPLOY_NON_LUTECE = "WorkflowDeployNonLutece";
165     public static final String WORKFLOW_DEPLOY_LUTECE = "WorkflowDeployLutece";
166     public static final String WORKFLOW_DEPLOY_SCRIPT = "WorkflowDeployScript";
167     public static final String WORKFLOW_INIT_APP_CONTEXT = "WorkflowInitAppContext";
168     public static final String WORKFLOW_INIT_DATABASE = "WorkflowInitDatabase";
169     public static final String WORKFLOW_DEPLOY_NON_LUTECE_ANSIBLE = "WorkflowDeployNonLuteceAnsible";
170     public static final String WORKFLOW_DEPLOY_LUTECE_ANSIBLE = "WorkflowDeployLuteceAnsible";
171     public static final String WORKFLOW_DEPLOY_SCRIPT_ANSIBLE = "WorkflowDeployScriptAnsible";
172     public static final String WORKFLOW_INIT_APP_CONTEXT_ANSIBLE = "WorkflowInitAppContextAnsible";
173     public static final String WORKFLOW_INIT_DATABASE_ANSIBLE = "WorkflowInitDatabaseAnsible";
174 
175     public static final String PROPERTY_DEPLOY_SITE_PAGE_TITLE = "appcenter.modules.fastdeployapplication.deploy_site.page_title";
176     public static final String PROPERTY_MAX_LOG_SIZE = "appcenter.modules.fastdeployapplication.maxLogSize";
177     public static final String PROPERTY_ENVIRONMENTS_LIST = "appcenter.modules.fastdeployapplication.environments.list";
178     public static final String PROPERTY_ENVIRONMENT_PLATEFORM_BASE_URL = "appcenter.modules.fastdeployapplication.plateformEnvironment.baseUrl";
179     public static final String PROPERTY_WEBSERVICE_AREAS_JSON_OBJECT_NAME = "appcenter.modules.fastdeployapplication.webservice.areas.jsonObjectName";
180     public static final String PROPERTY_WEBSERVICE_AREAS_JSON_DICTIONARY_NAME = "appcenter.modules.fastdeployapplication.webservice.areas.jsonDictionaryName";
181     public static final String PROPERTY_WEBSERVICE_ENVIRONMENTS_JSON_OBJECT_NAME = "appcenter.modules.fastdeployapplication.webservice.environments.jsonObjectName";
182     public static final String PROPERTY_WEBSERVICE_EVIRONMENTS_JSON_DICTIONARY_NAME = "appcenter.modules.fastdeployapplication.webservice.environments.jsonDictionaryName";
183     public static final String PROPERTY_WEBSERVICE_SERVER_APPLICATION_INSTANCES_JSON_OBJECT_NAME = "appcenter.modules.fastdeployapplication.webservice.serverApplicationInstances.jsonObjectName";
184     public static final String PROPERTY_WEBSERVICE_SERVER_APPLICATION_INSTANCES_JSON_DICTIONARY_NAME = "appcenter.modules.fastdeployapplication.webservice.serverApplicationInstances.jsonDictionaryName";
185     public static final String PROPERTY_WEBSERVICE_SERVER_ACTIONS_JSON_DICTIONARY_NAME = "appcenter.modules.fastdeployapplication.webservice.serverActions.jsonDictionaryName";
186     public static final String PROPERTY_WEBSERVICE_ACTION_RESULT_JSON_PROPERTY_RESULT = "appcenter.modules.fastdeployapplication.webservices.serverAction.jsonPropertyResult";
187     public static final String PROPERTY_WEBSERVICE_INSTALLABLE_WAR_ACTION_OBJECT_NAME = "appcenter.modules.fastdeployapplication.webservices.installableWarAction.jsonObjectName";
188     public static final String PROPERTY_WEBSERVICE_INSTALLABLE_WAR_ACTION_DICTIONARY_NAME = "appcenter.modules.fastdeployapplication.webservice.installableWarAction.jsonDictionaryName";
189     public static final String PROPERTY_WEBSERVICE_DATABASES_JSON_OBJECT_NAME = "appcenter.modules.fastdeployapplication.webservice.databases.jsonObjectName";
190     public static final String PROPERTY_WEBSERVICE_DATABASES_JSON_DICTIONARY_NAME = "appcenter.modules.fastdeployapplication.webservice.databases.jsonDictionaryName";
191     public static final String PROPERTY_DEPLOYMENT_SERVER_APPLICATION_FTP_HOST = "appcenter.modules.fastdeployapplication.serverApplicationFtp.host";
192     public static final String PROPERTY_DEPLOYMENT_SERVER_APPLICATION_FTP_PORT = "appcenter.modules.fastdeployapplication.serverApplicationFtp.port";
193     public static final String PROPERTY_DEPLOYMENT_SERVER_APPLICATION_FTP_USER_LOGIN = "appcenter.modules.fastdeployapplication.serverApplicationFtp.userLogin";
194     public static final String PROPERTY_DEPLOYMENT_SERVER_APPLICATION_FTP_USER_PASSWORD = "appcenter.modules.fastdeployapplication.serverApplicationFtp.userPassword";
195     public static final String PROPERTY_DEPLOYMENT_SERVER_APPLICATION_FTP_PORT_ANSIBLE = "appcenter.modules.fastdeployapplication.serverApplicationFtp.portAnsible";
196     public static final String PROPERTY_DEPLOYMENT_SERVER_APPLICATION_FTP_USER_LOGIN_ANSIBLE = "appcenter.modules.fastdeployapplication.serverApplicationFtp.userLoginAnsible";
197     public static final String PROPERTY_DEPLOYMENT_SERVER_APPLICATION_FTP_USER_PASSWORD_ANSIBLE = "appcenter.modules.fastdeployapplication.serverApplicationFtp.userPasswordAnsible";
198     public static final String PROPERTY_DEPLOYMENT_SERVER_APPLICATION_FTP_DIRECTORY_INSTALL_ANSIBLE = "appcenter.modules.fastdeployapplication.serverApplicationFtp.directoryInstallAnsible";
199     public static final String PROPERTY_DEPLOYMENT_SERVER_APPLICATION_FTP_DIRECTORY_SCRIPT_ANSIBLE = "appcenter.modules.fastdeployapplication.serverApplicationFtp.directoryScriptAnsible";
200     public static final String PROPERTY_DEPLOYMENT_SERVER_APPLICATION_FTP_DIRECTORY_DUMP_ANSIBLE = "appcenter.modules.fastdeployapplication.serverApplicationFtp.directoryDumpAnsible";
201     public static final String PROPERTY_DEPLOYMENT_SERVER_APPLICATION_FTP_DIRECTORY_CONTEXT_ANSIBLE = "appcenter.modules.fastdeployapplication.serverApplicationFtp.directoryContextAnsible";
202 
203     public static final String PROPERTY_DEPLOYMENT_SERVER_APPLICATION_FTP_DPLOY_DIRECTORY_TARGET = "appcenter.modules.fastdeployapplication.serverApplicationFtp.deployDirectoryTarget";
204     public static final String PROPERTY_SVN_SITES_URL = "appcenter.modules.fastdeployapplication.svnSitesUrl";
205     public static final String PROPERTY_GITHUB_BASE_URL = "appcenter.modules.fastdeployapplication.githubBaseUrl";
206     public static final String PROPERTY_GITHUB_AUTHORIZED_REPO_NAME = "appcenter.modules.fastdeployapplication.github.authorizedRepositoryName";
207     public static final String PROPERTY_GITLAB_BASE_URL = "appcenter.modules.fastdeployapplication.gitlabSitesUrl";
208     public static final String PROPERTY_CHECKOUT_BASE_PAH = "appcenter.modules.fastdeployapplication.server.checkout.basePath";
209     public static final String PROPERTY_MESSAGE_CHECKOUT_ERROR = "message_checkout_error";
210     public static final String PROPERTY_MESSAGE_CHECKOUT_ERROR_SITE_EMPTY = "message_checkout_error_site_empty";
211     public static final String PROPERTY_MESSAGE_CHECKOUT_ERROR_LOGIN_MDP_EMPTY = "message_checkout_error_login_mdp_empty";
212     public static final String PROPERTY_MESSAGE_REPO_UNAUTHORIZED_ACCESS = "message_unauthorized_repo_access";
213     public static final String PROPERTY_TASKS_FORM_WORKFLOW_PAGE_TITLE = "appcenter.modules.fastdeployapplication.tasks_form_workflow.page_title";
214     public static final String PROPERTY_FORM_ACTION_SERVER_PAGE_TITLE = "appcenter.modules.fastdeployapplication.form_action_server.page_title";
215 
216     public static final String PROPERTY_SERVER_TYPE_TOMCAT_LABEL = "appcenter.modules.fastdeployapplication.server_type_tomcat_label";
217     public static final String PROPERTY_SERVER_TYPE_HTTPD_LABEL = "appcenter.modules.fastdeployapplication.server_type_httpd_label";
218     public static final String PROPERTY_SERVER_TYPE_MYSQL_LABEL = "appcenter.modules.fastdeployapplication.server_type_mysql_label";
219     public static final String PROPERTY_UPGRADE_DIRECTORY_PATH = "appcenter.modules.fastdeployapplication.server.upgradeDirectoryPath";
220     public static final String PROPERTY_AWX_JOB_INFO_INTERVAL = "appcenter.modules.fastdeployapplication.awx.jobInfoInterval";
221     public static final String PROPERTY_DEPLOY_SCRIT_DISK_REQUIRED_FREESPACE = "appcenter.modules.fastdeployapplication.deployScriptDiskRequiredFreeSpace";
222     public static final String PROPERTY_DEPLOY_SCRIT_WITH_DUMP_DISK_REQUIRED_FREESPACE = "appcenter.modules.fastdeployapplication.deployScriptWithDumpDiskRequiredFreeSpace";
223     public static final String PROPERTY_DEPLOY_SITE_DISK_REQUIRED_FREESPACE = "appcenter.modules.fastdeployapplication.deploySiteDiskRequiredFreeSpace";
224     public static final String PROPERTY_DUMP_ACTION_DISK_REQUIRED_FREESPACE = "appcenter.modules.fastdeployapplication.dumpActionDiskRequiredFreeSpace";
225 
226     // STATE
227     public static final String CONSTANTE_COMMAND_RESULT_STATUS_EXCEPTION_VALUE = "exception";
228 
229     // STATUS SERVER APLLICATION STATE
230     public static final Integer STATUS_KO = 0;
231     public static final Integer STATUS_OK = 1;
232 
233     // MARK
234     public static final String MARK_SITE_TAG_VERSION = "site_tag_version";
235     public static final String MARK_SITE_TAG_NAME = "site_tag_name";
236     public static final String MARK_SITE_NEXT_VERSION = "site_next_version";
237     public static final String MARK_APPLICATION_LIST = "application_list";
238     public static final String MARK_SCRIPT_LIST = "script_list";
239     public static final String MARK_PAGINATOR = "paginator";
240     public static final String MARK_APPLICATION = "application";
241     public static final String MARK_ENVIRONMENT_LIST = "environment_list";
242     public static final String MARK_SERVER_INSTANCE_MAP_TOMCAT = "server_instance_map_tomcat";
243     public static final String MARK_SERVER_INSTANCE_MAP_SQL = "server_instance_map_sql";
244     public static final String MARK_SERVER_INSTANCE_MAP_HTTPD = "server_instance_map_httpd";
245     public static final String MARK_DATABASE_MAP = "database_map";
246     public static final String MARK_SITE_LIST = "site_list";
247     public static final String MARK_SERVER_INSTANCE = "server_instance";
248     public static final String MARK_ENVIRONMENT = "environment";
249     public static final String MARK_ACTION_LIST = "action_list";
250     public static final String MARK_SERVER_TYPE_LIST = "server_type_list";
251     public static final String MARK_STATE = "state";
252     public static final String MARK_NB_ITEMS_PER_PAGE = "nb_items_per_page";
253     public static final String MARK_ERROR_MESSAGE = "error_message";
254     public static final String MARK_ID_USER = "id_user";
255     public static final String MARK_TAG_TO_DEPLOY = "tag_to_deploy";
256     public static final String MARK_ID_ACTION = "id_action";
257     public static final String MARK_TASKS_FORM = "tasks_form";
258     public static final String MARK_FORM_ACTION = "form_action";
259     public static final String MARK_CONFIG = "config";
260     public static final String MARK_DEPLOY_WAR = "deploy_war";
261     public static final String MARK_DEPLOY_SQL = "deploy_sql";
262     public static final String MARK_DEPLOY_NON_LUTECE = "deploy_site_non_lutece";
263     public static final String MARK_INIT_DATABASE = "init_database";
264     public static final String MARK_INIT_APP_CONTEXT = "init_app_context";
265     public static final String MARK_CAN_CREATE_APPLICATION = "can_create_application";
266     public static final String MARK_HANDLER = "handler";
267     public static final String MARK_LIST_UPLOADED_FILE = "listFiles";
268     public static final String MARK_SEARCH_NAME = "search_name";
269     public static final String MARK_SCRIPT_NAME = "script_name";
270     public static final String MARK_DUMP_FILE_URL = "dump_file_url";
271     public static final String MARK_DATABASE_LIST = "database_list";
272     public static final String MARK_USER_WORKGROUP_REF_LIST = "user_workgroup_list";
273     public static final String MARK_USER_WORKGROUP_SELECTED = "user_workgroup_selected";
274     public static final String MARK_UPGRADE_FILE_REF_LIST = "upgrade_file_list";
275     public static final String MARK_MANAGE_APPLICATION_ACTIONS = "map_application_actions";
276     public static final String MARK_VCS_SERVICE = "vcs_service";
277     public static final String MARK_ACTION_URL = "action_url";
278     public static final String MARK_USER = "user";
279     public static final String MARK_USER_VCS = "user_vcs";
280     public static final String MARK_DEPLOY_TYPE = "deploy_type";
281     public static final String MARK_DISK_REQUIRED_FREESPACE = "disk_required_freespace";
282     public static final String MARK_DISK_REQUIRED_FREESPACE_WITH_DUMP = "disk_required_freespace_with_dump";
283 
284     // PARAM
285     public static final String PARAM_SITE_TAG_VERSION = "site_tag_version";
286     public static final String PARAM_SITE_TAG_NAME = "site_tag_name";
287     public static final String PARAM_SITE_NEXT_VERSION = "site_next_version";
288     public static final String PARAM_CODE_ENVIRONMENT = "code_environment";
289     public static final String PARAM_CODE_SERVER_APPLICATION_INSTANCE_TOMCAT = "code_server_application_instance_tomcat";
290     public static final String PARAM_CODE_SERVER_APPLICATION_INSTANCE_SQL = "code_server_application_instance_sql";
291     public static final String PARAM_CODE_SERVER_APPLICATION_INSTANCE = "code_server_application_instance";
292     public static final String PARAM_SERVER_APPLICATION_TYPE = "server_application_type";
293     public static final String PARAM_REFRESH_DATABASES = "refresh_databases";
294     public static final String PARAM_TAG_TO_DEPLOY = "tag_to_deploy";
295     public static final String PARAM_DEPLOY_DEV_SITE = "deploy_dev_site";
296     public static final String PARAM_CODE = "code";
297     public static final String PARAM_NAME = "name";
298     public static final String PARAM_WEBAPP_NAME = "webapp_name";
299     public static final String PARAM_LUTECE_SITE = "is_lutece_site";
300     public static final String PARAM_CUSTOM_MAVEN_DEPLOY_GOAL = "maven_custom_deploy_goal";
301     public static final String PARAM_SITE = "site";
302     public static final String PARAM_ID_APPLICATION = "id_application";
303     public static final String PARAM_MAVEN_PROFIL = "maven_profil";
304     public static final String PARAM_SERVER_NAME = "server_name";
305     public static final String PARAM_CANCEL = "cancel";
306     public static final String PARAM_ID_ACTION = "id_action";
307     public static final String PARAM_ID_WF_CONTEXT = "id_wf_context";
308     public static final String PARAM_DEPLOY_TYPE = "deploy_type";
309 
310     public static final String PARAM_ACTION_CODE = "action_code";
311     public static final String PARAM_ID_WORKFLOW_CONTEXT = "id_workflow_context";
312     public static final String PARAM_KEY_ACTION_DEPLOYMENT = "key_action";
313     public static final String PARAM_DEPLOY_WAR = "deploy_war";
314     public static final String PARAM_DEPLOY_SQL = "deploy_sql";
315     public static final String PARAM_DEPLOY_NON_LUTECE = "deploy_site_non_lutece";
316     public static final String PARAM_SCRIPT = "script";
317     public static final String PARAM_CODE_DATABASE = "code_database";
318     public static final String PARAM_DUMP_FILE_NAME = "dump_file_name";
319     public static final String PARAM_DISK_REQUIRED_FREE_SPACE = "disk_required_freespace";
320 
321     public static final String PARAM_SCRIPT_UPLOAD = "script_upload";
322     public static final String PARAM_SCRIPT_UPGRADE_SELECTED = "script_upgrade_selected";
323     public static final String PARAM_INIT_DATABASE = "init_database";
324     public static final String PARAM_INIT_APP_CONTEXT = "init_app_context";
325     public static final String PARAM_SEARCH_NAME = "search_name";
326     public static final String PARAM_URL_REPO = "url_repo";
327     public static final String PARAM_LOGIN = "login";
328     public static final String PARAM_PASSWORD = "password";
329     public static final String PARAM_ACTION_URL = "action_url";
330     public static final String PARAM_SAVE = "save";
331 
332     public static final String PARAM_SCRIPT_NAME = "script_name";
333     public static final String PARAM_CODE_APPLICATION = "code_application";
334     public static final String PARAM_WORKGROUP = "workgroup";
335     public static final String PARAM_CUSTOM_MAVEN_GOAL = "maven_custom_goal";
336     public static final String PARAM_DO_DUMP = "do_dump";
337 
338     // ARCHIVE TYPE
339     public static final String ARCHIVE_WAR_EXTENSION = ".war";
340     public static final String ARCHIVE_ZIP_EXTENSION = ".zip";
341 
342     // TEMPLATE
343     public static final String TEMPLATE_FORM_INIT_DEPLOY_APPLICATION = "skin/plugins/appcenter/modules/fastdeployapplication/form_init_deploy_application.html";
344     public static final String TEMPLATE_DEPLOY_APPLICATION_PROCESS = "skin/plugins/appcenter/modules/fastdeployapplication/deploy_application_process.html";
345     public static final String TEMPLATE_TASKS_FORM_WORKFLOW = "skin/plugins/appcenter/modules/fastdeployapplication/tasks_form_workflow.html";
346     public static final String TEMPLATE_FORM_ACTION_SERVER = "skin/plugins/appcenter/modules/fastdeployapplication/form_action_server.html";
347     public static final String TEMPLATE_FORM_ACTION_DUMP = "skin/plugins/appcenter/modules/fastdeployapplication/form_action_dump.html";
348     public static final String TEMPLATE_INIT_DB = "skin/plugins/appcenter/modules/fastdeployapplication/init/init_db_template.html";
349     public static final String TEMPLATE_INIT_APP_CONTEXT = "skin/plugins/appcenter/modules/fastdeployapplication/init/init_app_context.html";
350     public static final String TEMPLATE_ASK_CREDENTIALS = "skin/plugins/appcenter/modules/fastdeployapplication/ask_credentials.html";
351 
352     // I18nMessage
353     public static final String I18n_MESSAGE_ERROR_MAVEN_USER_IS_NOT_SET = "appcenter.modules.fastdeployapplication.message.maven_user_is_not_set";
354 
355     // Regex
356     public static final String REGEX_GIT_EXTRACT_ARTIFACT_FROM_URL = "appcenter.modules.fastdeployapplication.regex.git.artifactId.extractFromUrl";
357 
358     // Attributes
359     public static final String ATTRIBUTE_VCS_USER = "vcs_user";
360 
361     // XPages names
362     public static final String XPAGE_NAME_FASTDEPLOY = "fastdeploy";
363     public static final String XPAGE_NAME_FASTDEPLOY_ENVIRONMENT = "fastdeployEnvAction";
364     public static final String XPAGE_NAME_FASTDEPLOY_WF_ACTION = "fastdeployWfAction";
365     // PERMISSIONS
366     public static final String PERMISSION_ADD_FASTDEPLOY_APPLICATION = "PERMISSION_ADD_FASTDEPLOY_APPLICATION";
367     public static final String PERMISSION_MANAGE_FASTDEPLOY_APPLICATION = "PERMISSION_MANAGE_FASTDEPLOY_APPLICATION";
368     public static final String PERMISSION_DEPLOY_APP = "PERMISSION_DEPLOY_APP";
369     public static final String PERMISSION_DEPLOY_SCRIPT = "PERMISSION_DEPLOY_SCRIPT";
370     public static final String PERMISSION_VISUALIZE_ENVI = "PERMISSION_VISUALIZE_ENVI";
371     public static final String PERMISSION_INITIALIZE_TOMCAT = "PERMISSION_INITIALIZE_TOMCAT";
372     public static final String PERMISSION_INITIALIZE_SQL = "PERMISSION_INITIALIZE_SQL";
373     public static final String PERMISSION_VISUALIZE_HISTORY = "PERMISSION_VISUALIZE_HISTORY";
374 
375 }