Exemplo n.º 1
0
 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);
   }
 }
Exemplo n.º 2
0
 public Set<String> allUsernames() {
   List<UserModel> userModels = allUsersForDisplay();
   Set<String> users = new HashSet<String>();
   for (UserModel model : userModels) {
     users.add(model.getUser().getName());
   }
   return users;
 }
Exemplo n.º 3
0
 public Collection<User> allUsers() {
   Set<User> result = new HashSet<User>();
   result.addAll(userDao.allUsers());
   return result;
 }