@ExperimentalApi
public interface VcsRepositoryDataExporter<B extends com.atlassian.bamboo.specs.api.builders.repository.VcsRepository,P extends com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties>
Modifier and Type | Method and Description |
---|---|
B |
appendBranchData(B builder,
@NotNull VcsBranchDefinition vcsBranchDefinition)
Fill in the builder passed as the first argument with vcs branch data.
|
B |
appendBranchDetectionOptions(B builder,
@NotNull VcsBranchDetectionOptions branchDetectionOptions)
Fill in the builder passed as the first argument with branch detection configuration.
|
B |
appendChangeDetectionOptions(B builder,
@NotNull VcsChangeDetectionOptions changeDetectionOptions)
Fill in the builder passed as the first argument with change detection configuration.
|
default B |
appendLocationData(B builder,
@NotNull VcsLocationDefinition vcsLocationDefinition)
Deprecated.
|
B |
appendLocationData(B builder,
@NotNull VcsLocationDefinition vcsLocationDefinition,
@NotNull VcsRepositoryContext repositoryContext)
Fill in the builder passed as the first argument with vcs server data.
|
default B |
fromYaml(@NotNull String name,
@NotNull Node config,
@NotNull TaskValidationContext validationContext) |
B |
getEntityPropertiesBuilder(@NotNull VcsRepositoryData repositoryData)
Create empty instance of a properties builder appropriate for the exported repository data.
|
default @Nullable Map<String,String> |
importBambooSpecsDetectionOptions(P repositoryProperties,
@Nullable VcsBambooSpecsDetectionOptions existingData)
Extract Bamboo Specs detection configuration from properties object.
|
@Nullable Map<String,String> |
importBranchData(P repositoryProperties,
@Nullable VcsBranchDefinition existingData)
Extract branch configuration from properties object.
|
@Nullable Map<String,String> |
importBranchDetectionOptions(P repositoryProperties,
@Nullable VcsBranchDetectionOptions existingData)
Extract branch detection configuration from properties object.
|
@Nullable Map<String,String> |
importChangeDetectionOptions(P repositoryProperties,
@Nullable VcsChangeDetectionOptions existingData)
Extract change detection configuration from properties object.
|
default @Nullable Map<String,String> |
importLocationData(P repositoryProperties,
@Nullable VcsLocationDefinition existingData)
Deprecated.
|
@Nullable Map<String,String> |
importLocationData(P repositoryProperties,
@Nullable VcsLocationDefinition existingData,
@NotNull VcsRepositoryContext repositoryContext)
Extract vcs location configuration from properties object.
|
default @Nullable Node |
toYaml(P repositoryProperties) |
static final String YAML_TYPE
@NotNull B getEntityPropertiesBuilder(@NotNull @NotNull VcsRepositoryData repositoryData)
@Deprecated @NotNull default B appendLocationData(@NotNull B builder, @NotNull @NotNull VcsLocationDefinition vcsLocationDefinition)
appendLocationData(VcsRepository, VcsLocationDefinition, VcsRepositoryContext)
@NotNull B appendLocationData(@NotNull B builder, @NotNull @NotNull VcsLocationDefinition vcsLocationDefinition, @NotNull @NotNull VcsRepositoryContext repositoryContext)
@NotNull B appendBranchData(@NotNull B builder, @NotNull @NotNull VcsBranchDefinition vcsBranchDefinition)
@NotNull B appendChangeDetectionOptions(@NotNull B builder, @NotNull @NotNull VcsChangeDetectionOptions changeDetectionOptions)
@NotNull B appendBranchDetectionOptions(@NotNull B builder, @NotNull @NotNull VcsBranchDetectionOptions branchDetectionOptions)
@Deprecated @Nullable default @Nullable Map<String,String> importLocationData(@NotNull P repositoryProperties, @Nullable @Nullable VcsLocationDefinition existingData)
importLocationData(VcsRepositoryProperties, VcsLocationDefinition, VcsRepositoryContext)
repositoryProperties
- @Nullable @Nullable Map<String,String> importLocationData(@NotNull P repositoryProperties, @Nullable @Nullable VcsLocationDefinition existingData, @NotNull @NotNull VcsRepositoryContext repositoryContext)
repositoryProperties
- @Nullable @Nullable Map<String,String> importBranchData(@NotNull P repositoryProperties, @Nullable @Nullable VcsBranchDefinition existingData)
repositoryProperties
- @Nullable @Nullable Map<String,String> importChangeDetectionOptions(@NotNull P repositoryProperties, @Nullable @Nullable VcsChangeDetectionOptions existingData)
repositoryProperties
- @Nullable @Nullable Map<String,String> importBranchDetectionOptions(@NotNull P repositoryProperties, @Nullable @Nullable VcsBranchDetectionOptions existingData)
repositoryProperties
- @Nullable default @Nullable Map<String,String> importBambooSpecsDetectionOptions(@NotNull P repositoryProperties, @Nullable @Nullable VcsBambooSpecsDetectionOptions existingData)
repositoryProperties
- @Nullable default @Nullable Node toYaml(@NotNull P repositoryProperties) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
@Nullable default B fromYaml(@NotNull @NotNull String name, @NotNull @NotNull Node config, @NotNull @NotNull TaskValidationContext validationContext) throws YamlSpecsValidationException
YamlSpecsValidationException
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.