コード例 #1
0
 @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";
 }
コード例 #2
0
 @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";
 }
コード例 #3
0
  @Override
  public String create(
      Model model,
      @Valid CircleTopicEntity entity,
      BindingResult errors,
      HttpServletRequest request,
      HttpServletResponse response)
      throws RebirthException {

    circleService.save(entity);
    return "/circle/circleDetail";
  }
コード例 #4
0
 @RequestMapping(method = RequestMethod.POST, value = "recycle")
 public String recycle(@RequestParam("recycle") Long[] ids) {
   circleService.recycleTopic(ids);
   return "circle/circleDetail";
 }
コード例 #5
0
 @RequestMapping(method = RequestMethod.POST, value = "marrow")
 public String marrowTopic(@RequestParam("marrow") Long[] ids) {
   circleService.setMarrowTopic(ids);
   return "circle/circleDeatil";
 }
コード例 #6
0
 @RequestMapping(method = RequestMethod.POST, value = "stick")
 public String stickyTopic(@RequestParam("stick") Long[] ids) {
   circleService.setStickyTopic(ids);
   return "circle/circleDetail";
 }