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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AggregateTimeTrackingCalculatorFactoryImpl
public AggregateTimeTrackingCalculatorFactoryImpl(JiraAuthenticationContext context,
SearchProviderFactory searchProviderFactory,
PermissionManager permissionManager)
- Note. Constructor can not take
FieldManager
or
SearchProvider
due to cyclic dependencies
- Parameters:
context
- JIRA authentication contextsearchProviderFactory
- serach provider factorypermissionManager
- permission manager
getCalculator
public AggregateTimeTrackingCalculator getCalculator(Issue issue)
- Description copied from interface:
AggregateTimeTrackingCalculatorFactory
- Create a new instance of time tracing calculator based on the Issue implementation.
Creates and returns a new instance of
DocumentIssueAggregateTimeTrackingCalculator
if passed in
a DocumentIssueImpl
, else creates and returns a new instance
of IssueImplAggregateTimeTrackingCalculator
.
- Specified by:
getCalculator
in interface AggregateTimeTrackingCalculatorFactory
- Parameters:
issue
- Issue to compare
- Returns:
DocumentIssueAggregateTimeTrackingCalculator
if passed in
a DocumentIssueImpl
, else returns a IssueImplAggregateTimeTrackingCalculator
setFieldManager
public void setFieldManager(FieldManager fieldManager)
setSearchProvider
public void setSearchProvider(SearchProvider searchProvider)
Copyright © 2002-2014 Atlassian. All Rights Reserved.