public abstract class AbstractCsvSearchRequestView extends AbstractSearchRequestView
Modifier and Type | Field and Description |
---|---|
protected CsvIssueExporter |
csvIssueExporter |
descriptor
Constructor and Description |
---|
AbstractCsvSearchRequestView(ApplicationProperties applicationProperties,
CsvIssueExporter csvIssueExporter) |
Modifier and Type | Method and Description |
---|---|
protected abstract List<Field> |
getFieldsToBeExported(SearchRequest searchRequest)
Get the fields that should be exported for this Csv export.
|
void |
writeHeaders(SearchRequest searchRequest,
RequestHeaders requestHeaders,
SearchRequestParams searchRequestParams)
By default we don't care about the user agent
|
void |
writeSearchResults(SearchRequest searchRequest,
SearchRequestParams searchRequestParams,
Writer writer)
Responsible for writing out the searchResults including Headers and Footers of the implementing view type.
|
init, writeHeaders
protected final CsvIssueExporter csvIssueExporter
public AbstractCsvSearchRequestView(ApplicationProperties applicationProperties, CsvIssueExporter csvIssueExporter)
public void writeHeaders(SearchRequest searchRequest, RequestHeaders requestHeaders, SearchRequestParams searchRequestParams)
AbstractSearchRequestView
writeHeaders
in interface SearchRequestView
writeHeaders
in class AbstractSearchRequestView
searchRequest
- the original search request submitted by the userrequestHeaders
- subset of HttpServletResponse responsible for setting headers onlysearchRequestParams
- context about the current search requestpublic void writeSearchResults(SearchRequest searchRequest, SearchRequestParams searchRequestParams, Writer writer) throws SearchException
SearchRequestView
writeSearchResults
in interface SearchRequestView
writeSearchResults
in class AbstractSearchRequestView
searchRequest
- the original search request submitted by the usersearchRequestParams
- stores a shallow copy of the session and a pagerfilter to determine how many results to displaywriter
- The writer used to stream the response.SearchException
- Exceptions occured while trying to peform a search on the SearchRequest
protected abstract List<Field> getFieldsToBeExported(SearchRequest searchRequest)
searchRequest
- to do search onCopyright © 2002-2021 Atlassian. All Rights Reserved.