|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ThumbnailManager
Field Summary | |
---|---|
static String |
THUMBNAIL_PATH_SUFFIX
|
Method Summary | |
---|---|
boolean |
checkToolkit()
Deprecated. since 3.5 |
int |
getMaxHeight()
Deprecated. since 3.1 because clients should use the result of getThumbnail(com.atlassian.confluence.pages.Attachment) or
getThumbnailInfo(com.atlassian.confluence.pages.Attachment) , or retrieve the size from SettingsManager.getGlobalSettings() . |
int |
getMaxWidth()
Deprecated. since 3.1 because clients should use the result of getThumbnail(com.atlassian.confluence.pages.Attachment) or
getThumbnailInfo(com.atlassian.confluence.pages.Attachment) , or retrieve the size from SettingsManager.getGlobalSettings() . |
com.atlassian.core.util.thumbnail.Thumbnail |
getThumbnail(Attachment attachment)
Returns a thumbnail for this attachment having ensured the thumbnail exists in the filesystem, generating it only if it doesn't already exist. |
InputStream |
getThumbnailData(Attachment attachment)
retrieves the thumbnail data (as a stream) from where it was stored in the file system |
File |
getThumbnailFile(Attachment attachment)
returns the path to the thumbnail for this attachment |
ThumbnailInfo |
getThumbnailInfo(Attachment attachment)
Return the details of a thumbnail for a given attachment without actually creating the thumbnail file on disk. |
ThumbnailInfo |
getThumbnailInfo(Attachment attachment,
String rootAttachmentPath)
Return the details of a thumbnail for a given attachment without actually creating the thumbnail file on disk. |
Collection<com.atlassian.core.util.thumbnail.Thumbnail> |
getThumbnails(Collection<Attachment> attachments)
|
boolean |
isThumbnailable(Attachment attachment)
checks the content type/mime type of the attachment to determine whether a thumbnail can be created from it |
boolean |
isThumbnailable(InputStream imageData)
|
boolean |
isThumbnailable(ThumbnailInfo info)
|
boolean |
removeThumbnail(Attachment attachment)
Removes the thumbnail for the specified attachment. |
Field Detail |
---|
static final String THUMBNAIL_PATH_SUFFIX
Method Detail |
---|
Collection<com.atlassian.core.util.thumbnail.Thumbnail> getThumbnails(Collection<Attachment> attachments) throws Exception
Exception
boolean isThumbnailable(Attachment attachment)
@Deprecated boolean checkToolkit()
InputStream getThumbnailData(Attachment attachment) throws FileNotFoundException
FileNotFoundException
File getThumbnailFile(Attachment attachment)
boolean removeThumbnail(Attachment attachment)
com.atlassian.core.util.thumbnail.Thumbnail getThumbnail(Attachment attachment) throws IllegalArgumentException
IllegalArgumentException
- if the attachment is an inappropriate type for thumbnailing, i.e.
isThumbnailable(Attachment)
returns falseThumbnailInfo getThumbnailInfo(Attachment attachment) throws CannotGenerateThumbnailException
CannotGenerateThumbnailException
- if no thumbnail information can be generated for this thumbnail.ThumbnailInfo getThumbnailInfo(Attachment attachment, String rootAttachmentPath) throws CannotGenerateThumbnailException
rootAttachmentPath
- path to the thumbnail, excepting the thumbnail itself. Eg the value
returned by ConfluenceRenderUtils.getAttachmentRemotePath(com.atlassian.confluence.pages.Attachment)
.
CannotGenerateThumbnailException
- if no thumbnail information can be generated for this thumbnail.@Deprecated int getMaxHeight()
getThumbnail(com.atlassian.confluence.pages.Attachment)
or
getThumbnailInfo(com.atlassian.confluence.pages.Attachment)
, or retrieve the size from SettingsManager.getGlobalSettings()
.
getThumbnail(Attachment)
and
getThumbnailInfo(Attachment)
without providing dimensions@Deprecated int getMaxWidth()
getThumbnail(com.atlassian.confluence.pages.Attachment)
or
getThumbnailInfo(com.atlassian.confluence.pages.Attachment)
, or retrieve the size from SettingsManager.getGlobalSettings()
.
getThumbnail(Attachment)
and
getThumbnailInfo(Attachment)
without providing dimensionsboolean isThumbnailable(ThumbnailInfo info)
boolean isThumbnailable(InputStream imageData)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |