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.AttachFileOperation
          extended by com.atlassian.jira.issue.operations.AttachScreenshotOperation
All Implemented Interfaces:
PluggableIssueOperation

public class AttachScreenshotOperation
extends AttachFileOperation


Field Summary
 
Fields inherited from class com.atlassian.jira.issue.operations.AttachFileOperation
applicationProperties, attachmentService, authenticationContext
 
Fields inherited from class com.atlassian.jira.plugin.issueoperation.AbstractPluggableIssueOperation
descriptor
 
Constructor Summary
AttachScreenshotOperation(JiraAuthenticationContext authenticationContext, AttachmentService attachmentService, ApplicationProperties applicationProperties)
           
 
Method Summary
 String getAttachScreenshotParams()
           
 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.issue.operations.AttachFileOperation
getHtml
 
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

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.

Specified by:
showOperation in interface PluggableIssueOperation
Overrides:
showOperation in class AttachFileOperation


Copyright © 2002-2007 Atlassian. All Rights Reserved.