@Test public void getPageChildren() throws IOException { getPageChildren(true); getPageChildren(false); }
@RequestMapping(value="/page/{projectName:" + DocumentrConstants.PROJECT_NAME_PATTERN + "}/" + "{branchName:" + DocumentrConstants.BRANCH_NAME_PATTERN + "}/" + "{path:" + DocumentrConstants.PAGE_PATH_URL_PATTERN + "}/json", method=RequestMethod.POST, produces="application/json") @ResponseBody @PreAuthorize("permitAll") public List<AbstractTreeNode> getPageChildren(@PathVariable String projectName, @PathVariable String branchName, @PathVariable String path, @RequestParam(required=false) Set<String> checkBranchPermissions, @RequestParam(required=false) boolean pages, @RequestParam(required=false) boolean attachments, Authentication authentication) throws IOException { return nodesProvider.getPageChildren(projectName, branchName, path, checkBranchPermissions, pages, attachments, getAuthentication(authentication)); }
PageTreeController { @RequestMapping(value="/page/{projectName:" + DocumentrConstants.PROJECT_NAME_PATTERN + "}/" + "{branchName:" + DocumentrConstants.BRANCH_NAME_PATTERN + "}/" + "{path:" + DocumentrConstants.PAGE_PATH_URL_PATTERN + "}/json", method=RequestMethod.POST, produces="application/json") @ResponseBody @PreAuthorize("permitAll") public List<AbstractTreeNode> getPageChildren(@PathVariable String projectName, @PathVariable String branchName, @PathVariable String path, @RequestParam(required=false) Set<String> checkBranchPermissions, @RequestParam(required=false) boolean pages, @RequestParam(required=false) boolean attachments, Authentication authentication) throws IOException { return nodesProvider.getPageChildren(projectName, branchName, path, checkBranchPermissions, pages, attachments, getAuthentication(authentication)); } }
PageTreeController { @RequestMapping(value="/page/{projectName:" + DocumentrConstants.PROJECT_NAME_PATTERN + "}/" + "{branchName:" + DocumentrConstants.BRANCH_NAME_PATTERN + "}/" + "{path:" + DocumentrConstants.PAGE_PATH_URL_PATTERN + "}/json", method=RequestMethod.POST, produces="application/json") @ResponseBody @PreAuthorize("permitAll") public List<AbstractTreeNode> getPageChildren(@PathVariable String projectName, @PathVariable String branchName, @PathVariable String path, @RequestParam(required=false) Set<String> checkBranchPermissions, @RequestParam(required=false) boolean pages, @RequestParam(required=false) boolean attachments, Authentication authentication) throws IOException { return nodesProvider.getPageChildren(projectName, branchName, path, checkBranchPermissions, pages, attachments, getAuthentication(authentication)); }  }
PageTreeController { @RequestMapping(value="/page/{projectName:" + DocumentrConstants.PROJECT_NAME_PATTERN + "}/" + "{branchName:" + DocumentrConstants.BRANCH_NAME_PATTERN + "}/" + "{path:" + DocumentrConstants.PAGE_PATH_URL_PATTERN + "}/json", method=RequestMethod.POST, produces="application/json") @ResponseBody @PreAuthorize("permitAll") public List<AbstractTreeNode> getPageChildren(@PathVariable String projectName, @PathVariable String branchName, @PathVariable String path, @RequestParam(required=false) Set<String> checkBranchPermissions, @RequestParam(required=false) boolean pages, @RequestParam(required=false) boolean attachments, Authentication authentication) throws IOException { return nodesProvider.getPageChildren(projectName, branchName, path, checkBranchPermissions, pages, attachments, getAuthentication(authentication)); }  @RequestMapping(value="/application/json", method=RequestMethod.POST) @ResponseBody @PreAuthorize("permitAll") List<ProjectTreeNode> getApplicationChildren(Authentication authentication); @RequestMapping(value="/project/{name:" + DocumentrConstants.PROJECT_NAME_PATTERN + "}/json", method=RequestMethod.POST, produces="application/json") @ResponseBody @PreAuthorize("permitAll") List<BranchTreeNode> getProjectChildren(@PathVariable String name, Authentication authentication); @RequestMapping(value="/branch/{projectName:" + DocumentrConstants.PROJECT_NAME_PATTERN + "}/" + "{name:" + DocumentrConstants.BRANCH_NAME_PATTERN + "}/json", method=RequestMethod.POST, produces="application/json") @ResponseBody @PreAuthorize("permitAll") List<PageTreeNode> getBranchChildren(@PathVariable String projectName, @PathVariable String name,
			@RequestParam(required=false) Set<String> checkBranchPermissions, Authentication authentication); @RequestMapping(value="/page/{projectName:" + DocumentrConstants.PROJECT_NAME_PATTERN + "}/" + "{branchName:" + DocumentrConstants.BRANCH_NAME_PATTERN + "}/" + "{path:" + DocumentrConstants.PAGE_PATH_URL_PATTERN + "}/json", method=RequestMethod.POST, produces="application/json") @ResponseBody @PreAuthorize("permitAll") List<AbstractTreeNode> getPageChildren(@PathVariable String projectName, @PathVariable String branchName,
			@PathVariable String path, @RequestParam(required=false) Set<String> checkBranchPermissions,
			@RequestParam(required=false) boolean pages, @RequestParam(required=false) boolean attachments,
			Authentication authentication); }
