com.atlassian.jira.issue.fields
Class AbstractAggregateDurationSystemField

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
              extended by com.atlassian.jira.issue.fields.AbstractAggregateDurationSystemField
All Implemented Interfaces:
Field, NavigableField, RestAwareField, Comparable
Direct Known Subclasses:
AggregateEstimateSystemField, AggregateOriginalEstimateSystemField, AggregateTimeSpentSystemField

public abstract class AbstractAggregateDurationSystemField
extends AbstractDurationSystemField

Abstract field for aggregate Time Tracking values. This class looks after the cacheing of the AggregateTimeTrackingBean and provides a simple plugin point for aggregate fields.

Since:
v3.11

Field Summary
protected  AggregateTimeTrackingCalculatorFactory calculatorFactory
           
 
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
AbstractAggregateDurationSystemField(String id, String nameKey, String columnHeadingKey, String defaultSortOrder, Comparator comparator, com.atlassian.velocity.VelocityManager velocityManager, ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext, AggregateTimeTrackingCalculatorFactory calculatorFactory)
           
 
Method Summary
protected abstract  Long getAggregateDuration(AggregateTimeTrackingBean bean)
          Method to extract the appropriate value from the aggregate bean.
protected  Long getDuration(Issue issue)
           
 LuceneFieldSorter getSorter()
          Aggregate fields can not be sorted due to performance/security concerns.
 
Methods inherited from class com.atlassian.jira.issue.fields.AbstractDurationSystemField
getColumnViewHtml, getFieldTypeInfo, getJsonFromIssue, getJsonSchema, prettyPrintChangeHistory, prettyPrintChangeHistory
 
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.Field
getId, getName, getNameKey
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

calculatorFactory

protected final AggregateTimeTrackingCalculatorFactory calculatorFactory
Constructor Detail

AbstractAggregateDurationSystemField

public AbstractAggregateDurationSystemField(String id,
                                            String nameKey,
                                            String columnHeadingKey,
                                            String defaultSortOrder,
                                            Comparator comparator,
                                            com.atlassian.velocity.VelocityManager velocityManager,
                                            ApplicationProperties applicationProperties,
                                            JiraAuthenticationContext authenticationContext,
                                            AggregateTimeTrackingCalculatorFactory calculatorFactory)
Method Detail

getSorter

public LuceneFieldSorter getSorter()
Aggregate fields can not be sorted due to performance/security concerns.

Returns:
Always returns null
See Also:
DocumentIssueImpl, MappedSortComparator

getDuration

protected Long getDuration(Issue issue)
Specified by:
getDuration in class AbstractDurationSystemField

getAggregateDuration

protected abstract Long getAggregateDuration(AggregateTimeTrackingBean bean)
Method to extract the appropriate value from the aggregate bean.

Parameters:
bean - bean to extract value from
Returns:
the appropriate duration value


Copyright © 2002-2012 Atlassian. All Rights Reserved.