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,
VcsRepositoryData parentDataArg,
boolean global,
com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryBranchProperties branchOverride,
VcsRepositoryContext repositoryContext)
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,
VcsRepositoryContext repositoryContext) |
<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,
VcsRepositoryContext repositoryContext) |
Pair<com.atlassian.bamboo.specs.api.builders.repository.VcsRepository,com.atlassian.bamboo.specs.api.builders.repository.VcsRepositoryBranch> |
toSpecsEntityAndBranchOverride(PartialVcsRepositoryData repositoryData,
VcsRepositoryContext repositoryContext)
Export repository to pair of repository specs objects and (optionally) branch override object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
importRepository
@NotNull public com.atlassian.bamboo.specs.api.builders.repository.VcsRepository toSpecsEntity(@NotNull PartialVcsRepositoryData repositoryData, @NotNull VcsRepositoryContext repositoryContext)
toSpecsEntity
in interface RepositoryExporter
@NotNull public Pair<com.atlassian.bamboo.specs.api.builders.repository.VcsRepository,com.atlassian.bamboo.specs.api.builders.repository.VcsRepositoryBranch> toSpecsEntityAndBranchOverride(@NotNull PartialVcsRepositoryData repositoryData, @NotNull VcsRepositoryContext repositoryContext)
RepositoryExporter
toSpecsEntityAndBranchOverride
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, @NotNull VcsRepositoryContext repositoryContext)
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, @Nullable VcsRepositoryData parentDataArg, boolean global, @Nullable com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryBranchProperties branchOverride, @NotNull VcsRepositoryContext repositoryContext) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, YamlValidationException
RepositoryExporter
importRepository
in interface RepositoryExporter
repositoryProperties
- configuration of repositoryexistingData
- previously existing repository dataglobal
- is repository globalbranchOverride
- branch to be used.com.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 © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.