|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.confluence.pages.thumbnail.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 ThumbnailManager
Exception
public boolean isThumbnailable(Attachment attachment)
ThumbnailManager
isThumbnailable
in interface ThumbnailManager
attachment
-
public boolean checkToolkit()
ThumbnailManager
checkToolkit
in interface ThumbnailManager
public InputStream getThumbnailData(Attachment attachment) throws FileNotFoundException
ThumbnailManager
getThumbnailData
in interface ThumbnailManager
attachment
-
FileNotFoundException
public File getThumbnailFile(Attachment attachment)
ThumbnailManager
getThumbnailFile
in interface ThumbnailManager
attachment
-
public Thumbnail getThumbnail(Attachment attachment) throws MalformedURLException, FileNotFoundException
ThumbnailManager
getThumbnail
in interface ThumbnailManager
attachment
-
MalformedURLException
FileNotFoundException
public int getMaxHeight()
getMaxHeight
in interface ThumbnailManager
public int getMaxWidth()
getMaxWidth
in interface ThumbnailManager
public void setBootstrapManager(BootstrapManager bootstrapManager)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |