public class ExportService extends AbstractService
ReportServiceAbstractService.OutputStreamResponseExtractor| Modifier and Type | Field and Description |
|---|---|
static String |
EXPORTING_URI |
mapper, restTemplate| Constructor and Description |
|---|
ExportService(org.springframework.web.client.RestTemplate restTemplate,
GoodDataEndpoint endpoint)
Deprecated.
use ExportService(RestTemplate, GoodDataEndpoint, GoodDataSettings) constructor instead
|
ExportService(org.springframework.web.client.RestTemplate restTemplate,
GoodDataEndpoint endpoint,
GoodDataSettings settings)
Service for data export
|
| Modifier and Type | Method and Description |
|---|---|
protected com.fasterxml.jackson.databind.JsonNode |
executeReport(String executionUri,
ReportRequest request) |
FutureResult<Void> |
export(ReportDefinition reportDefinition,
ExportFormat format,
OutputStream output)
Export the given report definition in the given format to the given output stream
|
FutureResult<Void> |
export(Report report,
ExportFormat format,
OutputStream output)
Export the given report in the given format to the given output stream
|
FutureResult<Void> |
exportCsv(ReportDefinition definition,
OutputStream output)
Export the given Report Definition using the raw export (without columns/rows limitations)
|
FutureResult<Void> |
exportCsv(Report report,
OutputStream output)
Export the given Report using the raw export (without columns/rows limitations)
|
FutureResult<Void> |
exportPdf(ProjectDashboard dashboard,
ProjectDashboard.Tab tab,
OutputStream output)
Export the given dashboard tab in PDF format to the given output stream
|
extractDatapublic static final String EXPORTING_URI
public ExportService(org.springframework.web.client.RestTemplate restTemplate,
GoodDataEndpoint endpoint,
GoodDataSettings settings)
restTemplate - REST templateendpoint - GoodData Endpointsettings - settings@Deprecated public ExportService(org.springframework.web.client.RestTemplate restTemplate, GoodDataEndpoint endpoint)
restTemplate - REST templateendpoint - GoodData Endpointpublic FutureResult<Void> export(ReportDefinition reportDefinition, ExportFormat format, OutputStream output)
reportDefinition - report definitionformat - export formatoutput - targetNoDataExportException - in case report contains no dataExportException - on errorpublic FutureResult<Void> export(Report report, ExportFormat format, OutputStream output)
report - reportformat - export formatoutput - targetNoDataExportException - in case report contains no dataExportException - on errorprotected com.fasterxml.jackson.databind.JsonNode executeReport(String executionUri, ReportRequest request)
public FutureResult<Void> exportPdf(ProjectDashboard dashboard, ProjectDashboard.Tab tab, OutputStream output)
dashboard - dashboardtab - taboutput - outputExportException - if export failspublic FutureResult<Void> exportCsv(Report report, OutputStream output)
report - reportoutput - outputExportException - in case export failspublic FutureResult<Void> exportCsv(ReportDefinition definition, OutputStream output)
definition - report definitionoutput - outputExportException - in case export failsCopyright © 2019. All rights reserved.