Package com.atlassian.bamboo.vcs.module
Interface VcsRepositoryManager
-
- All Known Implementing Classes:
VcsRepositoryManagerImpl
public interface VcsRepositoryManagerProvides access to repository plugins.- Since:
- 5.14
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default booleandivergentBranchesEnabled(@NotNull VcsRepositoryData vcsRepositoryData)Check if VCS repository supports divergent branches and if the configuration allows them.@Nullable Repository2VcsTypeConverterfindConverterFor(@NotNull String pluginKey)Looks for converted of an old style repository plugin data to a new style plugin data.@Nullable Repository2VcsTypeConverterfindReverseConverterFor(@NotNull String pluginKey)Looks for converted of an new style repository plugin data to a old style plugin data.@NotNull List<VcsRepositoryModuleDescriptor>getAvailableRepositoryDescriptors()Returns a list of available (i.e.@NotNull List<VcsRepositoryModuleDescriptor>getAvailableStandaloneRepositoryDescriptors()Deprecated.since 5.14@Nullable VcsRepositoryModuleDescriptorgetRepositoryModuleDescriptorByMavenScmKey(@NotNull String mavenScmKey, @NotNull String preferredPluginKey)@Nullable VcsRepositoryModuleDescriptorgetVcsRepositoryModuleDescriptor(@NotNull String pluginKey)Return module descriptor for given plugin key or null if it doesn't exists or plugin is disabled.default booleansupportsDivergentBranches(@NotNull String pluginKey)Check if VCS plugin supports divergent branches.
-
-
-
Method Detail
-
getAvailableRepositoryDescriptors
@NotNull @NotNull List<VcsRepositoryModuleDescriptor> getAvailableRepositoryDescriptors()
Returns a list of available (i.e. installed and enabled)VcsRepositoryModuleDescriptorobjects.- Returns:
- Immutable list of
VcsRepositoryModuleDescriptorsorted by weight. Empty list if none exists. - Since:
- 5.14
-
getVcsRepositoryModuleDescriptor
@Nullable @Nullable VcsRepositoryModuleDescriptor getVcsRepositoryModuleDescriptor(@NotNull @NotNull String pluginKey)
Return module descriptor for given plugin key or null if it doesn't exists or plugin is disabled.- Parameters:
pluginKey- plugin key
-
getAvailableStandaloneRepositoryDescriptors
@NotNull @Deprecated @NotNull List<VcsRepositoryModuleDescriptor> getAvailableStandaloneRepositoryDescriptors()
Deprecated.since 5.14Returns a list of available (i.e. installed and enabled)VcsRepositoryModuleDescriptorobjects representing repository plugins that do not requirePlanduring configuration. This method only exist for compatibility with old plugins, that still useRepositoryinterface. All plugins implemented with new API are "standalone" by definition.- Returns:
- Immutable list of
VcsRepositoryModuleDescriptorsorted by weight. Empty list if none exists.
-
getRepositoryModuleDescriptorByMavenScmKey
@Nullable @Nullable VcsRepositoryModuleDescriptor getRepositoryModuleDescriptorByMavenScmKey(@NotNull @NotNull String mavenScmKey, @NotNull @NotNull String preferredPluginKey)
-
findConverterFor
@Nullable @Nullable Repository2VcsTypeConverter findConverterFor(@NotNull @NotNull String pluginKey)
Looks for converted of an old style repository plugin data to a new style plugin data.- Parameters:
pluginKey- key of an old plugin- Returns:
- converter class or null if none available
-
findReverseConverterFor
@Nullable @Nullable Repository2VcsTypeConverter findReverseConverterFor(@NotNull @NotNull String pluginKey)
Looks for converted of an new style repository plugin data to a old style plugin data.- Parameters:
pluginKey- key of an new plugin- Returns:
- converter class or null if none available
-
supportsDivergentBranches
default boolean supportsDivergentBranches(@NotNull @NotNull String pluginKey)Check if VCS plugin supports divergent branches. This method only checks the general capability, in order to check if the current configuration allows them usedivergentBranchesEnabled(VcsRepositoryData)- Parameters:
pluginKey- plugin key- Returns:
- true if plugin supports different plan branch structure and settings for Bamboo Specs at VCS branch.
- Since:
- 7.0
-
divergentBranchesEnabled
default boolean divergentBranchesEnabled(@NotNull @NotNull VcsRepositoryData vcsRepositoryData)Check if VCS repository supports divergent branches and if the configuration allows them.- Parameters:
vcsRepositoryData- repository data- Returns:
- true if the repository supports different plan branch structure and settings for Bamboo Specs at VCS branch.
- Since:
- 9.0
-
-