Package com.gooddata.sdk.service.export
Class ExportService
java.lang.Object
com.gooddata.sdk.service.AbstractService
com.gooddata.sdk.service.export.ExportService
Export project data
-
Nested Class Summary
Nested classes/interfaces inherited from class com.gooddata.sdk.service.AbstractService
AbstractService.OutputStreamResponseExtractor -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final org.springframework.web.util.UriTemplatestatic final org.springframework.web.util.UriTemplateFields inherited from class com.gooddata.sdk.service.AbstractService
mapper, restTemplate -
Constructor Summary
ConstructorsConstructorDescriptionExportService(org.springframework.web.client.RestTemplate restTemplate, GoodDataSettings settings) Service for data export -
Method Summary
Modifier and TypeMethodDescriptionprotected com.fasterxml.jackson.databind.JsonNodeexecuteReport(String executionUri, ReportRequest request) export(ReportDefinition reportDefinition, ExportFormat format, OutputStream output) Export the given report definition in the given format to the given output streamexport(Report report, ExportFormat format, OutputStream output) Export the given report in the given format to the given output streamexportCsv(ReportDefinition definition, OutputStream output) Export the given Report Definition using the raw export (without columns/rows limitations)exportCsv(Report report, OutputStream output) Export the given Report using the raw export (without columns/rows limitations)exportPdf(GoodDataEndpoint endpoint, ProjectDashboard dashboard, ProjectDashboard.Tab tab, OutputStream output) Export the given dashboard tab in PDF format to the given output streamMethods inherited from class com.gooddata.sdk.service.AbstractService
extractData
-
Field Details
-
EXPORTING_URI
- See Also:
-
OBJ_TEMPLATE
public static final org.springframework.web.util.UriTemplate OBJ_TEMPLATE -
PROJECT_TEMPLATE
public static final org.springframework.web.util.UriTemplate PROJECT_TEMPLATE
-
-
Constructor Details
-
ExportService
public ExportService(org.springframework.web.client.RestTemplate restTemplate, GoodDataSettings settings) Service for data export- Parameters:
restTemplate- REST templatesettings- settings
-
-
Method Details
-
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
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(GoodDataEndpoint endpoint, ProjectDashboard dashboard, ProjectDashboard.Tab tab, OutputStream output) Export the given dashboard tab in PDF format to the given output stream- Parameters:
endpoint- endpoint for which the export is generateddashboard- dashboardtab- taboutput- output- Returns:
- polling result
- Throws:
ExportException- if export fails
-
exportCsv
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
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
-