Class PermissionsFilterGeneratorImpl
java.lang.Object
com.atlassian.jira.issue.search.parameters.lucene.PermissionsFilterGeneratorImpl
- All Implemented Interfaces:
PermissionsFilterGenerator
-
Constructor Summary
ConstructorsConstructorDescriptionPermissionsFilterGeneratorImpl(PermissionQueryFactory permissionQueryFactory) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.QuerygetQuery(ApplicationUser searcher) Generates a luceneQuerythat is the canonical set of permissions for viewable issues for the given user.org.apache.lucene.search.QuerygetQuery(ApplicationUser searcher, Collection<Project> projects) Generates a luceneQuerythat is the canonical set of permissions for viewable issues for the given user and collection of projects.
-
Constructor Details
-
PermissionsFilterGeneratorImpl
-
-
Method Details
-
getQuery
Description copied from interface:PermissionsFilterGeneratorGenerates a luceneQuerythat is the canonical set of permissions for viewable issues for the given user. This query can then be used to filter out impermissible documents from a lucene search.- Specified by:
getQueryin interfacePermissionsFilterGenerator- Parameters:
searcher- the user performing the search- Returns:
- the query; could be null if an error occurred.
-
getQuery
public org.apache.lucene.search.Query getQuery(ApplicationUser searcher, @Nonnull Collection<Project> projects) Description copied from interface:PermissionsFilterGeneratorGenerates a luceneQuerythat 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 lucene search.- Specified by:
getQueryin interfacePermissionsFilterGenerator- Parameters:
searcher- the user performing the searchprojects- the projects that are subject to search- Returns:
- the query; could be null if an error occurred.
-