// selection content; proposed mappings have to be in the lists independently of the maximum number of entries
UserManager userManager = new UserManager(locale,session);
SortedSet<SelectableUser> selectableUsers = new TreeSet<SelectableUser>();
for (User user : proposedUsers) {
selectableUsers.add(new SelectableUser(user.getId(),userManager.selectionDescription(user)));
}
User[] users = userManager.getUsers(destinationGroup, true);
for (User user : users) {
if (selectableUsers.size() < MAX_NOF_SELECTION_ENTRIES && user.getUsername() != null){ // only propose users with user names
selectableUsers.add(new SelectableUser(user.getId(),userManager.selectionDescription(user)));
}
}
req.setAttribute("selectableUsers", selectableUsers);
UserSetManager userSetManager = new UserSetManager(locale,session);