com.atlassian.jira.issue.attachment
Interface ReadOnlyFileBasedAttachmentStore

All Known Implementing Classes:
DefaultReadOnlyFileSystemAttachmentStore

public interface ReadOnlyFileBasedAttachmentStore

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

Since:
v6.3

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

Method Detail

getAttachmentFile

File getAttachmentFile(AttachmentKey key)
                       throws DataAccessException
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.


Copyright © 2002-2014 Atlassian. All Rights Reserved.