2 * ========================LICENSE_START=================================
5 * Copyright (C) 2019 AT&T Intellectual Property
6 * Modifications Copyright (C) 2020 Nordix Foundation
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ========================LICENSE_END===================================
21 package org.oransc.portal.nonrtric.controlpanel;
23 public abstract class ControlPanelConstants {
25 private ControlPanelConstants() {
26 // Sonar insists on hiding the constructor
29 public static final String ENDPOINT_PREFIX = "/api";
30 // Factor out method names used in multiple controllers
31 public static final String VERSION_METHOD = "version";
32 public static final String APP_NAME_AC = "AC";
33 public static final String APP_NAME_MC = "MC";
34 // The role names are defined by ONAP Portal.
35 // The prefix "ROLE_" is required by Spring.
36 // These are used in Java code annotations that require constants.
37 public static final String ROLE_NAME_STANDARD = "Standard_User";
38 public static final String ROLE_NAME_ADMIN = "System_Administrator";
39 private static final String ROLE_PREFIX = "ROLE_";
40 public static final String ROLE_ADMIN = ROLE_PREFIX + ROLE_NAME_ADMIN;
41 public static final String ROLE_STANDARD = ROLE_PREFIX + ROLE_NAME_STANDARD;
42 public static final String POLICY_CONTROLLER_USERNAME = "admin";
43 public static final String POLICY_CONTROLLER_PASSWORD = "Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U";