com.atlassian.jira.issue.operations
Class LogWorkOperation
java.lang.Object
com.atlassian.jira.plugin.issueoperation.AbstractPluggableIssueOperation
com.atlassian.jira.issue.operations.LogWorkOperation
- All Implemented Interfaces:
- PluggableIssueOperation
public class LogWorkOperation
- extends AbstractPluggableIssueOperation
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogWorkOperation
public LogWorkOperation(JiraAuthenticationContext authenticationContext,
WorklogService worklogService)
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-2009 Atlassian. All Rights Reserved.