public class

DefaultReadOnlyFileSystemAttachmentStore

extends Object
implements ReadOnlyFileBasedAttachmentStore
java.lang.Object
   ↳ com.atlassian.jira.issue.attachment.DefaultReadOnlyFileSystemAttachmentStore

Class Overview

Basic implementation of a ReadOnlyFileBasedAttachmentStore rooted at the specified root directory.

Summary

Public Constructors
DefaultReadOnlyFileSystemAttachmentStore(File rootDirectory)
Public Methods
File getAttachmentFile(AttachmentKey attachment)
Returns a reference to a physical File representing the data for the given Attachment.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.attachment.ReadOnlyFileBasedAttachmentStore

Public Constructors

public DefaultReadOnlyFileSystemAttachmentStore (File rootDirectory)

Public Methods

public File getAttachmentFile (AttachmentKey attachment)

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
attachment Reference to the attachment
Returns
  • the file.