public class DefaultQueryFactory extends Object implements QueryFactory
Constructor and Description |
---|
DefaultQueryFactory(ShareTypeFactory shareTypeFactory,
SharedEntitySearchContextToQueryFactoryMap searchContextToQueryFactoryMap,
UserManager userManager) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.Query |
create(SharedEntitySearchParameters params)
Get a query without any permission checks.
|
org.apache.lucene.search.Query |
create(SharedEntitySearchParameters params,
ApplicationUser user)
Get a query with permission checks for the specified user.
|
public DefaultQueryFactory(ShareTypeFactory shareTypeFactory, SharedEntitySearchContextToQueryFactoryMap searchContextToQueryFactoryMap, UserManager userManager)
public org.apache.lucene.search.Query create(SharedEntitySearchParameters params, ApplicationUser user)
QueryFactory
create
in interface QueryFactory
params
- to search foruser
- the user to limit the results for, null is anonymouspublic org.apache.lucene.search.Query create(SharedEntitySearchParameters params)
QueryFactory
create
in interface QueryFactory
params
- to search forCopyright © 2002-2017 Atlassian. All Rights Reserved.