Change role prefix from onap_ to portal_ [ui] 75/135575/1
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Thu, 27 Jul 2023 08:02:46 +0000 (08:02 +0000)
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Thu, 27 Jul 2023 08:02:46 +0000 (08:02 +0000)
Issue-ID: PORTALNG-31
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Change-Id: Idf9b8b24fab73cfdaa8084b65308eef2ae9e62e3

development/config/onap-realm.json
src/app/model/tile.ts
src/assets/acl.json
src/assets/tiles/tiles.json

index e8000ea..80c39e0 100644 (file)
       } ],
       "disableableCredentialTypes" : [ ],
       "requiredActions" : [ ],
-      "realmRoles" : [ "default-roles-onap", "onap_admin" ],
+      "realmRoles" : [ "default-roles-onap", "portal_admin" ],
       "notBefore" : 0,
       "groups" : [ ]
     }, {
       "credentials" : [ ],
       "disableableCredentialTypes" : [ ],
       "requiredActions" : [ ],
-      "realmRoles" : [ "default-roles-onap", "onap_designer" ],
+      "realmRoles" : [ "default-roles-onap", "portal_designer" ],
       "notBefore" : 0,
       "groups" : [ ]
     }, {
       "createdTimestamp" : 1665048547054,
-      "username" : "onap-operator",
+      "username" : "onap_operator",
       "enabled" : true,
       "totp" : false,
       "emailVerified" : false,
       "credentials" : [ ],
       "disableableCredentialTypes" : [ ],
       "requiredActions" : [ ],
-      "realmRoles" : [ "default-roles-onap", "onap_operator" ],
+      "realmRoles" : [ "default-roles-onap", "portal_operator" ],
       "notBefore" : 0,
       "groups" : [ ]
     }, {
index c23482e..502a3cf 100644 (file)
@@ -39,9 +39,9 @@ export enum Group {
 }
 
 export enum Role {
-  ONAP_OPERATOR = 'ONAP_OPERATOR',
-  ONAP_DESIGNER = 'ONAP_DESIGNER',
-  ONAP_ADMIN = 'ONAP_ADMIN',
+  PORTAL_OPERATOR = 'PORTAL_OPERATOR',
+  PORTAL_DESIGNER = 'PORTAL_DESIGNER',
+  PORTAL_ADMIN = 'PORTAL_ADMIN',
 }
 
 
index 73c2fe9..e25ea47 100644 (file)
@@ -1,5 +1,5 @@
 {
-  "onap_admin": [
+  "portal_admin": [
     "users.administration.list",
     "users.administration.detail",
     "users.administration.create",
@@ -19,7 +19,7 @@
     "dashboard.tile.USER_LAST_ACTION_TILE",
     "treeview"
   ],
-  "onap_operator": [
+  "portal_operator": [
     "cellSite.map",
     "serviceInstance.list",
     "serviceInstance.delete",
@@ -34,7 +34,7 @@
     "dashboard.tile.USER_LAST_ACTION_TILE",
     "treeview"
   ],
-  "onap_designer": [
+  "portal_designer": [
     "kpi",
     "kpi.graphs",
     "kpi.grafana",
index ab2db40..1030ad8 100644 (file)
@@ -11,9 +11,9 @@
       "redirectUrl": "https://sdc-ui-HOSTNAME/sdc1/portal",
       "groups": [],
       "roles": [
-        "ONAP_ADMIN",
-        "ONAP_OPERATOR",
-        "ONAP_DESIGNER"
+        "PORTAL_ADMIN",
+        "PORTAL_OPERATOR",
+        "PORTAL_DESIGNER"
       ]
     },
     {
@@ -27,7 +27,7 @@
       "redirectUrl": "https://policy-ui-HOSTNAME/",
       "groups": [],
       "roles": [
-        "ONAP_ADMIN"
+        "PORTAL_ADMIN"
       ]
     },
     {
@@ -41,7 +41,7 @@
       "redirectUrl": "https://so-monitoring-ui-HOSTNAME/",
       "groups": [],
       "roles": [
-        "ONAP_OPERATOR"
+        "PORTAL_OPERATOR"
       ]
     },
     {
@@ -55,9 +55,9 @@
       "redirectUrl": "https://cds-ui-HOSTNAME/",
       "groups": [],
       "roles": [
-        "ONAP_ADMIN",
-        "ONAP_OPERATOR",
-        "ONAP_DESIGNER"
+        "PORTAL_ADMIN",
+        "PORTAL_OPERATOR",
+        "PORTAL_DESIGNER"
       ]
     },
     {
@@ -71,9 +71,9 @@
       "redirectUrl": "https://holmes-ui-HOSTNAME/iui/holmes/default.html",
       "groups": [],
       "roles": [
-        "ONAP_ADMIN",
-        "ONAP_OPERATOR",
-        "ONAP_DESIGNER"
+        "PORTAL_ADMIN",
+        "PORTAL_OPERATOR",
+        "PORTAL_DESIGNER"
       ]
     },
     {
@@ -87,9 +87,9 @@
       "redirectUrl": "https://aai-ui-HOSTNAME/services/aai/webapp/index.html#/browse",
       "groups": [],
       "roles": [
-        "ONAP_ADMIN",
-        "ONAP_OPERATOR",
-        "ONAP_DESIGNER"
+        "PORTAL_ADMIN",
+        "PORTAL_OPERATOR",
+        "PORTAL_DESIGNER"
       ]
     },
     {
       "redirectUrl": "https://dcaemod-ui-HOSTNAME/nifi/",
       "groups": [],
       "roles": [
-        "ONAP_ADMIN",
-        "ONAP_OPERATOR",
-        "ONAP_DESIGNER"
+        "PORTAL_ADMIN",
+        "PORTAL_OPERATOR",
+        "PORTAL_DESIGNER"
       ]
     },
     {
       "redirectUrl": "https://sdncdg-ui-HOSTNAME/",
       "groups": [],
       "roles": [
-        "ONAP_ADMIN",
-        "ONAP_OPERATOR",
-        "ONAP_DESIGNER"
+        "PORTAL_ADMIN",
+        "PORTAL_OPERATOR",
+        "PORTAL_DESIGNER"
       ]
     },
     {
       "redirectUrl": "https://sdncodl-ui-HOSTNAME//odlux/index.html",
       "groups": [],
       "roles": [
-        "ONAP_ADMIN",
-        "ONAP_OPERATOR",
-        "ONAP_DESIGNER"
+        "PORTAL_ADMIN",
+        "PORTAL_OPERATOR",
+        "PORTAL_DESIGNER"
       ]
     },
     {
       "redirectUrl": "https://nonrtric-controlpanel-HOSTNAME/",
       "groups": [],
       "roles": [
-        "ONAP_ADMIN",
-        "ONAP_OPERATOR",
-        "ONAP_DESIGNER"
+        "PORTAL_ADMIN",
+        "PORTAL_OPERATOR",
+        "PORTAL_DESIGNER"
       ]
     }
   ]
-}
\ No newline at end of file
+}