Package com.gooddata.export
Class ExportService
- java.lang.Object
-
- com.gooddata.AbstractService
-
- com.gooddata.export.ExportService
-
public class ExportService extends AbstractService
Export project data- See Also:
ReportService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.gooddata.AbstractService
AbstractService.OutputStreamResponseExtractor
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXPORTING_URI-
Fields inherited from class com.gooddata.AbstractService
mapper, restTemplate
-
-
Constructor Summary
Constructors Constructor Description ExportService(org.springframework.web.client.RestTemplate restTemplate, GoodDataEndpoint endpoint)Deprecated.use ExportService(RestTemplate, GoodDataEndpoint, GoodDataSettings) constructor insteadExportService(org.springframework.web.client.RestTemplate restTemplate, GoodDataEndpoint endpoint, GoodDataSettings settings)Service for data export
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.fasterxml.jackson.databind.JsonNodeexecuteReport(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 streamFutureResult<Void>export(Report report, ExportFormat format, OutputStream output)Export the given report in the given format to the given output streamFutureResult<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-
Methods inherited from class com.gooddata.AbstractService
extractData
-
-
-
-
Field Detail
-
EXPORTING_URI
public static final String EXPORTING_URI
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExportService
public ExportService(org.springframework.web.client.RestTemplate restTemplate, GoodDataEndpoint endpoint, GoodDataSettings settings)Service for data export- Parameters:
restTemplate- REST templateendpoint- GoodData Endpointsettings- settings
-
ExportService
@Deprecated public ExportService(org.springframework.web.client.RestTemplate restTemplate, GoodDataEndpoint endpoint)
Deprecated.use ExportService(RestTemplate, GoodDataEndpoint, GoodDataSettings) constructor insteadService for data export- Parameters:
restTemplate- REST templateendpoint- GoodData Endpoint
-
-
Method Detail
-
export
public FutureResult<Void> export(ReportDefinition reportDefinition, ExportFormat format, OutputStream output)
Export the given report definition in the given format to the given output stream- Parameters:
reportDefinition- report definitionformat- export formatoutput- target- Returns:
- polling result
- Throws:
NoDataExportException- in case report contains no dataExportException- on error
-
export
public FutureResult<Void> export(Report report, ExportFormat format, OutputStream output)
Export the given report in the given format to the given output stream- Parameters:
report- reportformat- export formatoutput- target- Returns:
- polling result
- Throws:
NoDataExportException- in case report contains no dataExportException- on error
-
executeReport
protected com.fasterxml.jackson.databind.JsonNode executeReport(String executionUri, ReportRequest request)
-
exportPdf
public FutureResult<Void> exportPdf(ProjectDashboard dashboard, ProjectDashboard.Tab tab, OutputStream output)
Export the given dashboard tab in PDF format to the given output stream- Parameters:
dashboard- dashboardtab- taboutput- output- Returns:
- polling result
- Throws:
ExportException- if export fails
-
exportCsv
public FutureResult<Void> exportCsv(Report report, OutputStream output)
Export the given Report using the raw export (without columns/rows limitations)- Parameters:
report- reportoutput- output- Returns:
- polling result
- Throws:
ExportException- in case export fails
-
exportCsv
public FutureResult<Void> exportCsv(ReportDefinition definition, OutputStream output)
Export the given Report Definition using the raw export (without columns/rows limitations)- Parameters:
definition- report definitionoutput- output- Returns:
- polling result
- Throws:
ExportException- in case export fails
-
-