Exemplo n.º 1
0
  private void excludeHiddenTeamsForSelection(List<Team> allTeams) {
    this.teamList = new ArrayList<Team>();

    if (allTeams != null && allTeams.size() > 0) {
      for (Team team : allTeams) {
        if (team != null && team.getValidTo() == null) // validTo = null => team is not hidden.
        {
          this.teamList.add(team);
        }
      }
    }
  }
Exemplo n.º 2
0
 public void verifyTeamId() {
   try {
     boolean isContain = false;
     for (Team t : teams) {
       if (t.getTeamId() == teamId) {
         isContain = true;
         break;
       }
     }
     if (!isContain) {
       selectTeam(teams.get(0).getTeamId());
     } else {
       sprints = sprintService.findSprintsByTeamId(teamId);
     }
   } catch (Exception e) {
     LOGGER.warn(e);
     selectTeam(0);
   }
 }