Class ExportImportService
java.lang.Object
com.gooddata.sdk.service.AbstractService
com.gooddata.sdk.service.md.maintenance.ExportImportService
Service providing metadata export/import tasks.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.gooddata.sdk.service.AbstractService
AbstractService.OutputStreamResponseExtractor -
Field Summary
Fields inherited from class com.gooddata.sdk.service.AbstractService
mapper, restTemplate -
Constructor Summary
ConstructorsConstructorDescriptionExportImportService(org.springframework.web.client.RestTemplate restTemplate, GoodDataSettings settings) -
Method Summary
Modifier and TypeMethodDescriptionexportProject(Project project, ExportProject export) Exports complete project and returns token identifying this exportimportProject(Project project, ExportProjectToken exportToken) Imports complete project based on given tokenpartialExport(Project project, PartialMdExport export) Exports partial metadata from project and returns token identifying this exportpartialImport(Project project, PartialMdExportToken mdExportToken) Imports partial metadata to project based on given tokenMethods inherited from class com.gooddata.sdk.service.AbstractService
extractData
-
Constructor Details
-
ExportImportService
public ExportImportService(org.springframework.web.client.RestTemplate restTemplate, GoodDataSettings settings)
-
-
Method Details
-
partialExport
Exports partial metadata from project and returns token identifying this export- Parameters:
project- project from which metadata should be exportedexport- export configuration to execute- Returns:
FutureResultof the task containing token identifying partial export after the task is completed- Throws:
ExportImportException- when export resource call fails, polling on export status fails or export status is ERROR
-
partialImport
Imports partial metadata to project based on given token- Parameters:
project- project to which metadata should be importedmdExportToken- export token to be imported- Returns:
FutureResultof the task- Throws:
ExportImportException- when import resource call fails, polling on import status fails or import status is ERROR
-
exportProject
Exports complete project and returns token identifying this export- Parameters:
project- project from which metadata should be exportedexport- export configuration to execute- Returns:
FutureResultof the task containing token identifying export after the task is completed- Throws:
ExportImportException- when export resource call fails, polling on export status fails or export status is ERROR
-
importProject
Imports complete project based on given token- Parameters:
project- project to which metadata should be importedexportToken- export token to be imported- Returns:
FutureResultof the task- Throws:
ExportImportException- when import resource call fails, polling on import status fails or import status is ERROR
-