public interface

ReadOnlyFileBasedAttachmentStore

com.atlassian.jira.issue.attachment.ReadOnlyFileBasedAttachmentStore
Known Indirect Subclasses

Class Overview

Represents a read-only attachment store on a file system.

Summary

Public Methods
File getAttachmentFile(AttachmentKey key)
Returns a reference to a physical File representing the data for the given Attachment.

Public Methods

public File getAttachmentFile (AttachmentKey key)

Returns a reference to a physical File representing the data for the given Attachment. If you are calling this on multiple attachments for the same issue, consider using the overriden method that passes in the issue. Else, this goes to the database for each call.

Parameters
key Reference to the attachment
Returns
  • the file.
Throws
DataAccessException on failure getting required attachment info.