7f42a1d514afd14f086df4abff565795fc76955a
[portal/sdk.git] /
1 /*-
2  * ================================================================================
3  * ECOMP Portal SDK
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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  * ================================================================================
19  */
20 package org.openecomp.portalsdk.core.onboarding.util;
21
22 public interface PortalApiConstants {
23         public static final String API_PREFIX = "/api/v2";
24         public static final String PORTAL_JSESSION_ID = "PORTAL_JSESSION_ID";
25         public static final String PORTAL_JSESSION_BIND = "PORTAL_JSESSION_BIND";
26         public static final String ACTIVE_USERS_NAME = "activeUsers";
27         
28         /** Portal service cookie name */
29         public static final String EP_SERVICE = "EPService";
30
31         public static final String GLOBAL_SESSION_MAX_IDLE_TIME = "global_session_max_idle_time";
32         public static final String PORTAL_SESSION_SLOT_CHECK = "portal_session_slot_check";
33         public static final String SESSION_PREVIOUS_ACCESS_TIME = "session_previous_access_time";
34         public static final String MAX_IDLE_TIME = "max.idle.time";
35
36         // Names of keys in the portal.properties file
37         public static final String PORTAL_API_IMPL_CLASS = "portal.api.impl.class";
38         public static final String ECOMP_REDIRECT_URL = "ecomp_redirect_url";
39         public static final String ECOMP_REST_URL = "ecomp_rest_url";
40         public static final String ROLE_ACCESS_CENTRALIZED = "role_access_centralized";
41         public static final String CSP_COOKIE_NAME = "csp_cookie_name";
42         public static final String CSP_GATE_KEEPER_PROD_KEY = "csp_gate_keeper_prod_key";
43         
44         // UEB related
45     public static final String UEB_URL_LIST = "ueb_url_list"; // In properties file
46     public static final String ECOMP_PORTAL_INBOX_NAME = "ecomp_portal_inbox_name";
47     public static final String ECOMP_DEFAULT_MSG_ID = "0";
48     public static final String ECOMP_GENERAL_UEB_PARTITION = "EPGeneralPartition";
49     public static final String UEB_LISTENERS_ENABLE = "ueb_listeners_enable";
50     public static final String UEB_APP_INBOUND_MAILBOX_NAME = "ueb_app_mailbox_name";
51     public static final String UEB_APP_CONSUMER_GROUP_NAME = "ueb_app_consumer_group_name";
52     
53     // UebManager generates a consumer group name for special token {UUID} 
54     public static final String UEB_APP_CONSUMER_GROUP_NAME_GENERATOR = "{UUID}";
55     public static final String UEB_APP_KEY = "ueb_app_key";
56     public static final String UEB_APP_SECRET = "ueb_app_secret";
57         public static final String ECOMP_UEB_INVALID_MSG   = "100: Invalid Message format.";
58     public static final String ECOMP_UEB_TIMEOUT_ERROR = "101: Timeout"; 
59     public static final String ECOMP_UEB_UNKNOWN_PUBLISH_ERROR = "102: Unknown error during publish";
60     public static final String ECOMP_UEB_UNKNOWN_CONSUME_ERROR = "103: Unknown error during consume";
61     public static final String USE_REST_FOR_FUNCTIONAL_MENU = "use_rest_for_functional_menu";
62     
63     //encrpt key
64     public static final String Decryption_Key = "decryption_key";
65
66     public static final String EXT_REQUEST_CONNECTION_TIMEOUT = "ext_req_connection_timeout";
67         public static final String EXT_REQUEST_READ_TIMEOUT = "ext_req_read_timeout";
68 }