|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.plugin.issuetabpanel.AbstractIssueAction com.atlassian.jira.issue.tabpanels.CommentAction
public class CommentAction
This class is the wrapper around the comment object and is used when displaying comments in the View Issue page, on the 'Comment' issue tab panel.
Field Summary |
---|
Fields inherited from class com.atlassian.jira.plugin.issuetabpanel.AbstractIssueAction |
---|
descriptor |
Constructor Summary | |
---|---|
CommentAction(IssueTabPanelModuleDescriptor descriptor,
Comment comment,
boolean canEditComment,
boolean canDeleteComment,
RendererManager rendererManager,
FieldLayoutManager fieldLayoutManager,
DateTimeFormatter dateTimeFormatter)
|
Method Summary | |
---|---|
protected DateTimeFormatter |
dateTimeFormatter()
Returns a DateTimeFormatter for the logged in user. |
String |
formatDisplayHtml(Date date)
|
String |
formatIso8601Html(Date date)
|
Comment |
getComment()
Returns the comment |
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 |
protected void |
populateVelocityParams(Map params)
This will populate the passed in map witht this object referenced as "action" and the rendered comment body as "renderedContent". |
Methods inherited from class com.atlassian.jira.plugin.issuetabpanel.AbstractIssueAction |
---|
getHtml, isDisplayActionAllTab |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommentAction(IssueTabPanelModuleDescriptor descriptor, Comment comment, boolean canEditComment, boolean canDeleteComment, RendererManager rendererManager, FieldLayoutManager fieldLayoutManager, DateTimeFormatter dateTimeFormatter)
Method Detail |
---|
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 Comment getComment()
public Issue getIssue()
public boolean isCanEditComment()
public boolean isCanDeleteComment()
public String formatDisplayHtml(Date date)
public String formatIso8601Html(Date date)
protected DateTimeFormatter dateTimeFormatter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |