Class AttachmentZipFileCreator
java.lang.Object
com.atlassian.jira.issue.attachment.zip.AttachmentZipFileCreator
This class can create temporary zip files containing all the attachments on an issue
- Since:
- v4.1
-
Constructor Summary
ConstructorsConstructorDescriptionAttachmentZipFileCreator(BulkAttachmentOperations bulkAttachmentOperations, AttachmentManager attachmentManager) -
Method Summary
-
Constructor Details
-
AttachmentZipFileCreator
public AttachmentZipFileCreator(BulkAttachmentOperations bulkAttachmentOperations, AttachmentManager attachmentManager)
-
-
Method Details
-
toZipFile
This will return a ZIP file that contains all the attachments of an issue. The file will be created in the temporary directory and end in .zipyou should delete the file when you are done, otherwise, well this is JIRA not Bamboo!
- Returns:
- a zip file containing all the attachments of an issue
- Throws:
IOException- if stuff goes wrong
-