com.atlassian.jira.issue.operations
Class AttachScreenshotOperation

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

public class AttachScreenshotOperation
extends AbstractPluggableIssueOperation


Field Summary
 
Fields inherited from class com.atlassian.jira.plugin.issueoperation.AbstractPluggableIssueOperation
descriptor
 
Constructor Summary
AttachScreenshotOperation(JiraAuthenticationContext authenticationContext, AttachmentService attachmentService, ApplicationProperties applicationProperties)
           
 
Method Summary
 String getActionURL(Issue issue)
           
 String getAttachScreenshotParams()
           
 String getHtml(Issue issue)
          Get the HTML to present on screen
 boolean screenshotAttachable()
          This is called directly from the velocity template (attachscreenshot.vm).
 boolean showOperation(Issue issue)
          Whether or not to show this operation for the given issue.
 
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

AttachScreenshotOperation

public AttachScreenshotOperation(JiraAuthenticationContext authenticationContext,
                                 AttachmentService attachmentService,
                                 ApplicationProperties applicationProperties)
Method Detail

screenshotAttachable

public boolean screenshotAttachable()
This is called directly from the velocity template (attachscreenshot.vm). Determines whether the screenshot applet is enabled and the operating system allows Java applet to get the images from the clipboard.

Returns:
Whether the screenshots are attachable through the screenshot applet

getHtml

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


getAttachScreenshotParams

public String getAttachScreenshotParams()

showOperation

public boolean showOperation(Issue issue)
Description copied from interface: PluggableIssueOperation
Whether or not to show this operation for the given issue.


getActionURL

public String getActionURL(Issue issue)


Copyright © 2002-2009 Atlassian. All Rights Reserved.