Skip to content

Commit

Permalink
BSR
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Nov 17, 2023
1 parent 1ecfdb2 commit 6002d3e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private LifeCycleResult doDryRun(String userId, boolean dryRun) {
return result;
}
User user = optionalUser.get();
Set<Attribute> attributes = new HashSet<>();
List<Attribute> attributes = new ArrayList<>();
attributes.add(new Attribute("email", user.getEmail()));
attributes.add(new Attribute("eduPersonPrincipalName", user.getEduPersonPrincipalName()));
attributes.add(new Attribute("schacHomeOrganization", user.getSchacHomeOrganization()));
Expand All @@ -83,10 +83,10 @@ private LifeCycleResult doDryRun(String userId, boolean dryRun) {
this.provisioningService.deleteUserRequest(user);
userRepository.delete(user);
}
result.setData(new ArrayList<>(attributes).stream()
result.setData(attributes.stream()
.filter(attr -> StringUtils.hasText(attr.getValue()))
.sorted(Comparator.comparing(Attribute::getName))
.collect(Collectors.toList()));
.toList());
return result;
}

Expand Down

0 comments on commit 6002d3e

Please sign in to comment.