Example #1
0
  @RequestMapping(value = "auth/team/delete")
  public String prepareDeleteWithNullId(Principal principal, ModelMap map) {
    Team team = teamsManager.getTeam(null);

    if (team == null) {
      return "redirect:/auth/team/manage";
    }

    map.addAttribute("team", teamTranslator.translateTeam(team));
    return "auth/team/delete";
  }
Example #2
0
  @RequestMapping(value = "auth/team/delete/{teamId}")
  public String prepareDelete(
      Principal principal, @PathVariable("teamId") String teamId, ModelMap map) {
    Team team = teamsManager.getTeam(teamId);

    if (team == null) {
      return "redirect:/auth/team/manage";
    }

    map.addAttribute("team", teamTranslator.translateTeam(team));
    return "auth/team/delete";
  }