Class PermissionsQueryGeneratorImpl
java.lang.Object
com.atlassian.jira.search.permissions.PermissionsQueryGeneratorImpl
- All Implemented Interfaces:
PermissionsQueryGenerator
Replaces
PermissionsFilterGeneratorImpl-
Constructor Summary
ConstructorsConstructorDescriptionPermissionsQueryGeneratorImpl(PermissionQueryFactory permissionQueryFactory, PermissionManager permissionManager) -
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.
-
Constructor Details
-
PermissionsQueryGeneratorImpl
public PermissionsQueryGeneratorImpl(PermissionQueryFactory permissionQueryFactory, PermissionManager permissionManager)
-
-
Method Details
-
getQuery
Description copied from interface:PermissionsQueryGeneratorGenerates 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.- Specified by:
getQueryin interfacePermissionsQueryGenerator- Parameters:
searcher- the user performing the searchprojects- the projects that are subject to search- Returns:
- the query; could be null if an error occurred.
-