public class CommentAction extends AbstractIssueAction
descriptor| Constructor and Description |
|---|
CommentAction(IssueTabPanelModuleDescriptor descriptor,
Comment comment,
boolean canEditComment,
boolean canDeleteComment,
boolean canReact,
boolean commentReactionsEnabled,
boolean isHeader,
boolean isCollapsed,
boolean isPinned,
boolean canPin,
String pinnedBy,
Date pinnedAt,
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 |
getPinnedAt() |
String |
getPinnedBy() |
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 |
isCanPin() |
boolean |
isCanReact() |
boolean |
isCollapsed() |
boolean |
isCommentReactionsEnabled() |
boolean |
isHeader() |
boolean |
isPinned() |
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".
|
isDisplayActionAllTabpublic CommentAction(IssueTabPanelModuleDescriptor descriptor, Comment comment, boolean canEditComment, boolean canDeleteComment, boolean canReact, boolean commentReactionsEnabled, boolean isHeader, boolean isCollapsed, boolean isPinned, boolean canPin, String pinnedBy, Date pinnedAt, RendererManager rendererManager, FieldLayoutManager fieldLayoutManager, DateTimeFormatter dateTimeFormatter, CommentFieldRenderer commentFieldRenderer, CommentPropertyService commentPropertyService, JiraAuthenticationContext jiraAuthenticationContext)
public Date getTimePerformed()
getTimePerformed in interface IssueActiongetTimePerformed in class AbstractIssueActionIssueActionComparatorpublic Date getPinnedAt()
protected void populateVelocityParams(Map params)
populateVelocityParams in class AbstractIssueActionparams - map of params to populatepublic String getHtml()
IssueActiongetHtml in interface IssueActiongetHtml in class AbstractIssueActionpublic Comment getComment()
public List<EntityProperty> getCommentProperties()
public Issue getIssue()
public boolean isCanEditComment()
public boolean isCanDeleteComment()
public boolean isCanReact()
public boolean isCommentReactionsEnabled()
public boolean isCollapsed()
public boolean isHeader()
public boolean isPinned()
public boolean isCanPin()
public String getPinnedBy()
protected DateTimeFormatter dateTimeFormatter()
Copyright © 2002-2024 Atlassian. All Rights Reserved.