com.atlassian.greenhopper.web.rapid.chart
Class SprintTimes

java.lang.Object
  extended by com.atlassian.greenhopper.web.rapid.chart.SprintTimes

public class SprintTimes
extends java.lang.Object

Encapsulates finding sprint start / end dates


Constructor Summary
SprintTimes(Sprint sprint)
           
 
Method Summary
 org.joda.time.DateTime getCompleteTime()
           
 org.joda.time.DateTime getEndTime()
           
 org.joda.time.DateTime getNow()
           
 org.joda.time.DateTime getStartTime()
           
 org.joda.time.DateTime getUpperTimeRange()
          This returns the upper time range to be considered for a chart.
 SprintTimes invoke()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SprintTimes

public SprintTimes(Sprint sprint)
Method Detail

getNow

public org.joda.time.DateTime getNow()

getStartTime

public org.joda.time.DateTime getStartTime()
Returns:
the start date of the sprint as specified on the Sprint bean

getEndTime

public org.joda.time.DateTime getEndTime()
Returns:
the end date of the sprint as specified on the Sprint bean

getCompleteTime

@Nullable
public org.joda.time.DateTime getCompleteTime()
Returns:
when the sprint was actually completed; null if the sprint has not yet been completed

getUpperTimeRange

@Nonnull
public org.joda.time.DateTime getUpperTimeRange()
This returns the upper time range to be considered for a chart. This depends on if the sprint has been completed.

If the sprint has been completed, the later date of either the completed time or the projected end time is returned.

If the sprint has not been completed, the later date of either the projected end time or now is returned.

Returns:
the upper time range

invoke

public SprintTimes invoke()


Copyright © 2007-2014 Atlassian. All Rights Reserved.