OpenPermissionProvider implements PermissionProvider { @Override public boolean isGranted(@NotNull Tree tree, @Nullable PropertyState property, long permissions) { return true; } private  OpenPermissionProvider(); static PermissionProvider getInstance(); @Override void refresh(); @NotNull @Override Set<String> getPrivileges(@Nullable Tree tree); @Override boolean hasPrivileges(@Nullable Tree tree, @NotNull String... privilegeNames); @NotNull @Override RepositoryPermission getRepositoryPermission(); @NotNull @Override TreePermission getTreePermission(@NotNull Tree tree, @NotNull TreePermission parentPermission); @Override boolean isGranted(@NotNull Tree tree, @Nullable PropertyState property, long permissions); @Override boolean isGranted(@NotNull String oakPath, @NotNull String jcrActions);  }
@Test public void testIsGranted() { assertTrue(openProvider.isGranted(tree, null, Permissions.ALL)); assertTrue(openProvider.isGranted(tree, PropertyStates.createProperty("prop", "value"), Permissions.ALL)); }
@Test public void testIsGrantedActions() { assertTrue(openProvider.isGranted("/", Text.implode(new String[]{Session.ACTION_READ, Session.ACTION_ADD_NODE, Session.ACTION_REMOVE, Session.ACTION_SET_PROPERTY}, ","))); }