Package com.atlassian.jira.sharing.type
Interface ShareQueryFactory<S extends ShareTypeSearchParameter>
- All Known Implementing Classes:
AuthenticatedUserShareQueryFactory,GlobalShareQueryFactory,GroupShareQueryFactory,PrivateShareQueryFactory,ProjectShareQueryFactory,UserShareQueryFactory
Create the indexed field and then query terms to find entities that have permissions related to a particular
ShareType.- Since:
- v3.13
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.document.FieldgetField(SharedEntity entity, SharePermission permission) Get the Field we will later search for.org.apache.lucene.search.QuerygetQuery(ShareTypeSearchParameter parameter) Get the search query for all shares shares that match the passed parameter.org.apache.lucene.search.QuerygetQuery(ShareTypeSearchParameter parameter, ApplicationUser user) Get the search query for the shares that can be seen by the passed user for the passed parameter.org.apache.lucene.index.Term[]getTerms(ApplicationUser user) Get the search terms for the shares that can be seen by the passed user.
-
Method Details
-
getTerms
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.