com.liferay.portlet.documentlibrary.util
Interface ImageProcessor
public interface ImageProcessor
Method Summary |
void |
cleanUp(FileEntry fileEntry)
|
void |
cleanUp(FileVersion fileVersion)
|
void |
exportGeneratedFiles(PortletDataContext portletDataContext,
FileEntry fileEntry,
Element fileEntryElement)
|
void |
generateImages(FileVersion fileVersion)
|
Set<String> |
getImageMimeTypes()
|
InputStream |
getPreviewAsStream(FileVersion fileVersion)
|
long |
getPreviewFileSize(FileVersion fileVersion)
|
String |
getPreviewType(FileVersion fileVersion)
|
InputStream |
getThumbnailAsStream(FileVersion fileVersion,
int index)
|
long |
getThumbnailFileSize(FileVersion fileVersion,
int index)
|
String |
getThumbnailType(FileVersion fileVersion)
|
boolean |
hasImages(FileVersion fileVersion)
|
void |
importGeneratedFiles(PortletDataContext portletDataContext,
FileEntry fileEntry,
FileEntry importedFileEntry,
Element fileEntryElement)
|
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)
|
cleanUp
void cleanUp(FileEntry fileEntry)
cleanUp
void cleanUp(FileVersion fileVersion)
exportGeneratedFiles
void exportGeneratedFiles(PortletDataContext portletDataContext,
FileEntry fileEntry,
Element fileEntryElement)
throws Exception
- Throws:
Exception
generateImages
void generateImages(FileVersion fileVersion)
getImageMimeTypes
Set<String> getImageMimeTypes()
getPreviewAsStream
InputStream getPreviewAsStream(FileVersion fileVersion)
throws Exception
- Throws:
Exception
getPreviewFileSize
long getPreviewFileSize(FileVersion fileVersion)
throws Exception
- Throws:
Exception
getPreviewType
String getPreviewType(FileVersion fileVersion)
getThumbnailAsStream
InputStream getThumbnailAsStream(FileVersion fileVersion,
int index)
throws Exception
- Throws:
Exception
getThumbnailFileSize
long getThumbnailFileSize(FileVersion fileVersion,
int index)
throws Exception
- Throws:
Exception
getThumbnailType
String getThumbnailType(FileVersion fileVersion)
hasImages
boolean hasImages(FileVersion fileVersion)
importGeneratedFiles
void importGeneratedFiles(PortletDataContext portletDataContext,
FileEntry fileEntry,
FileEntry importedFileEntry,
Element fileEntryElement)
throws Exception
- Throws:
Exception
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)