Package com.groiss.reporting.export
Class DelimiterSeperatedValuesExporter
java.lang.Object
com.groiss.reporting.export.HTMLExporter
com.groiss.reporting.export.DownloadExporter<Pair<String,String>>
com.groiss.reporting.export.DelimiterSeperatedValuesExporter
- All Implemented Interfaces:
ClientSideExporter
,FileReportingExporter
,ReportingExporter
An Exporter for creating tables in csv format.
-
Field Summary
Fields inherited from interface com.groiss.reporting.export.ReportingExporter
ROW_STYLE_HIDDEN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
download
(HttpServletRequest req, HttpServletResponse res) Implement this method to provide download.export
(ReportingTableModel tm, Query q) returns the Object which is generated by this Exporter called by abstract Class DownloadExpoerteradd configureable fields...protected CSVSettings
Methods inherited from class com.groiss.reporting.export.DownloadExporter
getClientSideRenderer, getDataStream, getFileName, getFileName, toJson
Methods inherited from class com.groiss.reporting.export.HTMLExporter
generateMatrixTable, getHeaderInfos, getResultDetailsJson
-
Field Details
-
delimiter
-
charset
-
-
Constructor Details
-
DelimiterSeperatedValuesExporter
public DelimiterSeperatedValuesExporter()
-
-
Method Details
-
getExportOptionsJSON
Description copied from interface:ReportingExporter
add configureable fields...- Specified by:
getExportOptionsJSON
in interfaceReportingExporter
- Overrides:
getExportOptionsJSON
in classDownloadExporter<Pair<String,
String>> - Returns:
- jsonarray which contains jsonobjects which have at leaast an id, a label and an implementing widget
-
getDataObject
Description copied from class:DownloadExporter
returns the Object which is generated by this Exporter called by abstract Class DownloadExpoerter- Specified by:
getDataObject
in classDownloadExporter<Pair<String,
String>> - Parameters:
q
- the executed querytm
- the result tablemodel- Returns:
- the object representing - mostly a path to a temp file
-
export
-
download
Description copied from class:DownloadExporter
Implement this method to provide download. Obtain a timestamp from request parameter time and retrieve the queryid and the data object of the getData methodHttpSession
Paramters "queryid"+timestamp and "querydata"+timestamp Note: Set the correct Contenttype and length of response.- Overrides:
download
in classDownloadExporter<Pair<String,
String>> - Parameters:
req
- the download requestres
- the response object
-
getSettings
-
getExportName
Description copied from class:HTMLExporter
- Specified by:
getExportName
in interfaceReportingExporter
- Overrides:
getExportName
in classHTMLExporter
- Returns:
- the I18N name of the exporter
-
getFileTypeExtension
- Returns:
- the extension of the generated file
-