@Test public void testUserCanBrowseRepository() { verifyUserAccessOf(underTest::userCanBrowseRepository, BROWSE); }
public boolean userCanBrowseRepository(final Repository repository) { return userHasRepositoryViewPermissionTo(BROWSE, repository) || userHasAnyContentSelectorAccessTo(repository, BROWSE); }
RepositoryPermissionChecker { public boolean userCanBrowseRepository(final Repository repository) { return userHasRepositoryViewPermissionTo(BROWSE, repository) || userHasAnyContentSelectorAccessTo(repository, BROWSE); } }
RepositoryPermissionChecker { public boolean userCanBrowseRepository(final Repository repository) { return userHasRepositoryViewPermissionTo(BROWSE, repository) || userHasAnyContentSelectorAccessTo(repository, BROWSE); } @Inject  RepositoryPermissionChecker(final SecurityHelper securityHelper, final SelectorManager selectorManager); }
RepositoryPermissionChecker { public boolean userCanBrowseRepository(final Repository repository) { return userHasRepositoryViewPermissionTo(BROWSE, repository) || userHasAnyContentSelectorAccessTo(repository, BROWSE); } @Inject  RepositoryPermissionChecker(final SecurityHelper securityHelper, final SelectorManager selectorManager); boolean userCanBrowseRepository(final Repository repository); boolean userCanDeleteInRepository(final Repository repository); List<Repository> userCanBrowseRepositories(final Repository... repositories); void ensureUserHasAnyPermissionOrAdminAccess(
      final Iterable<Permission> permissions,
      final String action,
      final Iterable<Repository> repositories); List<Repository> userCanBrowseRepositories(final Iterable<Repository> repositories); List<Repository> userHasRepositoryAdminPermission(
      final Iterable<Repository> repositories,
      final String... actions); void ensureUserCanAdmin(final String action, final Repository repository); void ensureUserCanAdmin(final String action, final String format, final String repositoryName); }
RepositoryPermissionChecker { public boolean userCanBrowseRepository(final Repository repository) { return userHasRepositoryViewPermissionTo(BROWSE, repository) || userHasAnyContentSelectorAccessTo(repository, BROWSE); } @Inject  RepositoryPermissionChecker(final SecurityHelper securityHelper, final SelectorManager selectorManager); boolean userCanBrowseRepository(final Repository repository); boolean userCanDeleteInRepository(final Repository repository); List<Repository> userCanBrowseRepositories(final Repository... repositories); void ensureUserHasAnyPermissionOrAdminAccess(
      final Iterable<Permission> permissions,
      final String action,
      final Iterable<Repository> repositories); List<Repository> userCanBrowseRepositories(final Iterable<Repository> repositories); List<Repository> userHasRepositoryAdminPermission(
      final Iterable<Repository> repositories,
      final String... actions); void ensureUserCanAdmin(final String action, final Repository repository); void ensureUserCanAdmin(final String action, final String format, final String repositoryName);  }