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
  • 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: AttachmentZipExtractor
      For a given attachment and issue retrieves zip contents (if the attachment is a zip archive).
      Specified by:
      getZipContents in interface AttachmentZipExtractor
      Returns:
      ZipContents or Option.none() if the attachment is not a zip file.