com.atlassian.jira.issue.attachment.ThumbnailAccessor |
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Deletes the thumbnail directory for a given issue, deleting its contents if necessary.
| |||||||||||
Returns the old legacy file name for thumbnails.
| |||||||||||
Returns the physical directory of the thumbnails for the given issue, creating if necessary.
| |||||||||||
Returns the physical directory of the thumbnails for the given issue.
| |||||||||||
Just like the attachments themselves, thumbnails can succumb to file system encoding problems.
| |||||||||||
Returns the file handle for the given attachment's thumbnail.
|
Deletes the thumbnail directory for a given issue, deleting its contents if necessary.
issue | The issue whose thumbnail directory you want to delete. |
---|
Returns the old legacy file name for thumbnails.
http://jira.atlassian.com/browse/JRA-23311
attachment | the attachment in play |
---|
Returns the physical directory of the thumbnails for the given issue, creating if necessary.
issue | the issue whose thumbnail directory you want |
---|
Returns the physical directory of the thumbnails for the given issue.
issue | the issue whose thumbnail directory you want |
---|---|
createDirectory | If true, and the directory does not currently exist, then the directory is created. |
Just like the attachments themselves, thumbnails can succumb to file system encoding problems. However we are going to regenerate thumbnails by only using the new naming scheme and not the legacy one. We cant do this for attachments but we can for thumbnails since they are ephemeral objects anyway.
http://jira.atlassian.com/browse/JRA-23311
attachment | the attachment for which to get the thumbnail file |
---|
Returns the file handle for the given attachment's thumbnail. This method performs
better than getThumbnailFile(Attachment)
if you already have the issue.
issue | the issue to which the attachment belongs |
---|---|
attachment | the attachment for which to get the thumbnail file |