public interface ThumbnailAccessor
| Modifier and Type | Method and Description | 
|---|---|
| com.atlassian.util.concurrent.Promise<Void> | deleteThumbnailDirectory(Issue issue)Deletes the thumbnail directory for a given issue, deleting its contents if necessary. | 
| File | getLegacyThumbnailFile(Attachment attachment)Returns the old legacy file name for thumbnails. | 
| File | getThumbnailDirectory(Issue issue)Returns the physical directory of the thumbnails for the given issue, creating if necessary. | 
| File | getThumbnailDirectory(Issue issue,
                     boolean createDirectory)Returns the physical directory of the thumbnails for the given issue. | 
| 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. | 
@Nonnull File getThumbnailFile(@Nonnull Attachment attachment)
attachment - the attachment for which to get the thumbnail filegetThumbnailFile(com.atlassian.jira.issue.Issue, Attachment)@Nonnull File getThumbnailFile(@Nonnull Issue issue, @Nonnull Attachment attachment)
getThumbnailFile(Attachment) if you already have the issue.issue - the issue to which the attachment belongsattachment - the attachment for which to get the thumbnail filegetThumbnailFile(Attachment)File getLegacyThumbnailFile(@Nonnull Attachment attachment)
attachment - the attachment in play@Nonnull File getThumbnailDirectory(@Nonnull Issue issue)
issue - the issue whose thumbnail directory you want@Nonnull File getThumbnailDirectory(@Nonnull Issue issue, boolean createDirectory)
issue - the issue whose thumbnail directory you wantcreateDirectory - If true, and the directory does not currently exist, then the directory is created.com.atlassian.util.concurrent.Promise<Void> deleteThumbnailDirectory(@Nonnull Issue issue)
issue - The issue whose thumbnail directory you want to delete.Copyright © 2002-2016 Atlassian. All Rights Reserved.