com.atlassian.jira.issue.views
Class AbstractIssueHtmlView

java.lang.Object
  extended by com.atlassian.jira.plugin.issueview.AbstractIssueView
      extended by com.atlassian.jira.issue.views.AbstractIssueHtmlView
All Implemented Interfaces:
IssueView
Direct Known Subclasses:
IssueHtmlView, IssueWordView

public abstract class AbstractIssueHtmlView
extends AbstractIssueView


Field Summary
protected  ApplicationProperties applicationProperties
           
protected  JiraAuthenticationContext authenticationContext
           
protected  CommentManager commentManager
           
protected  FieldScreenRendererFactory fieldScreenRendererFactory
           
protected  FileIconBean fileIconBean
           
protected  IssueViewUtil issueViewUtil
           
 
Fields inherited from class com.atlassian.jira.plugin.issueview.AbstractIssueView
ACTION_ORDER_DESC, descriptor
 
Constructor Summary
AbstractIssueHtmlView(JiraAuthenticationContext authenticationContext, ApplicationProperties applicationProperties, CommentManager commentManager, FileIconBean fileIconBean, FieldScreenRendererFactory fieldScreenRendererFactory, IssueViewUtil issueViewUtil)
           
 
Method Summary
 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(Issue issue)
           
 String getHeader(String title, String linkToPrevious)
          Get the header.
protected abstract  String getLinkToPrevious(Issue issue)
           
 String getPrettyDuration(Long v)
           
 String getRenderedContent(String fieldName, String value, Issue issue)
           
 String getStyleSheetHtml()
           
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)
 
Methods inherited from class com.atlassian.jira.plugin.issueview.AbstractIssueView
init, writeHeaders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

authenticationContext

protected final JiraAuthenticationContext authenticationContext

applicationProperties

protected final ApplicationProperties applicationProperties

commentManager

protected final CommentManager commentManager

fileIconBean

protected final FileIconBean fileIconBean

fieldScreenRendererFactory

protected final FieldScreenRendererFactory fieldScreenRendererFactory

issueViewUtil

protected final IssueViewUtil issueViewUtil
Constructor Detail

AbstractIssueHtmlView

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

getContent

public String getContent(Issue issue,
                         IssueViewRequestParams issueViewRequestParams)
Specified by:
getContent in interface IssueView
Specified by:
getContent in class AbstractIssueView

getBody

public String getBody(Issue issue,
                      IssueViewRequestParams issueViewFieldParams)
Specified by:
getBody in class AbstractIssueView

getHeader

public String getHeader(Issue issue)

getLinkToPrevious

protected abstract String getLinkToPrevious(Issue issue)

getHeader

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

printCssLinks

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

getStyleSheetHtml

public String getStyleSheetHtml()

getFooter

public String getFooter(Issue issue)

getPrettyDuration

public String getPrettyDuration(Long v)

getRenderedContent

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

getCustomFieldHtml

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


Copyright © 2002-2012 Atlassian. All Rights Reserved.