com.atlassian.jira.sharing.index
Class PermissionQueryFactory

java.lang.Object
  extended by com.atlassian.jira.sharing.index.PermissionQueryFactory
All Implemented Interfaces:
QueryFactory

public class PermissionQueryFactory
extends Object
implements QueryFactory

Create a permission query.

Since:
v3.13

Constructor Summary
PermissionQueryFactory(ProjectShareQueryFactory projectShareQueryFactory, GroupManager groupManager)
           
 
Method Summary
 org.apache.lucene.search.Query create(SharedEntitySearchParameters searchParameters)
          specifically unsupported here as this is designed for non-permission queries.
 org.apache.lucene.search.Query create(SharedEntitySearchParameters searchParameters, com.atlassian.crowd.embedded.api.User user)
          Get a query with permission checks for the specified user.
 org.apache.lucene.search.Query create(SharedEntitySearchParameters searchParameters, User user)
          Get a query with permission checks for the specified user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionQueryFactory

public PermissionQueryFactory(ProjectShareQueryFactory projectShareQueryFactory,
                              GroupManager groupManager)
Method Detail

create

public org.apache.lucene.search.Query create(SharedEntitySearchParameters searchParameters,
                                             com.atlassian.crowd.embedded.api.User user)
Description copied from interface: QueryFactory
Get a query with permission checks for the specified user.

Specified by:
create in interface QueryFactory
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

public org.apache.lucene.search.Query create(SharedEntitySearchParameters searchParameters,
                                             User user)
Description copied from interface: QueryFactory
Get a query with permission checks for the specified user.

Specified by:
create in interface QueryFactory
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

public org.apache.lucene.search.Query create(SharedEntitySearchParameters searchParameters)
specifically unsupported here as this is designed for non-permission queries.

Specified by:
create in interface QueryFactory
Parameters:
searchParameters - to search for
Returns:
the query to search a lucene index


Copyright © 2002-2011 Atlassian. All Rights Reserved.