public static class

TimeTrackingConfiguration.PropertiesAdaptor

extends Object
implements TimeTrackingConfiguration
java.lang.Object
   ↳ com.atlassian.jira.bc.issue.worklog.TimeTrackingConfiguration.PropertiesAdaptor

Class Overview

Implementation that is registered with PICO. Looks for configuration information stored in ApplicationProperties.

Summary

Fields
public final ApplicationProperties properties
Public Constructors
PropertiesAdaptor(ApplicationProperties properties)
Public Methods
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.
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.bc.issue.worklog.TimeTrackingConfiguration

Fields

public final ApplicationProperties properties

Public Constructors

public PropertiesAdaptor (ApplicationProperties properties)

Public Methods

public boolean copyCommentToWorkDescriptionOnTransition ()

Should the comment entered on a transition screen be copied to the work description when logging work?

Returns
  • true or false

public boolean enabled ()

Is time tracking enabled?

Returns
  • true if time tracking is enabled

public BigDecimal getDaysPerWeek ()

Get the currently configured number of days in a week. Because this can be a non-integral number we return a BigDecimal

Returns
  • the number of days in a working week

public DateUtils.Duration getDefaultUnit ()

Get 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)

Returns
  • default duration

public BigDecimal getHoursPerDay ()

Get the currently configured number of hours in a day. Because this can be a non-integral number we return a BigDecimal.

Returns
  • the number of hours in a working day

public TimeTrackingConfiguration.Mode getMode ()

public TimeTrackingConfiguration.TimeFormat getTimeFormat ()

Get the configured format in which the time will be printed.