public abstract class

AbstractWorklogAction

extends AbstractIssueSelectAction
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
Known Direct Subclasses

Summary

Constants
String ADJUST_ESTIMATE_AUTO
String ADJUST_ESTIMATE_MANUAL
String ADJUST_ESTIMATE_NEW
[Expand]
Inherited Constants
From class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
From class com.atlassian.jira.web.action.JiraWebActionSupport
From interface webwork.action.Action
Fields
protected String adjustEstimate
protected final CommentService commentService
protected final FieldVisibilityManager fieldVisibilityManager
protected final JiraDurationUtils jiraDurationUtils
protected final OutlookDateManager outlookDateManager
protected final ProjectRoleManager projectRoleManager
protected final WorklogService worklogService
[Expand]
Inherited Fields
From class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
From class com.atlassian.jira.web.action.IssueActionSupport
From class com.atlassian.jira.web.action.ProjectActionSupport
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
Public Constructors
AbstractWorklogAction(WorklogService worklogService, CommentService commentService, ProjectRoleManager projectRoleManager, JiraDurationUtils jiraDurationUtils, OutlookDateManager outlookDateManager, FieldVisibilityManager fieldVisibilityManager, FieldLayoutManager fieldLayoutManager, RendererManager rendererManager, UserUtil userUtil, FeatureManager featureManager)
Public Methods
String getAdjustEstimate()
String getAdjustmentAmount()
String getComment()
String getCommentLevel()
String getEstimate()
Collection getGroupLevels()
String getNewEstimate()
Collection<ProjectRole> getRoleLevels()
String getSelectedLevelName()
String getStartDate()
String getTimeLogged()
String getWorkDescriptionEditHtml()
Renders the input control for the Work Description (i.e.
String getWorkType()
Long getWorklogId()
boolean isLevelSelected(String visibilityLevel)
boolean isOnDemand()
boolean isTimeTrackingFieldHidden(Issue issue)
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 setWorkType(String workType)
void setWorklogId(Long worklogId)
Protected Methods
CommentVisibility getCommentVisibility()
String getFormattedStartDate(Date date)
Date getParsedStartDate()
[Expand]
Inherited Methods
From class com.atlassian.jira.web.action.issue.AbstractIssueSelectAction
From class com.atlassian.jira.web.action.IssueActionSupport
From class com.atlassian.jira.web.action.ProjectActionSupport
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
From class java.lang.Object
From interface com.atlassian.jira.util.ErrorCollection
From interface com.atlassian.jira.util.I18nHelper
From interface com.atlassian.jira.web.HttpServletVariables
From interface com.atlassian.jira.web.action.issue.IssueSummaryAware
From interface com.atlassian.jira.web.util.AuthorizationSupport
From interface webwork.action.Action
From interface webwork.action.CommandDriven
From interface webwork.action.IllegalArgumentAware

Constants

protected static final String ADJUST_ESTIMATE_AUTO

Constant Value: "auto"

protected static final String ADJUST_ESTIMATE_MANUAL

Constant Value: "manual"

protected static final String ADJUST_ESTIMATE_NEW

Constant Value: "new"

Fields

protected String adjustEstimate

protected final CommentService commentService

protected final FieldVisibilityManager fieldVisibilityManager

protected final JiraDurationUtils jiraDurationUtils

protected final OutlookDateManager outlookDateManager

protected final ProjectRoleManager projectRoleManager

protected final WorklogService worklogService

Public Constructors

public AbstractWorklogAction (WorklogService worklogService, CommentService commentService, ProjectRoleManager projectRoleManager, JiraDurationUtils jiraDurationUtils, OutlookDateManager outlookDateManager, FieldVisibilityManager fieldVisibilityManager, FieldLayoutManager fieldLayoutManager, RendererManager rendererManager, UserUtil userUtil, FeatureManager featureManager)

Public Methods

public String getAdjustEstimate ()

public String getAdjustmentAmount ()

public String getComment ()

public String getCommentLevel ()

public String getEstimate ()

Throws
Exception

public Collection getGroupLevels ()

public String getNewEstimate ()

public Collection<ProjectRole> getRoleLevels ()

public String getSelectedLevelName ()

public String getStartDate ()

public String getTimeLogged ()

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.

public String getWorkType ()

public Long getWorklogId ()

public boolean isLevelSelected (String visibilityLevel)

public boolean isOnDemand ()

public boolean isTimeTrackingFieldHidden (Issue issue)

public void setAdjustEstimate (String adjustEstimate)

public void setAdjustmentAmount (String adjustmentAmount)

public void setComment (String comment)

public void setCommentLevel (String commentLevel)

public void setNewEstimate (String newEstimate)

public void setStartDate (String startDate)

public void setTimeLogged (String timeLogged)

public void setWorkType (String workType)

public void setWorklogId (Long worklogId)

Protected Methods

protected CommentVisibility getCommentVisibility ()

protected String getFormattedStartDate (Date date)

protected Date getParsedStartDate ()