Class IsSharedQueryFactory

java.lang.Object
com.atlassian.jira.sharing.index.IsSharedQueryFactory
All Implemented Interfaces:
QueryFactory

public class IsSharedQueryFactory extends Object implements QueryFactory
Creates a query to retrieve all entities that have been shared in any way.

Does not retrieve entities that are private, unless JiraFeatureFlagRegistrar.ADMINS_CAN_EDIT_PRIVATE_FILTERS_AND_DASHBOARDS flag is enabled and the user performing the search is an admin.

Since:
v4.4.1
  • Constructor Details

  • Method Details

    • create

      public org.apache.lucene.search.Query create(SharedEntitySearchParameters searchParameters, ApplicationUser 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)
      Description copied from interface: QueryFactory
      Get a query without any permission checks.
      Specified by:
      create in interface QueryFactory
      Parameters:
      searchParameters - to search for
      Returns:
      the query to search a lucene index