public interface ShareQueryFactory<S extends ShareTypeSearchParameter>
ShareType
.Modifier and Type | Method and Description |
---|---|
org.apache.lucene.document.Field |
getField(SharedEntity entity,
SharePermission permission)
Get the Field we will later search for.
|
org.apache.lucene.search.Query |
getQuery(ShareTypeSearchParameter parameter)
Get the search query for all shares shares that match the passed parameter.
|
org.apache.lucene.search.Query |
getQuery(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.search.Query |
getQuery(ShareTypeSearchParameter parameter,
com.atlassian.crowd.embedded.api.User user)
Deprecated.
Use
getQuery(com.atlassian.jira.sharing.search.ShareTypeSearchParameter, com.atlassian.jira.user.ApplicationUser) instead. Since v6.0.
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. |
org.apache.lucene.index.Term[] |
getTerms(ApplicationUser user)
Get the search terms for the shares that can be seen by the passed user.
|
org.apache.lucene.index.Term[] |
getTerms(com.atlassian.crowd.embedded.api.User user)
Deprecated.
Use
getTerms(com.atlassian.jira.user.ApplicationUser) instead. Since v6.0.
Get the search terms for the shares that can be seen by the passed user. |
org.apache.lucene.search.Query getQuery(ShareTypeSearchParameter parameter, ApplicationUser user)
parameter
- the parameters for the search.user
- the user to perform the search on behalf of.org.apache.lucene.search.Query getQuery(ShareTypeSearchParameter parameter, com.atlassian.crowd.embedded.api.User user)
getQuery(com.atlassian.jira.sharing.search.ShareTypeSearchParameter, com.atlassian.jira.user.ApplicationUser)
instead. Since v6.0.
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.parameter
- the parameters for the search.user
- the user to perform the search on behalf of.org.apache.lucene.search.Query getQuery(ShareTypeSearchParameter parameter)
parameter
- the parameters for the search.org.apache.lucene.index.Term[] getTerms(ApplicationUser user)
user
- the user to perform the search on behalf of.org.apache.lucene.index.Term[] getTerms(com.atlassian.crowd.embedded.api.User user)
getTerms(com.atlassian.jira.user.ApplicationUser)
instead. Since v6.0.
Get the search terms for the shares that can be seen by the passed user.user
- the user to perform the search on behalf of.org.apache.lucene.document.Field getField(SharedEntity entity, SharePermission permission)
permission
- Copyright © 2002-2015 Atlassian. All Rights Reserved.