Interface AttachmentZipExtractor
- All Known Implementing Classes:
DefaultAttachmentZipExtractor
public interface AttachmentZipExtractor
An adapter class that encapsulates extracting zip contents from an Attachment. This behaviour changed
in JIRA 6.4 with the introduction of the
AttachmentIndexManager to support
blobstore.- Since:
- v6.5
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionio.atlassian.fugue.Option<AttachmentZipExtractor.ZipContents>getZipContents(com.atlassian.jira.issue.attachment.Attachment attachment, com.atlassian.jira.issue.Issue issue) For a given attachment and issue retrieves zip contents (if the attachment is a zip archive).
-
Method Details
-
getZipContents
io.atlassian.fugue.Option<AttachmentZipExtractor.ZipContents> getZipContents(com.atlassian.jira.issue.attachment.Attachment attachment, com.atlassian.jira.issue.Issue issue) For a given attachment and issue retrieves zip contents (if the attachment is a zip archive).- Returns:
- ZipContents or
Option.none()if the attachment is not a zip file.
-