|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SearchService
Wrapper around JIRA's SearchService
to make results easier to consume in GH.
Method Summary | |
---|---|
ServiceOutcome<org.apache.lucene.search.Query> |
buildLuceneQuery(com.atlassian.jira.jql.query.QueryCreationContext queryCreationContext,
com.atlassian.query.Query baseQuery,
com.atlassian.fugue.Option<org.apache.lucene.search.Query> andQuery)
Combine a base query (typically from a saved filter/JQL) with a Lucene query to form one Lucene query that returns the intersection of both queries. |
ServiceOutcome<java.lang.Boolean> |
doesIssueMatchQuery(com.atlassian.crowd.embedded.api.User user,
com.atlassian.jira.issue.Issue issue,
com.atlassian.query.Query query)
Perform a search of the query to see if the specified issue matches it |
ServiceOutcome<java.lang.Iterable<com.atlassian.jira.issue.Issue>> |
findOne(com.atlassian.crowd.embedded.api.User user,
com.atlassian.query.Query query)
Perform an issue search for a single issue. |
ServiceOutcome<com.atlassian.jira.issue.search.SearchResults> |
search(com.atlassian.crowd.embedded.api.User user,
com.atlassian.query.Query query)
Perform an issue search using the specified user and query. |
ServiceOutcome<java.lang.Long> |
searchCount(com.atlassian.crowd.embedded.api.User user,
com.atlassian.query.Query query)
Perform an issue search using the specified user and query and return the number of results. |
ServiceOutcome<java.lang.Long> |
searchCountOverrideSecurity(com.atlassian.crowd.embedded.api.User user,
org.apache.lucene.search.Query query)
Perform an issue search using the specified user and query and return the number of results. |
ServiceOutcome<java.lang.Long> |
searchCountOverrideSecurity(com.atlassian.crowd.embedded.api.User user,
com.atlassian.query.Query query)
Perform an issue search using the specified user and query and return the number of results. |
ServiceOutcome<com.atlassian.jira.issue.search.SearchResults> |
searchOverrideSecurity(com.atlassian.crowd.embedded.api.User user,
com.atlassian.query.Query query)
Perform an issue search using the specified user and query and return the results. |
Method Detail |
---|
@Nonnull ServiceOutcome<java.lang.Iterable<com.atlassian.jira.issue.Issue>> findOne(com.atlassian.crowd.embedded.api.User user, com.atlassian.query.Query query)
PagerFilter
appropriately.
Returns an Iterable
so you can neatly just for-each it if there are no errors, and things just workâ˘
@Nonnull ServiceOutcome<com.atlassian.jira.issue.search.SearchResults> search(com.atlassian.crowd.embedded.api.User user, com.atlassian.query.Query query)
PagerFilter
depending on GreenHopper's settings. Neatly wraps exceptions into ServiceOutcome
.
user
- the userquery
- the query
@Nonnull ServiceOutcome<java.lang.Long> searchCountOverrideSecurity(com.atlassian.crowd.embedded.api.User user, org.apache.lucene.search.Query query)
ServiceOutcome
.
user
- the userquery
- the lucene query to search for
@Nonnull ServiceOutcome<java.lang.Long> searchCount(com.atlassian.crowd.embedded.api.User user, com.atlassian.query.Query query)
ServiceOutcome
.
user
- the userquery
- the query
@Nonnull ServiceOutcome<java.lang.Long> searchCountOverrideSecurity(com.atlassian.crowd.embedded.api.User user, com.atlassian.query.Query query)
ServiceOutcome
.
user
- the userquery
- the query
@Nonnull ServiceOutcome<com.atlassian.jira.issue.search.SearchResults> searchOverrideSecurity(com.atlassian.crowd.embedded.api.User user, com.atlassian.query.Query query)
ServiceOutcome
.
user
- the userquery
- the query
@Nonnull ServiceOutcome<java.lang.Boolean> doesIssueMatchQuery(com.atlassian.crowd.embedded.api.User user, com.atlassian.jira.issue.Issue issue, com.atlassian.query.Query query)
user
- the user to search asissue
- the issue to matchquery
- the query to use
@Nonnull ServiceOutcome<org.apache.lucene.search.Query> buildLuceneQuery(com.atlassian.jira.jql.query.QueryCreationContext queryCreationContext, com.atlassian.query.Query baseQuery, com.atlassian.fugue.Option<org.apache.lucene.search.Query> andQuery)
queryCreationContext
- the contextbaseQuery
- the base queryandQuery
- the Lucene query to combine
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |