2 * ========================LICENSE_START=================================
5 * Copyright (C) 2019 AT&T Intellectual Property
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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===================================
20 package org.oransc.ric.portal.dashboard;
22 public abstract class DashboardConstants {
24 private DashboardConstants() {
25 // Sonar insists on hiding the constructor
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;