public class

AbstractCommentableIssue

extends AbstractViewIssue
implements OperationContext
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.AbstractViewIssue
                 ↳ com.atlassian.jira.web.action.issue.AbstractCommentableIssue
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

This class should be extended by any action that modifies issues and can have an associated comment.

Subclasses should call super.doValidation() to check commenting permission.

Summary

[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 final UserUtil userUtil
[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
AbstractCommentableIssue(SubTaskManager subTaskManager, FieldScreenRendererFactory fieldScreenRendererFactory, FieldManager fieldManager, ProjectRoleManager projectRoleManager, CommentService commentService, UserUtil userUtil)
Public Methods
String getComment()
String getCommentLevel()
Map<StringObject> getDisplayParams()
FieldScreenRenderLayoutItem getFieldScreenRendererLayoutItemForField(OrderableField field)
Map<StringObject> getFieldValuesHolder()
String getGroupLevel()
Collection<Group> getGroupLevels()
IssueOperation getIssueOperation()
Collection<ProjectRole> getRoleLevels()
void setComment(String comment)
void setCommentLevel(String commentLevel)
void setFieldValuesHolder(Map fieldValuesHolder)
void setGroupLevel(String groupLevel)
Protected Methods
@Nullable Comment createComment()
void doCommentValidation(boolean allowEmptyComment)
void doValidation()
FieldScreenRenderer getFieldScreenRendererWithAllFields()
OrderableField getOrderableField(String fieldId)
void populateCommentFields()
[Expand]
Inherited Methods
From class com.atlassian.jira.web.action.issue.AbstractViewIssue
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.issue.customfields.OperationContext
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

Fields

protected final UserUtil userUtil

Public Constructors

public AbstractCommentableIssue (SubTaskManager subTaskManager, FieldScreenRendererFactory fieldScreenRendererFactory, FieldManager fieldManager, ProjectRoleManager projectRoleManager, CommentService commentService, UserUtil userUtil)

Public Methods

public String getComment ()

public String getCommentLevel ()

public Map<StringObject> getDisplayParams ()

public FieldScreenRenderLayoutItem getFieldScreenRendererLayoutItemForField (OrderableField field)

public Map<StringObject> getFieldValuesHolder ()

public String getGroupLevel ()

Returns
  • the name of the group to which comment visibility will be restricted

public Collection<Group> getGroupLevels ()

public IssueOperation getIssueOperation ()

public Collection<ProjectRole> getRoleLevels ()

public void setComment (String comment)

public void setCommentLevel (String commentLevel)

public void setFieldValuesHolder (Map fieldValuesHolder)

public void setGroupLevel (String groupLevel)

Protected Methods

@Nullable protected Comment createComment ()

protected void doCommentValidation (boolean allowEmptyComment)

protected void doValidation ()

protected FieldScreenRenderer getFieldScreenRendererWithAllFields ()

protected OrderableField getOrderableField (String fieldId)

protected void populateCommentFields ()