com.atlassian.greenhopper.service.rapid.view.workingdays
Class WorkingDaysServiceImpl

java.lang.Object
  extended by com.atlassian.greenhopper.service.rapid.view.workingdays.WorkingDaysServiceImpl
All Implemented Interfaces:
WorkingDaysService

@Service
public class WorkingDaysServiceImpl
extends java.lang.Object
implements WorkingDaysService


Constructor Summary
WorkingDaysServiceImpl()
           
 
Method Summary
 ServiceOutcome<WorkingDaysConfig> addNonWorkingDay(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, org.joda.time.LocalDate date)
          Add a day off
 org.joda.time.DateTimeZone getDateTimeZone(WorkingDaysConfig config)
          Fet the timezone configured for a given rapid board.
 java.lang.String getDateTimeZoneIdForUser(com.atlassian.crowd.embedded.api.User user)
          Fet the timezone configured for a given user.
 ServiceOutcome<WorkingDaysConfig> getWorkingDaysConfiguration(com.atlassian.crowd.embedded.api.User user, RapidView rapidView)
          Get the week days marked as off
 ServiceOutcome<WorkingDaysConfig> removeNonWorkingDay(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, org.joda.time.LocalDate date)
          Remove a day off
 ServiceOutcome<WorkingDaysConfig> updateWorkingDaysConfiguration(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, WorkingDaysConfig workingDaysConfig)
          Updates the working days configuration, that is the week days and the timezone
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkingDaysServiceImpl

public WorkingDaysServiceImpl()
Method Detail

getDateTimeZone

public org.joda.time.DateTimeZone getDateTimeZone(WorkingDaysConfig config)
Description copied from interface: WorkingDaysService
Fet the timezone configured for a given rapid board.

Specified by:
getDateTimeZone in interface WorkingDaysService
Returns:
the timezone object

getDateTimeZoneIdForUser

public java.lang.String getDateTimeZoneIdForUser(com.atlassian.crowd.embedded.api.User user)
Description copied from interface: WorkingDaysService
Fet the timezone configured for a given user. WARNING: This is actually used for WorkingDaysConfig and does not return time zone id in all cases

Specified by:
getDateTimeZoneIdForUser in interface WorkingDaysService

getWorkingDaysConfiguration

public ServiceOutcome<WorkingDaysConfig> getWorkingDaysConfiguration(com.atlassian.crowd.embedded.api.User user,
                                                                     RapidView rapidView)
Description copied from interface: WorkingDaysService
Get the week days marked as off

Specified by:
getWorkingDaysConfiguration in interface WorkingDaysService

updateWorkingDaysConfiguration

public ServiceOutcome<WorkingDaysConfig> updateWorkingDaysConfiguration(com.atlassian.crowd.embedded.api.User user,
                                                                        RapidView rapidView,
                                                                        WorkingDaysConfig workingDaysConfig)
Description copied from interface: WorkingDaysService
Updates the working days configuration, that is the week days and the timezone

Specified by:
updateWorkingDaysConfiguration in interface WorkingDaysService

addNonWorkingDay

public ServiceOutcome<WorkingDaysConfig> addNonWorkingDay(com.atlassian.crowd.embedded.api.User user,
                                                          RapidView rapidView,
                                                          org.joda.time.LocalDate date)
Description copied from interface: WorkingDaysService
Add a day off

Specified by:
addNonWorkingDay in interface WorkingDaysService

removeNonWorkingDay

public ServiceOutcome<WorkingDaysConfig> removeNonWorkingDay(com.atlassian.crowd.embedded.api.User user,
                                                             RapidView rapidView,
                                                             org.joda.time.LocalDate date)
Description copied from interface: WorkingDaysService
Remove a day off

Specified by:
removeNonWorkingDay in interface WorkingDaysService


Copyright © 2007-2013 Atlassian. All Rights Reserved.