Release dashboard image at version 2.1.0
[portal/ric-dashboard.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         // Spring path parameters
30         public static final String RIC_INSTANCE_KEY = "ric";
31         public static final String APP_ID = "appid";
32         // Factor out method names used in multiple controllers
33         public static final String VERSION_METHOD = "version";
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
43 }