@Override public String batchDelete( Model model, @RequestParam("items") Long[] items, HttpServletRequest request, HttpServletResponse response) throws RebirthException { List<CircleTopicEntity> list = circleService.findByIds(CircleTopicEntity.class, Arrays.asList(items)); circleService.delete(list); return "circle/circleDeatil"; }
@Override public String delete( Model model, @PathVariable Long id, CircleTopicEntity entity, HttpServletRequest request, HttpServletResponse response) throws RebirthException { circleService.delete(CircleTopicEntity.class, id); return "/circle/circleDeatil"; }
@Override public String create( Model model, @Valid CircleTopicEntity entity, BindingResult errors, HttpServletRequest request, HttpServletResponse response) throws RebirthException { circleService.save(entity); return "/circle/circleDetail"; }
@RequestMapping(method = RequestMethod.POST, value = "recycle") public String recycle(@RequestParam("recycle") Long[] ids) { circleService.recycleTopic(ids); return "circle/circleDetail"; }
@RequestMapping(method = RequestMethod.POST, value = "marrow") public String marrowTopic(@RequestParam("marrow") Long[] ids) { circleService.setMarrowTopic(ids); return "circle/circleDeatil"; }
@RequestMapping(method = RequestMethod.POST, value = "stick") public String stickyTopic(@RequestParam("stick") Long[] ids) { circleService.setStickyTopic(ids); return "circle/circleDetail"; }