public abstract class

AbstractAggregateDurationSystemField

extends AbstractDurationSystemField
java.lang.Object
   ↳ com.atlassian.jira.issue.fields.AbstractField
     ↳ com.atlassian.jira.issue.fields.NavigableFieldImpl
       ↳ com.atlassian.jira.issue.fields.AbstractDurationSystemField
         ↳ com.atlassian.jira.issue.fields.AbstractAggregateDurationSystemField
Known Direct Subclasses

Class Overview

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.

Summary

[Expand]
Inherited Constants
From interface com.atlassian.jira.issue.fields.NavigableField
Fields
protected final AggregateTimeTrackingCalculatorFactory calculatorFactory
[Expand]
Inherited Fields
From class com.atlassian.jira.issue.fields.NavigableFieldImpl
From class com.atlassian.jira.issue.fields.AbstractField
Public Constructors
AbstractAggregateDurationSystemField(String id, String nameKey, String columnHeadingKey, String defaultSortOrder, Comparator comparator, VelocityTemplatingEngine templatingEngine, ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext, AggregateTimeTrackingCalculatorFactory calculatorFactory)
Public Methods
LuceneFieldSorter getSorter()
Aggregate fields can not be sorted due to performance/security concerns.
Protected Methods
abstract Long getAggregateDuration(AggregateTimeTrackingBean bean)
Method to extract the appropriate value from the aggregate bean.
Long getDuration(Issue issue)
[Expand]
Inherited Methods
From class com.atlassian.jira.issue.fields.AbstractDurationSystemField
From class com.atlassian.jira.issue.fields.NavigableFieldImpl
From class com.atlassian.jira.issue.fields.AbstractField
From class java.lang.Object
From interface com.atlassian.jira.issue.fields.Field
From interface com.atlassian.jira.issue.fields.NavigableField
From interface com.atlassian.jira.issue.fields.rest.RestAwareField
From interface java.lang.Comparable

Fields

protected final AggregateTimeTrackingCalculatorFactory calculatorFactory

Public Constructors

public AbstractAggregateDurationSystemField (String id, String nameKey, String columnHeadingKey, String defaultSortOrder, Comparator comparator, VelocityTemplatingEngine templatingEngine, ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext, AggregateTimeTrackingCalculatorFactory calculatorFactory)

Public Methods

public LuceneFieldSorter getSorter ()

Aggregate fields can not be sorted due to performance/security concerns.

Returns
  • Always returns null

Protected Methods

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

protected Long getDuration (Issue issue)