2 * ============LICENSE_START===================================================
3 * SPARKY (AAI UI service)
4 * ============================================================================
5 * Copyright © 2017 AT&T Intellectual Property.
6 * Copyright © 2017 Amdocs
8 * ============================================================================
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 * ============LICENSE_END=====================================================
22 * ECOMP and OpenECOMP are trademarks
23 * and service marks of AT&T Intellectual Property.
26 package org.openecomp.sparky.viewandinspect.config;
29 * The Class TierSupportUiConstants.
31 public class TierSupportUiConstants {
33 public static String APP_NAME = "AAIUI";
35 /** Default to unix file separator if system property file.separator is null */
36 public static final String FILESEP =
37 (System.getProperty("file.separator") == null) ? "/" : System.getProperty("file.separator");
39 public static String CONFIG_HOME = System.getProperty("CONFIG_HOME") + FILESEP;
40 public static String AJSC_HOME = System.getProperty("AJSC_HOME") + FILESEP;
41 public static String CONFIG_ROOT_LOCATION = AJSC_HOME + "bundleconfig" + FILESEP + "etc" + FILESEP;
42 public static String STATIC_CONFIG_APP_LOCATION = CONFIG_ROOT_LOCATION + "appprops" + FILESEP;
43 public static String DYNAMIC_CONFIG_APP_LOCATION = CONFIG_HOME;
45 public static String CONFIG_OXM_LOCATION = CONFIG_HOME + "model" + FILESEP;
47 public static String CONFIG_AUTH_LOCATION = CONFIG_HOME + "auth" + FILESEP;
49 public static String HOST = "host";
50 public static String PORT = "port";
51 public static String RETRIES = "numRequestRetries";
52 public static String RESOURCE_VERSION = "resource-version";
53 public static String URI = "URI";
55 public static String USERS_FILE_LOCATION = DYNAMIC_CONFIG_APP_LOCATION + "users.config";
56 public static String ROLES_FILE_LOCATION = DYNAMIC_CONFIG_APP_LOCATION + "roles.config";
57 public static String PORTAL_AUTHENTICATION_FILE_LOCATION = DYNAMIC_CONFIG_APP_LOCATION + "portal" + FILESEP + "portal-authentication.properties";
59 public static final String ES_SUGGEST_API = "_suggest";
60 public static final String ES_COUNT_API = "_count";
61 public static final String ES_SEARCH_API = "_search";
63 public static final String ENTITY_AUTO_SUGGEST_INDEX_NAME_DEFAULT =
64 "entityautosuggestindex-localhost";
65 public static final String ENTITY_AUTO_SUGGEST_SETTINGS_FILE_DEFAULT =
66 "/etc/autoSuggestSettings.json";
67 public static final String ENTITY_AUTO_SUGGEST_MAPPINGS_FILE_DEFAULT =
68 "/etc/autoSuggestMappings.json";
69 public static final String ENTITY_DYNAMIC_MAPPINGS_FILE_DEFAULT =
70 "/etc/dynamicMappings.json";
72 // JUnit testing synchronizer.properties file
73 public static String TEST_CONFIG_FILE =
74 System.getProperty("user.dir") + FILESEP + "bundleconfig-local" + FILESEP + "etc" + FILESEP
75 + "appprops" + FILESEP + "synchronizer.properties";
77 // Injected Attributes
78 public static String URI_ATTR_NAME = "uri";
80 public static final String URI_VERSION_REGEX_PATTERN = "aai/v[\\d]+/";
82 public static final String getConfigPath(String configFile){
83 return AJSC_HOME + FILESEP + configFile;
86 public static final String getAggregationIndexName(String entityType){
87 return "aggregate_" + entityType + "_index";