public class DefaultPermissionQueryFactory extends Object implements PermissionQueryFactory
Constructor and Description |
---|
DefaultPermissionQueryFactory(IssueSecurityLevelManager issueSecurityLevelManager,
PermissionManager permissionManager,
PermissionSchemeManager permissionSchemeManager,
PermissionTypeManager permissionTypeManager,
IssueSecuritySchemeManager issueSecuritySchemeManager,
SecurityTypeManager issueSecurityTypeManager) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.Query |
getQuery(ApplicationUser searcher,
ProjectPermissionKey permissionKey)
Generate a permission query for a specific permission.
|
org.apache.lucene.search.Query |
getQuery(ApplicationUser searcher,
ProjectPermissionKey permissionKey,
Collection<Project> searchedProjects)
Generate a permission query for a specific permission on given collection of projects.
|
public DefaultPermissionQueryFactory(IssueSecurityLevelManager issueSecurityLevelManager, PermissionManager permissionManager, PermissionSchemeManager permissionSchemeManager, PermissionTypeManager permissionTypeManager, IssueSecuritySchemeManager issueSecuritySchemeManager, SecurityTypeManager issueSecurityTypeManager)
public org.apache.lucene.search.Query getQuery(ApplicationUser searcher, ProjectPermissionKey permissionKey)
PermissionQueryFactory
getQuery
in interface PermissionQueryFactory
searcher
- the user who is doing the searchingpermissionKey
- the specific permissionpublic org.apache.lucene.search.Query getQuery(ApplicationUser searcher, ProjectPermissionKey permissionKey, @Nonnull Collection<Project> searchedProjects)
PermissionQueryFactory
getQuery
in interface PermissionQueryFactory
searcher
- the user who is doing the searchingpermissionKey
- the specific permissionsearchedProjects
- collection of projectsCopyright © 2002-2024 Atlassian. All Rights Reserved.