Package com.atlassian.jira.jql.query
Class WorklogQueryExecutor
java.lang.Object
com.atlassian.jira.jql.query.WorklogQueryExecutor
Component that can execute queries against the worklog index
and return issue ids associated with the returned worklog documents.
-
Constructor Summary
ConstructorsConstructorDescriptionWorklogQueryExecutor(SearchProviderFactory searchProviderFactory, QueryProjectRoleAndGroupPermissionsDecorator queryPermissionsDecorator) -
Method Summary
Modifier and TypeMethodDescriptionexecuteWorklogQuery(org.apache.lucene.search.Query worklogQuery, QueryCreationContext context) Executes a worklog query and returns an iterable of unique issue ids associated with the returned worklogs.
-
Constructor Details
-
WorklogQueryExecutor
public WorklogQueryExecutor(SearchProviderFactory searchProviderFactory, QueryProjectRoleAndGroupPermissionsDecorator queryPermissionsDecorator)
-
-
Method Details
-
executeWorklogQuery
public Iterable<Long> executeWorklogQuery(org.apache.lucene.search.Query worklogQuery, QueryCreationContext context) Executes a worklog query and returns an iterable of unique issue ids associated with the returned worklogs.Before execution the query is modified so that it automatically checks all the required permissions for user currently executing it, so you needn't worry about such stuff, just provide the query in it's simplest possible form.
In case the index is unreachable or any other IO exceptions an empty set is returned.
- Parameters:
worklogQuery- lucene query over the worklog indexcontext- query context- Returns:
- issue ids
-