From 01291263baf50d0bf2e562bf457a57e4c41df9ca Mon Sep 17 00:00:00 2001 From: Fiete Ostkamp Date: Thu, 27 Jul 2023 08:02:46 +0000 Subject: Change role prefix from onap_ to portal_ [ui] Issue-ID: PORTALNG-31 Signed-off-by: Fiete Ostkamp Change-Id: Idf9b8b24fab73cfdaa8084b65308eef2ae9e62e3 --- development/config/onap-realm.json | 8 +++--- src/app/model/tile.ts | 6 ++--- src/assets/acl.json | 6 ++--- src/assets/tiles/tiles.json | 54 +++++++++++++++++++------------------- 4 files changed, 37 insertions(+), 37 deletions(-) diff --git a/development/config/onap-realm.json b/development/config/onap-realm.json index e8000ea..80c39e0 100644 --- a/development/config/onap-realm.json +++ b/development/config/onap-realm.json @@ -171,7 +171,7 @@ } ], "disableableCredentialTypes" : [ ], "requiredActions" : [ ], - "realmRoles" : [ "default-roles-onap", "onap_admin" ], + "realmRoles" : [ "default-roles-onap", "portal_admin" ], "notBefore" : 0, "groups" : [ ] }, { @@ -186,12 +186,12 @@ "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, @@ -201,7 +201,7 @@ "credentials" : [ ], "disableableCredentialTypes" : [ ], "requiredActions" : [ ], - "realmRoles" : [ "default-roles-onap", "onap_operator" ], + "realmRoles" : [ "default-roles-onap", "portal_operator" ], "notBefore" : 0, "groups" : [ ] }, { diff --git a/src/app/model/tile.ts b/src/app/model/tile.ts index c23482e..502a3cf 100644 --- a/src/app/model/tile.ts +++ b/src/app/model/tile.ts @@ -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', } diff --git a/src/assets/acl.json b/src/assets/acl.json index 73c2fe9..e25ea47 100644 --- a/src/assets/acl.json +++ b/src/assets/acl.json @@ -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", diff --git a/src/assets/tiles/tiles.json b/src/assets/tiles/tiles.json index ab2db40..1030ad8 100644 --- a/src/assets/tiles/tiles.json +++ b/src/assets/tiles/tiles.json @@ -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" ] }, { @@ -103,9 +103,9 @@ "redirectUrl": "https://dcaemod-ui-HOSTNAME/nifi/", "groups": [], "roles": [ - "ONAP_ADMIN", - "ONAP_OPERATOR", - "ONAP_DESIGNER" + "PORTAL_ADMIN", + "PORTAL_OPERATOR", + "PORTAL_DESIGNER" ] }, { @@ -119,9 +119,9 @@ "redirectUrl": "https://sdncdg-ui-HOSTNAME/", "groups": [], "roles": [ - "ONAP_ADMIN", - "ONAP_OPERATOR", - "ONAP_DESIGNER" + "PORTAL_ADMIN", + "PORTAL_OPERATOR", + "PORTAL_DESIGNER" ] }, { @@ -135,9 +135,9 @@ "redirectUrl": "https://sdncodl-ui-HOSTNAME//odlux/index.html", "groups": [], "roles": [ - "ONAP_ADMIN", - "ONAP_OPERATOR", - "ONAP_DESIGNER" + "PORTAL_ADMIN", + "PORTAL_OPERATOR", + "PORTAL_DESIGNER" ] }, { @@ -151,10 +151,10 @@ "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 +} -- cgit 1.2.3-korg