com.atlassian.jira.issue.util
Class IssueImplAggregateTimeTrackingCalculator

java.lang.Object
  extended by com.atlassian.jira.issue.util.IssueImplAggregateTimeTrackingCalculator
All Implemented Interfaces:
AggregateTimeTrackingCalculator

public class IssueImplAggregateTimeTrackingCalculator
extends java.lang.Object
implements AggregateTimeTrackingCalculator

An implementation of AggregateTimeTrackingCalculator that is meant for IssueImpl usage. This will work for DocumentIssueImpl though the one retreived from the Factory will be more efficient.

Since:
v3.11

Nested Class Summary
static interface IssueImplAggregateTimeTrackingCalculator.PermissionChecker
          Responsible for doing permission checks for an issue.
 
Constructor Summary
IssueImplAggregateTimeTrackingCalculator(IssueImplAggregateTimeTrackingCalculator.PermissionChecker permissionChecker)
           
IssueImplAggregateTimeTrackingCalculator(JiraAuthenticationContext context, PermissionManager permissionManager)
           
 
Method Summary
 AggregateTimeTrackingBean getAggregates(Issue issue)
          Creates and returns a bean that contains all aggregate time tracking information for given issue(not a sub-task).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueImplAggregateTimeTrackingCalculator

public IssueImplAggregateTimeTrackingCalculator(JiraAuthenticationContext context,
                                                PermissionManager permissionManager)

IssueImplAggregateTimeTrackingCalculator

public IssueImplAggregateTimeTrackingCalculator(IssueImplAggregateTimeTrackingCalculator.PermissionChecker permissionChecker)
Method Detail

getAggregates

public AggregateTimeTrackingBean getAggregates(Issue issue)
Creates and returns a bean that contains all aggregate time tracking information for given issue(not a sub-task). This information is gathered from all issue's sub-tasks that a user in this context has permission to see.

Specified by:
getAggregates in interface AggregateTimeTrackingCalculator
Parameters:
issue - issue to calculate aggregates for.
Returns:
The bean containing all aggregate values.


Copyright © 2002-2010 Atlassian. All Rights Reserved.