Interface IssueSearchService
- All Known Implementing Classes:
PagingIssueSearchServiceImpl
public interface IssueSearchService
-
Method Summary
Modifier and TypeMethodDescriptionintcount(TenantActor tenantActor, IssueSearchOptions searchOptions) Returns a count of matching issuessearch(TenantActor tenantActor, IssueSearchOptions searchOptions, IssueBeanTransformer issueBeanTransformer, IssueResultProcessor resultProcessor) Allows issue search to be performed with configurable processing optionssearch(TenantActor tenantActor, IssueSearchOptions searchOptions, IssueResultProcessor resultProcessor) Runs an issue search using the query provided on the tenant as the actor provided.
-
Method Details
-
search
ResultsProcessed search(TenantActor tenantActor, IssueSearchOptions searchOptions, IssueResultProcessor resultProcessor) throws SearchException Runs an issue search using the query provided on the tenant as the actor provided.Issues will be passed to the provided resultProcessor one by one. The method also returns the total number of issues processed.
- Parameters:
searchOptions- Options for performing the search, e.g the query, the fields to return etc.resultProcessor- Resultprocessor that will be passed individual issues to process- Returns:
- Total number of issues returned by the query and if all were processed.
- Throws:
SearchException
-
search
ResultsProcessed search(TenantActor tenantActor, IssueSearchOptions searchOptions, IssueBeanTransformer issueBeanTransformer, IssueResultProcessor resultProcessor) throws SearchException Allows issue search to be performed with configurable processing options- Parameters:
searchOptions- Options for performing the search, e.g the query, the fields to return etc.issueBeanTransformer- Processor to transfrom raw issueBeans into smart beansresultProcessor- Resultprocessor that will be passed individual issues to process- Returns:
- Total number of issues returned by the query and if all were processed.
- Throws:
SearchException
-
count
Returns a count of matching issues- Parameters:
searchOptions- Options for performing the search, e.g the query, the fields to return etc.- Returns:
- Total number of issues matching the query
- Throws:
SearchException- if there's an exception running the query
-