Package com.atlassian.jira.issue.util
Class AggregateTimeTrackingCalculatorFactoryImpl
java.lang.Object
com.atlassian.jira.issue.util.AggregateTimeTrackingCalculatorFactoryImpl
- All Implemented Interfaces:
AggregateTimeTrackingCalculatorFactory
public class AggregateTimeTrackingCalculatorFactoryImpl
extends Object
implements AggregateTimeTrackingCalculatorFactory
Implementation of factory
- Since:
- v4.4
-
Constructor Summary
ConstructorsConstructorDescriptionAggregateTimeTrackingCalculatorFactoryImpl(JiraAuthenticationContext context, PermissionManager permissionManager, FieldManager fieldManager, SearchProvider searchProvider, IndexingFeatures indexingFeatures, IssueDocumentSearchService issueDocumentSearchService) -
Method Summary
Modifier and TypeMethodDescriptiongetCalculator(Issue issue) Create a new instance of time tracing calculator based on the Issue implementation.
-
Constructor Details
-
AggregateTimeTrackingCalculatorFactoryImpl
public AggregateTimeTrackingCalculatorFactoryImpl(JiraAuthenticationContext context, PermissionManager permissionManager, FieldManager fieldManager, SearchProvider searchProvider, IndexingFeatures indexingFeatures, IssueDocumentSearchService issueDocumentSearchService) - Parameters:
context- JIRA authentication contextpermissionManager- permission managerfieldManager- field managersearchProvider- search provider for legacy search APIindexingFeatures- indexing features to determine if search API with aggregation is enabledissueDocumentSearchService- issue document search service to use for search API with aggregation
-
-
Method Details
-
getCalculator
Description copied from interface:AggregateTimeTrackingCalculatorFactoryCreate a new instance of time tracing calculator based on the Issue implementation.Creates and returns a new instance of
DocumentIssueAggregateTimeTrackingCalculatorif passed in aDocumentIssueImpl, else creates and returns a new instance ofIssueImplAggregateTimeTrackingCalculator.- Specified by:
getCalculatorin interfaceAggregateTimeTrackingCalculatorFactory- Parameters:
issue- Issue to compare- Returns:
DocumentIssueAggregateTimeTrackingCalculatorif passed in aDocumentIssueImpl, else returns aIssueImplAggregateTimeTrackingCalculator
-