@RequestMapping(value = "/edit", method = RequestMethod.POST) public void update(ModelMap modelMap, @Valid UserDashlet entity, BindingResult result) { service.saveModel(modelMap, entity, result); }
@RequestMapping(value = "/edit", method = RequestMethod.GET) public void update(ModelMap modelMap, @RequestParam Long id) { service.loadModel(modelMap, id); }
@RequestMapping(value = "/new", method = RequestMethod.POST) public String create(ModelMap modelMap, @Valid UserDashlet entity, BindingResult result) { return service.saveModel(modelMap, entity, result) ? "redirect:edit?id=" + entity.getId() : null; }
@RequestMapping(value = "/new", method = RequestMethod.GET) public void create(ModelMap modelMap) { service.loadModel(modelMap); }
@RequestMapping(value = "/view", method = RequestMethod.GET) public void view(ModelMap modelMap, @RequestParam Long id) { service.loadModel(modelMap, id); }
@RequestMapping(method = RequestMethod.POST) @ResponseBody public DataTablesSearchResult<?> browse(@ModelAttribute DataTablesSearchCriteria searchCriteria) { return service.searchFullText(searchCriteria); }