com.atlassian.greenhopper.service.team
Class TeamAllocationServiceImpl

java.lang.Object
  extended by com.atlassian.greenhopper.service.team.TeamAllocationServiceImpl
All Implemented Interfaces:
TeamAllocationService

@Service(value="gh-teamAllocationService")
public class TeamAllocationServiceImpl
extends java.lang.Object
implements TeamAllocationService

Default implementation of the team allocation service Forwards the request to the configured TeamAllocationServiceSPI implementation


Field Summary
 
Fields inherited from interface com.atlassian.greenhopper.service.team.TeamAllocationService
SERVICE
 
Constructor Summary
TeamAllocationServiceImpl()
           
 
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
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TeamAllocationServiceImpl

public TeamAllocationServiceImpl()
Method Detail

getDayAllocation

public DaysAllocation getDayAllocation(com.opensymphony.user.User user,
                                       XProject xproject,
                                       Backlog backlog)
Description copied from interface: TeamAllocationService
Get a DayAllocation object for a given project.

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

getTimeAllocation

public TimeAllocation getTimeAllocation(com.opensymphony.user.User user,
                                        XProject xproject,
                                        Backlog backlog)
Description copied from interface: TeamAllocationService
Get a TimeAllocation object for a given project.

Specified by:
getTimeAllocation in interface TeamAllocationService
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 TeamAllocationService

isDefaultService

public boolean isDefaultService(XProject xproject)
Description copied from interface: TeamAllocationService
Is the default allocation service used for the given xproject

Specified by:
isDefaultService in interface TeamAllocationService

isDefaultService

public boolean isDefaultService(com.atlassian.jira.project.Project project)
Description copied from interface: TeamAllocationService
Is the default allocation service used for the given project

Specified by:
isDefaultService in interface TeamAllocationService


Copyright © 2007-2011 Atlassian. All Rights Reserved.