X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-backend%2Fsrc%2Fmain%2Fjava%2Forg%2Foransc%2Fric%2Fportal%2Fdashboard%2FDashboardConstants.java;h=c441c17eb6c5eddb865ed2b340a9cfac8c7d399a;hb=7e9fd6002462d69562797e741960c4e672a55d5c;hp=9b80864f52ced86a122c877429dbef1c77d3a485;hpb=3340ea073fd56431b2d1231bda17cd98765fd8eb;p=portal%2Fric-dashboard.git diff --git a/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/DashboardConstants.java b/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/DashboardConstants.java index 9b80864f..c441c17e 100644 --- a/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/DashboardConstants.java +++ b/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/DashboardConstants.java @@ -26,8 +26,18 @@ public abstract class DashboardConstants { } 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"; + 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; }