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