com.atlassian.jira.issue.thumbnail.ThumbnailManager |
![]() |
Clients of @PublicApi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi
as per each product's API policy as long as the client does not implement/extend
@PublicApi
interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi
interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi
are safe to extend/implement).
Provides key services for small-sized images representing image attachments on issues.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MIME_TYPE | The JIRA global thumbnail MIME type. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Checks whether there is an "Abstract Window Toolkit" (AWT Toolkit) available.
| |||||||||||
Deletes the generated thumbnail for an attachment, if exists.
| |||||||||||
Deletes the generated thumbnails for the attachments of an issue.
| |||||||||||
Returns the Thumbnail that corresponds to an Attachment, or null if the given attachment is not an image.
| |||||||||||
Returns the Thumbnail that corresponds to an Attachment, or null if the given attachment is not an image.
| |||||||||||
Retrieves
Thumbnails for an Issue | |||||||||||
Indicates whether JIRA can generate a thumbnail for the given attachment.
| |||||||||||
Indicates whether JIRA can generate a thumbnail for the given attachment.
| |||||||||||
Get binary content of the thumbnail
| |||||||||||
Converts a Thumbnail into an ThumbnailedImage.
|
Checks whether there is an "Abstract Window Toolkit" (AWT Toolkit) available.
Deletes the generated thumbnail for an attachment, if exists.
issue | the issue for the attachment (passed in for performance reasons) |
---|---|
attachment | an Attachment |
Deletes the generated thumbnails for the attachments of an issue.
issue | the issue whose attachments' thumbnails will be deleted. |
---|
Returns the Thumbnail that corresponds to an Attachment, or null if the given attachment is not an image.
issue | the issue for the attachment (passed in for performance reasons) |
---|---|
attachment | an Attachment |
Returns the Thumbnail that corresponds to an Attachment, or null if the given attachment is not an image.
attachment | an Attachment |
---|
Retrieves Thumbnails
for an Issue
issue | the issue to get the thumnails for. |
---|---|
user | the user on whose behalf the request is made. |
Exception |
---|
Indicates whether JIRA can generate a thumbnail for the given attachment. This method may
perform better than isThumbnailable(com.atlassian.jira.issue.attachment.Attachment)
because it doesn't need to look up the issue.
issue | the issue to which the attachment relates (if null, this method will look it up) |
---|---|
attachment | the attachment (required) |
GenericEntityException | |
GenericEntityException |
Indicates whether JIRA can generate a thumbnail for the given attachment.
attachment | the attachment (required) |
---|
GenericEntityException | |
GenericEntityException |
Get binary content of the thumbnail
attachment | an Attachment |
---|---|
consumer | function that consumes the thumbnail data. |
IOException | if something wrong happens while reading the thumbnail data. |
---|
Converts a Thumbnail into an ThumbnailedImage. The ThumbnailedImage is an analog of the atlassian-core Thumbnail but it contains JIRA-specific methods for getting the image URL, etc.
thumbnail | a Thumbnail, or null |
---|