Skip to content

Commit

Permalink
Applications: Order list of directory mappings by directory name
Browse files Browse the repository at this point in the history
  • Loading branch information
pathob committed May 16, 2024
1 parent c3bc82d commit fe999b9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ public static ApplicationBean toApplicationBean(
applicationBean.setActive(application.isActive());
applicationBean.setType(toApplicationBeanType(application.getType()));
applicationBean.setCachedDirectoriesAuthenticationOrderOptimisationEnabled(application.isCachedDirectoriesAuthenticationOrderOptimisationEnabled());
applicationBean.setDirectoryMappings(toApplicationBeanDirectoryMappings(application, defaultGroupMembershipService));
applicationBean.setDirectoryMappings(toApplicationBeanDirectoryMappings(application, defaultGroupMembershipService).stream()
.sorted(Comparator.comparing(ApplicationBean.ApplicationDirectoryMapping::getDirectoryName))
.collect(Collectors.toList()));
applicationBean.setAccessBasedSynchronisation(toApplicationBeanAccessBasedSynchronisation(application));
applicationBean.setMembershipAggregationEnabled(application.isMembershipAggregationEnabled());
applicationBean.setRemoteAddresses(toStringCollection(application.getRemoteAddresses()));
Expand Down

0 comments on commit fe999b9

Please sign in to comment.