Ejemplo n.º 1
0
  public void putCurrWithdrawnToDataStorage(Date recordDateTime) {
    for (Participant withdrawn : currWithdrawnMembers) {
      TeamDismiss teamDismiss =
          new TeamDismiss(
              getCurrentScanPoint().getScanPointId(),
              getCurrentTeam().getTeamId(),
              withdrawn.getUserId(),
              recordDateTime);
      // init reference fields
      teamDismiss.setScanPoint(getCurrentScanPoint());
      teamDismiss.setTeam(getCurrentTeam());
      teamDismiss.setTeamUser(UsersRegistry.getInstance().getUserById(withdrawn.getUserId()));

      DataStorage.putTeamDismiss(teamDismiss);
    }
  }
Ejemplo n.º 2
0
 private List<Integer> getCurrWithdrawnIds() {
   List<Integer> result = new ArrayList<Integer>();
   for (Participant member : currWithdrawnMembers) {
     result.add(member.getUserId());
   }
   return result;
 }