Class ProjectSidebarRendererImpl
java.lang.Object
com.atlassian.jira.projects.sidebar.ProjectSidebarRendererImpl
- All Implemented Interfaces:
ProjectSidebarRenderer
-
Field Summary
FieldsFields inherited from interface com.atlassian.jira.projects.api.sidebar.ProjectSidebarRenderer
LEGACY_TABS_LINKS_SIDEBAR_SECTION_KEY, MAIN_SIDEBAR_SECTION_KEY, PLUGIN_LINKS_SIDEBAR_SECTION_KEY -
Constructor Summary
ConstructorsConstructorDescriptionProjectSidebarRendererImpl(ProjectHeaderRenderer projectHeaderRenderer, ProjectContentRendererRegistry contentRendererRegistry, SidebarRenderer sidebarRenderer, ProjectAdminLinkService adminLinkProvider, ProjectService projectService, JiraAuthenticationContext jiraAuthenticationContext, JiraPageBuilderService pageBuilderService, OnboardingServiceAccessor onboardingServiceAccessor, com.atlassian.event.api.EventPublisher eventPublisher, CurrentProjectService currentProjectService, FlushHeadEarlyService flushHeadEarlyService, FeatureManager featureManager) -
Method Summary
Modifier and TypeMethodDescriptionRender a project sidebar.io.atlassian.fugue.Either<ErrorCollection, String> Render a project sidebar.voidrequireResources(Project project, String selectedItemId) Requires the resources needed for displaying this sidebar.
-
Field Details
-
SHOULD_DISPLAY_CHAPERONE
- See Also:
-
-
Constructor Details
-
Method Details
-
render
Description copied from interface:ProjectSidebarRendererRender a project sidebar. Users of this method are responsible for including the appropriate web-resources to hook up client-side behaviour of the sidebar themselves. This means they should at least include resources in the 'jira.project.sidebar' web-resource context.- Specified by:
renderin interfaceProjectSidebarRenderer- Parameters:
project- A project object representing the project for which the sidebar should be rendered.selectedItemId- The location ID of the <web-item> which should be rendered.- Returns:
- Project sidebar HTML or an error collection.
-
render
public io.atlassian.fugue.Either<ErrorCollection,String> render(String projectKey, String selectedItemId) Description copied from interface:ProjectSidebarRendererRender a project sidebar. Users of this method are responsible for including the appropriate web-resources to hook up client-side behaviour of the sidebar themselves. This means they should at least include resources in the 'jira.project.sidebar' web-resource context. Rendering can fail if the specified project doesn't exist or the current user doesn't have permission to view it.- Specified by:
renderin interfaceProjectSidebarRenderer- Parameters:
projectKey- A project key.selectedItemId- The ID of the selected item.- Returns:
- Project sidebar HTML or an error collection.
-
requireResources
Description copied from interface:ProjectSidebarRendererRequires the resources needed for displaying this sidebar.- Specified by:
requireResourcesin interfaceProjectSidebarRenderer- Parameters:
project- A project object representing the project for which the sidebar should be rendered.selectedItemId- The location ID of the <web-item> which should be rendered.
-