Class ProjectSidebarRendererImpl

java.lang.Object
com.atlassian.jira.projects.sidebar.ProjectSidebarRendererImpl
All Implemented Interfaces:
ProjectSidebarRenderer

@Component public class ProjectSidebarRendererImpl extends Object implements ProjectSidebarRenderer
  • Field Details

  • Constructor Details

  • Method Details

    • render

      public String render(Project project, String selectedItemId)
      Description copied from interface: ProjectSidebarRenderer
      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.
      Specified by:
      render in interface ProjectSidebarRenderer
      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: ProjectSidebarRenderer
      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. Rendering can fail if the specified project doesn't exist or the current user doesn't have permission to view it.
      Specified by:
      render in interface ProjectSidebarRenderer
      Parameters:
      projectKey - A project key.
      selectedItemId - The ID of the selected item.
      Returns:
      Project sidebar HTML or an error collection.
    • requireResources

      public void requireResources(Project project, String selectedItemId)
      Description copied from interface: ProjectSidebarRenderer
      Requires the resources needed for displaying this sidebar.
      Specified by:
      requireResources in interface ProjectSidebarRenderer
      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.