public class IsSharedQueryFactory extends Object implements QueryFactory
Does not retrieve entities that are private, unless JiraFeatureFlagRegistrar.ADMINS_CAN_EDIT_PRIVATE_FILTERS_AND_DASHBOARDS
flag is enabled and the user performing the search is an admin.
Constructor and Description |
---|
IsSharedQueryFactory(FeatureManager featureManager) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.Query |
create(SharedEntitySearchParameters searchParameters)
Get a query without any permission checks.
|
org.apache.lucene.search.Query |
create(SharedEntitySearchParameters searchParameters,
ApplicationUser user)
Get a query with permission checks for the specified user.
|
public IsSharedQueryFactory(FeatureManager featureManager)
public org.apache.lucene.search.Query create(SharedEntitySearchParameters searchParameters, ApplicationUser user)
QueryFactory
create
in interface QueryFactory
searchParameters
- to search foruser
- the user to limit the results for, null is anonymouspublic org.apache.lucene.search.Query create(SharedEntitySearchParameters searchParameters)
QueryFactory
create
in interface QueryFactory
searchParameters
- to search forCopyright © 2002-2021 Atlassian. All Rights Reserved.