com.atlassian.jira.issue.views.util
Class DefaultIssueViewUtil

java.lang.Object
  extended by com.atlassian.jira.issue.views.util.DefaultIssueViewUtil
All Implemented Interfaces:
IssueViewUtil

public class DefaultIssueViewUtil
extends java.lang.Object
implements IssueViewUtil

Util class for the Issue views. Provides a number of shared methods.


Field Summary
static org.apache.log4j.Logger log
           
 
Constructor Summary
DefaultIssueViewUtil(IssueLinkManager issueLinkManager, FieldLayoutManager fieldLayoutManager, RendererManager rendererManager, JiraDurationUtils jiraDurationUtils, AggregateTimeTrackingCalculatorFactory aggregateTimeTrackingCalculatorFactory, TimeTrackingGraphBeanFactory timeTrackingGraphBeanFactory)
           
 
Method Summary
 AggregateTimeTrackingBean createAggregateBean(Issue issue)
           
 TimeTrackingGraphBean createTimeTrackingBean(AggregateTimeTrackingBean bean, I18nHelper helper)
           
 LinkCollection getLinkCollection(Issue issue, com.opensymphony.user.User user)
           
 java.lang.String getPrettyDuration(java.lang.Long v)
           
 java.lang.String getRenderedContent(java.lang.String fieldName, java.lang.String value, Issue issue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final org.apache.log4j.Logger log
Constructor Detail

DefaultIssueViewUtil

public DefaultIssueViewUtil(IssueLinkManager issueLinkManager,
                            FieldLayoutManager fieldLayoutManager,
                            RendererManager rendererManager,
                            JiraDurationUtils jiraDurationUtils,
                            AggregateTimeTrackingCalculatorFactory aggregateTimeTrackingCalculatorFactory,
                            TimeTrackingGraphBeanFactory timeTrackingGraphBeanFactory)
Method Detail

getPrettyDuration

public java.lang.String getPrettyDuration(java.lang.Long v)
Specified by:
getPrettyDuration in interface IssueViewUtil

getLinkCollection

public LinkCollection getLinkCollection(Issue issue,
                                        com.opensymphony.user.User user)
Specified by:
getLinkCollection in interface IssueViewUtil

getRenderedContent

public java.lang.String getRenderedContent(java.lang.String fieldName,
                                           java.lang.String value,
                                           Issue issue)
                                    throws FieldLayoutStorageException
Specified by:
getRenderedContent in interface IssueViewUtil
Throws:
FieldLayoutStorageException

createAggregateBean

public AggregateTimeTrackingBean createAggregateBean(Issue issue)
Specified by:
createAggregateBean in interface IssueViewUtil

createTimeTrackingBean

public TimeTrackingGraphBean createTimeTrackingBean(AggregateTimeTrackingBean bean,
                                                    I18nHelper helper)
Specified by:
createTimeTrackingBean in interface IssueViewUtil


Copyright © 2002-2010 Atlassian. All Rights Reserved.