com.atlassian.greenhopper.service.team
Class GreenHopperTeamAllocationProvider

java.lang.Object
  extended by com.atlassian.greenhopper.service.team.GreenHopperTeamAllocationProvider
All Implemented Interfaces:
TeamAllocationServiceSPI

@Service(value="gh-ghTeamAllocationProvider")
public class GreenHopperTeamAllocationProvider
extends java.lang.Object
implements TeamAllocationServiceSPI

GreenHopper implementation of the TeamAllocationSPI interface. This implementation uses the non working days information to determine day allocation information and bases the time allocation data on a single user working on each day for hoursPerDay time.


Field Summary
static java.lang.String SERVICE
           
 
Constructor Summary
GreenHopperTeamAllocationProvider()
           
 
Method Summary
 DaysAllocation getDayAllocation(com.opensymphony.user.User user, XProject xproject, Backlog backlog)
          Get the the day allocation - which in this implementation equals to the time allocation
 TimeAllocation getTimeAllocation(com.opensymphony.user.User user, java.util.Set<org.joda.time.DateMidnight> nonWorkingDays, org.joda.time.DateMidnight startDate, org.joda.time.DateMidnight endDate)
          Legacy implementation - used in current code until xproject and other values are available
 TimeAllocation getTimeAllocation(com.opensymphony.user.User user, XProject xproject, Backlog backlog)
          Get the time allocation object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE

public static final java.lang.String SERVICE
See Also:
Constant Field Values
Constructor Detail

GreenHopperTeamAllocationProvider

public GreenHopperTeamAllocationProvider()
Method Detail

getDayAllocation

public DaysAllocation getDayAllocation(com.opensymphony.user.User user,
                                       XProject xproject,
                                       Backlog backlog)
Get the the day allocation - which in this implementation equals to the time allocation

Specified by:
getDayAllocation in interface TeamAllocationServiceSPI
Returns:
a DayAllocation object

getTimeAllocation

public TimeAllocation getTimeAllocation(com.opensymphony.user.User user,
                                        XProject xproject,
                                        Backlog backlog)
Get the time allocation object.

Specified by:
getTimeAllocation in interface TeamAllocationServiceSPI
Returns:
a TimeAllocation object

getTimeAllocation

public TimeAllocation getTimeAllocation(com.opensymphony.user.User user,
                                        java.util.Set<org.joda.time.DateMidnight> nonWorkingDays,
                                        org.joda.time.DateMidnight startDate,
                                        org.joda.time.DateMidnight endDate)
Legacy implementation - used in current code until xproject and other values are available

Specified by:
getTimeAllocation in interface TeamAllocationServiceSPI


Copyright © 2007-2011 Atlassian. All Rights Reserved.