com.atlassian.greenhopper.model.team
Class AllocationUtils

java.lang.Object
  extended by com.atlassian.greenhopper.model.team.AllocationUtils

public class AllocationUtils
extends java.lang.Object

Utility methods to work with Allocation objects


Constructor Summary
AllocationUtils()
           
 
Method Summary
static int getDayCount(DaysAllocation daysAllocation, org.joda.time.DateMidnight startCount, org.joda.time.DateMidnight endCount)
          Method counts the number of working days between a two dates.
static java.util.Map<java.lang.Integer,java.lang.Long> getDaysVsDatesMapping(DaysAllocation daysAllocation)
          This method works with correct working days - don't trust
static int numberOfWorkingDays(DaysAllocation daysAllocation, java.util.Date date)
           
static int numberOfWorkingDays(DaysAllocation daysAllocation, org.joda.time.DateMidnight day)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllocationUtils

public AllocationUtils()
Method Detail

numberOfWorkingDays

public static int numberOfWorkingDays(DaysAllocation daysAllocation,
                                      java.util.Date date)

numberOfWorkingDays

public static int numberOfWorkingDays(DaysAllocation daysAllocation,
                                      org.joda.time.DateMidnight day)

getDaysVsDatesMapping

public static java.util.Map<java.lang.Integer,java.lang.Long> getDaysVsDatesMapping(DaysAllocation daysAllocation)
This method works with correct working days - don't trust

Parameters:
daysAllocation -

getDayCount

public static int getDayCount(DaysAllocation daysAllocation,
                              org.joda.time.DateMidnight startCount,
                              org.joda.time.DateMidnight endCount)
Method counts the number of working days between a two dates. TODO If the endCount date is after the end date of the days allocation, then those dates are not counted.



Copyright © 2007-2012 Atlassian. All Rights Reserved.