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, templatingEngineFields inherited from class com.atlassian.jira.issue.fields.AbstractField
authenticationContextFields 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 LongMethod to extract the appropriate value from the aggregate bean.protected LonggetDuration(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, prettyPrintChangeHistoryMethods inherited from class com.atlassian.jira.issue.fields.NavigableFieldImpl
getApplicationProperties, getColumnCssClass, getColumnHeadingKey, getDefaultSortOrder, getHiddenFieldId, getVelocityParams, renderTemplateMethods inherited from class com.atlassian.jira.issue.fields.AbstractField
compareTo, equals, getAuthenticationContext, getId, getName, getNameKey, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.atlassian.jira.issue.fields.Field
getId, getName, getNameKeyMethods inherited from interface com.atlassian.jira.issue.fields.NavigableField
getFieldSorts, hasSortsDefined, 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
-
getValueLoader
Aggregate fields can not be sorted due to performance/security concerns.- Returns:
- Always returns null
- See Also:
-
getDuration
- Specified by:
getDurationin classAbstractDurationSystemField
-
getAggregateDuration
Method to extract the appropriate value from the aggregate bean.- Parameters:
bean- bean to extract value from- Returns:
- the appropriate duration value
-