Interface PermissionsQueryGenerator

All Known Implementing Classes:
PermissionsQueryGeneratorImpl

@PublicApi public interface PermissionsQueryGenerator
Generates a Query that applies permissions checks for viewable issues.
Since:
10.6, replaces
invalid reference
com.atlassian.jira.issue.search.parameters.lucene.PermissionsFilterGenerator
  • Method Summary

    Modifier and Type
    Method
    Description
    Generates a Query that is the canonical set of permissions for viewable issues for the given user and collection of projects.
  • Method Details

    • getQuery

      Query getQuery(ApplicationUser searcher, @Nonnull Collection<Project> projects)
      Generates a Query that is the canonical set of permissions for viewable issues for the given user and collection of projects. This query can then be used to filter out impermissible documents from a search.
      Parameters:
      searcher - the user performing the search
      projects - the projects that are subject to search
      Returns:
      the query; could be null if an error occurred.