com.atlassian.jira.issue.operations
Class LogWorkOperation

java.lang.Object
  extended by com.atlassian.jira.plugin.issueoperation.AbstractPluggableIssueOperation
      extended by com.atlassian.jira.issue.operations.LogWorkOperation
All Implemented Interfaces:
PluggableIssueOperation

public class LogWorkOperation
extends AbstractPluggableIssueOperation


Field Summary
 
Fields inherited from class com.atlassian.jira.plugin.issueoperation.AbstractPluggableIssueOperation
descriptor
 
Constructor Summary
LogWorkOperation(JiraAuthenticationContext authenticationContext, WorklogService worklogService)
           
 
Method Summary
 String getHtml(Issue issue)
          Get the HTML to present on screen
protected  boolean isTimeTrackingFieldHidden(Issue issue)
          Checks if the time tracking field is hidden for the given issue.
 boolean isWorkable(Issue issue)
           
 boolean showOperation(Issue issue)
          Returns true only if user is logged in, time tracking is enabled, time tracking field is visible for the given issue and the issue is in editable workflow state.
 
Methods inherited from class com.atlassian.jira.plugin.issueoperation.AbstractPluggableIssueOperation
getBullet, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogWorkOperation

public LogWorkOperation(JiraAuthenticationContext authenticationContext,
                        WorklogService worklogService)
Method Detail

getHtml

public String getHtml(Issue issue)
Description copied from interface: PluggableIssueOperation
Get the HTML to present on screen


isWorkable

public boolean isWorkable(Issue issue)

showOperation

public boolean showOperation(Issue issue)
Returns true only if user is logged in, time tracking is enabled, time tracking field is visible for the given issue and the issue is in editable workflow state.

Parameters:
issue - issue to show the operation for
Returns:
true if the operation should be shown, false otherwise

isTimeTrackingFieldHidden

protected boolean isTimeTrackingFieldHidden(Issue issue)
Checks if the time tracking field is hidden for the given issue.

Parameters:
issue - issue to check the time tracking field on
Returns:
true if time tracking field is hidden, false otherwise


Copyright © 2002-2008 Atlassian. All Rights Reserved.