Class IssueWebPanelFactory
java.lang.Object
com.atlassian.greenhopper.web.rapid.issue.IssueWebPanelFactory
Implementation to support custom web panels for the issue details view.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrenderDetailsHeaderAboveLinkWebPanel(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.issue.Issue issue) Renders the (third party) web panels with location ofDH_WEB_PANEL_ABOVE_LINK, and returns the rendered result, or emptyOptionalwhen no web panels found for the location.renderDetailsHeaderAboveSummaryWebPanel(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.issue.Issue issue) Renders the (third party) web panels with location ofDH_WEB_PANEL_ABOVE_SUMMARY, and returns the rendered result, or emptyOptionalwhen no web panels found for the location.
-
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 ofDH_WEB_PANEL_ABOVE_SUMMARY, and returns the rendered result, or emptyOptionalwhen no web panels found for the location.- Parameters:
user- the current user from auth context, ornullif it is anonymous user.issue- the current issue as part of the render context, cannot benull.- Returns:
- the optional rendered result, or empty optional when no web panels found for the location.
- Throws:
NullPointerException- whenissueisnull.
-
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 ofDH_WEB_PANEL_ABOVE_LINK, and returns the rendered result, or emptyOptionalwhen no web panels found for the location.- Parameters:
user- the current user from auth context, ornullif it is anonymous user.issue- the current issue as part of the render context, cannot benull.- Returns:
- the optional rendered result, or empty optional when no web panels found for the location.
- Throws:
NullPointerException- whenissueisnull.
-