コード例 #1
0
  /**
   * Returns the list and metadata, as defined by the {@link com.ft.ahp.model.PrjBuildLife} model
   * object, of all build lives of a project
   *
   * @param name
   * @return
   */
  @RequestMapping(method = RequestMethod.GET, value = "/project/{name}")
  public ModelAndView getBuildLives(@PathVariable String name) {
    logger.debug("Processing project buildlives view for :: " + name);
    List<PrjBuildLife> buildLives = ahpClient.getBuildLives(name);

    return new ModelAndView("projectBuildLives", "buildLives", buildLives);
  }
コード例 #2
0
  /**
   * Returns the list of projects and metadata, as defined by the {@link
   * com.ft.ahp.model.ProjectStatus} model object given a programme name
   *
   * @param name
   * @return
   */
  @RequestMapping(method = RequestMethod.GET, value = "/programme/{name}")
  public ModelAndView getProgrammeStatus(@PathVariable String name) {
    logger.debug("Processing programme status for :: " + name);
    List<ProjectStatus> programmeStatus = ahpClient.getProgrammeStatus(name);
    ModelMap modelMap = new ModelMap();
    modelMap.addAttribute("projects", programmeStatus);
    modelMap.addAttribute("name", name);

    return new ModelAndView("programmeStatus", "programme", modelMap);
  }