Class DefaultAttachmentZipExtractor
java.lang.Object
com.atlassian.greenhopper.issue.util.DefaultAttachmentZipExtractor
- All Implemented Interfaces:
AttachmentZipExtractor
@Service
public class DefaultAttachmentZipExtractor
extends Object
implements AttachmentZipExtractor
Zip extractor making use of the new
AttachmentIndexManager-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.greenhopper.issue.util.AttachmentZipExtractor
AttachmentZipExtractor.IconEntry, AttachmentZipExtractor.ZipContents, AttachmentZipExtractor.ZipEntry -
Constructor Summary
ConstructorsConstructorDescriptionDefaultAttachmentZipExtractor(com.atlassian.jira.config.properties.ApplicationProperties applicationProperties, com.atlassian.jira.web.util.FileIconUtil fileIconUtil, com.atlassian.jira.issue.AttachmentIndexManager attachmentIndexManager) -
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).
-
Constructor Details
-
DefaultAttachmentZipExtractor
@Autowired public DefaultAttachmentZipExtractor(com.atlassian.jira.config.properties.ApplicationProperties applicationProperties, com.atlassian.jira.web.util.FileIconUtil fileIconUtil, com.atlassian.jira.issue.AttachmentIndexManager attachmentIndexManager)
-
-
Method Details
-
getZipContents
public io.atlassian.fugue.Option<AttachmentZipExtractor.ZipContents> getZipContents(com.atlassian.jira.issue.attachment.Attachment attachment, com.atlassian.jira.issue.Issue issue) Description copied from interface:AttachmentZipExtractorFor a given attachment and issue retrieves zip contents (if the attachment is a zip archive).- Specified by:
getZipContentsin interfaceAttachmentZipExtractor- Returns:
- ZipContents or
Option.none()if the attachment is not a zip file.
-