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=1ceb0cb3eb7b79735d6c19839f17d6115f2b8cc1;hb=refs%2Fchanges%2F76%2F876%2F3;hp=cd70a81a6da23c213eba72fb2abaef3469a070f1;hpb=f660cae7a447b60d84ef75f7c2bcbf62412d4579;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 cd70a81a..1ceb0cb3 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 @@ -1,6 +1,6 @@ /*- * ========================LICENSE_START================================= - * ORAN-OSC + * O-RAN-SC * %% * Copyright (C) 2019 AT&T Intellectual Property and Nokia * %% @@ -25,5 +25,19 @@ public abstract class DashboardConstants { // Sonar insists on hiding the constructor } - public static final String ENDPOINT_PREFIX = "/api/"; + 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"; + + // 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; + }