Package com.atlassian.bamboo.vcs.module
Class VcsRepositoryManagerImpl
java.lang.Object
com.atlassian.bamboo.vcs.module.VcsRepositoryManagerImpl
- All Implemented Interfaces:
VcsRepositoryManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@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>Returns a list of available (i.e.@NotNull List<VcsRepositoryModuleDescriptor>Returns a list of available (i.e.@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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.vcs.module.VcsRepositoryManager
divergentBranchesEnabled, supportsDivergentBranches
-
Constructor Details
-
VcsRepositoryManagerImpl
public VcsRepositoryManagerImpl()
-
-
Method Details
-
getAvailableRepositoryDescriptors
Description copied from interface:VcsRepositoryManagerReturns a list of available (i.e. installed and enabled)VcsRepositoryModuleDescriptorobjects.- Specified by:
getAvailableRepositoryDescriptorsin interfaceVcsRepositoryManager- Returns:
- Immutable list of
VcsRepositoryModuleDescriptorsorted by weight. Empty list if none exists.
-
getAvailableStandaloneRepositoryDescriptors
@NotNull public @NotNull List<VcsRepositoryModuleDescriptor> getAvailableStandaloneRepositoryDescriptors()Description copied from interface:VcsRepositoryManagerReturns 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.- Specified by:
getAvailableStandaloneRepositoryDescriptorsin interfaceVcsRepositoryManager- Returns:
- Immutable list of
VcsRepositoryModuleDescriptorsorted by weight. Empty list if none exists.
-
getVcsRepositoryModuleDescriptor
@Nullable public @Nullable VcsRepositoryModuleDescriptor getVcsRepositoryModuleDescriptor(@NotNull @NotNull String pluginKey) Description copied from interface:VcsRepositoryManagerReturn module descriptor for given plugin key or null if it doesn't exists or plugin is disabled.- Specified by:
getVcsRepositoryModuleDescriptorin interfaceVcsRepositoryManager- Parameters:
pluginKey- plugin key
-
getRepositoryModuleDescriptorByMavenScmKey
@Nullable public @Nullable VcsRepositoryModuleDescriptor getRepositoryModuleDescriptorByMavenScmKey(@NotNull @NotNull String mavenScmKey, @NotNull @NotNull String preferredPluginKey) - Specified by:
getRepositoryModuleDescriptorByMavenScmKeyin interfaceVcsRepositoryManager
-
findConverterFor
@Nullable public @Nullable Repository2VcsTypeConverter findConverterFor(@NotNull @NotNull String pluginKey) Description copied from interface:VcsRepositoryManagerLooks for converted of an old style repository plugin data to a new style plugin data.- Specified by:
findConverterForin interfaceVcsRepositoryManager- Parameters:
pluginKey- key of an old plugin- Returns:
- converter class or null if none available
-
findReverseConverterFor
@Nullable public @Nullable Repository2VcsTypeConverter findReverseConverterFor(@NotNull @NotNull String pluginKey) Description copied from interface:VcsRepositoryManagerLooks for converted of an new style repository plugin data to a old style plugin data.- Specified by:
findReverseConverterForin interfaceVcsRepositoryManager- Parameters:
pluginKey- key of an new plugin- Returns:
- converter class or null if none available
-