Open all swagger-requested endpoints
[portal/ric-dashboard.git] / webapp-backend / src / main / java / org / oransc / ric / portal / dashboard / DashboardConstants.java
index c913efb..bb093cd 100644 (file)
@@ -25,8 +25,20 @@ public abstract class DashboardConstants {
                // Sonar insists on hiding the constructor
        }
 
-       public static final String ENDPOINT_PREFIX = "/api/";
-       public static final String HEALTHCHECK_PATH = "health";
-       public static final String VERSION_PATH = "version";
+       public static final String ENDPOINT_PREFIX = "/api";
+
+       public static final String LOGIN_PAGE = "/login.html";
+
+       // Factor out method names used in multiple controllers
+       public static final String VERSION_METHOD = "version";
+
+       // 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;
 
 }