|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.thumbnail.DisabledThumbNailManager
public class DisabledThumbNailManager
Field Summary |
---|
Fields inherited from interface com.atlassian.jira.issue.thumbnail.ThumbnailManager |
---|
MIME_TYPE |
Constructor Summary | |
---|---|
DisabledThumbNailManager()
|
Method Summary | ||
---|---|---|
boolean |
checkToolkit()
Checks whether there is an "Abstract Window Toolkit" (AWT Toolkit) available. |
|
com.atlassian.core.util.thumbnail.Thumbnail |
getThumbnail(Attachment attachment)
Returns the Thumbnail that corresponds to an Attachment, or null if the given attachment is not an image. |
|
com.atlassian.core.util.thumbnail.Thumbnail |
getThumbnail(Issue issue,
Attachment attachment)
Returns the Thumbnail that corresponds to an Attachment, or null if the given attachment is not an image. |
|
Collection<com.atlassian.core.util.thumbnail.Thumbnail> |
getThumbnails(Issue issue,
com.atlassian.crowd.embedded.api.User user)
Retrieves Thumbnails for an Issue |
|
boolean |
isThumbnailable(Attachment attachment)
Indicates whether JIRA can generate a thumbnail for the given attachment. |
|
boolean |
isThumbnailable(Issue issue,
Attachment attachment)
Indicates whether JIRA can generate a thumbnail for the given attachment. |
|
|
streamThumbnailContent(Attachment attachment,
InputStreamConsumer<T> consumer)
Get binary content of the thumbnail |
|
ThumbnailedImage |
toThumbnailedImage(com.atlassian.core.util.thumbnail.Thumbnail thumbnail)
Converts a Thumbnail into an ThumbnailedImage. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DisabledThumbNailManager()
Method Detail |
---|
public Collection<com.atlassian.core.util.thumbnail.Thumbnail> getThumbnails(Issue issue, com.atlassian.crowd.embedded.api.User user) throws Exception
ThumbnailManager
Thumbnails
for an Issue
getThumbnails
in interface ThumbnailManager
issue
- the issue to get the thumnails for.user
- the user on whose behalf the request is made.
Exception
ThumbnailManager.toThumbnailedImage(com.atlassian.core.util.thumbnail.Thumbnail)
public boolean isThumbnailable(Attachment attachment) throws DataAccessException
ThumbnailManager
isThumbnailable
in interface ThumbnailManager
attachment
- the attachment (required)
DataAccessException
ThumbnailManager.isThumbnailable(com.atlassian.jira.issue.Issue, com.atlassian.jira.issue.attachment.Attachment)
public boolean isThumbnailable(Issue issue, Attachment attachment) throws DataAccessException
ThumbnailManager
ThumbnailManager.isThumbnailable(com.atlassian.jira.issue.attachment.Attachment)
because it doesn't need to look up the issue.
isThumbnailable
in interface ThumbnailManager
issue
- the issue to which the attachment relates (if null, this method will look it up)attachment
- the attachment (required)
DataAccessException
ThumbnailManager.isThumbnailable(com.atlassian.jira.issue.attachment.Attachment)
public boolean checkToolkit()
ThumbnailManager
checkToolkit
in interface ThumbnailManager
public com.atlassian.core.util.thumbnail.Thumbnail getThumbnail(Attachment attachment)
ThumbnailManager
getThumbnail
in interface ThumbnailManager
attachment
- an Attachment
ThumbnailManager.toThumbnailedImage(com.atlassian.core.util.thumbnail.Thumbnail)
public com.atlassian.core.util.thumbnail.Thumbnail getThumbnail(Issue issue, Attachment attachment)
ThumbnailManager
getThumbnail
in interface ThumbnailManager
issue
- the issue for the attachment (passed in for performance reasons)attachment
- an Attachment
ThumbnailManager.toThumbnailedImage(com.atlassian.core.util.thumbnail.Thumbnail)
public ThumbnailedImage toThumbnailedImage(@Nullable com.atlassian.core.util.thumbnail.Thumbnail thumbnail)
ThumbnailManager
toThumbnailedImage
in interface ThumbnailManager
thumbnail
- a Thumbnail, or null
public <T> T streamThumbnailContent(Attachment attachment, InputStreamConsumer<T> consumer) throws IOException
ThumbnailManager
streamThumbnailContent
in interface ThumbnailManager
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |