@RequestMapping( value = RequestTarget.STORY_UPDATE + "/" + RequestConstants.ID, method = RequestMethod.GET) public String update(@PathVariable String id, ModelMap model) { StoryForm data = new StoryForm(); data.loadFromStory(projectService.loadStoryWithProject(id)); model.addAttribute("story", data); return RequestTarget.STORY_UPDATE; }
@RequestMapping(RequestTarget.STORY_START + "/" + RequestConstants.ID) public String start(@PathVariable String id) { Story story = projectService.loadStoryWithProject(id); projectService.startStory(story); return redirect(RequestTarget.PROJECT_SHOW + "/" + story.getProject().getId()); }