Class ReportTabManagerImpl
- java.lang.Object
-
- jetbrains.buildServer.web.reportTabs.impl.ReportTabManagerImpl
-
- All Implemented Interfaces:
ReportTabManager
public class ReportTabManagerImpl extends Object implements ReportTabManager
- Author:
- nik
-
-
Constructor Summary
Constructors Constructor Description ReportTabManagerImpl(PagePlaces pagePlaces, CriticalErrors criticalErrors, ProjectManagerEx projectManager, RevisionRuleBuildFinders buildFinders, SBuildServer buildServer, ReportTabsIsolationProtection reportTabsIsolationProtection, EventDispatcher<BuildServerListener> serverEvents)
-
Method Summary
-
-
-
Constructor Detail
-
ReportTabManagerImpl
public ReportTabManagerImpl(@NotNull PagePlaces pagePlaces, @NotNull CriticalErrors criticalErrors, @NotNull ProjectManagerEx projectManager, @NotNull RevisionRuleBuildFinders buildFinders, @NotNull SBuildServer buildServer, @NotNull ReportTabsIsolationProtection reportTabsIsolationProtection, @NotNull EventDispatcher<BuildServerListener> serverEvents)
-
-
Method Detail
-
findTab
@Nullable public ReportTabConfiguration findTab(@NotNull String id)
- Specified by:
findTab
in interfaceReportTabManager
-
createProjectReportTab
public void createProjectReportTab(@NotNull String title, @Nullable String startPage, @NotNull SProject project, @NotNull String buildTypeExternalId, @NotNull RevisionRule revisionRule)
- Specified by:
createProjectReportTab
in interfaceReportTabManager
-
createBuildReportTab
public void createBuildReportTab(@NotNull SProject project, @NotNull String title, @Nullable String startPage) throws DuplicateTabTitleException
Description copied from interface:ReportTabManager
Created new build report tab- Specified by:
createBuildReportTab
in interfaceReportTabManager
title
- title of the tabstartPage
- page to display- Throws:
DuplicateTabTitleException
- if tab with suchtitle
already exists
-
editProjectReportTab
public void editProjectReportTab(@NotNull SProject project, @NotNull ProjectReportTabConfiguration tab, @NotNull String title, @Nullable String startPage, @NotNull String buildTypeId, @NotNull RevisionRule revisionRule)
- Specified by:
editProjectReportTab
in interfaceReportTabManager
-
editBuildReportTab
public void editBuildReportTab(@NotNull SProject project, @NotNull ReportTabConfiguration configuration, @NotNull String title, @Nullable String startPage)
- Specified by:
editBuildReportTab
in interfaceReportTabManager
-
deleteProjectReportTab
public void deleteProjectReportTab(@NotNull SProject project, @NotNull ProjectReportTabConfiguration configuration)
- Specified by:
deleteProjectReportTab
in interfaceReportTabManager
-
deleteBuildReportTab
public void deleteBuildReportTab(@NotNull SProject project, @NotNull ReportTabConfiguration configuration)
Description copied from interface:ReportTabManager
Deletes build report tab from given project- Specified by:
deleteBuildReportTab
in interfaceReportTabManager
configuration
- build report tab configuration
-
getProjectReportTabs
@NotNull public ProjectReportTabConfigurationImpl[] getProjectReportTabs(@NotNull SProject project)
- Specified by:
getProjectReportTabs
in interfaceReportTabManager
-
getBuildReportTabConfigurations
@NotNull public ReportTabConfiguration[] getBuildReportTabConfigurations(@NotNull SProject project)
Description copied from interface:ReportTabManager
Gets all configurations of build report tabs, defined in project with given projectId- Specified by:
getBuildReportTabConfigurations
in interfaceReportTabManager
- Parameters:
project
- project to get build report tabs configurations for- Returns:
- all configurations of build report tabs
-
getTabs
public List<SimpleCustomTab> getTabs(@NotNull SProject project)
-
unregisterAll
public void unregisterAll()
-
-