Class VcsRepositoryViewerManagerImpl
java.lang.Object
com.atlassian.bamboo.vcs.viewer.module.VcsRepositoryViewerManagerImpl
- All Implemented Interfaces:
VcsRepositoryViewerManager
-
Constructor Summary
ConstructorDescriptionVcsRepositoryViewerManagerImpl
(com.atlassian.plugin.PluginAccessor pluginAccessor, WebRepositoryViewerManager webRepositoryViewerManager) -
Method Summary
Modifier and TypeMethodDescription@Nullable Web2VcsRepositoryViewerConverter
findConverterFor
(@NotNull String pluginKey) Looks for converted of an old style repository plugin data to a new style plugin data.@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 Details
-
VcsRepositoryViewerManagerImpl
public VcsRepositoryViewerManagerImpl(com.atlassian.plugin.PluginAccessor pluginAccessor, WebRepositoryViewerManager webRepositoryViewerManager)
-
-
Method Details
-
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
-