public abstract class DownloadExporter<T> extends HTMLExporter implements FileReportingExporter<T>
ROW_STYLE_HIDDEN
Constructor and Description |
---|
DownloadExporter() |
Modifier and Type | Method and Description |
---|---|
void |
download(HttpServletRequest req,
HttpServletResponse res)
Implement this method to provide download.
|
String |
getClientSideRenderer() |
protected Object |
getData(Query q,
ReportingTableModel tm)
Deprecated.
since version 9.0, Use getDataObject
|
byte[] |
getDataBytes(T dataObject)
Deprecated.
since 9.0 use getDataStream
|
abstract T |
getDataObject(Query q,
ReportingTableModel tm)
returns the Object which is generated by this Exporter
called by abstract Class DownloadExpoerter
|
InputStream |
getDataStream(Query q,
ReportingTableModel tm) |
JSONArray |
getExportOptionsJSON()
add configureable fields...
|
protected String |
getFileName()
gets the filename from the request or the session
|
protected String |
getFileName(Query q) |
protected TableModel |
getResultTableModel(Query q,
ReportingTableModel tm)
Deprecated.
|
List<Map<String,Object>> |
toJson(Query q,
ReportingTableModel tm) |
addConfigOptions, export, generateMatrixTable, getComponentData, getExportName, getHeaderInfos, getId, getLineStyles, getPage, getResultDetailsJson, getToolbarActions, isJsonExport
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFileTypeExtension
addConfigOptions, export, getExportName
protected final String getFileName()
@Deprecated protected TableModel getResultTableModel(Query q, ReportingTableModel tm)
HTMLExporter
TableRenderer
may handle.
Overwrite this method if the exporter should display the results in html to ensure compatibility with toolbar actionsgetResultTableModel
in class HTMLExporter
q
- The query objecttm
- The Reporting results
return a Tablemodel implementation that the TableRenderer is able to transform to a TableContainer
.public List<Map<String,Object>> toJson(Query q, ReportingTableModel tm)
toJson
in interface ClientSideExporter
toJson
in class HTMLExporter
public String getClientSideRenderer()
getClientSideRenderer
in interface ClientSideExporter
getClientSideRenderer
in class HTMLExporter
@Deprecated protected Object getData(Query q, ReportingTableModel tm)
q
- tm
- public InputStream getDataStream(Query q, ReportingTableModel tm)
getDataStream
in interface FileReportingExporter<T>
public abstract T getDataObject(Query q, ReportingTableModel tm)
q
- the executed querytm
- the result tablemodel@Deprecated public byte[] getDataBytes(T dataObject)
dataObject
- the result of getDataObjectpublic void download(HttpServletRequest req, HttpServletResponse res)
HttpSession
Paramters "queryid"+timestamp and "querydata"+timestamp
Note: Set the correct Contenttype and length of response.req
- the download requestres
- the resonse objectpublic JSONArray getExportOptionsJSON()
ReportingExporter
getExportOptionsJSON
in interface ReportingExporter
getExportOptionsJSON
in class HTMLExporter
@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.