Exemplo n.º 1
0
 public void redirectToMeetingPage() {
   String issueIdString = JSFUtils.getRequestParameter("issueId");
   Project project =
       projectService.findProjectOfIssue(
           issueService.findIssueById(Long.parseLong(issueIdString)));
   this.projectId = project.getProjectId();
   this.teamId = Long.parseLong(JSFUtils.getRequestParameter("teamId"));
   this.sprintId = Long.parseLong(JSFUtils.getRequestParameter("sprintId"));
   this.setSelectedParentIssueId(issueIdString);
   try {
     FacesContext.getCurrentInstance().getExternalContext().redirect("meeting");
   } catch (IOException e) {
   }
 }
Exemplo n.º 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);
   }
 }