public class IsSharedQueryFactory extends Object implements QueryFactory
Does not retrieve entities that are private.
Constructor and Description |
---|
IsSharedQueryFactory(ComponentLocator componentLocator) |
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(ComponentLocator componentLocator)
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-2019 Atlassian. All Rights Reserved.