Interface PermissionQueryFactory

All Superinterfaces:
PermissionQueryFactory
All Known Implementing Classes:
DefaultPermissionQueryFactory

@Deprecated(since="10.4", forRemoval=true) public interface PermissionQueryFactory extends PermissionQueryFactory
Deprecated, for removal: This API element is subject to removal in a future version.
since 10.4 use PermissionQueryFactory
Factory for generating a permission query based on a specific permission.
Since:
4.1
  • Method Details

    • getQuery

      org.apache.lucene.search.Query getQuery(ApplicationUser searcher, ProjectPermissionKey permissionKey)
      Generate a permission query for a specific permission.
      Parameters:
      searcher - the user who is doing the searching
      permissionKey - the specific permission
      Returns:
      a permission query for that user
    • getQuery

      org.apache.lucene.search.Query getQuery(ApplicationUser searcher, ProjectPermissionKey permissionKey, @Nonnull Collection<Project> searchedProjects)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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
    • createQuery

      default Query createQuery(ApplicationUser searcher, ProjectPermissionKey permissionKey, @Nonnull Collection<Project> searchedProjects)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: PermissionQueryFactory
      Generate a permission query for a specific permission on given collection of projects.
      Specified by:
      createQuery in interface PermissionQueryFactory
      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