Class FeatureFlaggedPermissionFilterGenerator
java.lang.Object
com.atlassian.jira.issue.search.parameters.lucene.FeatureFlaggedPermissionFilterGenerator
- All Implemented Interfaces:
PermissionsFilterGenerator
@Internal
@Deprecated(since="10.4",
forRemoval=true)
public class FeatureFlaggedPermissionFilterGenerator
extends Object
implements PermissionsFilterGenerator
Deprecated, for removal: This API element is subject to removal in a future version.
since 10.4, will be removed when "com.atlassian.jira.search.api" feature flag is removed.
A
PermissionsFilterGenerator implementation that delegates to the old/new implementation based on "com.atlassian.jira.search.api" feature-flag.- Since:
- 10.4
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureFlaggedPermissionFilterGenerator(IndexingFeatures indexingFeatures, PermissionsFilterGenerator legacyGenerator, PermissionsQueryGenerator newGenerator, LuceneQueryMapper<Query> queryMapper) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.QuerygetQuery(ApplicationUser searcher) Deprecated, for removal: This API element is subject to removal in a future version.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) Deprecated, for removal: This API element is subject to removal in a future version.Generates a luceneQuerythat is the canonical set of permissions for viewable issues for the given user and collection of projects.
-
Constructor Details
-
FeatureFlaggedPermissionFilterGenerator
public FeatureFlaggedPermissionFilterGenerator(IndexingFeatures indexingFeatures, PermissionsFilterGenerator legacyGenerator, PermissionsQueryGenerator newGenerator, LuceneQueryMapper<Query> queryMapper) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getQuery
Deprecated, for removal: This API element is subject to removal in a future version.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) Deprecated, for removal: This API element is subject to removal in a future version.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.
-