public void enable(List<String> usernames, LocalizedOperationResult result) { synchronized (enableUserMutex) { Set<String> potentialEnabledUsers = new HashSet<String>(toUserNames(userDao.enabledUsers())); potentialEnabledUsers.addAll(usernames); userDao.enableUsers(usernames); } }
public Collection<User> allUsers() { Set<User> result = new HashSet<User>(); result.addAll(userDao.allUsers()); return result; }