com.atlassian.jira.bc.issue.worklog
Interface TimeTrackingConfiguration

All Known Implementing Classes:
TimeTrackingConfiguration.PropertiesAdaptor

public interface TimeTrackingConfiguration

Since:
4.0

Nested Class Summary
static class TimeTrackingConfiguration.PropertiesAdaptor
          Implementation that is registered with PICO.
 
Method Summary
 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.
 

Method Detail

enabled

boolean enabled()
Is time tracking enabled?

Returns:
true if time tracking is enabled

getDefaultUnit

com.atlassian.core.util.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

getHoursPerDay

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

getDaysPerWeek

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


Copyright © 2002-2010 Atlassian. All Rights Reserved.