com.atlassian.jira.sharing.index
Interface QueryFactory

All Known Implementing Classes:
DefaultQueryFactory, PermissionQueryFactory

public interface QueryFactory

Build a Lucene query for shared entities.

Since:
v3.13

Method Summary
 org.apache.lucene.search.Query create(SharedEntitySearchParameters searchParameters)
          Get a query without any permission checks.
 org.apache.lucene.search.Query create(SharedEntitySearchParameters searchParameters, com.opensymphony.user.User user)
          Get a query with permission checks for the specified user.
 

Method Detail

create

org.apache.lucene.search.Query create(SharedEntitySearchParameters searchParameters,
                                      com.opensymphony.user.User user)
Get a query with permission checks for the specified user.

Parameters:
searchParameters - to search for
user - the user to limit the results for, null is anonymous
Returns:
the query to search a lucene index

create

org.apache.lucene.search.Query create(SharedEntitySearchParameters searchParameters)
Get a query without any permission checks.

Parameters:
searchParameters - to search for
Returns:
the query to search a lucene index


Copyright © 2002-2010 Atlassian. All Rights Reserved.