com.atlassian.greenhopper.service.team
Interface TeamAllocationService

All Known Implementing Classes:
TeamAllocationServiceImpl

public interface TeamAllocationService

Provides team allocation information required by GreenHopper charts and statistics. This service is replacing any code previously known as "non working days", but adds much more fine grained information previously not available (e.g. # users working for each day)


Field Summary
static java.lang.String SERVICE
           
 
Method Summary
 DaysAllocation getDayAllocation(com.opensymphony.user.User user, XProject xproject, Backlog backlog)
          Get a DayAllocation object for a given project.
 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 The reason we expect a set of non working days here is the xagile gadget - it merges the non working days of all involved projects together and uses the result thereof.
 TimeAllocation getTimeAllocation(com.opensymphony.user.User user, XProject xproject, Backlog backlog)
          Get a TimeAllocation object for a given project.
 boolean isDefaultService(com.atlassian.jira.project.Project project)
          Is the default allocation service used for the given project
 boolean isDefaultService(XProject xproject)
          Is the default allocation service used for the given xproject
 

Field Detail

SERVICE

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

getDayAllocation

DaysAllocation getDayAllocation(com.opensymphony.user.User user,
                                XProject xproject,
                                Backlog backlog)
Get a DayAllocation object for a given project.

Returns:
a DayAllocation object

getTimeAllocation

TimeAllocation getTimeAllocation(com.opensymphony.user.User user,
                                 XProject xproject,
                                 Backlog backlog)
Get a TimeAllocation object for a given project.

Returns:
a TimeAllocation object

getTimeAllocation

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 The reason we expect a set of non working days here is the xagile gadget - it merges the non working days of all involved projects together and uses the result thereof. otherwise we would simply pass in a projectconfiguration... TODO: the xagile gadget is a bitch as it works across projects - do we even want to support that going forward? Rethink our infrastructure


isDefaultService

boolean isDefaultService(XProject xproject)
Is the default allocation service used for the given xproject


isDefaultService

boolean isDefaultService(com.atlassian.jira.project.Project project)
Is the default allocation service used for the given project



Copyright © 2007-2011 Atlassian. All Rights Reserved.