DocumentrSecurityExpressionRoot extends SecurityExpressionRoot implements MethodSecurityExpressionOperations { public boolean hasAnyBranchPermission(String projectName, Permission permission) { return permissionEvaluator.hasAnyBranchPermission(authentication, projectName, permission); } DocumentrSecurityExpressionRoot(Authentication authentication, IGlobalRepositoryManager repoManager); boolean hasApplicationPermission(Permission permission); boolean hasProjectPermission(String projectName, Permission permission); boolean hasAnyProjectPermission(Permission permission); boolean hasBranchPermission(String projectName, String branchName, Permission permission); boolean hasAnyBranchPermission(String projectName, Permission permission); boolean hasPagePermission(String projectName, String branchName, String path, Permission permission); boolean hasPagePermissionInOtherBranches(String projectName, String branchName, String path, Permission permission); boolean isAdmin(String loginName); boolean isLastAdminRole(String roleName); boolean projectExists(String projectName); boolean branchExists(String projectName, String branchName); @Override Object getThis(); @Override void setPermissionEvaluator(PermissionEvaluator permissionEvaluator); static final Permission ADMIN; static final Permission VIEW; static final Permission EDIT_PROJECT; static final Permission EDIT_BRANCH; static final Permission EDIT_PAGE; @Getter
	@Setter
	public HttpServletRequest request; }
@Test public void hasAnyBranchPermission() { when(permissionEvaluator.hasAnyBranchPermission(authentication, "project", Permission.EDIT_PAGE)) .thenReturn(true); assertTrue(root.hasAnyBranchPermission("project", Permission.EDIT_PAGE)); }