Package com.atlassian.jira.issue.fields
Class AbstractAggregateDurationSystemField
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
- All Implemented Interfaces:
ExportableSystemField
,Field
,NavigableField
,RestAwareField
,Comparable
- Direct Known Subclasses:
AggregateEstimateSystemField
,AggregateOriginalEstimateSystemField
,AggregateTimeSpentSystemField
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
FieldsFields inherited from class com.atlassian.jira.issue.fields.NavigableFieldImpl
applicationProperties, templatingEngine
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
ConstructorsConstructorDescriptionAbstractAggregateDurationSystemField
(String id, String nameKey, String columnHeadingKey, String defaultSortOrder, Comparator comparator, VelocityTemplatingEngine templatingEngine, ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext, AggregateTimeTrackingCalculatorFactory calculatorFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Long
Method to extract the appropriate value from the aggregate bean.protected Long
getDuration
(Issue issue) 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, getRepresentationFromIssue, prettyPrintChangeHistory, prettyPrintChangeHistory
Methods inherited from class com.atlassian.jira.issue.fields.NavigableFieldImpl
getApplicationProperties, getColumnCssClass, getColumnHeadingKey, getDefaultSortOrder, getHiddenFieldId, getSortComparatorSource, getSortFields, 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 java.lang.Comparable
compareTo
Methods inherited from interface com.atlassian.jira.issue.fields.Field
getId, getName, getNameKey
Methods inherited from interface com.atlassian.jira.issue.fields.NavigableField
prettyPrintChangeHistory
-
Field Details
-
calculatorFactory
-
-
Constructor Details
-
AbstractAggregateDurationSystemField
public AbstractAggregateDurationSystemField(String id, String nameKey, String columnHeadingKey, String defaultSortOrder, Comparator comparator, VelocityTemplatingEngine templatingEngine, ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext, AggregateTimeTrackingCalculatorFactory calculatorFactory)
-
-
Method Details
-
getSorter
Aggregate fields can not be sorted due to performance/security concerns.- Returns:
- Always returns null
- See Also:
-
getDuration
- Specified by:
getDuration
in classAbstractDurationSystemField
-
getAggregateDuration
Method to extract the appropriate value from the aggregate bean.- Parameters:
bean
- bean to extract value from- Returns:
- the appropriate duration value
-