public class DefaultVcsRepositoryDataExporter extends Object implements VcsRepositoryDataExporter<com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository,com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties>
YAML_TYPE
Constructor and Description |
---|
DefaultVcsRepositoryDataExporter() |
Modifier and Type | Method and Description |
---|---|
@NotNull com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository |
appendBranchData(@NotNull com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository builder,
@NotNull VcsBranchDefinition vcsBranchDefinition)
Fill in the builder passed as the first argument with vcs branch data.
|
@NotNull com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository |
appendBranchDetectionOptions(@NotNull com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository builder,
@NotNull VcsBranchDetectionOptions branchDetectionOptions)
Fill in the builder passed as the first argument with branch detection configuration.
|
@NotNull com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository |
appendChangeDetectionOptions(@NotNull com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository builder,
@NotNull VcsChangeDetectionOptions changeDetectionOptions)
Fill in the builder passed as the first argument with change detection configuration.
|
@NotNull com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository |
appendLocationData(@NotNull com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository builder,
@NotNull VcsLocationDefinition vcsLocationDefinition,
@NotNull VcsRepositoryContext repositoryContext)
Fill in the builder passed as the first argument with vcs server data.
|
static com.atlassian.bamboo.specs.api.builders.repository.VcsChangeDetection |
exportStandardChangeDetectionOptions(@NotNull VcsChangeDetectionOptions changeDetectionOptions) |
@Nullable com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository |
fromYaml(@NotNull String name,
@NotNull Node node,
@NotNull TaskValidationContext validationContext) |
@NotNull com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository |
getEntityPropertiesBuilder(@NotNull VcsRepositoryData repositoryData)
Create empty instance of a properties builder appropriate for the exported repository data.
|
@NotNull Map<String,String> |
importBranchData(@NotNull com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties properties,
@Nullable VcsBranchDefinition existingData)
Extract branch configuration from properties object.
|
@NotNull Map<String,String> |
importBranchDetectionOptions(@NotNull com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties properties,
@Nullable VcsBranchDetectionOptions existingData)
Extract branch detection configuration from properties object.
|
@NotNull Map<String,String> |
importChangeDetectionOptions(@NotNull com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties properties,
@Nullable VcsChangeDetectionOptions existingData)
Extract change detection configuration from properties object.
|
@NotNull Map<String,String> |
importLocationData(@NotNull com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties properties,
@Nullable VcsLocationDefinition existingData,
@NotNull VcsRepositoryContext repositoryContext)
Extract vcs location configuration from properties object.
|
static @Nullable Map<String,String> |
importStandardChangeDetectionOptions(@NotNull com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties repositoryProperties,
@Nullable com.atlassian.bamboo.specs.api.model.repository.VcsChangeDetectionProperties cdOptionInput) |
@Nullable Node |
toYaml(@NotNull com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties repo) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendLocationData, importBambooSpecsDetectionOptions, importLocationData
@NotNull public @NotNull com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository getEntityPropertiesBuilder(@NotNull @NotNull VcsRepositoryData repositoryData)
VcsRepositoryDataExporter
getEntityPropertiesBuilder
in interface VcsRepositoryDataExporter<com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository,com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties>
@NotNull public @NotNull com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository appendLocationData(@NotNull @NotNull com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository builder, @NotNull @NotNull VcsLocationDefinition vcsLocationDefinition, @NotNull @NotNull VcsRepositoryContext repositoryContext)
VcsRepositoryDataExporter
appendLocationData
in interface VcsRepositoryDataExporter<com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository,com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties>
@NotNull public @NotNull com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository appendBranchData(@NotNull @NotNull com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository builder, @NotNull @NotNull VcsBranchDefinition vcsBranchDefinition)
VcsRepositoryDataExporter
appendBranchData
in interface VcsRepositoryDataExporter<com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository,com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties>
@NotNull public @NotNull com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository appendChangeDetectionOptions(@NotNull @NotNull com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository builder, @NotNull @NotNull VcsChangeDetectionOptions changeDetectionOptions)
VcsRepositoryDataExporter
appendChangeDetectionOptions
in interface VcsRepositoryDataExporter<com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository,com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties>
@NotNull public @NotNull com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository appendBranchDetectionOptions(@NotNull @NotNull com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository builder, @NotNull @NotNull VcsBranchDetectionOptions branchDetectionOptions)
VcsRepositoryDataExporter
appendBranchDetectionOptions
in interface VcsRepositoryDataExporter<com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository,com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties>
@NotNull public @NotNull Map<String,String> importLocationData(@NotNull @NotNull com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties properties, @Nullable @Nullable VcsLocationDefinition existingData, @NotNull @NotNull VcsRepositoryContext repositoryContext)
VcsRepositoryDataExporter
importLocationData
in interface VcsRepositoryDataExporter<com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository,com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties>
@NotNull public @NotNull Map<String,String> importBranchData(@NotNull @NotNull com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties properties, @Nullable @Nullable VcsBranchDefinition existingData)
VcsRepositoryDataExporter
importBranchData
in interface VcsRepositoryDataExporter<com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository,com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties>
@NotNull public @NotNull Map<String,String> importChangeDetectionOptions(@NotNull @NotNull com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties properties, @Nullable @Nullable VcsChangeDetectionOptions existingData)
VcsRepositoryDataExporter
importChangeDetectionOptions
in interface VcsRepositoryDataExporter<com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository,com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties>
@NotNull public @NotNull Map<String,String> importBranchDetectionOptions(@NotNull @NotNull com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties properties, @Nullable @Nullable VcsBranchDetectionOptions existingData)
VcsRepositoryDataExporter
importBranchDetectionOptions
in interface VcsRepositoryDataExporter<com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository,com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties>
@Nullable public static @Nullable Map<String,String> importStandardChangeDetectionOptions(@NotNull @NotNull com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties repositoryProperties, @Nullable @Nullable com.atlassian.bamboo.specs.api.model.repository.VcsChangeDetectionProperties cdOptionInput)
public static com.atlassian.bamboo.specs.api.builders.repository.VcsChangeDetection exportStandardChangeDetectionOptions(@NotNull @NotNull VcsChangeDetectionOptions changeDetectionOptions)
@Nullable public @Nullable Node toYaml(@NotNull @NotNull com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties repo) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
toYaml
in interface VcsRepositoryDataExporter<com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository,com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties>
com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
@Nullable public @Nullable com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository fromYaml(@NotNull @NotNull String name, @NotNull @NotNull Node node, @NotNull @NotNull TaskValidationContext validationContext) throws YamlSpecsValidationException
fromYaml
in interface VcsRepositoryDataExporter<com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository,com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties>
YamlSpecsValidationException
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.