Skip to content

Commit

Permalink
Upgrade version of cool artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
mspasiano committed Dec 20, 2023
1 parent ebbc532 commit dff6f16
Show file tree
Hide file tree
Showing 3 changed files with 884 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ public class CommonRepository {
@Cacheable(value="managers-call", key="#userId")
public Map<String, List<SiperSede>> getManagersCall(String userId, CMISUser user, BindingSession session){
Map<String, List<SiperSede>> result = new HashMap<String, List<SiperSede>>();
if (user.getGroupsArray().stream().filter(s -> s.equalsIgnoreCase(JcononGroups.CONCORSI.group())).findAny().isPresent()) {
if (Optional.ofNullable(user)
.map(CMISUser::getGroupsArray)
.orElse(Collections.emptyList()).stream().filter(s -> s.equalsIgnoreCase(JcononGroups.CONCORSI.group())).findAny().isPresent()) {
cacheRepository.getCallType()
.stream()
.map(objectTypeCache -> objectTypeCache.getId())
Expand Down
Loading

0 comments on commit dff6f16

Please sign in to comment.