com.atlassian.jira.web.action.issue
Class AbstractWorklogAction

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.ProjectActionSupport
                  extended by com.atlassian.jira.web.action.IssueActionSupport
                      extended by com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
                          extended by com.atlassian.jira.web.action.issue.AbstractWorklogAction
All Implemented Interfaces:
ErrorCollection, I18nHelper, IssueSummaryAware, java.io.Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
Direct Known Subclasses:
CreateWorklog, DeleteWorklog, UpdateWorklog

public abstract class AbstractWorklogAction
extends AbstractIssueSelectAction

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
I18nHelper.BeanFactory
 
Field Summary
protected static java.lang.String ADJUST_ESTIMATE_AUTO
           
protected static java.lang.String ADJUST_ESTIMATE_MANUAL
           
protected static java.lang.String ADJUST_ESTIMATE_NEW
           
protected  java.lang.String adjustEstimate
           
protected  CommentService commentService
           
protected  FieldVisibilityManager fieldVisibilityManager
           
protected  JiraDurationUtils jiraDurationUtils
           
protected  OutlookDateManager outlookDateManager
           
protected  ProjectRoleManager projectRoleManager
           
protected  WorklogService worklogService
           
 
Fields inherited from class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
id, issueObject
 
Fields inherited from class com.atlassian.jira.web.action.IssueActionSupport
attachmentManager
 
Fields inherited from class com.atlassian.jira.web.action.ProjectActionSupport
projectManager
 
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
AbstractWorklogAction(WorklogService worklogService, CommentService commentService, ProjectRoleManager projectRoleManager, JiraDurationUtils jiraDurationUtils, OutlookDateManager outlookDateManager, FieldVisibilityManager fieldVisibilityManager, FieldLayoutManager fieldLayoutManager, RendererManager rendererManager)
           
 
Method Summary
 java.lang.String getAdjustEstimate()
           
 java.lang.String getAdjustmentAmount()
           
 java.lang.String getComment()
           
 java.lang.String getCommentLevel()
           
protected  CommentVisibility getCommentVisibility()
           
 java.lang.String getEstimate()
           
protected  java.lang.String getFormattedStartDate(java.util.Date date)
           
 java.util.Collection getGroupLevels()
           
 java.lang.String getNewEstimate()
           
