Package com.atlassian.bamboo.vcs.module
Class VcsRepositoryManagerImpl
java.lang.Object
com.atlassian.bamboo.vcs.module.VcsRepositoryManagerImpl
- All Implemented Interfaces:
VcsRepositoryManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable Repository2VcsTypeConverter
findConverterFor
(@NotNull String pluginKey) Looks for converted of an old style repository plugin data to a new style plugin data.@Nullable Repository2VcsTypeConverter
findReverseConverterFor
(@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 VcsRepositoryModuleDescriptor
getRepositoryModuleDescriptorByMavenScmKey
(@NotNull String mavenScmKey, @NotNull String preferredPluginKey) @Nullable VcsRepositoryModuleDescriptor
getVcsRepositoryModuleDescriptor
(@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, wait
Methods inherited from interface com.atlassian.bamboo.vcs.module.VcsRepositoryManager
divergentBranchesEnabled, supportsDivergentBranches
-
Constructor Details
-
VcsRepositoryManagerImpl
public VcsRepositoryManagerImpl()
-
-
Method Details
-
getAvailableRepositoryDescriptors
Description copied from interface:VcsRepositoryManager
Returns a list of available (i.e. installed and enabled)VcsRepositoryModuleDescriptor
objects.- Specified by:
getAvailableRepositoryDescriptors
in interfaceVcsRepositoryManager
- Returns:
- Immutable list of
VcsRepositoryModuleDescriptor
sorted by weight. Empty list if none exists.
-
getAvailableStandaloneRepositoryDescriptors
@NotNull public @NotNull List<VcsRepositoryModuleDescriptor> getAvailableStandaloneRepositoryDescriptors()Description copied from interface:VcsRepositoryManager
Returns a list of available (i.e. installed and enabled)VcsRepositoryModuleDescriptor
objects representing repository plugins that do not requirePlan
during configuration. This method only exist for compatibility with old plugins, that still useRepository
interface. All plugins implemented with new API are "standalone" by definition.- Specified by:
getAvailableStandaloneRepositoryDescriptors
in interfaceVcsRepositoryManager
- Returns:
- Immutable list of
VcsRepositoryModuleDescriptor
sorted by weight. Empty list if none exists.
-
getVcsRepositoryModuleDescriptor
@Nullable public @Nullable VcsRepositoryModuleDescriptor getVcsRepositoryModuleDescriptor(@NotNull @NotNull String pluginKey) Description copied from interface:VcsRepositoryManager
Return module descriptor for given plugin key or null if it doesn't exists or plugin is disabled.- Specified by:
getVcsRepositoryModuleDescriptor
in interfaceVcsRepositoryManager
- Parameters:
pluginKey
- plugin key
-
getRepositoryModuleDescriptorByMavenScmKey
@Nullable public @Nullable VcsRepositoryModuleDescriptor getRepositoryModuleDescriptorByMavenScmKey(@NotNull @NotNull String mavenScmKey, @NotNull @NotNull String preferredPluginKey) - Specified by:
getRepositoryModuleDescriptorByMavenScmKey
in interfaceVcsRepositoryManager
-
findConverterFor
@Nullable public @Nullable Repository2VcsTypeConverter findConverterFor(@NotNull @NotNull String pluginKey) Description copied from interface:VcsRepositoryManager
Looks for converted of an old style repository plugin data to a new style plugin data.- Specified by:
findConverterFor
in 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:VcsRepositoryManager
Looks for converted of an new style repository plugin data to a old style plugin data.- Specified by:
findReverseConverterFor
in interfaceVcsRepositoryManager
- Parameters:
pluginKey
- key of an new plugin- Returns:
- converter class or null if none available
-