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
Nested Classes Modifier and Type Class Description static classNoOverridesVcsProjectRepositoryDataExporter.ProjectRepository
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.vcs.export.VcsRepositoryDataExporter
YAML_TYPE
-
-
Constructor Summary
Constructors Constructor Description NoOverridesVcsProjectRepositoryDataExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull NoOverridesVcsProjectRepositoryDataExporter.ProjectRepositoryappendBranchData(@NotNull NoOverridesVcsProjectRepositoryDataExporter.ProjectRepository builder, @NotNull VcsBranchDefinition vcsBranchDefinition)Fill in the builder passed as the first argument with vcs branch data.@NotNull NoOverridesVcsProjectRepositoryDataExporter.ProjectRepositoryappendBranchDetectionOptions(@NotNull NoOverridesVcsProjectRepositoryDataExporter.ProjectRepository builder, @NotNull VcsBranchDetectionOptions branchDetectionOptions)Fill in the builder passed as the first argument with branch detection configuration.@NotNull NoOverridesVcsProjectRepositoryDataExporter.ProjectRepositoryappendChangeDetectionOptions(@NotNull NoOverridesVcsProjectRepositoryDataExporter.ProjectRepository builder, @NotNull VcsChangeDetectionOptions changeDetectionOptions)Fill in the builder passed as the first argument with change detection configuration.@NotNull NoOverridesVcsProjectRepositoryDataExporter.ProjectRepositoryappendLocationData(@NotNull NoOverridesVcsProjectRepositoryDataExporter.ProjectRepository builder, @NotNull VcsLocationDefinition vcsLocationDefinition, @NotNull VcsRepositoryContext repositoryContext)Fill in the builder passed as the first argument with vcs server data.@NotNull NoOverridesVcsProjectRepositoryDataExporter.ProjectRepositorygetEntityPropertiesBuilder(@NotNull VcsRepositoryData repositoryData)Create empty instance of a properties builder appropriate for the exported repository data.@Nullable Map<String,String>importBranchData(com.atlassian.bamboo.specs.api.model.repository.PlanRepositoryLinkProperties.ProjectRepository repositoryProperties, @Nullable VcsBranchDefinition existingData)Extract branch configuration from properties object.@Nullable Map<String,String>importBranchDetectionOptions(com.atlassian.bamboo.specs.api.model.repository.PlanRepositoryLinkProperties.ProjectRepository repositoryProperties, @Nullable VcsBranchDetectionOptions existingData)Extract branch detection configuration from properties object.@Nullable Map<String,String>importChangeDetectionOptions(com.atlassian.bamboo.specs.api.model.repository.PlanRepositoryLinkProperties.ProjectRepository repositoryProperties, @Nullable VcsChangeDetectionOptions existingData)Extract change detection configuration from properties object.@Nullable Map<String,String>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
appendLocationData, fromYaml, importBambooSpecsDetectionOptions, importLocationData, toYaml
-
-
-
-
Method Detail
-
getEntityPropertiesBuilder
@NotNull public @NotNull NoOverridesVcsProjectRepositoryDataExporter.ProjectRepository getEntityPropertiesBuilder(@NotNull @NotNull VcsRepositoryData repositoryData)
Description copied from interface:VcsRepositoryDataExporterCreate empty instance of a properties builder appropriate for the exported repository data.- Specified by:
getEntityPropertiesBuilderin 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:VcsRepositoryDataExporterFill in the builder passed as the first argument with vcs server data.- Specified by:
appendLocationDatain 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:VcsRepositoryDataExporterFill in the builder passed as the first argument with vcs branch data. Return the first argument if not applicable.- Specified by:
appendBranchDatain 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:VcsRepositoryDataExporterFill in the builder passed as the first argument with change detection configuration. Return the first argument if not applicable.- Specified by:
appendChangeDetectionOptionsin 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:VcsRepositoryDataExporterFill in the builder passed as the first argument with branch detection configuration. Return the first argument if not applicable.- Specified by:
appendBranchDetectionOptionsin 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: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<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: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<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: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<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: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<NoOverridesVcsProjectRepositoryDataExporter.ProjectRepository,com.atlassian.bamboo.specs.api.model.repository.PlanRepositoryLinkProperties.ProjectRepository>- Returns:
-
-