com.atlassian.greenhopper.web.rapid.issue.statistics
Class HistoricalEstimateStatisticValueResolver

java.lang.Object
  extended by com.atlassian.greenhopper.web.rapid.issue.statistics.HistoricalEstimateStatisticValueResolver
All Implemented Interfaces:
IssueStatisticValueResolver, StatisticValueResolver

public class HistoricalEstimateStatisticValueResolver
extends java.lang.Object
implements IssueStatisticValueResolver

Fetches issue field statistic values at the time the issue entered the sprint


Constructor Summary
HistoricalEstimateStatisticValueResolver(StatisticsField estimationStatistic, Sprint sprint, java.util.Map<java.lang.String,java.util.List<ScopeChangeBurndownModel.BurndownChange>> historyData, java.util.Collection<java.lang.String> mappedStatusIds)
           
 
Method Summary
 IssueSprintStatistics getIssueSprintStatistics(java.lang.String issueKey)
           
 StatisticsField getStatisticsField()
           
 java.lang.String getText(java.lang.Double value)
          Return a text representation of a double value which has been resolved by this resolver.
 java.lang.Double getValue(com.atlassian.jira.issue.Issue issue)
          Get the value from the issue for the configured StatisticsField.
 java.lang.Double getValue(java.lang.String issueKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistoricalEstimateStatisticValueResolver

public HistoricalEstimateStatisticValueResolver(StatisticsField estimationStatistic,
                                                Sprint sprint,
                                                java.util.Map<java.lang.String,java.util.List<ScopeChangeBurndownModel.BurndownChange>> historyData,
                                                java.util.Collection<java.lang.String> mappedStatusIds)
Method Detail

getValue

public java.lang.Double getValue(com.atlassian.jira.issue.Issue issue)
Description copied from interface: IssueStatisticValueResolver
Get the value from the issue for the configured StatisticsField.

Specified by:
getValue in interface IssueStatisticValueResolver
Parameters:
issue - the value
Returns:
the value or null if one could not be resolved
See Also:
StatisticValueResolver.getStatisticsField()

getValue

public java.lang.Double getValue(java.lang.String issueKey)

getStatisticsField

public StatisticsField getStatisticsField()
Specified by:
getStatisticsField in interface StatisticValueResolver
Returns:
the statistics field relevant to this resolver

getText

public java.lang.String getText(java.lang.Double value)
Description copied from interface: StatisticValueResolver
Return a text representation of a double value which has been resolved by this resolver.

Specified by:
getText in interface StatisticValueResolver
Parameters:
value - the double value; may be null
Returns:
the string representation; may be null

getIssueSprintStatistics

public IssueSprintStatistics getIssueSprintStatistics(java.lang.String issueKey)


Copyright © 2007-2012 Atlassian. All Rights Reserved.