com.atlassian.jira.issue.fields
Class AbstractDurationSystemField

java.lang.Object
  extended by com.atlassian.jira.issue.fields.AbstractField
      extended by com.atlassian.jira.issue.fields.NavigableFieldImpl
          extended by com.atlassian.jira.issue.fields.AbstractDurationSystemField
All Implemented Interfaces:
Field, NavigableField, java.lang.Comparable
Direct Known Subclasses:
AbstractAggregateDurationSystemField, OriginalEstimateSystemField, TimeEstimateSystemField, TimeSpentSystemField

public abstract class AbstractDurationSystemField
extends NavigableFieldImpl


Field Summary
 
Fields inherited from class com.atlassian.jira.issue.fields.NavigableFieldImpl
applicationProperties, velocityManager
 
Fields inherited from class com.atlassian.jira.issue.fields.AbstractField
authenticationContext
 
Fields inherited from interface com.atlassian.jira.issue.fields.NavigableField
ORDER_ASCENDING, ORDER_DESCENDING, TEMPLATE_DIRECTORY_PATH
 
Constructor Summary
AbstractDurationSystemField(java.lang.String id, java.lang.String nameKey, java.lang.String columnHeadingKey, java.lang.String defaultSortOrder, java.util.Comparator comparator, com.atlassian.velocity.VelocityManager velocityManager, ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext)
           
 
Method Summary
 java.lang.String getColumnViewHtml(FieldLayoutItem fieldLayoutItem, java.util.Map displayParams, Issue issue)
           
protected abstract  java.lang.Long getDuration(Issue issue)
           
 java.lang.String prettyPrintChangeHistory(java.lang.String changeHistory)
           
 java.lang.String prettyPrintChangeHistory(java.lang.String changeHistory, I18nHelper i18nHelper)
          Used for email notification templates - allows changelog to be displayed in language of the recipient.
 
Methods inherited from class com.atlassian.jira.issue.fields.NavigableFieldImpl
getApplicationProperties, getColumnCssClass, getColumnHeadingKey, getDefaultSortOrder, getHiddenFieldId, getSortComparatorSource, getVelocityParams, renderTemplate
 
Methods inherited from class com.atlassian.jira.issue.fields.AbstractField
compareTo, equals, getAuthenticationContext, getId, getName, getNameKey, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.issue.fields.NavigableField
getSorter
 
Methods inherited from interface com.atlassian.jira.issue.fields.Field
getId, getName, getNameKey
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

AbstractDurationSystemField

public AbstractDurationSystemField(java.lang.String id,
                                   java.lang.String nameKey,
                                   java.lang.String columnHeadingKey,
                                   java.lang.String defaultSortOrder,
                                   java.util.Comparator comparator,
                                   com.atlassian.velocity.VelocityManager velocityManager,
                                   ApplicationProperties applicationProperties,
                                   JiraAuthenticationContext authenticationContext)
Method Detail

getColumnViewHtml

public java.lang.String getColumnViewHtml(FieldLayoutItem fieldLayoutItem,
                                          java.util.Map displayParams,
                                          Issue issue)

getDuration

protected abstract java.lang.Long getDuration(Issue issue)

prettyPrintChangeHistory

public java.lang.String prettyPrintChangeHistory(java.lang.String changeHistory)
Specified by:
prettyPrintChangeHistory in interface NavigableField
Overrides:
prettyPrintChangeHistory in class NavigableFieldImpl

prettyPrintChangeHistory

public java.lang.String prettyPrintChangeHistory(java.lang.String changeHistory,
                                                 I18nHelper i18nHelper)
Description copied from interface: NavigableField
Used for email notification templates - allows changelog to be displayed in language of the recipient.

Specified by:
prettyPrintChangeHistory in interface NavigableField
Overrides:
prettyPrintChangeHistory in class NavigableFieldImpl
Returns:
String change history formatted according to locale in i18nHelper


Copyright © 2002-2010 Atlassian. All Rights Reserved.