Class LegacyRepositoryConfigurationExporter
java.lang.Object
com.atlassian.bamboo.vcs.configuration.legacy.LegacyExecutorBase
com.atlassian.bamboo.vcs.configuration.legacy.configurator.LegacyVcsLocationConfigurator
com.atlassian.bamboo.vcs.configuration.legacy.configurator.LegacyRepositoryConfigurationExporter
- All Implemented Interfaces:
VcsLocationConfigurator
,VcsRepositoryDataExporter<com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository,
com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties>
public class LegacyRepositoryConfigurationExporter
extends LegacyVcsLocationConfigurator
implements VcsRepositoryDataExporter<com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository,com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties>
-
Field Summary
Fields inherited from class com.atlassian.bamboo.vcs.configuration.legacy.configurator.LegacyVcsLocationConfigurator
LEGACY_XML
Fields inherited from class com.atlassian.bamboo.vcs.configuration.legacy.LegacyExecutorBase
repositoryModuleDescriptor
Fields inherited from interface com.atlassian.bamboo.vcs.export.VcsRepositoryDataExporter
YAML_TYPE
-
Constructor Summary
ConstructorDescriptionLegacyRepositoryConfigurationExporter
(RepositoryModuleDescriptor repositoryModuleDescriptor) -
Method Summary
Modifier and TypeMethodDescription@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.@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.importBranchData
(@NotNull com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties properties, @Nullable VcsBranchDefinition existingData) Extract branch configuration from properties object.importBranchDetectionOptions
(@NotNull com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties properties, @Nullable VcsBranchDetectionOptions existingData) Extract branch detection configuration from properties object.importChangeDetectionOptions
(@NotNull com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties properties, @Nullable VcsChangeDetectionOptions existingData) Extract change detection configuration from properties object.importLocationData
(@NotNull com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties properties, @Nullable VcsLocationDefinition existingData, @NotNull VcsRepositoryContext repositoryContext) Extract vcs location configuration from properties object.Methods inherited from class com.atlassian.bamboo.vcs.configuration.legacy.configurator.LegacyVcsLocationConfigurator
addDefaultsForAdvancedOptions, generateConfigMap, getLocationIdentifier, getRepositoryInstance, getScmType, getServerHost, getSharedCredentialsIds, populateContextForCreate, populateContextForEdit, populateContextForView, validate, validateForConnectionTesting
Methods inherited from class com.atlassian.bamboo.vcs.configuration.legacy.LegacyExecutorBase
getNewRepositoryInstance, getNewRepositoryInstanceAs, getRepositoryInstance, getRepositoryInstanceAs, xmlToConfiguration
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.vcs.configurator.VcsLocationConfigurator
isWebhookEnabled, setVcsLocationDataInConfig
Methods inherited from interface com.atlassian.bamboo.vcs.export.VcsRepositoryDataExporter
fromYaml, importBambooSpecsDetectionOptions, toYaml
-
Constructor Details
-
LegacyRepositoryConfigurationExporter
-
-
Method Details
-
getEntityPropertiesBuilder
@NotNull public @NotNull com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository getEntityPropertiesBuilder(@NotNull @NotNull VcsRepositoryData repositoryData) Description copied from interface:VcsRepositoryDataExporter
Create empty instance of a properties builder appropriate for the exported repository data.- Specified by:
getEntityPropertiesBuilder
in interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository,
com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties> - Returns:
- instance of a builder
-
appendLocationData
@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) Description copied from interface:VcsRepositoryDataExporter
Fill in the builder passed as the first argument with vcs server data.- Specified by:
appendLocationData
in interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository,
com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties>
-
appendBranchData
@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) Description copied from interface:VcsRepositoryDataExporter
Fill in the builder passed as the first argument with vcs branch data. Return the first argument if not applicable.- Specified by:
appendBranchData
in interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository,
com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties>
-
appendChangeDetectionOptions
@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) Description copied from interface:VcsRepositoryDataExporter
Fill in the builder passed as the first argument with change detection configuration. Return the first argument if not applicable.- Specified by:
appendChangeDetectionOptions
in interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository,
com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties>
-
appendBranchDetectionOptions
@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) Description copied from interface:VcsRepositoryDataExporter
Fill in the builder passed as the first argument with branch detection configuration. Return the first argument if not applicable.- Specified by:
appendBranchDetectionOptions
in interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository,
com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties>
-
importLocationData
@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) Description copied from interface:VcsRepositoryDataExporter
Extract vcs location configuration from properties object. Should return null if respective data is undefined in properties object. If data is returned, it should be validated for correctness and completeness.- Specified by:
importLocationData
in interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository,
com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties> - Returns:
-
importBranchData
@Nullable public @Nullable Map<String,String> importBranchData(@NotNull @NotNull com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties properties, @Nullable @Nullable VcsBranchDefinition existingData) Description copied from interface:VcsRepositoryDataExporter
Extract branch configuration from properties object. Should return null if respective data is undefined in properties object. If data is returned, it should be validated for correctness and completeness.- Specified by:
importBranchData
in interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository,
com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties> - Returns:
-
importChangeDetectionOptions
@Nullable public @Nullable Map<String,String> importChangeDetectionOptions(@NotNull @NotNull com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties properties, @Nullable @Nullable VcsChangeDetectionOptions existingData) Description copied from interface:VcsRepositoryDataExporter
Extract change detection configuration from properties object. Should return null if respective data is undefined in properties object. If data is returned, it should be validated for correctness and completeness.- Specified by:
importChangeDetectionOptions
in interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository,
com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties> - Returns:
-
importBranchDetectionOptions
@NotNull public @NotNull Map<String,String> importBranchDetectionOptions(@NotNull @NotNull com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties properties, @Nullable @Nullable VcsBranchDetectionOptions existingData) Description copied from interface:VcsRepositoryDataExporter
Extract branch detection configuration from properties object. Should return null if respective data is undefined in properties object. If data is returned, it should be validated for correctness and completeness.- Specified by:
importBranchDetectionOptions
in interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.api.builders.repository.AnyVcsRepository,
com.atlassian.bamboo.specs.api.model.repository.AnyVcsRepositoryProperties> - Returns:
-