com.atlassian.greenhopper.service.team
Interface NonWorkingDaysService

All Known Implementing Classes:
NonWorkingDaysServiceImpl

public interface NonWorkingDaysService

Provides access to non working days information. This service should mainly be used for actions that edit non working days.

See Also:
for the new interface to query working days information

Field Summary
static java.lang.String SERVICE
          Used for dependency injection
 
Method Summary
 ErrorCollection addNonWorkingDay(com.opensymphony.user.User user, Backlog backlog, org.joda.time.DateMidnight date)
          Add a non working day to the backlog (in fact it adds it to the project, but the date needs to be inside the range of the backlog).
 java.util.Set<org.joda.time.DateMidnight> getNonWorkingDays(com.opensymphony.user.User user, Backlog backlog)
          Get all non working days for a given backlog.
 java.util.Set<org.joda.time.DateMidnight> getNonWorkingDays(com.opensymphony.user.User user, Backlog backlog, ProjectConfiguration projectConfiguration)
           
 java.util.Set<org.joda.time.DateMidnight> getProjectDefinedNonWorkingDays(com.opensymphony.user.User user, Backlog backlog, ProjectConfiguration configuration)
          Returns the non working days that are defined against the project (as opposed to the general configuration).
 ErrorCollection removeNonWorkingDay(com.opensymphony.user.User user, Backlog backlog, org.joda.time.DateMidnight date)
          Remove a non working day from the backlog (in fact it removes it from the project, but the date needs to be inside the range of the backlog).
 boolean supportsNonWorkingDays(Backlog backlog)
          Returns whether the backlog supports non working days.
 

Field Detail

SERVICE

static final java.lang.String SERVICE
Used for dependency injection

See Also:
Constant Field Values
Method Detail

getNonWorkingDays

java.util.Set<org.joda.time.DateMidnight> getNonWorkingDays(com.opensymphony.user.User user,
                                                            Backlog backlog)
Get all non working days for a given backlog. Only dates inside the date range set by the backlog are returned


getNonWorkingDays

java.util.Set<org.joda.time.DateMidnight> getNonWorkingDays(com.opensymphony.user.User user,
                                                            Backlog backlog,
                                                            ProjectConfiguration projectConfiguration)

getProjectDefinedNonWorkingDays

java.util.Set<org.joda.time.DateMidnight> getProjectDefinedNonWorkingDays(com.opensymphony.user.User user,
                                                                          Backlog backlog,
                                                                          ProjectConfiguration configuration)
Returns the non working days that are defined against the project (as opposed to the general configuration).


supportsNonWorkingDays

boolean supportsNonWorkingDays(Backlog backlog)
Returns whether the backlog supports non working days. In old code this was called "isReleasable", which is misleading.


addNonWorkingDay

ErrorCollection addNonWorkingDay(com.opensymphony.user.User user,
                                 Backlog backlog,
                                 org.joda.time.DateMidnight date)
Add a non working day to the backlog (in fact it adds it to the project, but the date needs to be inside the range of the backlog).


removeNonWorkingDay

ErrorCollection removeNonWorkingDay(com.opensymphony.user.User user,
                                    Backlog backlog,
                                    org.joda.time.DateMidnight date)
Remove a non working day from the backlog (in fact it removes it from the project, but the date needs to be inside the range of the backlog).



Copyright © 2007-2011 Atlassian. All Rights Reserved.