|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.greenhopper.web.rapid.view.workingdays.WorkingDaysHelper
@Service public class WorkingDaysHelper
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_REGION_KEY
The key used for the "system default" region. |
Constructor Summary | |
---|---|
WorkingDaysHelper()
|
Method Summary | |
---|---|
ServiceOutcome<WorkingDaysConfig> |
addNonWorkingDay(com.atlassian.crowd.embedded.api.User user,
WorkingDaysResource.NonWorkingDayRequest nonWorkingDayRequest)
Add a day off |
TimeZoneEditModel |
buildTimeZoneEditModel(com.atlassian.crowd.embedded.api.User user,
WorkingDaysConfig workingDaysConfig,
boolean canEdit)
Buidls the time zone edit model |
ServiceOutcome<WorkingDaysConfigModel> |
getWorkDaysConfigModel(com.atlassian.crowd.embedded.api.User user,
RapidView rapidView)
Build a configuration model for the working days configuration |
ServiceOutcome<WorkingDaysConfig> |
removeNonWorkingDay(com.atlassian.crowd.embedded.api.User user,
WorkingDaysResource.NonWorkingDayRequest nonWorkingDayRequest)
Remove a day off |
ServiceOutcome<WorkingDaysConfig> |
updateTimeZone(com.atlassian.crowd.embedded.api.User user,
java.lang.Long rapidViewId,
java.lang.String timeZoneId)
Update the timezone for a given rapid view |
ServiceOutcome<WeekDaysModel> |
updateWeekDays(com.atlassian.crowd.embedded.api.User user,
WeekDaysModel weekDaysModel)
update the off days |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_REGION_KEY
Constructor Detail |
---|
public WorkingDaysHelper()
Method Detail |
---|
public ServiceOutcome<WorkingDaysConfigModel> getWorkDaysConfigModel(com.atlassian.crowd.embedded.api.User user, RapidView rapidView)
public TimeZoneEditModel buildTimeZoneEditModel(com.atlassian.crowd.embedded.api.User user, WorkingDaysConfig workingDaysConfig, boolean canEdit)
canEdit
- if the user can't edit we don't have to return the complete timezone edit datapublic ServiceOutcome<WorkingDaysConfig> updateTimeZone(com.atlassian.crowd.embedded.api.User user, java.lang.Long rapidViewId, java.lang.String timeZoneId)
public ServiceOutcome<WeekDaysModel> updateWeekDays(com.atlassian.crowd.embedded.api.User user, WeekDaysModel weekDaysModel)
public ServiceOutcome<WorkingDaysConfig> addNonWorkingDay(com.atlassian.crowd.embedded.api.User user, WorkingDaysResource.NonWorkingDayRequest nonWorkingDayRequest)
public ServiceOutcome<WorkingDaysConfig> removeNonWorkingDay(com.atlassian.crowd.embedded.api.User user, WorkingDaysResource.NonWorkingDayRequest nonWorkingDayRequest)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |