public class

GroupShareQueryFactory

extends Object
implements ShareQueryFactory<S extends ShareTypeSearchParameter>
java.lang.Object
   ↳ com.atlassian.jira.sharing.type.GroupShareQueryFactory

Summary

Public Constructors
GroupShareQueryFactory(GroupManager groupManager)
Public Methods
Field getField(SharedEntity entity, SharePermission permission)
Get the Field we will later search for.
Query getQuery(ShareTypeSearchParameter searchParameter)
Get the search query for all shares shares that match the passed parameter.
Query getQuery(ShareTypeSearchParameter searchParameter, ApplicationUser user)
Get the search query for the shares that can be seen by the passed user for the passed parameter.
Term[] getTerms(ApplicationUser user)
Get the search terms for the shares that can be seen by the passed user.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.sharing.type.ShareQueryFactory

Public Constructors

public GroupShareQueryFactory (GroupManager groupManager)

Public Methods

public Field getField (SharedEntity entity, SharePermission permission)

Get the Field we will later search for.

Returns
  • the field so we can add it to the index

public Query getQuery (ShareTypeSearchParameter searchParameter)

Get the search query for all shares shares that match the passed parameter. Used by the system to match all entities that match the parameter, for instance when deleting Group, Project or Role.

Parameters
searchParameter the parameters for the search.
Returns
  • an array of Terms. It may be empty but never null.

public Query getQuery (ShareTypeSearchParameter searchParameter, ApplicationUser user)

Get the search query for the shares that can be seen by the passed user for the passed parameter. Used when the user has specified something to search for.

Parameters
searchParameter the parameters for the search.
user the user to perform the search on behalf of.
Returns
  • an array of Terms. It may be empty but never null.

public Term[] getTerms (ApplicationUser user)

Get the search terms for the shares that can be seen by the passed user.

Parameters
user the user to perform the search on behalf of.
Returns
  • an array of Terms. It may be empty but never null.