Class VcsRepositoryViewerManagerImpl
- java.lang.Object
-
- com.atlassian.bamboo.vcs.viewer.module.VcsRepositoryViewerManagerImpl
-
- All Implemented Interfaces:
VcsRepositoryViewerManager
public class VcsRepositoryViewerManagerImpl extends Object implements VcsRepositoryViewerManager
-
-
Constructor Summary
Constructors Constructor Description VcsRepositoryViewerManagerImpl(com.atlassian.plugin.PluginAccessor pluginAccessor, WebRepositoryViewerManager webRepositoryViewerManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable Web2VcsRepositoryViewerConverter
findConverterFor(@NotNull String pluginKey)
Looks for converted of an old style repository plugin data to a new style plugin data.Stream<VcsRepositoryViewerModuleDescriptor>
getAvailableRepositoryViewers()
@NotNull Stream<VcsRepositoryViewerModuleDescriptor>
getAvailableViewersForRepositoryType(String pluginKey)
@Nullable VcsRepositoryViewerModuleDescriptor
getVcsRepositoryViewerModuleDescriptor(@NotNull String pluginKey)
Return module descriptor for given plugin key or null if it doesn't exists or plugin is disabled.@Nullable VcsRepositoryViewer
getViewerForRepository(@NotNull VcsRepositoryData vcsRepositoryData)
Get viewer configured for a repository.
-
-
-
Constructor Detail
-
VcsRepositoryViewerManagerImpl
public VcsRepositoryViewerManagerImpl(com.atlassian.plugin.PluginAccessor pluginAccessor, WebRepositoryViewerManager webRepositoryViewerManager)
-
-
Method Detail
-
getAvailableRepositoryViewers
public Stream<VcsRepositoryViewerModuleDescriptor> getAvailableRepositoryViewers()
- Specified by:
getAvailableRepositoryViewers
in interfaceVcsRepositoryViewerManager
-
getAvailableViewersForRepositoryType
@NotNull public @NotNull Stream<VcsRepositoryViewerModuleDescriptor> getAvailableViewersForRepositoryType(String pluginKey)
- Specified by:
getAvailableViewersForRepositoryType
in interfaceVcsRepositoryViewerManager
-
getVcsRepositoryViewerModuleDescriptor
@Nullable public @Nullable VcsRepositoryViewerModuleDescriptor getVcsRepositoryViewerModuleDescriptor(@NotNull @NotNull String pluginKey)
Description copied from interface:VcsRepositoryViewerManager
Return module descriptor for given plugin key or null if it doesn't exists or plugin is disabled.- Specified by:
getVcsRepositoryViewerModuleDescriptor
in interfaceVcsRepositoryViewerManager
-
getViewerForRepository
@Nullable public @Nullable VcsRepositoryViewer getViewerForRepository(@NotNull @NotNull VcsRepositoryData vcsRepositoryData)
Description copied from interface:VcsRepositoryViewerManager
Get viewer configured for a repository.- Specified by:
getViewerForRepository
in interfaceVcsRepositoryViewerManager
- Returns:
-
findConverterFor
@Nullable public @Nullable Web2VcsRepositoryViewerConverter findConverterFor(@NotNull @NotNull String pluginKey)
Description copied from interface:VcsRepositoryViewerManager
Looks for converted of an old style repository plugin data to a new style plugin data.- Specified by:
findConverterFor
in interfaceVcsRepositoryViewerManager
- Parameters:
pluginKey
- key of an old plugin- Returns:
- converter class or null if none available
-
-