コード例 #1
0
  @RequestMapping(value = "/children")
  @ResponseBody
  public List<?> children(@RequestParam(value = "id") Long id) {
    PermissionTarget permissionTarget = new PermissionTarget();
    permissionTarget.setId(id);

    return userGroupTreeService.getChildren(permissionTarget);
  }
コード例 #2
0
 @RequestMapping(value = "/roots")
 @ResponseBody
 public List<?> roots() {
   return userGroupTreeService.getPermissionRoots();
 }