|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.pages.thumbnail.DelegatorThumbnailManager
public class DelegatorThumbnailManager
| Field Summary |
|---|
| Fields inherited from interface com.atlassian.confluence.pages.thumbnail.ThumbnailManager |
|---|
THUMBNAIL_PATH_SUFFIX |
| Constructor Summary | |
|---|---|
DelegatorThumbnailManager()
|
|
| Method Summary | |
|---|---|
boolean |
checkToolkit()
checks whether the users system has AWT toolkit required to create thumbnails |
int |
getMaxHeight()
|
int |
getMaxWidth()
|
Thumbnail |
getThumbnail(Attachment attachment)
retrieves the thumbnail for this attachment in the form of a Thumbnail Object this method also creates the actual thumbnail file on the filesystem if it does not 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 |
Collection |
getThumbnails(Collection attachments)
|
boolean |
isThumbnailable(Attachment attachment)
checks the mime type of the attachment to determine whether a thumbnail can be created from it |
void |
setBootstrapManager(BootstrapManager bootstrapManager)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatorThumbnailManager()
| Method Detail |
|---|
public Collection getThumbnails(Collection attachments)
throws Exception
getThumbnails in interface ThumbnailManagerExceptionpublic boolean isThumbnailable(Attachment attachment)
ThumbnailManager
isThumbnailable in interface ThumbnailManagerpublic boolean checkToolkit()
ThumbnailManager
checkToolkit in interface ThumbnailManager
public InputStream getThumbnailData(Attachment attachment)
throws FileNotFoundException
ThumbnailManager
getThumbnailData in interface ThumbnailManagerFileNotFoundExceptionpublic File getThumbnailFile(Attachment attachment)
ThumbnailManager
getThumbnailFile in interface ThumbnailManager
public Thumbnail getThumbnail(Attachment attachment)
throws MalformedURLException,
FileNotFoundException
ThumbnailManager
getThumbnail in interface ThumbnailManagerMalformedURLException
FileNotFoundExceptionpublic int getMaxHeight()
getMaxHeight in interface ThumbnailManagerpublic int getMaxWidth()
getMaxWidth in interface ThumbnailManagerpublic void setBootstrapManager(BootstrapManager bootstrapManager)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||