Interface ProjectSidebarRenderer
- All Known Implementing Classes:
ProjectSidebarRendererImpl
public interface ProjectSidebarRenderer
Renders project sidebar HTML.
- Since:
- v1.1.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionRender a project sidebar.io.atlassian.fugue.Either<ErrorCollection, String> Deprecated.since v1.2.0.voidrequireResources(Project project, String selectedItemId) Requires the resources needed for displaying this sidebar.
-
Field Details
-
MAIN_SIDEBAR_SECTION_KEY
The main section for web-items placed in sidebar- See Also:
-
PLUGIN_LINKS_SIDEBAR_SECTION_KEY
The section of the sidebar with web-items provided by plugins- See Also:
-
LEGACY_TABS_LINKS_SIDEBAR_SECTION_KEY
The section of the sidebar with web-items for the legacy project tabs- See Also:
-
-
Method Details
-
render
Render 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.- 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
Deprecated.since v1.2.0. Userender(com.atlassian.jira.project.Project, String)insteadRender 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.- Parameters:
projectKey- A project key.selectedItemId- The ID of the selected item.- Returns:
- Project sidebar HTML or an error collection.
-
requireResources
Requires the resources needed for displaying this sidebar.- 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.
-