com.atlassian.jira.issue.tabpanels
Class ChangeHistoryAction

java.lang.Object
  extended by com.atlassian.jira.plugin.issuetabpanel.AbstractIssueAction
      extended by com.atlassian.jira.issue.tabpanels.ChangeHistoryAction
All Implemented Interfaces:
IssueAction

public class ChangeHistoryAction
extends AbstractIssueAction

This class is the wrapper around the ChangeHistory object and is used when displaying change history in the View Issue page, on the 'Change History' tab panel.


Field Summary
 
Fields inherited from class com.atlassian.jira.plugin.issuetabpanel.AbstractIssueAction
descriptor
 
Constructor Summary
ChangeHistoryAction(IssueTabPanelModuleDescriptor descriptor, ChangeHistory changeHistory, boolean showHeader, AttachmentManager attachmentManager, JiraDurationUtils jiraDurationUtils, CustomFieldManager customFieldManager, DateTimeFormatter formatter, Issue issue, DateTimeFieldChangeLogHelper changeLogHelper, HistoryMetadata historyMetadata, HistoryMetadataRenderHelper historyMetadataRenderHelper)
           
 
Method Summary
 String formatDateValue(String value, String string, String fieldName)
           
 String formatValueStringForDisplay(String value)
           
 String getAuthor()
           
 List getChangeItems()
           
 String getComment()
           
 Timestamp getCreatedDate()
           
 String getCreatedDateHtml()
           
 String getCreatedDateIso8601Html()
           
 String getFullName()
           
 HistoryMetadata getHistoryMetadata()
           
 Long getId()
           
 String getLevel()
           
 String getPrettyDuration(String duration)
           
 Date getTimePerformed()
          This is used to sort between IssueAction objects on the 'All' tab.
 boolean isAttachmentValid(String fileId)
           
 boolean isDateField(String fieldName)
           
 boolean isShowHeader()
           
protected  void populateVelocityParams(Map params)
           
 
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

ChangeHistoryAction

public ChangeHistoryAction(IssueTabPanelModuleDescriptor descriptor,
                           ChangeHistory changeHistory,
                           boolean showHeader,
                           AttachmentManager attachmentManager,
                           JiraDurationUtils jiraDurationUtils,
                           CustomFieldManager customFieldManager,
                           DateTimeFormatter formatter,
                           Issue issue,
                           DateTimeFieldChangeLogHelper changeLogHelper,
                           HistoryMetadata historyMetadata,
                           HistoryMetadataRenderHelper historyMetadataRenderHelper)
Method Detail

getTimePerformed

public Date getTimePerformed()
Description copied from interface: IssueAction
This is used to sort between IssueAction objects on the 'All' tab.

Specified by:
getTimePerformed in interface IssueAction
Specified by:
getTimePerformed in class AbstractIssueAction
Returns:
timestamp of when the issue action was created, or throw UnsupportedOperationException if there is no timestamp (say for generic messages)
See Also:
IssueActionComparator

populateVelocityParams

protected void populateVelocityParams(Map params)
Specified by:
populateVelocityParams in class AbstractIssueAction

isShowHeader

public boolean isShowHeader()

getId

public Long getId()

getAuthor

public String getAuthor()

getFullName

public String getFullName()

getCreatedDate

public Timestamp getCreatedDate()

getCreatedDateHtml

public String getCreatedDateHtml()

getCreatedDateIso8601Html

public String getCreatedDateIso8601Html()

getComment

public String getComment()

getLevel

public String getLevel()

getChangeItems

public List getChangeItems()

isAttachmentValid

public boolean isAttachmentValid(String fileId)

isDateField

public boolean isDateField(String fieldName)

formatDateValue

public String formatDateValue(String value,
                              String string,
                              String fieldName)

formatValueStringForDisplay

public String formatValueStringForDisplay(String value)

getPrettyDuration

public String getPrettyDuration(String duration)

getHistoryMetadata

public HistoryMetadata getHistoryMetadata()


Copyright © 2002-2014 Atlassian. All Rights Reserved.