improve dashboard UI
[portal/ric-dashboard.git] / webapp-backend / src / main / java / org / oransc / ric / portal / dashboard / DashboardConstants.java
index cd70a81..6f02a22 100644 (file)
@@ -1,8 +1,8 @@
 /*-
  * ========================LICENSE_START=================================
- * ORAN-OSC
+ * O-RAN-SC
  * %%
- * Copyright (C) 2019 AT&T Intellectual Property and Nokia
+ * Copyright (C) 2019 AT&T Intellectual Property
  * %%
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -25,5 +25,21 @@ public abstract class DashboardConstants {
                // Sonar insists on hiding the constructor
        }
 
-       public static final String ENDPOINT_PREFIX = "/api/";
+       public static final String ENDPOINT_PREFIX = "/api";
+       // Spring path parameters
+       public static final String RIC_INSTANCE_KEY = "ric";
+       // Factor out method names used in multiple controllers
+       public static final String VERSION_METHOD = "version";
+       // Apps with metric panels
+       public static final String APP_NAME_AC = "AC";
+       public static final String APP_NAME_MC = "MC";
+       // The role names are defined by ONAP Portal.
+       // The prefix "ROLE_" is required by Spring.
+       // These are used in Java code annotations that require constants.
+       public static final String ROLE_NAME_STANDARD = "Standard_User";
+       public static final String ROLE_NAME_ADMIN = "System_Administrator";
+       private static final String ROLE_PREFIX = "ROLE_";
+       public static final String ROLE_ADMIN = ROLE_PREFIX + ROLE_NAME_ADMIN;
+       public static final String ROLE_STANDARD = ROLE_PREFIX + ROLE_NAME_STANDARD;
+
 }