public class QueryProjectRoleAndGroupPermissionsDecorator extends Object
Modifier and Type | Field and Description |
---|---|
static org.apache.lucene.search.BooleanQuery |
matchNoDocsQuery |
Constructor and Description |
---|
QueryProjectRoleAndGroupPermissionsDecorator(PermissionManager permissionManager,
ProjectRoleManager projectRoleManager) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.Query |
appendPermissionFilterQuery(org.apache.lucene.search.Query query,
QueryCreationContext queryCreationContext,
String groupLevelField,
String roleLevelField)
Append the permission query to the passed query.
|
org.apache.lucene.search.Query |
createPermissionQuery(QueryCreationContext queryCreationContext,
String groupLevelField,
String roleLevelField)
Creates the lucene query that will restrict the results to only elements that are visible to the user
based on the query creation context and elements' group and role visibility levels.
|
org.apache.lucene.search.Query |
decorateWorklogQueryWithPermissionChecks(org.apache.lucene.search.Query query,
QueryCreationContext queryCreationContext)
Takes a worklog index query and adds some necessary permission checks to it.
|
public static final org.apache.lucene.search.BooleanQuery matchNoDocsQuery
public QueryProjectRoleAndGroupPermissionsDecorator(PermissionManager permissionManager, ProjectRoleManager projectRoleManager)
public org.apache.lucene.search.Query appendPermissionFilterQuery(org.apache.lucene.search.Query query, QueryCreationContext queryCreationContext, String groupLevelField, String roleLevelField)
queryCreationContext
- the context of query creationgroupLevelField
- the name of the lucene document field which represents the group level visibilityroleLevelField
- the name of the lucene document field which represents the role level visibilitypublic org.apache.lucene.search.Query decorateWorklogQueryWithPermissionChecks(org.apache.lucene.search.Query query, QueryCreationContext queryCreationContext)
query
- worklog queryqueryCreationContext
- query contextpublic org.apache.lucene.search.Query createPermissionQuery(QueryCreationContext queryCreationContext, String groupLevelField, String roleLevelField)
queryCreationContext
- the context of query creationgroupLevelField
- the name of the lucene document field which represents the group level visibilityroleLevelField
- the name of the lucene document field which represents the role level visibilityCopyright © 2002-2021 Atlassian. All Rights Reserved.