Class ExportImportService

java.lang.Object
com.gooddata.sdk.service.AbstractService
com.gooddata.sdk.service.md.maintenance.ExportImportService

public class ExportImportService extends AbstractService
Service providing metadata export/import tasks.
  • Constructor Details

    • ExportImportService

      public ExportImportService(org.springframework.web.client.RestTemplate restTemplate, GoodDataSettings settings)
  • Method Details

    • partialExport

      public FutureResult<PartialMdExportToken> partialExport(Project project, PartialMdExport export)
      Exports partial metadata from project and returns token identifying this export
      Parameters:
      project - project from which metadata should be exported
      export - export configuration to execute
      Returns:
      FutureResult of 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

      public FutureResult<Void> partialImport(Project project, PartialMdExportToken mdExportToken)
      Imports partial metadata to project based on given token
      Parameters:
      project - project to which metadata should be imported
      mdExportToken - export token to be imported
      Returns:
      FutureResult of the task
      Throws:
      ExportImportException - when import resource call fails, polling on import status fails or import status is ERROR
    • exportProject

      public FutureResult<ExportProjectToken> exportProject(Project project, ExportProject export)
      Exports complete project and returns token identifying this export
      Parameters:
      project - project from which metadata should be exported
      export - export configuration to execute
      Returns:
      FutureResult of 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

      public FutureResult<Void> importProject(Project project, ExportProjectToken exportToken)
      Imports complete project based on given token
      Parameters:
      project - project to which metadata should be imported
      exportToken - export token to be imported
      Returns:
      FutureResult of the task
      Throws:
      ExportImportException - when import resource call fails, polling on import status fails or import status is ERROR