public interface ImageProcessor
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp(FileEntry fileEntry) |
void |
cleanUp(FileVersion fileVersion) |
void |
exportGeneratedFiles(PortletDataContext portletDataContext,
FileEntry fileEntry,
Element fileEntryElement) |
void |
generateImages(FileVersion sourceFileVersion,
FileVersion destinationFileVersion) |
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 inputStream,
String type) |
void |
trigger(FileVersion sourceFileVersion,
FileVersion destinationFileVersion) |
void cleanUp(FileEntry fileEntry)
void cleanUp(FileVersion fileVersion)
void exportGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry, Element fileEntryElement) throws Exception
Exceptionvoid generateImages(FileVersion sourceFileVersion, FileVersion destinationFileVersion) throws Exception
ExceptionSet<String> getImageMimeTypes()
InputStream getPreviewAsStream(FileVersion fileVersion) throws Exception
Exceptionlong getPreviewFileSize(FileVersion fileVersion) throws Exception
ExceptionString getPreviewType(FileVersion fileVersion)
InputStream getThumbnailAsStream(FileVersion fileVersion, int index) throws Exception
Exceptionlong getThumbnailFileSize(FileVersion fileVersion, int index) throws Exception
ExceptionString getThumbnailType(FileVersion fileVersion)
boolean hasImages(FileVersion fileVersion)
void importGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry, FileEntry importedFileEntry, Element fileEntryElement) throws Exception
Exceptionboolean 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 inputStream,
String type)
throws Exception
Exceptionvoid trigger(FileVersion sourceFileVersion, FileVersion destinationFileVersion)