From 136a70239a1904fc931fe55ce577718245c87ba1 Mon Sep 17 00:00:00 2001 From: "Kishore Reddy, Gujja (kg811t)" Date: Mon, 11 Mar 2019 17:02:26 -0400 Subject: pom, upgrade script changes, AAF role desc fix Issue-ID: PORTAL-356 portal/SDK release 2.5.1, POM, upgrade script Change-Id: I78bf5dbc5c7927eeb087431143711642ff0261ae Signed-off-by: Kishore Reddy, Gujja (kg811t) Change-Id: Ie0065f477a4004637cbb275ad079161be9ddfb41 Signed-off-by: Kishore Reddy, Gujja (kg811t) --- ecomp-sdk/epsdk-aaf/pom.xml | 4 ++-- ecomp-sdk/epsdk-analytics/pom.xml | 2 +- ecomp-sdk/epsdk-app-common/pom.xml | 2 +- ecomp-sdk/epsdk-app-os/.gitignore | 1 + ecomp-sdk/epsdk-app-os/pom.xml | 2 +- ecomp-sdk/epsdk-app-overlay/pom.xml | 2 +- ecomp-sdk/epsdk-core/pom.xml | 2 +- .../main/java/org/onap/portalsdk/core/service/UserApiServiceImpl.java | 4 ++++ ecomp-sdk/epsdk-domain/pom.xml | 4 ++-- ecomp-sdk/epsdk-fw/pom.xml | 2 +- ecomp-sdk/epsdk-logger/pom.xml | 4 ++-- ecomp-sdk/epsdk-music/pom.xml | 4 ++-- ecomp-sdk/epsdk-workflow/pom.xml | 2 +- ecomp-sdk/pom.xml | 2 +- 14 files changed, 21 insertions(+), 16 deletions(-) diff --git a/ecomp-sdk/epsdk-aaf/pom.xml b/ecomp-sdk/epsdk-aaf/pom.xml index 0ed95f0f..3f1e0175 100644 --- a/ecomp-sdk/epsdk-aaf/pom.xml +++ b/ecomp-sdk/epsdk-aaf/pom.xml @@ -7,12 +7,12 @@ org.onap.portal.sdk epsdk-project - 2.5.1 + 2.5.1-SNAPSHOT org.onap.portal.sdk epsdk-aaf - 2.5.1 + 2.5.1-SNAPSHOT jar ONAP Portal SDK AAF Authorization diff --git a/ecomp-sdk/epsdk-analytics/pom.xml b/ecomp-sdk/epsdk-analytics/pom.xml index 5e442ac1..c40488b3 100644 --- a/ecomp-sdk/epsdk-analytics/pom.xml +++ b/ecomp-sdk/epsdk-analytics/pom.xml @@ -5,7 +5,7 @@ org.onap.portal.sdk epsdk-project - 2.5.1 + 2.5.1-SNAPSHOT diff --git a/ecomp-sdk/epsdk-app-common/pom.xml b/ecomp-sdk/epsdk-app-common/pom.xml index 6ae34ed2..b649be52 100644 --- a/ecomp-sdk/epsdk-app-common/pom.xml +++ b/ecomp-sdk/epsdk-app-common/pom.xml @@ -5,7 +5,7 @@ org.onap.portal.sdk epsdk-project - 2.5.1 + 2.5.1-SNAPSHOT diff --git a/ecomp-sdk/epsdk-app-os/.gitignore b/ecomp-sdk/epsdk-app-os/.gitignore index 17cfade8..12332940 100644 --- a/ecomp-sdk/epsdk-app-os/.gitignore +++ b/ecomp-sdk/epsdk-app-os/.gitignore @@ -4,3 +4,4 @@ .project .classpath /ngapp/ +ecomp-sdk/epsdk-app-os/*/ngapp/* diff --git a/ecomp-sdk/epsdk-app-os/pom.xml b/ecomp-sdk/epsdk-app-os/pom.xml index 5c9dd42a..67835ece 100644 --- a/ecomp-sdk/epsdk-app-os/pom.xml +++ b/ecomp-sdk/epsdk-app-os/pom.xml @@ -9,7 +9,7 @@ org.onap.portal.sdk epsdk-project - 2.5.1 + 2.5.1-SNAPSHOT diff --git a/ecomp-sdk/epsdk-app-overlay/pom.xml b/ecomp-sdk/epsdk-app-overlay/pom.xml index 036df01d..173841d6 100644 --- a/ecomp-sdk/epsdk-app-overlay/pom.xml +++ b/ecomp-sdk/epsdk-app-overlay/pom.xml @@ -5,7 +5,7 @@ org.onap.portal.sdk epsdk-project - 2.5.1 + 2.5.1-SNAPSHOT diff --git a/ecomp-sdk/epsdk-core/pom.xml b/ecomp-sdk/epsdk-core/pom.xml index 6990268f..78022a9f 100644 --- a/ecomp-sdk/epsdk-core/pom.xml +++ b/ecomp-sdk/epsdk-core/pom.xml @@ -6,7 +6,7 @@ org.onap.portal.sdk epsdk-project - 2.5.1 + 2.5.1-SNAPSHOT diff --git a/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/service/UserApiServiceImpl.java b/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/service/UserApiServiceImpl.java index fd05c695..9c8a8838 100644 --- a/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/service/UserApiServiceImpl.java +++ b/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/service/UserApiServiceImpl.java @@ -191,11 +191,14 @@ public class UserApiServiceImpl implements UserApiService { private Set setUserApps(List userRoleDetailList, String namespace, User user, App app) { Set userApps = new TreeSet(); + //As External Auth System does not provide roleId's we are setting counter value for roleId. These values should not be stored in DB. + Long tempRoleId = 0l; for (ExternalAccessUserRoleDetail userRoleDetail : userRoleDetailList) { ExternalAccessRole ecRole = userRoleDetail.getRole(); UserApp userApp = new UserApp(); Role role = new Role(); Set roleFunctions = new TreeSet<>(); + role.setId(tempRoleId); role.setActive(true); role.setName(ecRole.getName()); for (ExternalAccessPerms extPerm : ecRole.getPerms()) { @@ -225,6 +228,7 @@ public class UserApiServiceImpl implements UserApiService { userApp.setRole(role); userApp.setUserId(user.getId()); userApps.add(userApp); + tempRoleId++; } return userApps; } diff --git a/ecomp-sdk/epsdk-domain/pom.xml b/ecomp-sdk/epsdk-domain/pom.xml index 5bf776e0..3ec27447 100644 --- a/ecomp-sdk/epsdk-domain/pom.xml +++ b/ecomp-sdk/epsdk-domain/pom.xml @@ -5,12 +5,12 @@ org.onap.portal.sdk epsdk-project - 2.5.1 + 2.5.1-SNAPSHOT org.onap.portal.sdk epsdk-domain - 2.5.1 + 2.5.1-SNAPSHOT jar ONAP Portal SDK Domain diff --git a/ecomp-sdk/epsdk-fw/pom.xml b/ecomp-sdk/epsdk-fw/pom.xml index 019f19b3..22b93cb7 100644 --- a/ecomp-sdk/epsdk-fw/pom.xml +++ b/ecomp-sdk/epsdk-fw/pom.xml @@ -6,7 +6,7 @@ org.onap.portal.sdk epsdk-project - 2.5.1 + 2.5.1-SNAPSHOT diff --git a/ecomp-sdk/epsdk-logger/pom.xml b/ecomp-sdk/epsdk-logger/pom.xml index a1f4c152..4f5549cd 100644 --- a/ecomp-sdk/epsdk-logger/pom.xml +++ b/ecomp-sdk/epsdk-logger/pom.xml @@ -4,12 +4,12 @@ org.onap.portal.sdk epsdk-project - 2.5.1 + 2.5.1-SNAPSHOT org.onap.portal.sdk epsdk-logger - 2.5.1 + 2.5.1-SNAPSHOT diff --git a/ecomp-sdk/epsdk-music/pom.xml b/ecomp-sdk/epsdk-music/pom.xml index 86955e5a..8ab90860 100644 --- a/ecomp-sdk/epsdk-music/pom.xml +++ b/ecomp-sdk/epsdk-music/pom.xml @@ -5,12 +5,12 @@ org.onap.portal.sdk epsdk-project - 2.5.1 + 2.5.1-SNAPSHOT org.onap.portal.sdk epsdk-music - 2.5.1 + 2.5.1-SNAPSHOT jar ONAP Portal SDK Music diff --git a/ecomp-sdk/epsdk-workflow/pom.xml b/ecomp-sdk/epsdk-workflow/pom.xml index 85905011..3d316667 100644 --- a/ecomp-sdk/epsdk-workflow/pom.xml +++ b/ecomp-sdk/epsdk-workflow/pom.xml @@ -5,7 +5,7 @@ org.onap.portal.sdk epsdk-project - 2.5.1 + 2.5.1-SNAPSHOT diff --git a/ecomp-sdk/pom.xml b/ecomp-sdk/pom.xml index d298b7b7..1bf0c53c 100644 --- a/ecomp-sdk/pom.xml +++ b/ecomp-sdk/pom.xml @@ -13,7 +13,7 @@ org.onap.portal.sdk epsdk-project - 2.5.1 + 2.5.1-SNAPSHOT pom portal-sdk https://wiki.onap.org/display/DW/Portal -- cgit 1.2.3-korg