Package com.atlassian.bamboo.vcs.export
Class NoOverridesVcsRepositoryDataExporter
java.lang.Object
com.atlassian.bamboo.vcs.export.NoOverridesVcsRepositoryDataExporter
- All Implemented Interfaces:
VcsRepositoryDataExporter<NoOverridesVcsRepositoryDataExporter.LinkedGlobalRepository,
com.atlassian.bamboo.specs.api.model.repository.PlanRepositoryLinkProperties.LinkedGlobalRepository>
public class NoOverridesVcsRepositoryDataExporter
extends Object
implements VcsRepositoryDataExporter<NoOverridesVcsRepositoryDataExporter.LinkedGlobalRepository,com.atlassian.bamboo.specs.api.model.repository.PlanRepositoryLinkProperties.LinkedGlobalRepository>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Helper class to represent link to global repositories. -
Field Summary
Fields inherited from interface com.atlassian.bamboo.vcs.export.VcsRepositoryDataExporter
YAML_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionappendBranchData
(NoOverridesVcsRepositoryDataExporter.LinkedGlobalRepository builder, @NotNull VcsBranchDefinition vcsBranchDefinition) Fill in the builder passed as the first argument with vcs branch data.appendBranchDetectionOptions
(NoOverridesVcsRepositoryDataExporter.LinkedGlobalRepository builder, @NotNull VcsBranchDetectionOptions branchDetectionOptions) Fill in the builder passed as the first argument with branch detection configuration.appendChangeDetectionOptions
(NoOverridesVcsRepositoryDataExporter.LinkedGlobalRepository builder, @NotNull VcsChangeDetectionOptions changeDetectionOptions) Fill in the builder passed as the first argument with change detection configuration.appendLocationData
(NoOverridesVcsRepositoryDataExporter.LinkedGlobalRepository builder, @NotNull VcsLocationDefinition vcsLocationDefinition, @NotNull VcsRepositoryContext repositoryContext) Fill in the builder passed as the first argument with vcs server data.getEntityPropertiesBuilder
(@NotNull VcsRepositoryData vcsRepositoryData) Create empty instance of a properties builder appropriate for the exported repository data.importBranchData
(com.atlassian.bamboo.specs.api.model.repository.PlanRepositoryLinkProperties.LinkedGlobalRepository repositoryProperties, @Nullable VcsBranchDefinition existingData) Extract branch configuration from properties object.importBranchDetectionOptions
(com.atlassian.bamboo.specs.api.model.repository.PlanRepositoryLinkProperties.LinkedGlobalRepository repositoryProperties, @Nullable VcsBranchDetectionOptions existingData) Extract branch detection configuration from properties object.importChangeDetectionOptions
(com.atlassian.bamboo.specs.api.model.repository.PlanRepositoryLinkProperties.LinkedGlobalRepository repositoryProperties, @Nullable VcsChangeDetectionOptions existingData) Extract change detection configuration from properties object.importLocationData
(com.atlassian.bamboo.specs.api.model.repository.PlanRepositoryLinkProperties.LinkedGlobalRepository repositoryProperties, @Nullable VcsLocationDefinition existingData, @NotNull VcsRepositoryContext repositoryContext) Extract vcs location configuration from properties object.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
fromYaml, importBambooSpecsDetectionOptions, toYaml
-
Constructor Details
-
NoOverridesVcsRepositoryDataExporter
public NoOverridesVcsRepositoryDataExporter()
-
-
Method Details
-
getEntityPropertiesBuilder
@NotNull public NoOverridesVcsRepositoryDataExporter.LinkedGlobalRepository getEntityPropertiesBuilder(@NotNull @NotNull VcsRepositoryData vcsRepositoryData) Description copied from interface:VcsRepositoryDataExporter
Create empty instance of a properties builder appropriate for the exported repository data.- Specified by:
getEntityPropertiesBuilder
in interfaceVcsRepositoryDataExporter<NoOverridesVcsRepositoryDataExporter.LinkedGlobalRepository,
com.atlassian.bamboo.specs.api.model.repository.PlanRepositoryLinkProperties.LinkedGlobalRepository> - Returns:
- instance of a builder
-
appendLocationData
@NotNull public NoOverridesVcsRepositoryDataExporter.LinkedGlobalRepository appendLocationData(@NotNull NoOverridesVcsRepositoryDataExporter.LinkedGlobalRepository 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<NoOverridesVcsRepositoryDataExporter.LinkedGlobalRepository,
com.atlassian.bamboo.specs.api.model.repository.PlanRepositoryLinkProperties.LinkedGlobalRepository>
-
appendBranchData
@NotNull public NoOverridesVcsRepositoryDataExporter.LinkedGlobalRepository appendBranchData(@NotNull NoOverridesVcsRepositoryDataExporter.LinkedGlobalRepository 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<NoOverridesVcsRepositoryDataExporter.LinkedGlobalRepository,
com.atlassian.bamboo.specs.api.model.repository.PlanRepositoryLinkProperties.LinkedGlobalRepository>
-
appendChangeDetectionOptions
@NotNull public NoOverridesVcsRepositoryDataExporter.LinkedGlobalRepository appendChangeDetectionOptions(@NotNull NoOverridesVcsRepositoryDataExporter.LinkedGlobalRepository 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<NoOverridesVcsRepositoryDataExporter.LinkedGlobalRepository,
com.atlassian.bamboo.specs.api.model.repository.PlanRepositoryLinkProperties.LinkedGlobalRepository>
-
appendBranchDetectionOptions
@NotNull public NoOverridesVcsRepositoryDataExporter.LinkedGlobalRepository appendBranchDetectionOptions(@NotNull NoOverridesVcsRepositoryDataExporter.LinkedGlobalRepository 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<NoOverridesVcsRepositoryDataExporter.LinkedGlobalRepository,
com.atlassian.bamboo.specs.api.model.repository.PlanRepositoryLinkProperties.LinkedGlobalRepository>
-
importLocationData
@Nullable public @Nullable Map<String,String> importLocationData(@NotNull com.atlassian.bamboo.specs.api.model.repository.PlanRepositoryLinkProperties.LinkedGlobalRepository repositoryProperties, @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<NoOverridesVcsRepositoryDataExporter.LinkedGlobalRepository,
com.atlassian.bamboo.specs.api.model.repository.PlanRepositoryLinkProperties.LinkedGlobalRepository> - Returns:
-
importBranchData
@Nullable public @Nullable Map<String,String> importBranchData(@NotNull com.atlassian.bamboo.specs.api.model.repository.PlanRepositoryLinkProperties.LinkedGlobalRepository repositoryProperties, @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<NoOverridesVcsRepositoryDataExporter.LinkedGlobalRepository,
com.atlassian.bamboo.specs.api.model.repository.PlanRepositoryLinkProperties.LinkedGlobalRepository> - Returns:
-
importChangeDetectionOptions
@Nullable public @Nullable Map<String,String> importChangeDetectionOptions(@NotNull com.atlassian.bamboo.specs.api.model.repository.PlanRepositoryLinkProperties.LinkedGlobalRepository repositoryProperties, @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<NoOverridesVcsRepositoryDataExporter.LinkedGlobalRepository,
com.atlassian.bamboo.specs.api.model.repository.PlanRepositoryLinkProperties.LinkedGlobalRepository> - Returns:
-
importBranchDetectionOptions
@Nullable public @Nullable Map<String,String> importBranchDetectionOptions(@NotNull com.atlassian.bamboo.specs.api.model.repository.PlanRepositoryLinkProperties.LinkedGlobalRepository repositoryProperties, @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<NoOverridesVcsRepositoryDataExporter.LinkedGlobalRepository,
com.atlassian.bamboo.specs.api.model.repository.PlanRepositoryLinkProperties.LinkedGlobalRepository> - Returns:
-