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 TypeMethodDescriptiongetQuery(ApplicationUser searcher, Collection<Project> projects) Generates aQuerythat is the canonical set of permissions for viewable issues for the given user and collection of projects.
-
Method Details
-
getQuery
Generates aQuerythat 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 searchprojects- the projects that are subject to search- Returns:
- the query; could be null if an error occurred.
-