diff options
author | ayalaben <ayala.benzvi@amdocs.com> | 2018-05-02 11:14:31 +0300 |
---|---|---|
committer | Oren Kleks <orenkle@amdocs.com> | 2018-05-03 06:05:06 +0000 |
commit | 593e4cceced7aeac063a48f002ee9415ef82be63 (patch) | |
tree | 258df44451d8dd818bd218a9f3dbfba8fbc2ef82 /openecomp-be/tools/zusammen-tools/src/main/java/org | |
parent | b14f557288858d5d7675b2359ca8bed09a70da0d (diff) |
ZusammenTool bugfix - User Permissions
Change-Id: I5a5e54902948915a8e64dabeec58e6bd92c9f9a2
Issue-ID: SDC-1285
Signed-off-by: ayalaben <ayala.benzvi@amdocs.com>
Diffstat (limited to 'openecomp-be/tools/zusammen-tools/src/main/java/org')
-rw-r--r-- | openecomp-be/tools/zusammen-tools/src/main/java/org/openecomp/core/tools/commands/PopulateUserPermissions.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/openecomp-be/tools/zusammen-tools/src/main/java/org/openecomp/core/tools/commands/PopulateUserPermissions.java b/openecomp-be/tools/zusammen-tools/src/main/java/org/openecomp/core/tools/commands/PopulateUserPermissions.java index bf85bd19b5..fb415c5653 100644 --- a/openecomp-be/tools/zusammen-tools/src/main/java/org/openecomp/core/tools/commands/PopulateUserPermissions.java +++ b/openecomp-be/tools/zusammen-tools/src/main/java/org/openecomp/core/tools/commands/PopulateUserPermissions.java @@ -28,14 +28,17 @@ public class PopulateUserPermissions { private PopulateUserPermissions(){ } - public static void execute(){ + public static void execute() { List<ItemPermissionsEntity> permissions = permissionHandler.getAll(); - permissions.forEach(itemPermissionsEntity -> + permissions.forEach(itemPermissionsEntity -> { + if (!itemPermissionsEntity.getUserId().isEmpty() && !itemPermissionsEntity.getPermission().isEmpty()) { permissionHandler.addItem (Collections.singleton(itemPermissionsEntity.getItemId()), - itemPermissionsEntity.getUserId(),itemPermissionsEntity.getPermission())); + itemPermissionsEntity.getUserId(),itemPermissionsEntity.getPermission()); + } + }); System.exit(0); |