public class CommentAction extends AbstractIssueAction
descriptor
Constructor and Description |
---|
CommentAction(IssueTabPanelModuleDescriptor descriptor,
Comment comment,
boolean canEditComment,
boolean canDeleteComment,
boolean isCollapsed,
RendererManager rendererManager,
FieldLayoutManager fieldLayoutManager,
DateTimeFormatter dateTimeFormatter,
CommentFieldRenderer commentFieldRenderer,
CommentPropertyService commentPropertyService,
JiraAuthenticationContext jiraAuthenticationContext) |
Modifier and Type | Method and Description |
---|---|
protected DateTimeFormatter |
dateTimeFormatter()
Returns a DateTimeFormatter for the logged in user.
|
String |
formatDisplayHtml(Date date) |
String |
formatIso8601Html(Date date) |
Comment |
getComment()
Returns the comment
|
List<EntityProperty> |
getCommentProperties() |
String |
getHtml()
Get the HTML to present for this issueAction on the tab panel.
|
Issue |
getIssue()
Returns issue related to this comment
|
Date |
getTimePerformed()
Returns the comment created date
|
boolean |
isCanDeleteComment()
Returns true is comment can be deleted, false otherwise
|
boolean |
isCanEditComment()
Returns true is comment is editable, false otherwise
|
boolean |
isCollapsed() |
protected void |
populateVelocityParams(Map params)
This will populate the passed in map with this object referenced as "action" and the rendered comment body as
"renderedContent".
|
isDisplayActionAllTab
public CommentAction(IssueTabPanelModuleDescriptor descriptor, Comment comment, boolean canEditComment, boolean canDeleteComment, boolean isCollapsed, RendererManager rendererManager, FieldLayoutManager fieldLayoutManager, DateTimeFormatter dateTimeFormatter, CommentFieldRenderer commentFieldRenderer, CommentPropertyService commentPropertyService, JiraAuthenticationContext jiraAuthenticationContext)
public Date getTimePerformed()
getTimePerformed
in interface IssueAction
getTimePerformed
in class AbstractIssueAction
IssueActionComparator
protected void populateVelocityParams(Map params)
populateVelocityParams
in class AbstractIssueAction
params
- map of params to populatepublic String getHtml()
IssueAction
getHtml
in interface IssueAction
getHtml
in class AbstractIssueAction
public Comment getComment()
public List<EntityProperty> getCommentProperties()
public Issue getIssue()
public boolean isCanEditComment()
public boolean isCanDeleteComment()
public boolean isCollapsed()
protected DateTimeFormatter dateTimeFormatter()
Copyright © 2002-2019 Atlassian. All Rights Reserved.