public class DefaultSearchRequestViewBodyWriterUtil extends Object implements SearchRequestViewBodyWriterUtil
Constructor and Description |
---|
DefaultSearchRequestViewBodyWriterUtil(SearchProviderFactory searchProviderFactory,
IssueFactory issueFactory,
JiraAuthenticationContext authenticationContext,
SearchProvider searchProvider) |
Modifier and Type | Method and Description |
---|---|
List<Integer> |
searchAndSort(SearchRequest searchRequest,
PagerFilter pagerFilter)
Iterates over the issues and applying them all them all to the issue collector.
|
long |
searchCount(SearchRequest searchRequest)
Returns the search count
|
void |
writeBody(Writer writer,
AbstractIssueView issueView,
SearchRequest searchRequest,
SingleIssueWriter singleIssueWriter,
PagerFilter pagerFilter)
Writes the body of a sinlge issue.
|
void |
writeTableBody(Writer writer,
IssueTableWriter issueTableWriter,
SearchRequest searchRequest,
PagerFilter pagerFilter)
Writes the body of a single issue in a table view (i.e.: Printable or Excel).
|
public DefaultSearchRequestViewBodyWriterUtil(SearchProviderFactory searchProviderFactory, IssueFactory issueFactory, JiraAuthenticationContext authenticationContext, SearchProvider searchProvider)
public void writeBody(Writer writer, AbstractIssueView issueView, SearchRequest searchRequest, SingleIssueWriter singleIssueWriter, PagerFilter pagerFilter) throws IOException, SearchException
SearchRequestViewBodyWriterUtil
SingleIssueWriter
interface specifying how a single Issue should be written to
the display. It uses the details provided by the AbstractIssueView
to write
the response.writeBody
in interface SearchRequestViewBodyWriterUtil
writer
- used to stream the response to.issueView
- contains the details of how a single issue should be written (i.e.: HTML for header, body and footer)searchRequest
- The original searchRequest that defines the issues to be viewed.singleIssueWriter
- Provides a callback method that is defined in the specific SearchRequestViews. It will
be invoked to write the issue to the writer.pagerFilter
- Used to limit the number of issues being written.IOException
- if things are seriously wrongSearchException
- if there is something wrong with the SearchRequestpublic void writeTableBody(Writer writer, IssueTableWriter issueTableWriter, SearchRequest searchRequest, PagerFilter pagerFilter) throws IOException, SearchException
SearchRequestViewBodyWriterUtil
IssueTableWriter
interface specifying how a single Issue should be written to
the display.writeTableBody
in interface SearchRequestViewBodyWriterUtil
writer
- used to stream the response to.issueTableWriter
- Defines how a single issue is displayed in a table view.searchRequest
- The original searchRequest that defines the issues to be viewed.
be invoked to write the issue to the writer.pagerFilter
- Used to limit the number of issues being written.IOException
- if things are seriously wrongSearchException
- if there is something wrong with the SearchRequestpublic List<Integer> searchAndSort(SearchRequest searchRequest, PagerFilter pagerFilter) throws SearchException
SearchRequestViewBodyWriterUtil
searchAndSort
in interface SearchRequestViewBodyWriterUtil
searchRequest
- that defines the issues to be viewed.pagerFilter
- Used to limit the number of issues being writtenSearchException
- if there is something wrong with the SearchRequestpublic long searchCount(SearchRequest searchRequest) throws SearchException
SearchRequestViewBodyWriterUtil
searchCount
in interface SearchRequestViewBodyWriterUtil
searchRequest
- The original searchRequest that defines the issues to be viewed.SearchException
- if there is something wrong with the SearchRequestCopyright © 2002-2019 Atlassian. All Rights Reserved.