RepoPolicyTreePermission implements TreePermission { @Override public boolean canReadProperties() { return getReadStatus().allowsProperties(); } 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 testCanReadProperties() { TreePermission tp = getTreePermission(accessSession, REPO_POLICY_PATH); assertTrue(tp.canReadProperties()); }
@Test public void testCanReadProperties2() { TreePermission tp = getTreePermission(noAccessSession, REPO_POLICY_PATH); assertFalse(tp.canReadProperties()); }