com.atlassian.jira.web.action.admin
Class TimeTrackingAdmin

java.lang.Object
  extended by webwork.action.ActionSupport
      extended by com.atlassian.jira.action.JiraActionSupport
          extended by com.atlassian.jira.web.action.JiraWebActionSupport
              extended by com.atlassian.jira.web.action.admin.TimeTrackingAdmin
All Implemented Interfaces:
ErrorCollection, I18nHelper, java.io.Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class TimeTrackingAdmin
extends JiraWebActionSupport

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
I18nHelper.BeanFactory
 
Field Summary
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
TimeTrackingAdmin(ApplicationProperties applicationProperties, FieldManager fieldManager, JiraDurationUtils jiraDurationUtils, JiraAuthenticationContext authenticationContext, com.atlassian.plugin.PluginAccessor pluginAccessor, ReindexMessageManager reindexMessageManager)
           
 
Method Summary
 java.lang.String doActivate()
           
 java.lang.String doDeactivate()
           
 java.lang.String doDefault()
           
 java.lang.String getDaysPerWeek()
           
 java.lang.String getDefaultUnit()
           
 java.lang.String getDefaultUnitText()
           
 java.lang.String getHoursPerDay()
           
 java.lang.String getTimeTrackingFormat()
           
 java.util.List<TextOption> getTimeTrackingFormats()
           
 java.lang.String getTimeTrackingFormatSample()
           
 java.util.Map<java.lang.String,java.lang.String> getUnits()
           
 boolean isCopyComment()
           
 boolean isIssueOperationsPluginEnabled()
          JRA-13728: If Issue Operations plugin is disabled, we will show a warning in the JSP informing the user that Log Work operations will not be accessible
 boolean isLegacyMode()
           
 boolean isLogWorkModuleEnabled()
          JRA-13728: If Log Work module is disabled, we will show a warning in the JSP informing the user that Log Work operations will not be accessible
 boolean isTimeTracking()
           
 void setCopyComment(boolean copyComment)
           
 void setDaysPerWeek(java.lang.String daysPerWeek)
           
 void setDefaultUnit(java.lang.String unit)
           
 void setHoursPerDay(java.lang.String hoursPerDay)
           
 void setLegacyMode(boolean legacyMode)
           
 void setTimeTrackingFormat(java.lang.String timeTrackingFormat)
           
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addErrorCollection, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, forceRedirect, getApplicationProperties, getAssignableUsers, getAssignableUsers, getCachedGroups, getComponentManager, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getJiraServiceContext, getLanguage, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRandomHint, getRedirect, getRedirectChecker, getRemoteUser, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getText, getTimeFormat, getUriValidator, getUserFullName, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, htmlEncode, insertContextPath, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, returnComplete, returnComplete, returnCompleteWithInlineRedirect, setConglomerateCookieValue, setInline, setReturnUrl, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getDefaultResourceBundle, getDelegator, getKeysForPrefix, getLocale, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText0, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, isStandard, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doExecute, doValidation, getCommandName, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.util.ErrorCollection
addError, addErrorMessage, addErrorMessages, addErrors, getErrorMessages, getErrors, hasAnyErrors, setErrorMessages
 
Methods inherited from interface webwork.action.CommandDriven
getCommandName, setCommand
 

Constructor Detail

TimeTrackingAdmin

public TimeTrackingAdmin(ApplicationProperties applicationProperties,
                         FieldManager fieldManager,
                         JiraDurationUtils jiraDurationUtils,
                         JiraAuthenticationContext authenticationContext,
                         com.atlassian.plugin.PluginAccessor pluginAccessor,
                         ReindexMessageManager reindexMessageManager)
Method Detail

isTimeTracking

public boolean isTimeTracking()

isLogWorkModuleEnabled

public boolean isLogWorkModuleEnabled()
JRA-13728: If Log Work module is disabled, we will show a warning in the JSP informing the user that Log Work operations will not be accessible

Returns:
true if the module is enabled, false otherwise

isIssueOperationsPluginEnabled

public boolean isIssueOperationsPluginEnabled()
JRA-13728: If Issue Operations plugin is disabled, we will show a warning in the JSP informing the user that Log Work operations will not be accessible

Returns:
true if the plugin is enabled, false otherwise

doDefault

public java.lang.String doDefault()
                           throws java.lang.Exception
Overrides:
doDefault in class webwork.action.ActionSupport
Throws:
java.lang.Exception

doDeactivate

public java.lang.String doDeactivate()
                              throws java.lang.Exception
Throws:
java.lang.Exception

doActivate

public java.lang.String doActivate()
                            throws java.lang.Exception
Throws:
java.lang.Exception

getHoursPerDay

public java.lang.String getHoursPerDay()

setHoursPerDay

public void setHoursPerDay(java.lang.String hoursPerDay)

getDefaultUnit

public java.lang.String getDefaultUnit()

getDefaultUnitText

public java.lang.String getDefaultUnitText()

setDefaultUnit

public void setDefaultUnit(java.lang.String unit)

getDaysPerWeek

public java.lang.String getDaysPerWeek()

setDaysPerWeek

public void setDaysPerWeek(java.lang.String daysPerWeek)

getUnits

public java.util.Map<java.lang.String,java.lang.String> getUnits()

getTimeTrackingFormats

public java.util.List<TextOption> getTimeTrackingFormats()

getTimeTrackingFormatSample

public java.lang.String getTimeTrackingFormatSample()

getTimeTrackingFormat

public java.lang.String getTimeTrackingFormat()

setTimeTrackingFormat

public void setTimeTrackingFormat(java.lang.String timeTrackingFormat)

isLegacyMode

public boolean isLegacyMode()

setLegacyMode

public void setLegacyMode(boolean legacyMode)

isCopyComment

public boolean isCopyComment()

setCopyComment

public void setCopyComment(boolean copyComment)


Copyright © 2002-2011 Atlassian. All Rights Reserved.