com.atlassian.jira.issue.util
Class AggregateTimeTrackingCalculatorFactory

java.lang.Object
  extended by com.atlassian.jira.issue.util.AggregateTimeTrackingCalculatorFactory

public class AggregateTimeTrackingCalculatorFactory
extends java.lang.Object

A factory to return AggregateTimeTrackingCalculator instances based on the type of Issue in play.

Since:
v3.11

Constructor Summary
AggregateTimeTrackingCalculatorFactory(JiraAuthenticationContext context, SearchProviderFactory searchProviderFactory, PermissionManager permissionManager)
          Note.
 
Method Summary
 AggregateTimeTrackingCalculator getCalculator(Issue issue)
          Create a new instance of time tracing calculator based on the Issue implementation.
 void setFieldManager(FieldManager fieldManager)
           
 void setSearchProvider(SearchProvider searchProvider)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregateTimeTrackingCalculatorFactory

public AggregateTimeTrackingCalculatorFactory(JiraAuthenticationContext context,
                                              SearchProviderFactory searchProviderFactory,
                                              PermissionManager permissionManager)
Note. Constructor can not take FieldManager or SearchProvider due to cyclic dependencies

Parameters:
context - JIRA authentication context
searchProviderFactory - serach provider factory
permissionManager - permission manager
Method Detail

getCalculator

public AggregateTimeTrackingCalculator getCalculator(Issue issue)
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.

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-2010 Atlassian. All Rights Reserved.