protected  java.util.Date getParsedStartDate()
           
 java.util.Collection<ProjectRole> getRoleLevels()
           
 java.lang.String getSelectedLevelName()
           
 java.lang.String getStartDate()
           
 java.lang.String getTimeLogged()
           
 java.lang.String getWorkDescriptionEditHtml()
          Renders the input control for the Work Description (i.e.
 java.lang.Long getWorklogId()
           
 java.lang.String getWorkType()
           
 boolean isLevelSelected(java.lang.String visibilityLevel)
           
 boolean isTimeTrackingFieldHidden(Issue issue)
           
 void setAdjustEstimate(java.lang.String adjustEstimate)
           
 void setAdjustmentAmount(java.lang.String adjustmentAmount)
           
 void setComment(java.lang.String comment)
           
 void setCommentLevel(java.lang.String commentLevel)
           
 void setNewEstimate(java.lang.String newEstimate)
           
 void setStartDate(java.lang.String startDate)
           
 void setTimeLogged(java.lang.String timeLogged)
           
 void setWorklogId(java.lang.Long worklogId)
           
 void setWorkType(java.lang.String workType)
           
 
Methods inherited from class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
cameFromIssue, cameFromParent, getId, getIssue, getIssueObject, getIssueObjectNoSecurityCheck, getIssuePath, getKey, getLayoutBean, getParentIssueObject, getProject, getSecurityLevel, getSecurityLevel, getSecurityLevelName, getSubTaskManager, getSummaryIssue, getViewIssueKey, getViewUrl, isEditable, isEditable, isHasEditIssuePermission, isIssueExists, isIssueValid, isSubTask, isSubTaskCreatable, isWorkflowAllowsEdit, redirectToView, resetIssue, setId, setIssue, setKey, setViewIssueKey
 
Methods inherited from class com.atlassian.jira.web.action.IssueActionSupport
clearSelectedIssue, getAttachmentManager, getCurrentFailedLoginCount, getCurrentJQL, getCustomFieldManager, getDaysPerWeek, getEverLoggedIn, getHoursPerDay, getIssueManager, getLastFailedLogin, getLastLogin, getLoginCount, getPossibleVersions, getPossibleVersionsReleasedFirst, getPrettyDuration, getPreviousLogin, getSearchRequest, getSelectedIssueId, getSessionPagerFilterManager, getSessionSearchRequestManager, getSessionSearchRequestManagerFactory, getSessionSelectedIssueManager, getTotalFailedLoginCount, getUrlEncoded, getWorkflow, getWorkflowTransitionDescription, getWorkflowTransitionDisplayName, isCustomFieldHidden, isElevatedSecurityCheckRequired, isFieldHidden, isFieldHidden, isFieldHidden, isTimeTrackingEnabled, setCurrentIssue, setSearchRequest, setSelectedIssueId, updateSearchRequest
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getBrowseableProjectsInCategory, getSelectedProjectId, setSelectedProject, setSelectedProject
 
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, getRemoteUser, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getText, getTimeFormat, getUriValidator, getUserFullName, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, htmlEncode, 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, doDefault, 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.web.action.issue.IssueSummaryAware
getRemoteUser
 
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
 

Field Detail

ADJUST_ESTIMATE_AUTO

protected static final java.lang.String ADJUST_ESTIMATE_AUTO
See Also:
Constant Field Values

ADJUST_ESTIMATE_NEW

protected static final java.lang.String ADJUST_ESTIMATE_NEW
See Also:
Constant Field Values

ADJUST_ESTIMATE_MANUAL

protected static final java.lang.String ADJUST_ESTIMATE_MANUAL
See Also:
Constant Field Values

adjustEstimate

protected java.lang.String adjustEstimate

worklogService

protected final WorklogService worklogService

commentService

protected final CommentService commentService

projectRoleManager

protected final ProjectRoleManager projectRoleManager

jiraDurationUtils

protected final JiraDurationUtils jiraDurationUtils

outlookDateManager

protected final OutlookDateManager outlookDateManager

fieldVisibilityManager

protected final FieldVisibilityManager fieldVisibilityManager
Constructor Detail

AbstractWorklogAction

public AbstractWorklogAction(WorklogService worklogService,
                             CommentService commentService,
                             ProjectRoleManager projectRoleManager,
                             JiraDurationUtils jiraDurationUtils,
                             OutlookDateManager outlookDateManager,
                             FieldVisibilityManager fieldVisibilityManager,
                             FieldLayoutManager fieldLayoutManager,
                             RendererManager rendererManager)
Method Detail

getComment

public java.lang.String getComment()

getEstimate

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

isTimeTrackingFieldHidden

public boolean isTimeTrackingFieldHidden(Issue issue)

getTimeLogged

public java.lang.String getTimeLogged()

setTimeLogged

public void setTimeLogged(java.lang.String timeLogged)

getWorkType

public java.lang.String getWorkType()

setWorkType

public void setWorkType(java.lang.String workType)

getNewEstimate

public java.lang.String getNewEstimate()

setNewEstimate

public void setNewEstimate(java.lang.String newEstimate)

getAdjustmentAmount

public java.lang.String getAdjustmentAmount()

setAdjustmentAmount

public void setAdjustmentAmount(java.lang.String adjustmentAmount)

getAdjustEstimate

public java.lang.String getAdjustEstimate()

setAdjustEstimate

public void setAdjustEstimate(java.lang.String adjustEstimate)

isLevelSelected

public boolean isLevelSelected(java.lang.String visibilityLevel)

getSelectedLevelName

public java.lang.String getSelectedLevelName()

getCommentLevel

public java.lang.String getCommentLevel()

setCommentLevel

public void setCommentLevel(java.lang.String commentLevel)

setComment

public void setComment(java.lang.String comment)

getGroupLevels

public java.util.Collection getGroupLevels()

getRoleLevels

public java.util.Collection<ProjectRole> getRoleLevels()

getStartDate

public java.lang.String getStartDate()

setStartDate

public void setStartDate(java.lang.String startDate)

getCommentVisibility

protected CommentVisibility getCommentVisibility()

getParsedStartDate

protected java.util.Date getParsedStartDate()

getFormattedStartDate

protected java.lang.String getFormattedStartDate(java.util.Date date)

getWorklogId

public java.lang.Long getWorklogId()

setWorklogId

public void setWorklogId(java.lang.Long worklogId)

getWorkDescriptionEditHtml

public java.lang.String getWorkDescriptionEditHtml()
Renders the input control for the Work Description (i.e. Comment) of the Log Work form. The control will be different depending on which renderer is chosen for the Log Work field for this specific issue context.

Returns:
the HTML of the input control to be displayed on the form.


Copyright © 2002-2010 Atlassian. All Rights Reserved.