public class

DefaultQueryFactory

extends Object
implements QueryFactory
java.lang.Object
   ↳ com.atlassian.jira.sharing.index.DefaultQueryFactory

Summary

Public Constructors
DefaultQueryFactory(ShareTypeFactory shareTypeFactory, SharedEntitySearchContextToQueryFactoryMap searchContextToQueryFactoryMap, UserManager userManager)
Public Methods
Query create(SharedEntitySearchParameters params)
Get a query without any permission checks.
Query create(SharedEntitySearchParameters params, User user)
Get a query with permission checks for the specified user.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.sharing.index.QueryFactory

Public Constructors

public DefaultQueryFactory (ShareTypeFactory shareTypeFactory, SharedEntitySearchContextToQueryFactoryMap searchContextToQueryFactoryMap, UserManager userManager)

Public Methods

public Query create (SharedEntitySearchParameters params)

Get a query without any permission checks.

Parameters
params to search for
Returns
  • the query to search a lucene index

public Query create (SharedEntitySearchParameters params, User user)

Get a query with permission checks for the specified user.

Parameters
params to search for
user the user to limit the results for, null is anonymous
Returns
  • the query to search a lucene index