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
 java.lang.String getBody(Issue issue, IssueViewRequestParams issueViewFieldParams)
           
 java.lang.String getContent(Issue issue, IssueViewRequestParams issueViewRequestParams)
           
 java.lang.String getCustomFieldHtml(FieldLayoutItem fieldLayoutItem, CustomField field, Issue issue)
           
 java.lang.String getFooter(Issue issue)
           
 java.lang.String getHeader(Issue issue)
           
 java.lang.String getHeader(java.lang.String title, java.lang.String linkToPrevious)
          Get the header.
protected abstract  java.lang.String getLinkToPrevious(Issue issue)
           
 java.lang.String getPrettyDuration(java.lang.Long v)
           
 java.lang.String getRenderedContent(java.lang.String fieldName, java.lang.String value, Issue issue)
           
 java.lang.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 java.lang.String getContent(Issue issue,
                                   IssueViewRequestParams issueViewRequestParams)
Specified by:
getContent in interface IssueView
Specified by:
getContent in class AbstractIssueView

getBody

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

getHeader

public java.lang.String getHeader(Issue issue)

getLinkToPrevious

protected abstract java.lang.String getLinkToPrevious(Issue issue)

getHeader

public java.lang.String getHeader(java.lang.String title,
                                  java.lang.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 java.lang.String getStyleSheetHtml()

getFooter

public java.lang.String getFooter(Issue issue)

getPrettyDuration

public java.lang.String getPrettyDuration(java.lang.Long v)

getRenderedContent

public java.lang.String getRenderedContent(java.lang.String fieldName,
                                           java.lang.String value,
                                           Issue issue)
                                    throws FieldLayoutStorageException
Throws:
FieldLayoutStorageException

getCustomFieldHtml

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


Copyright © 2002-2010 Atlassian. All Rights Reserved.