Class PermissionsQueryGeneratorImpl

java.lang.Object
com.atlassian.jira.search.permissions.PermissionsQueryGeneratorImpl
All Implemented Interfaces:
PermissionsQueryGenerator

public class PermissionsQueryGeneratorImpl extends Object implements PermissionsQueryGenerator
  • Constructor Details

  • Method Details

    • getQuery

      public Query getQuery(ApplicationUser searcher, @Nonnull Collection<Project> projects)
      Description copied from interface: PermissionsQueryGenerator
      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.
      Specified by:
      getQuery in interface PermissionsQueryGenerator
      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.