public class VcsRepositoryManagerImpl extends Object implements VcsRepositoryManager
Constructor and Description |
---|
VcsRepositoryManagerImpl() |
Modifier and Type | Method and Description |
---|---|
Repository2VcsTypeConverter |
findConverterFor(String pluginKey)
Looks for converted of an old style repository plugin data to a new style plugin data.
|
Repository2VcsTypeConverter |
findReverseConverterFor(String pluginKey)
Looks for converted of an new style repository plugin data to a old style plugin data.
|
List<VcsRepositoryModuleDescriptor> |
getAvailableRepositoryDescriptors()
Returns a list of available (i.e.
|
List<VcsRepositoryModuleDescriptor> |
getAvailableStandaloneRepositoryDescriptors()
Returns a list of available (i.e.
|
VcsRepositoryModuleDescriptor |
getRepositoryModuleDescriptorByMavenScmKey(String mavenScmKey,
String preferredPluginKey) |
VcsRepositoryModuleDescriptor |
getVcsRepositoryModuleDescriptor(String pluginKey)
Return module descriptor for given plugin key or null if it doesn't exists or plugin is disabled.
|
@NotNull public List<VcsRepositoryModuleDescriptor> getAvailableRepositoryDescriptors()
VcsRepositoryManager
VcsRepositoryModuleDescriptor
objects.getAvailableRepositoryDescriptors
in interface VcsRepositoryManager
VcsRepositoryModuleDescriptor
sorted by weight. Empty list if none exists.@NotNull public List<VcsRepositoryModuleDescriptor> getAvailableStandaloneRepositoryDescriptors()
VcsRepositoryManager
VcsRepositoryModuleDescriptor
objects representing
repository plugins that do not require Plan
during configuration.
This method only exist for compatibility with old plugins, that still use Repository
interface.
All plugins implemented with new API are "standalone" by definition.getAvailableStandaloneRepositoryDescriptors
in interface VcsRepositoryManager
VcsRepositoryModuleDescriptor
sorted by weight. Empty list if none exists.@Nullable public VcsRepositoryModuleDescriptor getVcsRepositoryModuleDescriptor(@NotNull String pluginKey)
VcsRepositoryManager
getVcsRepositoryModuleDescriptor
in interface VcsRepositoryManager
@Nullable public VcsRepositoryModuleDescriptor getRepositoryModuleDescriptorByMavenScmKey(@NotNull String mavenScmKey, @NotNull String preferredPluginKey)
getRepositoryModuleDescriptorByMavenScmKey
in interface VcsRepositoryManager
@Nullable public Repository2VcsTypeConverter findConverterFor(@NotNull String pluginKey)
VcsRepositoryManager
findConverterFor
in interface VcsRepositoryManager
pluginKey
- key of an old plugin@Nullable public Repository2VcsTypeConverter findReverseConverterFor(@NotNull String pluginKey)
VcsRepositoryManager
findReverseConverterFor
in interface VcsRepositoryManager
pluginKey
- key of an new pluginCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.