Esempio n. 1
0
 public Set<User> getUsersSelecting(AGwtEntity entity) {
   Set<User> users = new HashSet<User>();
   for (ProjectUserConfig config : getUserConfigs()) {
     if (config.getSelectedEntitysIds().contains(entity.getId())) users.add(config.getUser());
   }
   return users;
 }
Esempio n. 2
0
 public int getTotalMisconducts() {
   int sum = 0;
   for (ProjectUserConfig config : getProjectUserConfigs()) {
     sum += config.getMisconducts();
   }
   return sum;
 }
Esempio n. 3
0
 public ProjectUserConfig getUserConfig(User user) {
   for (ProjectUserConfig config : getDao().getProjectUserConfigsByProject(this)) {
     if (config.isUser(user)) return config;
   }
   return null;
 }