@InjectableComponent public class WorklogQueryExecutor extends Object
Constructor and Description |
---|
WorklogQueryExecutor(SearchProviderFactory searchProviderFactory,
QueryProjectRoleAndGroupPermissionsDecorator queryPermissionsDecorator) |
Modifier and Type | Method and Description |
---|---|
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.
|
public WorklogQueryExecutor(SearchProviderFactory searchProviderFactory, QueryProjectRoleAndGroupPermissionsDecorator queryPermissionsDecorator)
public Iterable<Long> executeWorklogQuery(org.apache.lucene.search.Query worklogQuery, QueryCreationContext context)
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.
worklogQuery
- lucene query over the worklog indexcontext
- query contextCopyright © 2002-2022 Atlassian. All Rights Reserved.