com.atlassian.jira.bc.issue.worklog
Class TimeTrackingConfiguration.PropertiesAdaptor

java.lang.Object
  extended by 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 PICO. 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
 
Field Summary
 ApplicationProperties properties
           
 
Constructor Summary
TimeTrackingConfiguration.PropertiesAdaptor(ApplicationProperties properties)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

properties

public final ApplicationProperties properties
Constructor Detail

TimeTrackingConfiguration.PropertiesAdaptor

public TimeTrackingConfiguration.PropertiesAdaptor(ApplicationProperties properties)
Method Detail

enabled

public boolean enabled()
Description copied from interface: TimeTrackingConfiguration
Is time tracking enabled?

Specified by:
enabled in interface TimeTrackingConfiguration
Returns:
true if time tracking is enabled

getMode

public TimeTrackingConfiguration.Mode getMode()
Specified by:
getMode in interface TimeTrackingConfiguration
Returns:
the current mode of operation

getDefaultUnit

public com.atlassian.core.util.DateUtils.Duration getDefaultUnit()
Description copied from interface: TimeTrackingConfiguration
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)

Specified by:
getDefaultUnit in interface TimeTrackingConfiguration
Returns:
default duration

getHoursPerDay

public BigDecimal getHoursPerDay()
Description copied from interface: TimeTrackingConfiguration
Get the currently configured number of hours in a day. Because this can be a non-integral number we return a BigDecimal.

Specified by:
getHoursPerDay in interface TimeTrackingConfiguration
Returns:
the number of hours in a working day

getDaysPerWeek

public BigDecimal getDaysPerWeek()
Description copied from interface: TimeTrackingConfiguration
Get the currently configured number of days in a week. Because this can be a non-integral number we return a BigDecimal

Specified by:
getDaysPerWeek in interface TimeTrackingConfiguration
Returns:
the number of days in a working week

copyCommentToWorkDescriptionOnTransition

public boolean copyCommentToWorkDescriptionOnTransition()
Description copied from interface: TimeTrackingConfiguration
Should the comment entered on a transition screen be copied to the work description when logging work?

Specified by:
copyCommentToWorkDescriptionOnTransition in interface TimeTrackingConfiguration
Returns:
true or false


Copyright © 2002-2011 Atlassian. All Rights Reserved.