Liferay 6.1.0-ce-ga1

com.liferay.portlet.documentlibrary.util
Interface ImageProcessor


public interface ImageProcessor


Method Summary
 void cleanUp(FileEntry fileEntry)
           
 void cleanUp(FileVersion fileVersion)
           
 void generateImages(FileVersion fileVersion)
           
 Set<String> getImageMimeTypes()
           
 InputStream getThumbnailAsStream(FileVersion fileVersion, int thumbnailIndex)
           
 long getThumbnailFileSize(FileVersion fileVersion, int thumbnailIndex)
           
 boolean hasImages(FileVersion fileVersion)
           
 boolean isImageSupported(FileVersion fileVersion)
           
 boolean isImageSupported(String mimeType)
           
 boolean isSupported(String mimeType)
           
 void storeThumbnail(long companyId, long groupId, long fileEntryId, long fileVersionId, long custom1ImageId, long custom2ImageId, InputStream is, String type)
           
 void trigger(FileVersion fileVersion)
           
 

Method Detail

cleanUp

void cleanUp(FileEntry fileEntry)

cleanUp

void cleanUp(FileVersion fileVersion)

generateImages

void generateImages(FileVersion fileVersion)

getImageMimeTypes

Set<String> getImageMimeTypes()

getThumbnailAsStream

InputStream getThumbnailAsStream(FileVersion fileVersion,
                                 int thumbnailIndex)
                                 throws Exception
Throws:
Exception

getThumbnailFileSize

long getThumbnailFileSize(FileVersion fileVersion,
                          int thumbnailIndex)
                          throws Exception
Throws:
Exception

hasImages

boolean hasImages(FileVersion fileVersion)

isImageSupported

boolean isImageSupported(FileVersion fileVersion)

isImageSupported

boolean isImageSupported(String mimeType)

isSupported

boolean isSupported(String mimeType)

storeThumbnail

void storeThumbnail(long companyId,
                    long groupId,
                    long fileEntryId,
                    long fileVersionId,
                    long custom1ImageId,
                    long custom2ImageId,
                    InputStream is,
                    String type)
                    throws Exception
Throws:
Exception

trigger

void trigger(FileVersion fileVersion)

Liferay 6.1.0-ce-ga1