2 * ================================================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ================================================================================
20 package org.openecomp.portalapp.portal.utils;
22 import org.openecomp.portalsdk.core.util.SystemProperties;
23 import org.springframework.context.annotation.Configuration;
24 import org.springframework.context.annotation.PropertySource;
25 import org.springframework.context.annotation.PropertySources;
29 @PropertySource ("/WEB-INF/conf/system.properties"),
30 @PropertySource ("/WEB-INF/conf/sql.properties"),
31 @PropertySource ("/WEB-INF/fusion/conf/fusion.properties"),
32 @PropertySource (value = "file:${catalina.home}/conf/system.properties", ignoreResourceNotFound = true),
33 @PropertySource (value = "file:${catalina.home}/conf/fusion.properties", ignoreResourceNotFound = true)
36 public class EPSystemProperties extends SystemProperties {
38 public static final String LOGIN_URL_NO_RET_VAL = "login_url_no_ret_val";
39 public static final String HOME_PAGE_INDEX_HTML = "home_page";
40 public static final String ECOMP_APP_ID = "ecomp_app_id";
41 public static final String SYS_ADMIN_ROLE_ID = "sys_admin_role_id";
42 public static final String DUBLICATED_FIELD_VALUE_ECOMP_ERROR = "1201";
43 public static final String IDLE_CONNECTION_TEST_PERIOD = "hb.idle_connection_test_period";
44 public static final String DB_RECONNECT = "hb.db_reconnect";
45 public static final String ACCOUNT_ADMIN_ROLE_ID = "account_admin_role_id";
46 public static final String RESTRICTED_APP_ROLE_ID = "restricted_app_role_id";
47 public static final String FE_URL = "frontend_url";
48 public static final String HEALTH_POLL_INTERVAL_SECONDS = "health_poll_interval_seconds";
49 public static final String HEALTHFAIL_ALERT_EVERY_X_INTERVALS = "health_fail_alert_every_x_intervals";
50 public static final String CONTACT_US_URL = "contact_us_link";
51 public static final String USER_GUIDE_URL = "user_guide_link";
53 public static final String USER_FIRST_NAME = "USER_FIRST_NAME";
54 public static final String USER_LAST_NAME = "USER_LAST_NAME";
55 public static final String USER_EMAIL = "USER_EMAIL";
56 public static final String USER_ORG_USERID = "USER_ORG_USERID";
57 public static final String USER_LAST_LOGIN = "USER_LAST_LOGIN";
58 public static final String ELASTIC_SEARCH_URL = "elastic_search_url";
60 public static final String EXTERNAL_API_RESPONSE_CODE = "External_API_ResponseCode";
61 public static final String COOKIE_DOMAIN = "cookie_domain";
64 public static final String USH_TICKET_URL = "ush_ticket_url";
65 public static final String FEEDBACK_EMAIL_ADDRESS = "feedback_email_address";
66 public static final String PORTAL_INFO_URL = "portal_info_url";
68 public static final String ONLINE_USER_UPDATE_RATE = "online_user_update_rate";
69 public static final String ONLINE_USER_UPDATE_DURATION = "online_user_update_duration";
71 public static final String WINDOW_WIDTH_THRESHOLD_LEFT_MENU = "window_width_threshold_left_menu";
72 public static final String WINDOW_WIDTH_THRESHOLD_RIGHT_MENU = "window_width_threshold_right_menu";
74 public static final String ECOMP_CONTEXT_ROOT = "context_root";