com.atlassian.jira.web.action.issue
Class AbstractWorklogAction
java.lang.Object
webwork.action.ActionSupport
com.atlassian.jira.action.JiraActionSupport
com.atlassian.jira.web.action.JiraWebActionSupport
com.atlassian.jira.web.action.ProjectActionSupport
com.atlassian.jira.web.action.IssueActionSupport
com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
com.atlassian.jira.web.action.issue.AbstractWorklogAction
- All Implemented Interfaces:
- ErrorCollection, I18nHelper, IssueSummaryAware, AuthorizationSupport, 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
Fields inherited from class webwork.action.ActionSupport |
command, errorMap, errorMessages |
Fields inherited from interface webwork.action.Action |
ERROR, INPUT, LOGIN, NONE, SUCCESS |
Methods inherited from class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction |
addErrorMessage, assertIssueIsValid, cameFromIssue, cameFromParent, getId, getIssue, getIssueObject, getIssueObjectWithoutDatabaseRead, getIssuePath, getKey, getLayoutBean, getParentIssueObject, getProject, getSecurityLevel, getSubTaskManager, getSummaryIssue, getViewIssueKey, getViewUrl, isEditable, isEditable, isHasEditIssuePermission, isIssueExists, isIssueValid, isSubTask, isSubTaskCreatable, isWorkflowAllowsEdit, redirectToView, refreshIssueObject, setId, setIssueObject, setKey, setViewIssueKey |
Methods inherited from class com.atlassian.jira.web.action.IssueActionSupport |
addIssueToHistory, 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, isTimeTrackingEnabled, setSearchRequest, setSelectedIssueId, updateSearchRequest |
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport |
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addReason, addReasons, forceRedirect, getAdministratorContactLink, getApplicationProperties, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDescTranslation, getDmyDateFormatter, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getJiraContactHelper, getJiraServiceContext, getLanguage, getLoggedInUser, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirectChecker, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getTimeFormat, getUriValidator, getUserFullName, getUserManager, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, htmlEncode, insertContextPath, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId |
Methods inherited from class com.atlassian.jira.action.JiraActionSupport |
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getComponentInstanceOfType, getDefaultResourceBundle, getDelegator, getI18nHelper, getKeysForPrefix, getLocale, getOfBizDelegator, getRemoteUser, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isIndexing, removeKeyOrAddError |
Methods inherited from class webwork.action.ActionSupport |
addError, 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 webwork.action.CommandDriven |
getCommandName, setCommand |
ADJUST_ESTIMATE_AUTO
protected static final String ADJUST_ESTIMATE_AUTO
- See Also:
- Constant Field Values
ADJUST_ESTIMATE_NEW
protected static final String ADJUST_ESTIMATE_NEW
- See Also:
- Constant Field Values
ADJUST_ESTIMATE_MANUAL
protected static final String ADJUST_ESTIMATE_MANUAL
- See Also:
- Constant Field Values
adjustEstimate
protected 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
AbstractWorklogAction
public AbstractWorklogAction(WorklogService worklogService,
CommentService commentService,
ProjectRoleManager projectRoleManager,
JiraDurationUtils jiraDurationUtils,
OutlookDateManager outlookDateManager,
FieldVisibilityManager fieldVisibilityManager,
FieldLayoutManager fieldLayoutManager,
RendererManager rendererManager,
UserUtil userUtil)
getComment
public String getComment()
getEstimate
public String getEstimate()
throws Exception
- Throws:
Exception
isTimeTrackingFieldHidden
public boolean isTimeTrackingFieldHidden(Issue issue)
getTimeLogged
public String getTimeLogged()
setTimeLogged
public void setTimeLogged(String timeLogged)
getWorkType
public String getWorkType()
setWorkType
public void setWorkType(String workType)
getNewEstimate
public String getNewEstimate()
setNewEstimate
public void setNewEstimate(String newEstimate)
getAdjustmentAmount
public String getAdjustmentAmount()
setAdjustmentAmount
public void setAdjustmentAmount(String adjustmentAmount)
getAdjustEstimate
public String getAdjustEstimate()
setAdjustEstimate
public void setAdjustEstimate(String adjustEstimate)
isLevelSelected
public boolean isLevelSelected(String visibilityLevel)
getSelectedLevelName
public String getSelectedLevelName()
getCommentLevel
public String getCommentLevel()
setCommentLevel
public void setCommentLevel(String commentLevel)
setComment
public void setComment(String comment)
getGroupLevels
public Collection getGroupLevels()
getRoleLevels
public Collection<ProjectRole> getRoleLevels()
getStartDate
public String getStartDate()
setStartDate
public void setStartDate(String startDate)
getCommentVisibility
protected CommentVisibility getCommentVisibility()
getParsedStartDate
protected Date getParsedStartDate()
getFormattedStartDate
protected String getFormattedStartDate(Date date)
getWorklogId
public Long getWorklogId()
setWorklogId
public void setWorklogId(Long worklogId)
getWorkDescriptionEditHtml
public 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-2012 Atlassian. All Rights Reserved.