com.atlassian.greenhopper.web.rapid.view.workingdays
Class WorkingDaysResource

java.lang.Object
  extended by com.atlassian.greenhopper.web.AbstractResource
      extended by com.atlassian.greenhopper.web.rapid.view.workingdays.WorkingDaysResource

public class WorkingDaysResource
extends AbstractResource


Nested Class Summary
static class WorkingDaysResource.NonWorkingDayRequest
           
static class WorkingDaysResource.TimeZoneRequest
           
 
Field Summary
 
Fields inherited from class com.atlassian.greenhopper.web.AbstractResource
HTTP_HEADER_GREENHOPPER_GADGET, log
 
Constructor Summary
WorkingDaysResource(WorkingDaysHelper workingDaysHelper, WorkRateDataFactory workRateDataFactory, com.atlassian.jira.security.JiraAuthenticationContext authCtx, com.atlassian.jira.timezone.TimeZoneManager timeZoneManager, RapidViewService rapidViewService)
           
 
Method Summary
 javax.ws.rs.core.Response addNonWorkingDay(WorkingDaysResource.NonWorkingDayRequest nonWorkingDayRequest)
          Adds an off day
 javax.ws.rs.core.Response getRates(java.lang.Long rapidViewId, java.lang.Long startDate, java.lang.Long endDate)
           
 javax.ws.rs.core.Response removeNonWorkingDay(WorkingDaysResource.NonWorkingDayRequest nonWorkingDayRequest)
          Removes an off day
 javax.ws.rs.core.Response updateTimeZone(WorkingDaysResource.TimeZoneRequest timeZoneRequest)
          Update a Subquery given its id and the id of the rapid view it belongs to
 javax.ws.rs.core.Response updateWeekDaysOff(WeekDaysModel weekDaysModel)
          Update the weekdays marked as off
 
Methods inherited from class com.atlassian.greenhopper.web.AbstractResource
check, createErrorResponse, createFromServiceOutcome, createNoContentResponse, createOkResponse, createOkResponse, getUser, isGadgetRequest, nullSafe, response, wireAuthenticationContext, wireI18nFactoryService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkingDaysResource

public WorkingDaysResource(WorkingDaysHelper workingDaysHelper,
                           WorkRateDataFactory workRateDataFactory,
                           com.atlassian.jira.security.JiraAuthenticationContext authCtx,
                           com.atlassian.jira.timezone.TimeZoneManager timeZoneManager,
                           RapidViewService rapidViewService)
Method Detail

updateWeekDaysOff

public javax.ws.rs.core.Response updateWeekDaysOff(WeekDaysModel weekDaysModel)
Update the weekdays marked as off


updateTimeZone

public javax.ws.rs.core.Response updateTimeZone(WorkingDaysResource.TimeZoneRequest timeZoneRequest)
Update a Subquery given its id and the id of the rapid view it belongs to


addNonWorkingDay

public javax.ws.rs.core.Response addNonWorkingDay(WorkingDaysResource.NonWorkingDayRequest nonWorkingDayRequest)
Adds an off day


removeNonWorkingDay

public javax.ws.rs.core.Response removeNonWorkingDay(WorkingDaysResource.NonWorkingDayRequest nonWorkingDayRequest)
Removes an off day


getRates

public javax.ws.rs.core.Response getRates(java.lang.Long rapidViewId,
                                          java.lang.Long startDate,
                                          java.lang.Long endDate)


Copyright © 2007-2014 Atlassian. All Rights Reserved.