Class TimeTrackingConfiguration.PropertiesAdaptor
java.lang.Object
com.atlassian.jira.bc.issue.worklog.TimeTrackingConfiguration.PropertiesAdaptor
- All Implemented Interfaces:
TimeTrackingConfiguration
- Enclosing interface:
TimeTrackingConfiguration
public static class TimeTrackingConfiguration.PropertiesAdaptor
extends Object
implements TimeTrackingConfiguration
Implementation that is registered with core container. Looks for configuration information stored in ApplicationProperties.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.bc.issue.worklog.TimeTrackingConfiguration
TimeTrackingConfiguration.Mode, TimeTrackingConfiguration.PropertiesAdaptor, TimeTrackingConfiguration.TimeFormat -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanShould the comment entered on a transition screen be copied to the work description when logging work?booleanenabled()Is time tracking enabled?Get the currently configured number of days in a week.com.atlassian.core.util.DateUtils.DurationGet the currently configured default duration to use when parsing duration string for time tracking.Get the currently configured number of hours in a day.getMode()Get the configured format in which the time will be printed.
-
Field Details
-
properties
-
-
Constructor Details
-
PropertiesAdaptor
-
-
Method Details
-
enabled
public boolean enabled()Description copied from interface:TimeTrackingConfigurationIs time tracking enabled?- Specified by:
enabledin interfaceTimeTrackingConfiguration- Returns:
- true if time tracking is enabled
-
getMode
- Specified by:
getModein interfaceTimeTrackingConfiguration- Returns:
- the current mode of operation
-
getDefaultUnit
public com.atlassian.core.util.DateUtils.Duration getDefaultUnit()Description copied from interface:TimeTrackingConfigurationGet the currently configured default duration to use when parsing duration string for time tracking. (i.e. does "3" mean three minutes or three hours or three days)- Specified by:
getDefaultUnitin interfaceTimeTrackingConfiguration- Returns:
- default duration
-
getTimeFormat
Description copied from interface:TimeTrackingConfigurationGet the configured format in which the time will be printed.- Specified by:
getTimeFormatin interfaceTimeTrackingConfiguration
-
getHoursPerDay
Description copied from interface:TimeTrackingConfigurationGet the currently configured number of hours in a day. Because this can be a non-integral number we return a BigDecimal.- Specified by:
getHoursPerDayin interfaceTimeTrackingConfiguration- Returns:
- the number of hours in a working day
-
getDaysPerWeek
Description copied from interface:TimeTrackingConfigurationGet the currently configured number of days in a week. Because this can be a non-integral number we return a BigDecimal- Specified by:
getDaysPerWeekin interfaceTimeTrackingConfiguration- Returns:
- the number of days in a working week
-
copyCommentToWorkDescriptionOnTransition
public boolean copyCommentToWorkDescriptionOnTransition()Description copied from interface:TimeTrackingConfigurationShould the comment entered on a transition screen be copied to the work description when logging work?- Specified by:
copyCommentToWorkDescriptionOnTransitionin interfaceTimeTrackingConfiguration- Returns:
- true or false
-