示例#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;
 }
示例#2
0
 public int getTotalMisconducts() {
   int sum = 0;
   for (ProjectUserConfig config : getProjectUserConfigs()) {
     sum += config.getMisconducts();
   }
   return sum;
 }
示例#3
0
 public ProjectUserConfig getUserConfig(User user) {
   for (ProjectUserConfig config : getDao().getProjectUserConfigsByProject(this)) {
     if (config.isUser(user)) return config;
   }
   return null;
 }