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, 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

Field Summary
protected static String ADJUST_ESTIMATE_AUTO
           
protected static String ADJUST_ESTIMATE_MANUAL
           
protected static String ADJUST_ESTIMATE_NEW
           
protected  String adjustEstimate
           
protected  CommentService commentService
           
protected  JiraDurationUtils jiraDurationUtils
           
protected  OutlookDateManager outlookDateManager
           
protected  ProjectRoleManager projectRoleManager
           
protected  WorklogService worklogService
           
 
Fields inherited from class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
id
 
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, savedFilters, selectedProject
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface com.atlassian.jira.util.I18nHelper
DEFAULT_RESOURCE_BUNDLE
 
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)
           
 
Method Summary
 String getAdjustEstimate()
           
 String getAdjustmentAmount()
           
 String getComment()
           
 String getCommentLevel()
           
protected  CommentVisibility getCommentVisibility()
           
 String getEstimate()
           
protected  String getFormattedStartDate(Date date)
           
 Collection getGroupLevels()
           
 String getNewEstimate()
           
protected  Date getParsedStartDate()
           
 Collection getRoleLevels()
           
 String getStartDate()
           
 String getTimeLogged()
           
 Long getWorklogId()
           
 String getWorkType()
           
 boolean isLevelSelected(String visibilityLevel)
           
 void setAdjustEstimate(String adjustEstimate)
           
 void setAdjustmentAmount(String adjustmentAmount)
           
 void setComment(String comment)
           
 void setCommentLevel(String commentLevel)
           
 void setNewEstimate(String newEstimate)
           
 void setStartDate(String startDate)
           
 void setTimeLogged(String timeLogged)
           
 void setWorklogId(Long worklogId)
           
 void setWorkType(String workType)
           
 
Methods inherited from class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
getDefaultSecurityLevel, getId, getIssue, getIssueObject, getIssueObjectNoSecurityCheck, getIssuePath, getKey, getLayoutBean, getProject, getSecurityLevel, getSecurityLevel, getSecurityLevelName, getSecurityLevels, getSecurityLevels, getSummaryIssue, getViewIssueKey, getViewUrl, isEditable, isEditable, isHasEditIssuePermission, isIssueExists, isWorkflowAllowsEdit, redirectToView, resetIssue, setId, setIssue, setKey, setViewIssueKey
 
Methods inherited from class com.atlassian.jira.web.action.IssueActionSupport
getAttachmentManager, getCustomFieldManager, getDaysPerWeek, getHoursPerDay, getIssueManager, getPossibleVersions, getPossibleVersionsReleasedFirst, getPrettyDuration, getSearchRequest, getUrlEncoded, getWorkflow, getWorkflowTransitionDescription, getWorkflowTransitionDisplayName, isCustomFieldHidden, isFieldHidden, isFieldHidden, isFieldHidden, setCurrentIssue, setSearchRequest, 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, forceRedirect, getAssignableUsers, getAssignableUsers, getCachedGroups, getComponentManager, getConstantsManager, getDateFormat, getDateTimeFormat, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getGlobalPermissionManager, getJiraServiceContext, getLanguage, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRedirect, getRemoteUser, getReturnUrl, getSearchSortReverseDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getText, getTimeFormat, getUserFullName, getVersionManager, getWebworkStack, getWebworkStack, htmlEncode, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isSystemAdministrator, isUserExists, setReturnUrl, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getApplicationProperties, getDefaultResourceBundle, getDelegator, getJiraLocaleUtils, getLocale, getResult, getText, getText, getText, getText, getText, getText, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, isStandard, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doDefault, doExecute, doValidation, 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
setCommand
 

Field Detail

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
Constructor Detail

AbstractWorklogAction

public AbstractWorklogAction(WorklogService worklogService,
                             CommentService commentService,
                             ProjectRoleManager projectRoleManager,
                             JiraDurationUtils jiraDurationUtils,
                             OutlookDateManager outlookDateManager)
Method Detail

getComment

public String getComment()

getEstimate

public String getEstimate()
                   throws Exception
Throws:
Exception

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)

getCommentLevel

public String getCommentLevel()

setCommentLevel

public void setCommentLevel(String commentLevel)

setComment

public void setComment(String comment)

getGroupLevels

public Collection getGroupLevels()

getRoleLevels

public Collection 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)


Copyright © 2002-2009 Atlassian. All Rights Reserved.