Interface PermissionQueryFactory

All Known Subinterfaces:
PermissionQueryFactory
All Known Implementing Classes:
DefaultPermissionQueryFactory, DefaultPermissionQueryFactory

public interface PermissionQueryFactory
Factory for generating a permission query based on a specific permission.
Since:
10.4
  • Method Details

    • createQuery

      Query createQuery(ApplicationUser searcher, ProjectPermissionKey permissionKey, @Nonnull Collection<Project> searchedProjects)
      Generate a permission query for a specific permission on given collection of projects.
      Parameters:
      searcher - the user who is doing the searching
      permissionKey - the specific permission
      searchedProjects - collection of projects
      Returns:
      a permission query for that user and given collection of projects