public class RepositoryExporterImpl extends Object implements RepositoryExporter
Constructor and Description |
---|
RepositoryExporterImpl() |
Modifier and Type | Method and Description |
---|---|
PartialVcsRepositoryData |
importRepository(com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties repositoryProperties,
VcsRepositoryData existingData,
boolean global)
Transform repository properties to format used by Bamboo services.
|
com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties |
toEntityProperties(String yaml)
Generate
VcsRepositoryProperties from YAML string |
com.atlassian.bamboo.specs.api.builders.repository.VcsRepository |
toSpecsEntity(PartialVcsRepositoryData repositoryData) |
<T extends com.atlassian.bamboo.specs.api.builders.repository.VcsRepository<T,E>,E extends com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties> |
toSpecsEntity(VcsRepositoryData repositoryData) |
@NotNull public com.atlassian.bamboo.specs.api.builders.repository.VcsRepository toSpecsEntity(@NotNull PartialVcsRepositoryData repositoryData)
toSpecsEntity
in interface RepositoryExporter
@NotNull public <T extends com.atlassian.bamboo.specs.api.builders.repository.VcsRepository<T,E>,E extends com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties> T toSpecsEntity(@NotNull VcsRepositoryData repositoryData)
toSpecsEntity
in interface RepositoryExporter
@NotNull public com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties toEntityProperties(@NotNull String yaml) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, YamlValidationException
RepositoryExporter
VcsRepositoryProperties
from YAML stringtoEntityProperties
in interface RepositoryExporter
com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
YamlValidationException
@NotNull public PartialVcsRepositoryData importRepository(@NotNull com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties repositoryProperties, @Nullable VcsRepositoryData existingData, boolean global) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, YamlValidationException
RepositoryExporter
importRepository
in interface RepositoryExporter
repositoryProperties
- configuration of repositoryexistingData
- previously existing repository dataglobal
- is repository globalcom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if data validation failsYamlValidationException
- if the format of the data is invalid - only discoverable at this stage
because pluggable code is involved in validationCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.