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); } }
private List<Integer> getCurrWithdrawnIds() { List<Integer> result = new ArrayList<Integer>(); for (Participant member : currWithdrawnMembers) { result.add(member.getUserId()); } return result; }