|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.issue.thumbnail.DefaultThumbnailManager
public class DefaultThumbnailManager
Some of this code was taken in 4.4 from our friends in Confluence
Field Summary |
---|
Fields inherited from interface com.atlassian.jira.issue.thumbnail.ThumbnailManager |
---|
MIME_TYPE |
Constructor Summary | |
---|---|
DefaultThumbnailManager(ThumbnailConfiguration thumbnailConfiguration,
AttachmentManager attachmentManager,
MimeManager mimeManager)
|
Method Summary | |
---|---|
boolean |
checkToolkit()
Checks if 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(Collection<Attachment> attachments,
Issue issue)
|
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)
|
boolean |
isThumbnailable(Issue issue,
Attachment attachment)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultThumbnailManager(ThumbnailConfiguration thumbnailConfiguration, AttachmentManager attachmentManager, MimeManager mimeManager)
Method Detail |
---|
public Collection<com.atlassian.core.util.thumbnail.Thumbnail> getThumbnails(Collection<Attachment> attachments, Issue issue) throws Exception
Exception
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
public boolean isThumbnailable(Issue issue, Attachment attachment) throws DataAccessException
isThumbnailable
in interface ThumbnailManager
DataAccessException
public boolean isThumbnailable(Attachment attachment) throws DataAccessException
isThumbnailable
in interface ThumbnailManager
DataAccessException
public com.atlassian.core.util.thumbnail.Thumbnail getThumbnail(Attachment attachment)
ThumbnailManager
getThumbnail
in interface ThumbnailManager
attachment
- an Attachment
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
public boolean checkToolkit()
ThumbnailManager
checkToolkit
in interface ThumbnailManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |