com.atlassian.jira.functest.framework.admin
Class TimeTrackingImpl

java.lang.Object
  extended by com.atlassian.jira.functest.framework.AbstractFuncTestUtil
      extended by com.atlassian.jira.functest.framework.admin.TimeTrackingImpl
All Implemented Interfaces:
TimeTracking, FuncTestLogger

public class TimeTrackingImpl
extends AbstractFuncTestUtil
implements TimeTracking

Time tracking configuration

Since:
v4.0

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.functest.framework.admin.TimeTracking
TimeTracking.Format, TimeTracking.Mode, TimeTracking.Unit
 
Field Summary
 
Fields inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
environmentData, FS, locators, logger, logIndentLevel, tester
 
Fields inherited from interface com.atlassian.jira.functest.framework.admin.TimeTracking
TIME_TRACKING_ADMIN_PAGE
 
Constructor Summary
TimeTrackingImpl(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData)
           
 
Method Summary
 void disable()
          Disables Time Tracking
 void disableCopyingOfComments()
          Disables and re-enables time tracking with the "Copying of comments to work description" disabled.
 void enable(String hoursPerDay, String daysPerWeek, String format, String defaultUnit, TimeTracking.Mode mode)
          Activate time tracking with non-default options.
 void enable(String hoursPerDay, String daysPerWeek, TimeTracking.Format format, TimeTracking.Unit defaultUnit, TimeTracking.Mode mode)
          Activate time tracking with non-default options.
 void enable(TimeTracking.Format format)
          Activate time tracking with default options.
 void enable(TimeTracking.Mode mode)
          Activate time tracking with default options.
protected  Navigation getNavigation()
           
 boolean isIn(TimeTracking.Mode mode)
          Whether Time tracking is active in a specified mode.
 void switchMode(TimeTracking.Mode mode)
          Short-hand for disabling and then enabling Time Tracking into the specified mode.
 
Methods inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
childLogIndentLevel, getAssertions, getEnvironmentData, getFuncTestHelperFactory, getLogger, log, log, navigation, submitAtPage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeTrackingImpl

public TimeTrackingImpl(net.sourceforge.jwebunit.WebTester tester,
                        JIRAEnvironmentData environmentData)
Method Detail

enable

public void enable(TimeTracking.Mode mode)
Description copied from interface: TimeTracking

Activate time tracking with default options.

NOTE: You need to call TimeTracking.disable() if Time Tracking is already enabled.

Specified by:
enable in interface TimeTracking
Parameters:
mode - The time tracking mode to be set.

switchMode

public void switchMode(TimeTracking.Mode mode)
Description copied from interface: TimeTracking
Short-hand for disabling and then enabling Time Tracking into the specified mode.

Specified by:
switchMode in interface TimeTracking
Parameters:
mode - the mode to enable.

enable

public void enable(TimeTracking.Format format)
Description copied from interface: TimeTracking

Activate time tracking with default options.

NOTE: You need to call TimeTracking.disable() if Time Tracking is already enabled.

Specified by:
enable in interface TimeTracking
Parameters:
format - The time tracking format to be set.

enable

public void enable(String hoursPerDay,
                   String daysPerWeek,
                   String format,
                   String defaultUnit,
                   TimeTracking.Mode mode)
Description copied from interface: TimeTracking

Activate time tracking with non-default options.

NOTE: You need to call TimeTracking.disable() if Time Tracking is already enabled.

Specified by:
enable in interface TimeTracking
Parameters:
hoursPerDay - the number of hours in a day. specified as a string so you can use "5.5"
daysPerWeek - the number of days in a week. specified as a string so you can use "3.5"
format - the display format used ("pretty", "days", "hours")
defaultUnit - default unit for time tracking entry ("minute", "hour", "day", "week")
mode - The time tracking mode to be set. It can be MODERN (original estimate and remaining estimate can be edited independently), and LEGACY (original estimate can only be edited before logging work and after that you can only edit the remaining estimate).

enable

public void enable(String hoursPerDay,
                   String daysPerWeek,
                   TimeTracking.Format format,
                   TimeTracking.Unit defaultUnit,
                   TimeTracking.Mode mode)
Description copied from interface: TimeTracking

Activate time tracking with non-default options.

NOTE: You need to call TimeTracking.disable() if Time Tracking is already enabled.

Specified by:
enable in interface TimeTracking
Parameters:
hoursPerDay - the number of hours in a day. specified as a string so you can use "5.5"
daysPerWeek - the number of days in a week. specified as a string so you can use "3.5"
format - the display format used ("pretty", "days", "hours")
defaultUnit - default unit for time tracking entry ("minute", "hour", "day", "week")
mode - The time tracking mode to be set. It can be MODERN (original estimate and remaining estimate can be edited independently), and LEGACY (original estimate can only be edited before logging work and after that you can only edit the remaining estimate).

disable

public void disable()
Description copied from interface: TimeTracking

Disables Time Tracking

.

NOTE: You need to call this before enabling Time Tracking if it is already enabled.

Specified by:
disable in interface TimeTracking

getNavigation

protected Navigation getNavigation()

isIn

public boolean isIn(TimeTracking.Mode mode)
Description copied from interface: TimeTracking
Whether Time tracking is active in a specified mode.

NOTE: If time tracking is disabled this method will return false.

Specified by:
isIn in interface TimeTracking
Parameters:
mode - The mode to check.
Returns:
true if time tracking is on in the specified mode; otherwise, it returns false.

disableCopyingOfComments

public void disableCopyingOfComments()
Description copied from interface: TimeTracking
Disables and re-enables time tracking with the "Copying of comments to work description" disabled. This will mean that when logging work on transition, the comment input will only be used for comments and not work descriptions.

Specified by:
disableCopyingOfComments in interface TimeTracking


Copyright © 2002-2012 Atlassian. All Rights Reserved.