Interface ImageProcessor
public interface ImageProcessor
- Author:
- Sergio González
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcleanUp(FileVersion fileVersion) voidexportGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry, Element fileEntryElement) voidgenerateImages(FileVersion sourceFileVersion, FileVersion destinationFileVersion) getPreviewAsStream(FileVersion fileVersion) longgetPreviewFileSize(FileVersion fileVersion) getPreviewType(FileVersion fileVersion) getThumbnailAsStream(FileVersion fileVersion, int index) longgetThumbnailFileSize(FileVersion fileVersion, int index) getThumbnailType(FileVersion fileVersion) booleanhasImages(FileVersion fileVersion) voidimportGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry, FileEntry importedFileEntry, Element fileEntryElement) booleanisImageSupported(FileVersion fileVersion) booleanisImageSupported(String mimeType) booleanisSupported(String mimeType) voidstoreThumbnail(long companyId, long groupId, long fileEntryId, long fileVersionId, long custom1ImageId, long custom2ImageId, InputStream inputStream, String type) voidtrigger(FileVersion sourceFileVersion, FileVersion destinationFileVersion)
-
Method Details
-
cleanUp
-
cleanUp
-
exportGeneratedFiles
void exportGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry, Element fileEntryElement) throws Exception - Throws:
Exception
-
generateImages
void generateImages(FileVersion sourceFileVersion, FileVersion destinationFileVersion) throws Exception - Throws:
Exception
-
getImageMimeTypes
-
getPreviewAsStream
- Throws:
Exception
-
getPreviewFileSize
- Throws:
Exception
-
getPreviewType
-
getThumbnailAsStream
- Throws:
Exception
-
getThumbnailFileSize
- Throws:
Exception
-
getThumbnailType
-
hasImages
-
importGeneratedFiles
void importGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry, FileEntry importedFileEntry, Element fileEntryElement) throws Exception - Throws:
Exception
-
isImageSupported
-
isImageSupported
-
isSupported
-
storeThumbnail
void storeThumbnail(long companyId, long groupId, long fileEntryId, long fileVersionId, long custom1ImageId, long custom2ImageId, InputStream inputStream, String type) throws Exception - Throws:
Exception
-
trigger
-