com.atlassian.confluence.pages.thumbnail
Class DelegatorThumbnailManager

java.lang.Object
  extended by com.atlassian.confluence.pages.thumbnail.DelegatorThumbnailManager
All Implemented Interfaces:
ThumbnailManager

Deprecated. since 2.7. Please use DefaultThumbnailManager instead. We only have one implementation, so this delegation class is not needed.

public class DelegatorThumbnailManager
extends java.lang.Object
implements ThumbnailManager


Field Summary
 
Fields inherited from interface com.atlassian.confluence.pages.thumbnail.ThumbnailManager
THUMBNAIL_PATH_SUFFIX
 
Constructor Summary
DelegatorThumbnailManager()
          Deprecated.  
 
Method Summary
 boolean checkToolkit()
          Deprecated. checks whether the users system has AWT toolkit required to create thumbnails
 int getMaxHeight()
          Deprecated.  
 int getMaxWidth()
          Deprecated.  
 com.atlassian.core.util.thumbnail.Thumbnail getThumbnail(Attachment attachment)
          Deprecated. 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

 java.io.InputStream getThumbnailData(Attachment attachment)
          Deprecated. retrieves the thumbnail data (as a stream) from where it was stored in the file system
 java.io.File getThumbnailFile(Attachment attachment)
          Deprecated. returns the path to the thumbnail for this attachment
 java.util.Collection getThumbnails(java.util.Collection attachments)
          Deprecated.  
 boolean isThumbnailable(Attachment attachment)
          Deprecated. checks the mime type of the attachment to determine whether a thumbnail can be created from it
 boolean removeThumbnail(Attachment attachment)
          Deprecated. Removes the thumbnail for the specified attachment.
 void setThumbnailManager(ThumbnailManager thumbnailManager)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatorThumbnailManager

public DelegatorThumbnailManager()
Deprecated. 
Method Detail

getThumbnails

public java.util.Collection getThumbnails(java.util.Collection attachments)
                                   throws java.lang.Exception
Deprecated. 
Specified by:
getThumbnails in interface ThumbnailManager
Throws:
java.lang.Exception

isThumbnailable

public boolean isThumbnailable(Attachment attachment)
Deprecated. 
Description copied from interface: ThumbnailManager
checks the mime type of the attachment to determine whether a thumbnail can be created from it

Specified by:
isThumbnailable in interface ThumbnailManager
Returns:

checkToolkit

public boolean checkToolkit()
Deprecated. 
Description copied from interface: ThumbnailManager
checks whether the users system has AWT toolkit required to create thumbnails

Specified by:
checkToolkit in interface ThumbnailManager
Returns:

getThumbnailData

public java.io.InputStream getThumbnailData(Attachment attachment)
                                     throws java.io.FileNotFoundException
Deprecated. 
Description copied from interface: ThumbnailManager
retrieves the thumbnail data (as a stream) from where it was stored in the file system

Specified by:
getThumbnailData in interface ThumbnailManager
Returns:
Throws:
java.io.FileNotFoundException

getThumbnailFile

public java.io.File getThumbnailFile(Attachment attachment)
Deprecated. 
Description copied from interface: ThumbnailManager
returns the path to the thumbnail for this attachment

Specified by:
getThumbnailFile in interface ThumbnailManager
Returns:

removeThumbnail

public boolean removeThumbnail(Attachment attachment)
Deprecated. 
Description copied from interface: ThumbnailManager
Removes the thumbnail for the specified attachment.

Specified by:
removeThumbnail in interface ThumbnailManager
Returns:
true if the thumbnail was found and was successfully removed. False if no thumbnail was found or the thumbnail could not be removed.

getThumbnail

public com.atlassian.core.util.thumbnail.Thumbnail getThumbnail(Attachment attachment)
                                                         throws java.net.MalformedURLException,
                                                                java.io.FileNotFoundException
Deprecated. 
Description copied from interface: ThumbnailManager
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

Specified by:
getThumbnail in interface ThumbnailManager
Returns:
Throws:
java.net.MalformedURLException
java.io.FileNotFoundException

getMaxHeight

public int getMaxHeight()
Deprecated. 
Specified by:
getMaxHeight in interface ThumbnailManager
Returns:
the maximum height of the generated thumbnail

getMaxWidth

public int getMaxWidth()
Deprecated. 
Specified by:
getMaxWidth in interface ThumbnailManager
Returns:
the maximum width of the generated thumbnail

setThumbnailManager

public void setThumbnailManager(ThumbnailManager thumbnailManager)
Deprecated. 


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.