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 is,
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
Exception
void generateImages(FileVersion sourceFileVersion, FileVersion destinationFileVersion) throws Exception
Exception
Set<String> getImageMimeTypes()
InputStream getPreviewAsStream(FileVersion fileVersion) throws Exception
Exception
long getPreviewFileSize(FileVersion fileVersion) throws Exception
Exception
String getPreviewType(FileVersion fileVersion)
InputStream getThumbnailAsStream(FileVersion fileVersion, int index) throws Exception
Exception
long getThumbnailFileSize(FileVersion fileVersion, int index) throws Exception
Exception
String getThumbnailType(FileVersion fileVersion)
boolean hasImages(FileVersion fileVersion)
void importGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry, FileEntry importedFileEntry, Element fileEntryElement) throws Exception
Exception
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) throws Exception
Exception
void trigger(FileVersion sourceFileVersion, FileVersion destinationFileVersion)