Fix formatting in the dashboard
[nonrtric.git] / dashboard / webapp-backend / src / main / java / org / oransc / ric / portal / dashboard / DashboardConstants.java
1 /*-
2  * ========================LICENSE_START=================================
3  * O-RAN-SC
4  * %%
5  * Copyright (C) 2019 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  * ========================LICENSE_END===================================
19  */
20 package org.oransc.ric.portal.dashboard;
21
22 public abstract class DashboardConstants {
23
24     private DashboardConstants() {
25         // Sonar insists on hiding the constructor
26     }
27
28     public static final String ENDPOINT_PREFIX = "/api";
29     // Factor out method names used in multiple controllers
30     public static final String VERSION_METHOD = "version";
31     public static final String APP_NAME_AC = "AC";
32     public static final String APP_NAME_MC = "MC";
33     // The role names are defined by ONAP Portal.
34     // The prefix "ROLE_" is required by Spring.
35     // These are used in Java code annotations that require constants.
36     public static final String ROLE_NAME_STANDARD = "Standard_User";
37     public static final String ROLE_NAME_ADMIN = "System_Administrator";
38     private static final String ROLE_PREFIX = "ROLE_";
39     public static final String ROLE_ADMIN = ROLE_PREFIX + ROLE_NAME_ADMIN;
40     public static final String ROLE_STANDARD = ROLE_PREFIX + ROLE_NAME_STANDARD;
41     public static final String POLICY_CONTROLLER_USERNAME = "admin";
42     public static final String POLICY_CONTROLLER_PASSWORD = "Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U";
43
44 }