public static class TimeTrackingConfiguration.PropertiesAdaptor extends Object implements TimeTrackingConfiguration
TimeTrackingConfiguration.Mode, TimeTrackingConfiguration.PropertiesAdaptor, TimeTrackingConfiguration.TimeFormat
Modifier and Type | Field and Description |
---|---|
ApplicationProperties |
properties |
Constructor and Description |
---|
PropertiesAdaptor(ApplicationProperties properties) |
Modifier and Type | Method and Description |
---|---|
boolean |
copyCommentToWorkDescriptionOnTransition()
Should the comment entered on a transition screen be copied to the work description when logging work?
|
boolean |
enabled()
Is time tracking enabled?
|
BigDecimal |
getDaysPerWeek()
Get the currently configured number of days in a week.
|
com.atlassian.core.util.DateUtils.Duration |
getDefaultUnit()
Get the currently configured default duration to use when parsing duration string for time tracking.
|
BigDecimal |
getHoursPerDay()
Get the currently configured number of hours in a day.
|
TimeTrackingConfiguration.Mode |
getMode() |
TimeTrackingConfiguration.TimeFormat |
getTimeFormat()
Get the configured format in which the time will be printed.
|
public final ApplicationProperties properties
public PropertiesAdaptor(ApplicationProperties properties)
public boolean enabled()
TimeTrackingConfiguration
enabled
in interface TimeTrackingConfiguration
public TimeTrackingConfiguration.Mode getMode()
getMode
in interface TimeTrackingConfiguration
public com.atlassian.core.util.DateUtils.Duration getDefaultUnit()
TimeTrackingConfiguration
getDefaultUnit
in interface TimeTrackingConfiguration
public TimeTrackingConfiguration.TimeFormat getTimeFormat()
TimeTrackingConfiguration
getTimeFormat
in interface TimeTrackingConfiguration
public BigDecimal getHoursPerDay()
TimeTrackingConfiguration
getHoursPerDay
in interface TimeTrackingConfiguration
public BigDecimal getDaysPerWeek()
TimeTrackingConfiguration
getDaysPerWeek
in interface TimeTrackingConfiguration
public boolean copyCommentToWorkDescriptionOnTransition()
TimeTrackingConfiguration
copyCommentToWorkDescriptionOnTransition
in interface TimeTrackingConfiguration
Copyright © 2002-2021 Atlassian. All Rights Reserved.