Class BoardSidebarRenderer
java.lang.Object
com.atlassian.greenhopper.web.sidebar.BoardSidebarRenderer
Class to assist with rendering a sidebar. Handles permission checks and determining which sidebar to show.
-
Constructor Summary
ConstructorsConstructorDescriptionBoardSidebarRenderer
(com.atlassian.jira.security.JiraAuthenticationContext jiraAuthenticationContext, ProjectRapidViewService projectRapidViewService, com.atlassian.jira.bc.project.ProjectService projectService, SidebarPlaceholderRenderer sidebarPlaceholderRenderer, RapidViewPermissionService rapidViewPermissionService, SidebarDarkFeatureManager sidebarDarkFeatureManager, GlobalBoardDarkFeatureManager globalBoardDarkFeatureManager, SoftwareProjectTypeService softwareProjectTypeService, com.atlassian.webresource.api.assembler.PageBuilderService pageBuilderService) -
Method Summary
Modifier and TypeMethodDescriptiongetSidebarHtml
(String projectKey, RapidView rapidView) Get the board sidebar HTML.boolean
shouldShowSidebar
(String projectKey, RapidView rapidView) Only show the sidebar if the dark feature is enabled, the current user can see theRapidView
for which the sidebar is being rendered AND the conditions to shown one of the sidebars are true.
-
Constructor Details
-
BoardSidebarRenderer
@Autowired public BoardSidebarRenderer(com.atlassian.jira.security.JiraAuthenticationContext jiraAuthenticationContext, ProjectRapidViewService projectRapidViewService, com.atlassian.jira.bc.project.ProjectService projectService, SidebarPlaceholderRenderer sidebarPlaceholderRenderer, RapidViewPermissionService rapidViewPermissionService, SidebarDarkFeatureManager sidebarDarkFeatureManager, GlobalBoardDarkFeatureManager globalBoardDarkFeatureManager, SoftwareProjectTypeService softwareProjectTypeService, com.atlassian.webresource.api.assembler.PageBuilderService pageBuilderService)
-
-
Method Details
-
getSidebarHtml
Get the board sidebar HTML. This method will return an empty string if either the project centric navigation dark feature isn't enabled, or rendering the sidebar fails.- Parameters:
projectKey
- key forProject
to use if project sidebar is renderedrapidView
- theRapidView
being rendered- Returns:
- Board sidebar HTML or an empty string.
-
shouldShowSidebar
Only show the sidebar if the dark feature is enabled, the current user can see theRapidView
for which the sidebar is being rendered AND the conditions to shown one of the sidebars are true.- Parameters:
projectKey
- key forProject
to use if project sidebar is renderedrapidView
- theRapidView
being rendered- Returns:
- true if the sidebar should be shown and false otherwise
-