Example #1
0
 public void selectProject(long selectedProjectId) {
   projectId = selectedProjectId;
   teams =
       teamService.findTeamsByProjectIdAndMemberId(projectId, getLoggedInMember().getMemberId());
   try {
     selectTeam(teams.get(0).getTeamId());
   } catch (Exception e) {
     LOGGER.warn(e);
     selectTeam(0);
   }
 }
Example #2
0
 public void verifyProjectId() {
   try {
     boolean isContain = false;
     for (Project p : projects) {
       if (p.getProjectId() == projectId) {
         isContain = true;
         break;
       }
     }
     if (!isContain) {
       selectProject(projects.get(0).getProjectId());
     } else {
       teams =
           teamService.findTeamsByProjectIdAndMemberId(
               projectId, getLoggedInMember().getMemberId());
     }
   } catch (Exception e) {
     LOGGER.warn(e);
     selectProject(0);
   }
 }