com.atlassian.jira.issue.attachment
Class DefaultReadOnlyFileSystemAttachmentStore
java.lang.Object
com.atlassian.jira.issue.attachment.DefaultReadOnlyFileSystemAttachmentStore
- All Implemented Interfaces:
- ReadOnlyFileBasedAttachmentStore
public class DefaultReadOnlyFileSystemAttachmentStore
- extends Object
- implements ReadOnlyFileBasedAttachmentStore
Basic implementation of a ReadOnlyFileBasedAttachmentStore rooted at the specified root directory.
- Since:
- v6.3
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultReadOnlyFileSystemAttachmentStore
public DefaultReadOnlyFileSystemAttachmentStore(File rootDirectory)
getAttachmentFile
public File getAttachmentFile(AttachmentKey attachment)
throws DataAccessException
- Description copied from interface:
ReadOnlyFileBasedAttachmentStore
- 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.
- Specified by:
getAttachmentFile
in interface ReadOnlyFileBasedAttachmentStore
- Parameters:
attachment
- Reference to the attachment
- Returns:
- the file.
- Throws:
DataAccessException
- on failure getting required attachment info.
Copyright © 2002-2014 Atlassian. All Rights Reserved.