コード例 #1
0
 @RequestMapping(value = "/documentfolders", method = RequestMethod.GET)
 @ResponseBody
 public List<DocumentFolder> getAllFoldersOfUser() {
   LOG.debug("Request to get all document folders of current user");
   List<DocumentFolder> result = documentFolderService.getAllFoldersOfUser();
   return result;
 }
コード例 #2
0
 @RequestMapping(value = "/documentfolders", method = RequestMethod.POST)
 @ResponseBody
 public DocumentFolder createFolder(@RequestBody @Valid DocumentFolder folder) {
   LOG.debug("Reqest to create new document folder: {}", folder);
   return documentFolderService.saveWithUser(folder);
 }