com.atlassian.jira.issue.tabpanels
Class WorklogAction

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

@NonInjectableComponent
public class WorklogAction
extends AbstractIssueAction


Field Summary
 
Fields inherited from class com.atlassian.jira.plugin.issuetabpanel.AbstractIssueAction
descriptor
 
Constructor Summary
WorklogAction(IssueTabPanelModuleDescriptor descriptor, Worklog worklog, JiraDurationUtils jiraDurationUtils, boolean canEditWorklog, boolean canDeleteWorklog, FieldLayoutManager fieldLayoutManager, RendererManager rendererManager)
           
 
Method Summary
 String getPrettyDuration(String duration)
           
 Date getTimePerformed()
          This is used to sort between IssueAction objects on the 'All' tab.
 Worklog getWorklog()
           
 boolean isCanDeleteWorklog()
           
 boolean isCanEditWorklog()
           
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

WorklogAction

public WorklogAction(IssueTabPanelModuleDescriptor descriptor,
                     Worklog worklog,
                     JiraDurationUtils jiraDurationUtils,
                     boolean canEditWorklog,
                     boolean canDeleteWorklog,
                     FieldLayoutManager fieldLayoutManager,
                     RendererManager rendererManager)
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

getPrettyDuration

public String getPrettyDuration(String duration)

getWorklog

public Worklog getWorklog()

isCanDeleteWorklog

public boolean isCanDeleteWorklog()

isCanEditWorklog

public boolean isCanEditWorklog()


Copyright © 2002-2012 Atlassian. All Rights Reserved.