RepoPolicyTreePermission implements TreePermission { @Override public boolean canReadAll() { return getReadStatus().allowsAll(); } RepoPolicyTreePermission(@NotNull RepositoryPermission repoPermission); @NotNull @Override TreePermission getChildPermission(@NotNull String childName, @NotNull NodeState childState); @Override boolean canRead(); @Override boolean canRead(@NotNull PropertyState property); @Override boolean canReadAll(); @Override boolean canReadProperties(); @Override boolean isGranted(long permissions); @Override boolean isGranted(long permissions, @NotNull PropertyState property);  }
@Test public void testCanReadAll() { TreePermission tp = getTreePermission(accessSession, REPO_POLICY_PATH); assertFalse(tp.canReadAll()); }
@Test public void testCanReadAll2() { TreePermission tp = getTreePermission(noAccessSession, REPO_POLICY_PATH); assertFalse(tp.canReadAll()); }