Class IssueWebPanelFactory

java.lang.Object
com.atlassian.greenhopper.web.rapid.issue.IssueWebPanelFactory

@Service public class IssueWebPanelFactory extends Object
Implementation to support custom web panels for the issue details view.
  • Constructor Details

    • IssueWebPanelFactory

      public IssueWebPanelFactory()
  • Method Details

    • renderDetailsHeaderAboveSummaryWebPanel

      public Optional<String> renderDetailsHeaderAboveSummaryWebPanel(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.issue.Issue issue)
      Renders the (third party) web panels with location of DH_WEB_PANEL_ABOVE_SUMMARY , and returns the rendered result, or empty Optional when no web panels found for the location.
      Parameters:
      user - the current user from auth context, or null if it is anonymous user.
      issue - the current issue as part of the render context, cannot be null.
      Returns:
      the optional rendered result, or empty optional when no web panels found for the location.
      Throws:
      NullPointerException - when issue is null.
    • renderDetailsHeaderAboveLinkWebPanel

      public Optional<String> renderDetailsHeaderAboveLinkWebPanel(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.issue.Issue issue)
      Renders the (third party) web panels with location of DH_WEB_PANEL_ABOVE_LINK , and returns the rendered result, or empty Optional when no web panels found for the location.
      Parameters:
      user - the current user from auth context, or null if it is anonymous user.
      issue - the current issue as part of the render context, cannot be null.
      Returns:
      the optional rendered result, or empty optional when no web panels found for the location.
      Throws:
      NullPointerException - when issue is null.