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
|
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, getThumbnailDirectorypublic FileSystemThumbnailAccessor(AttachmentDirectoryAccessor ada)
@Nonnull public File getThumbnailFile(@Nonnull Attachment attachment)
ThumbnailAccessorhttp://jira.atlassian.com/browse/JRA-23311
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)
ThumbnailAccessorThumbnailAccessor.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)
http://jira.atlassian.com/browse/JRA-23311
attachment - the attacment in playCopyright © 2002-2018 Atlassian. All Rights Reserved.