PageTreeController { @RequestMapping(value="/page/{projectName:" + DocumentrConstants.PROJECT_NAME_PATTERN + "}/" + "{branchName:" + DocumentrConstants.BRANCH_NAME_PATTERN + "}/" + "{path:" + DocumentrConstants.PAGE_PATH_URL_PATTERN + "}/json", method=RequestMethod.POST, produces="application/json") @ResponseBody @PreAuthorize("permitAll") public List<AbstractTreeNode> getPageChildren(@PathVariable String projectName, @PathVariable String branchName, @PathVariable String path, @RequestParam(required=false) Set<String> checkBranchPermissions, @RequestParam(required=false) boolean pages, @RequestParam(required=false) boolean attachments, Authentication authentication) throws IOException { return nodesProvider.getPageChildren(projectName, branchName, path, checkBranchPermissions, pages, attachments, getAuthentication(authentication)); }  @RequestMapping(value="/application/json", method=RequestMethod.POST) @ResponseBody @PreAuthorize("permitAll") List<ProjectTreeNode> getApplicationChildren(Authentication authentication); @RequestMapping(value="/project/{name:" + DocumentrConstants.PROJECT_NAME_PATTERN + "}/json", method=RequestMethod.POST, produces="application/json") @ResponseBody @PreAuthorize("permitAll") List<BranchTreeNode> getProjectChildren(@PathVariable String name, Authentication authentication); @RequestMapping(value="/branch/{projectName:" + DocumentrConstants.PROJECT_NAME_PATTERN + "}/" + "{name:" + DocumentrConstants.BRANCH_NAME_PATTERN + "}/json", method=RequestMethod.POST, produces="application/json") @ResponseBody @PreAuthorize("permitAll") List<PageTreeNode> getBranchChildren(@PathVariable String projectName, @PathVariable String name,
			@RequestParam(required=false) Set<String> checkBranchPermissions, Authentication authentication); @RequestMapping(value="/page/{projectName:" + DocumentrConstants.PROJECT_NAME_PATTERN + "}/" + "{branchName:" + DocumentrConstants.BRANCH_NAME_PATTERN + "}/" + "{path:" + DocumentrConstants.PAGE_PATH_URL_PATTERN + "}/json", method=RequestMethod.POST, produces="application/json") @ResponseBody @PreAuthorize("permitAll") List<AbstractTreeNode> getPageChildren(@PathVariable String projectName, @PathVariable String branchName,
			@PathVariable String path, @RequestParam(required=false) Set<String> checkBranchPermissions,
			@RequestParam(required=false) boolean pages, @RequestParam(required=false) boolean attachments,
			Authentication authentication);  }