Class RepositoryExportServiceImpl
java.lang.Object
com.atlassian.bamboo.configuration.external.RepositoryExportServiceImpl
- All Implemented Interfaces:
RepositoryExportService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryPropertiesconvertYamlRepository(@NotNull String yaml) Converts data from a YAML file to credential export properties.Export all linked repositories to default location in Bamboo home dir.exportLinkedRepository(@NotNull VcsRepositoryData repositoryData) Export a linked repository to default location in Bamboo home dir.@NotNull PartialVcsRepositoryDataimportRepository(@NotNull com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties repositoryProperties) Validates exported linked/project repository properties within Bamboo context (e.g. verifying database integrity), then imports the data into the database.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.configuration.external.RepositoryExportService
importLinkedRepository
-
Constructor Details
-
RepositoryExportServiceImpl
public RepositoryExportServiceImpl()
-
-
Method Details
-
exportAllLinkedRepositories
Description copied from interface:RepositoryExportServiceExport all linked repositories to default location in Bamboo home dir.- Specified by:
exportAllLinkedRepositoriesin interfaceRepositoryExportService- Returns:
- paths to files updated by export process
-
exportLinkedRepository
@NotNull public @NotNull Iterable<Path> exportLinkedRepository(@NotNull @NotNull VcsRepositoryData repositoryData) Description copied from interface:RepositoryExportServiceExport a linked repository to default location in Bamboo home dir.- Specified by:
exportLinkedRepositoryin interfaceRepositoryExportService- Returns:
- paths to files updated by export process
-
convertYamlRepository
@NotNull public @NotNull com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties convertYamlRepository(@NotNull @NotNull String yaml) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, YamlValidationException Description copied from interface:RepositoryExportServiceConverts data from a YAML file to credential export properties. The file under the given path must exist on the same machine as Bamboo Server is running, and must be readable. This method performs validation of YAML types and of the properties without Bamboo context (e.g. no database integrity is verified).- Specified by:
convertYamlRepositoryin interfaceRepositoryExportService- Parameters:
yaml- path to YAML file containing definition of shared credential- Returns:
- credential properties after contextless validation
- Throws:
com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException- if the imported properties were not validYamlValidationException- if the format of the YAML file is invalid
-
importRepository
@NotNull public @NotNull PartialVcsRepositoryData importRepository(@NotNull @NotNull com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties repositoryProperties) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, UnauthorisedException Description copied from interface:RepositoryExportServiceValidates exported linked/project repository properties within Bamboo context (e.g. verifying database integrity), then imports the data into the database.- Specified by:
importRepositoryin interfaceRepositoryExportService- Parameters:
repositoryProperties- repository properties to import- Returns:
- saved linked/project repository entity
- Throws:
com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException- if data validation failsUnauthorisedException
-