public class VcsRepositoryViewerManagerImpl extends Object implements VcsRepositoryViewerManager
Constructor and Description |
---|
VcsRepositoryViewerManagerImpl(com.atlassian.plugin.PluginAccessor pluginAccessor,
WebRepositoryViewerManager webRepositoryViewerManager) |
Modifier and Type | Method and Description |
---|---|
Web2VcsRepositoryViewerConverter |
findConverterFor(String pluginKey)
Looks for converted of an old style repository plugin data to a new style plugin data.
|
Stream<VcsRepositoryViewerModuleDescriptor> |
getAvailableRepositoryViewers() |
Stream<VcsRepositoryViewerModuleDescriptor> |
getAvailableViewersForRepositoryType(String pluginKey) |
VcsRepositoryViewerModuleDescriptor |
getVcsRepositoryViewerModuleDescriptor(String pluginKey)
Return module descriptor for given plugin key or null if it doesn't exists or plugin is disabled.
|
VcsRepositoryViewer |
getViewerForRepository(VcsRepositoryData vcsRepositoryData)
Get viewer configured for a repository.
|
public VcsRepositoryViewerManagerImpl(com.atlassian.plugin.PluginAccessor pluginAccessor, WebRepositoryViewerManager webRepositoryViewerManager)
public Stream<VcsRepositoryViewerModuleDescriptor> getAvailableRepositoryViewers()
getAvailableRepositoryViewers
in interface VcsRepositoryViewerManager
@NotNull public Stream<VcsRepositoryViewerModuleDescriptor> getAvailableViewersForRepositoryType(String pluginKey)
getAvailableViewersForRepositoryType
in interface VcsRepositoryViewerManager
@Nullable public VcsRepositoryViewerModuleDescriptor getVcsRepositoryViewerModuleDescriptor(@NotNull String pluginKey)
VcsRepositoryViewerManager
getVcsRepositoryViewerModuleDescriptor
in interface VcsRepositoryViewerManager
@Nullable public VcsRepositoryViewer getViewerForRepository(@NotNull VcsRepositoryData vcsRepositoryData)
VcsRepositoryViewerManager
getViewerForRepository
in interface VcsRepositoryViewerManager
@Nullable public Web2VcsRepositoryViewerConverter findConverterFor(@NotNull String pluginKey)
VcsRepositoryViewerManager
findConverterFor
in interface VcsRepositoryViewerManager
pluginKey
- key of an old pluginCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.