public class FileSystemThumbnailAccessor extends WithDirectoryAccessorThumbnailAccessor
Constructor and Description |
---|
FileSystemThumbnailAccessor(AttachmentDirectoryAccessor ada) |
Modifier and Type | Method and Description |
---|---|
File |
getLegacyThumbnailFile(Attachment attachment)
Returns the old legacy file name for thumbnails
http://jira.atlassian.com/browse/JRA-23311
|
File |
getThumbnailFile(Attachment attachment)
Just like the attachments themselves, thumbnails can succumb to file system encoding problems.
|
File |
getThumbnailFile(Issue issue,
Attachment attachment)
Returns the file handle for the given attachment's thumbnail.
|
deleteThumbnailDirectory, getAttachmentDirectoryAccessor, getThumbnailDirectory, getThumbnailDirectory
public FileSystemThumbnailAccessor(AttachmentDirectoryAccessor ada)
@Nonnull public File getThumbnailFile(@Nonnull Attachment attachment)
ThumbnailAccessor
attachment
- the attachment for which to get the thumbnail fileThumbnailAccessor.getThumbnailFile(com.atlassian.jira.issue.Issue, Attachment)
@Nonnull public File getThumbnailFile(@Nonnull Issue issue, @Nonnull Attachment attachment)
ThumbnailAccessor
ThumbnailAccessor.getThumbnailFile(Attachment)
if you already have the issue.issue
- the issue to which the attachment belongsattachment
- the attachment for which to get the thumbnail fileThumbnailAccessor.getThumbnailFile(Attachment)
public File getLegacyThumbnailFile(@Nonnull Attachment attachment)
attachment
- the attacment in playCopyright © 2002-2015 Atlassian. All Rights Reserved.