Class GitConfigurationExporter
- java.lang.Object
-
- com.atlassian.bamboo.plugins.git.v2.exporter.GitConfigurationExporter
-
- All Implemented Interfaces:
VcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.git.GitRepository,com.atlassian.bamboo.specs.model.repository.git.GitRepositoryProperties>
public class GitConfigurationExporter extends Object implements VcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.git.GitRepository,com.atlassian.bamboo.specs.model.repository.git.GitRepositoryProperties>
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.vcs.export.VcsRepositoryDataExporter
YAML_TYPE
-
-
Constructor Summary
Constructors Constructor Description GitConfigurationExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description @NotNull com.atlassian.bamboo.specs.builders.repository.git.GitRepositoryappendBranchData(@NotNull com.atlassian.bamboo.specs.builders.repository.git.GitRepository builder, @NotNull VcsBranchDefinition vcsBranchDefinition)Fill in the builder passed as the first argument with vcs branch data.@NotNull com.atlassian.bamboo.specs.builders.repository.git.GitRepositoryappendBranchDetectionOptions(@NotNull com.atlassian.bamboo.specs.builders.repository.git.GitRepository builder, @NotNull VcsBranchDetectionOptions branchDetectionOptions)Fill in the builder passed as the first argument with branch detection configuration.@NotNull com.atlassian.bamboo.specs.builders.repository.git.GitRepositoryappendChangeDetectionOptions(@NotNull com.atlassian.bamboo.specs.builders.repository.git.GitRepository builder, @NotNull VcsChangeDetectionOptions changeDetectionOptions)Fill in the builder passed as the first argument with change detection configuration.@NotNull com.atlassian.bamboo.specs.builders.repository.git.GitRepositoryappendLocationData(@NotNull com.atlassian.bamboo.specs.builders.repository.git.GitRepository builder, @NotNull VcsLocationDefinition vcsLocationDefinition, @NotNull VcsRepositoryContext repositoryContext)Fill in the builder passed as the first argument with vcs server data.@Nullable com.atlassian.bamboo.specs.builders.repository.git.GitRepositoryfromYaml(@NotNull String name, @NotNull Node node, @NotNull TaskValidationContext validationContext)@NotNull com.atlassian.bamboo.specs.builders.repository.git.GitRepositorygetEntityPropertiesBuilder(@NotNull VcsRepositoryData vcsRepositoryData)Create empty instance of a properties builder appropriate for the exported repository data.@Nullable Map<String,String>importBranchData(@NotNull com.atlassian.bamboo.specs.model.repository.git.GitRepositoryProperties repositoryProperties, @Nullable VcsBranchDefinition existingData)Extract branch configuration from properties object.@Nullable Map<String,String>importBranchDetectionOptions(@NotNull com.atlassian.bamboo.specs.model.repository.git.GitRepositoryProperties repositoryProperties, @Nullable VcsBranchDetectionOptions existingData)Extract branch detection configuration from properties object.@Nullable Map<String,String>importChangeDetectionOptions(@NotNull com.atlassian.bamboo.specs.model.repository.git.GitRepositoryProperties repositoryProperties, @Nullable VcsChangeDetectionOptions existingData)Extract change detection configuration from properties object.@Nullable Map<String,String>importLocationData(@NotNull com.atlassian.bamboo.specs.model.repository.git.GitRepositoryProperties repositoryProperties, @Nullable VcsLocationDefinition existingData, @NotNull VcsRepositoryContext repositoryContext)Extract vcs location configuration from properties object.voidsetCredentialsAccessor(CredentialsAccessor credentialsAccessor)Deprecated.since 6.8 use constructor injection or annotation injectionvoidsetI18nResolver(com.atlassian.sal.api.message.I18nResolver i18nResolver)Deprecated.since 6.8 use constructor injection or annotation injection@Nullable NodetoYaml(@NotNull com.atlassian.bamboo.specs.model.repository.git.GitRepositoryProperties repo)-
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.export.VcsRepositoryDataExporter
appendLocationData, importBambooSpecsDetectionOptions, importLocationData
-
-
-
-
Method Detail
-
getEntityPropertiesBuilder
@NotNull public @NotNull com.atlassian.bamboo.specs.builders.repository.git.GitRepository getEntityPropertiesBuilder(@NotNull @NotNull VcsRepositoryData vcsRepositoryData)Description copied from interface:VcsRepositoryDataExporterCreate empty instance of a properties builder appropriate for the exported repository data.- Specified by:
getEntityPropertiesBuilderin interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.git.GitRepository,com.atlassian.bamboo.specs.model.repository.git.GitRepositoryProperties>- Returns:
- instance of a builder
-
appendLocationData
@NotNull public @NotNull com.atlassian.bamboo.specs.builders.repository.git.GitRepository appendLocationData(@NotNull @NotNull com.atlassian.bamboo.specs.builders.repository.git.GitRepository builder, @NotNull @NotNull VcsLocationDefinition vcsLocationDefinition, @NotNull @NotNull VcsRepositoryContext repositoryContext)Description copied from interface:VcsRepositoryDataExporterFill in the builder passed as the first argument with vcs server data.- Specified by:
appendLocationDatain interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.git.GitRepository,com.atlassian.bamboo.specs.model.repository.git.GitRepositoryProperties>
-
appendBranchData
@NotNull public @NotNull com.atlassian.bamboo.specs.builders.repository.git.GitRepository appendBranchData(@NotNull @NotNull com.atlassian.bamboo.specs.builders.repository.git.GitRepository builder, @NotNull @NotNull VcsBranchDefinition vcsBranchDefinition)Description copied from interface:VcsRepositoryDataExporterFill in the builder passed as the first argument with vcs branch data. Return the first argument if not applicable.- Specified by:
appendBranchDatain interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.git.GitRepository,com.atlassian.bamboo.specs.model.repository.git.GitRepositoryProperties>
-
appendChangeDetectionOptions
@NotNull public @NotNull com.atlassian.bamboo.specs.builders.repository.git.GitRepository appendChangeDetectionOptions(@NotNull @NotNull com.atlassian.bamboo.specs.builders.repository.git.GitRepository builder, @NotNull @NotNull VcsChangeDetectionOptions changeDetectionOptions)Description copied from interface:VcsRepositoryDataExporterFill in the builder passed as the first argument with change detection configuration. Return the first argument if not applicable.- Specified by:
appendChangeDetectionOptionsin interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.git.GitRepository,com.atlassian.bamboo.specs.model.repository.git.GitRepositoryProperties>
-
appendBranchDetectionOptions
@NotNull public @NotNull com.atlassian.bamboo.specs.builders.repository.git.GitRepository appendBranchDetectionOptions(@NotNull @NotNull com.atlassian.bamboo.specs.builders.repository.git.GitRepository builder, @NotNull @NotNull VcsBranchDetectionOptions branchDetectionOptions)Description copied from interface:VcsRepositoryDataExporterFill in the builder passed as the first argument with branch detection configuration. Return the first argument if not applicable.- Specified by:
appendBranchDetectionOptionsin interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.git.GitRepository,com.atlassian.bamboo.specs.model.repository.git.GitRepositoryProperties>
-
importLocationData
@Nullable public @Nullable Map<String,String> importLocationData(@NotNull @NotNull com.atlassian.bamboo.specs.model.repository.git.GitRepositoryProperties repositoryProperties, @Nullable @Nullable VcsLocationDefinition existingData, @NotNull @NotNull VcsRepositoryContext repositoryContext)
Description copied from interface:VcsRepositoryDataExporterExtract 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:
importLocationDatain interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.git.GitRepository,com.atlassian.bamboo.specs.model.repository.git.GitRepositoryProperties>- Returns:
-
toYaml
@Nullable public @Nullable Node toYaml(@NotNull @NotNull com.atlassian.bamboo.specs.model.repository.git.GitRepositoryProperties repo)
- Specified by:
toYamlin interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.git.GitRepository,com.atlassian.bamboo.specs.model.repository.git.GitRepositoryProperties>
-
fromYaml
@Nullable public @Nullable com.atlassian.bamboo.specs.builders.repository.git.GitRepository fromYaml(@NotNull @NotNull String name, @NotNull @NotNull Node node, @NotNull @NotNull TaskValidationContext validationContext)- Specified by:
fromYamlin interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.git.GitRepository,com.atlassian.bamboo.specs.model.repository.git.GitRepositoryProperties>
-
importBranchData
@Nullable public @Nullable Map<String,String> importBranchData(@NotNull @NotNull com.atlassian.bamboo.specs.model.repository.git.GitRepositoryProperties repositoryProperties, @Nullable @Nullable VcsBranchDefinition existingData)
Description copied from interface:VcsRepositoryDataExporterExtract 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:
importBranchDatain interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.git.GitRepository,com.atlassian.bamboo.specs.model.repository.git.GitRepositoryProperties>- Returns:
-
importChangeDetectionOptions
@Nullable public @Nullable Map<String,String> importChangeDetectionOptions(@NotNull @NotNull com.atlassian.bamboo.specs.model.repository.git.GitRepositoryProperties repositoryProperties, @Nullable @Nullable VcsChangeDetectionOptions existingData)
Description copied from interface:VcsRepositoryDataExporterExtract 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:
importChangeDetectionOptionsin interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.git.GitRepository,com.atlassian.bamboo.specs.model.repository.git.GitRepositoryProperties>- Returns:
-
importBranchDetectionOptions
@Nullable public @Nullable Map<String,String> importBranchDetectionOptions(@NotNull @NotNull com.atlassian.bamboo.specs.model.repository.git.GitRepositoryProperties repositoryProperties, @Nullable @Nullable VcsBranchDetectionOptions existingData)
Description copied from interface:VcsRepositoryDataExporterExtract 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:
importBranchDetectionOptionsin interfaceVcsRepositoryDataExporter<com.atlassian.bamboo.specs.builders.repository.git.GitRepository,com.atlassian.bamboo.specs.model.repository.git.GitRepositoryProperties>- Returns:
-
setCredentialsAccessor
@Deprecated public void setCredentialsAccessor(CredentialsAccessor credentialsAccessor)
Deprecated.since 6.8 use constructor injection or annotation injection
-
setI18nResolver
@Deprecated public void setI18nResolver(com.atlassian.sal.api.message.I18nResolver i18nResolver)
Deprecated.since 6.8 use constructor injection or annotation injection
-
-