public abstract class

AbstractIssueHtmlView

extends AbstractIssueView
java.lang.Object
   ↳ com.atlassian.jira.plugin.issueview.AbstractIssueView
     ↳ com.atlassian.jira.issue.views.AbstractIssueHtmlView
Known Direct Subclasses

Summary

[Expand]
Inherited Constants
From class com.atlassian.jira.plugin.issueview.AbstractIssueView
Fields
protected final ApplicationProperties applicationProperties
protected final JiraAuthenticationContext authenticationContext
protected final CommentManager commentManager
protected final FieldScreenRendererFactory fieldScreenRendererFactory
protected final FileIconBean fileIconBean
protected final IssueViewUtil issueViewUtil
[Expand]
Inherited Fields
From class com.atlassian.jira.plugin.issueview.AbstractIssueView
Public Constructors
AbstractIssueHtmlView(JiraAuthenticationContext authenticationContext, ApplicationProperties applicationProperties, CommentManager commentManager, FileIconBean fileIconBean, FieldScreenRendererFactory fieldScreenRendererFactory, IssueViewUtil issueViewUtil)
Public Methods
String getBody(Issue issue, IssueViewRequestParams issueViewFieldParams)
String getContent(Issue issue, IssueViewRequestParams issueViewRequestParams)
String getCustomFieldHtml(FieldLayoutItem fieldLayoutItem, CustomField field, Issue issue)
String getFooter(Issue issue)
String getHeader(String title, String linkToPrevious)
Get the header.
String getHeader(Issue issue)
String getPrettyDuration(Long v)
String getRenderedContent(String fieldName, String value, Issue issue)
String getStyleSheetHtml()
Protected Methods
abstract String getLinkToPrevious(Issue issue)
abstract boolean printCssLinks()
With a word view of an issue - you do not want to print the links to the CSS (which seem to hang word, as it can't download remote resources)
[Expand]
Inherited Methods
From class com.atlassian.jira.plugin.issueview.AbstractIssueView
From class java.lang.Object
From interface com.atlassian.jira.plugin.issueview.IssueView

Fields

protected final ApplicationProperties applicationProperties

protected final JiraAuthenticationContext authenticationContext

protected final CommentManager commentManager

protected final FieldScreenRendererFactory fieldScreenRendererFactory

protected final FileIconBean fileIconBean

protected final IssueViewUtil issueViewUtil

Public Constructors

public AbstractIssueHtmlView (JiraAuthenticationContext authenticationContext, ApplicationProperties applicationProperties, CommentManager commentManager, FileIconBean fileIconBean, FieldScreenRendererFactory fieldScreenRendererFactory, IssueViewUtil issueViewUtil)

Public Methods

public String getBody (Issue issue, IssueViewRequestParams issueViewFieldParams)

public String getContent (Issue issue, IssueViewRequestParams issueViewRequestParams)

public String getCustomFieldHtml (FieldLayoutItem fieldLayoutItem, CustomField field, Issue issue)

public String getFooter (Issue issue)

public String getHeader (String title, String linkToPrevious)

Get the header.

Parameters
title The title of the page. A single issue may be different to multiple issues
linkToPrevious A string containing the complete link to get back to the previous content. If null, the previous link is not printed
Returns
  • The header of a single / multiple word / html view

public String getHeader (Issue issue)

public String getPrettyDuration (Long v)

public String getRenderedContent (String fieldName, String value, Issue issue)

public String getStyleSheetHtml ()

Protected Methods

protected abstract String getLinkToPrevious (Issue issue)

protected abstract boolean printCssLinks ()

With a word view of an issue - you do not want to print the links to the CSS (which seem to hang word, as it can't download remote resources)

Returns
  • true if you want links to CSS to be shown, false otherwise