public class ImageProcessorImpl
extends com.liferay.document.library.kernel.util.DLPreviewableProcessor
implements com.liferay.document.library.kernel.util.ImageProcessor
DECRYPT_PATH, DECRYPT_TMP_PATH, futures, PREVIEW_PATH, PREVIEW_TMP_PATH, REPOSITORY_ID, THUMBNAIL_INDEX_CUSTOM_1, THUMBNAIL_INDEX_CUSTOM_2, THUMBNAIL_INDEX_DEFAULT, THUMBNAIL_PATH, THUMBNAIL_TMP_PATH, TMP_PATH
Constructor and Description |
---|
ImageProcessorImpl() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
cleanUp(com.liferay.portal.kernel.repository.model.FileEntry fileEntry) |
void |
cleanUp(com.liferay.portal.kernel.repository.model.FileVersion fileVersion) |
protected void |
doExportGeneratedFiles(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.xml.Element fileEntryElement) |
protected void |
doImportGeneratedFiles(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.repository.model.FileEntry importedFileEntry,
com.liferay.portal.kernel.xml.Element fileEntryElement) |
protected void |
exportPreview(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.xml.Element fileEntryElement) |
void |
generateImages(com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion,
com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion) |
protected List<Long> |
getFileVersionIds() |
Set<String> |
getImageMimeTypes() |
InputStream |
getPreviewAsStream(com.liferay.portal.kernel.repository.model.FileVersion fileVersion) |
long |
getPreviewFileSize(com.liferay.portal.kernel.repository.model.FileVersion fileVersion) |
String |
getPreviewType(com.liferay.portal.kernel.repository.model.FileVersion fileVersion) |
InputStream |
getThumbnailAsStream(com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
int index) |
long |
getThumbnailFileSize(com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
int index) |
String |
getThumbnailType(com.liferay.portal.kernel.repository.model.FileVersion fileVersion) |
String |
getType() |
boolean |
hasImages(com.liferay.portal.kernel.repository.model.FileVersion fileVersion) |
boolean |
isImageSupported(com.liferay.portal.kernel.repository.model.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(com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion,
com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion) |
addFileToStore, addFileToStore, copy, copyPreviews, copyThumbnail, copyThumbnails, deleteFiles, deleteFiles, deleteFiles, deleteFiles, deletePreviews, deleteThumbnail, deleteThumbnails, destroyProcess, doGetPreviewAsStream, doGetPreviewAsStream, doGetPreviewFileCount, doGetPreviewFileSize, doGetPreviewFileSize, doGetPreviewFileSize, doGetThumbnailAsStream, doGetThumbnailFileSize, exportBinary, exportGeneratedFiles, exportPreview, exportPreview, exportThumbnail, exportThumbnails, getBinPath, getBinPath, getDecryptedTempFile, getPathSegment, getPathSegment, getPreviewFilePath, getPreviewFilePath, getPreviewFilePath, getPreviewFilePath, getPreviewFilePath, getPreviewFilePath, getPreviewTempFile, getPreviewTempFile, getPreviewTempFile, getPreviewTempFile, getPreviewTempFileCount, getPreviewTempFileCount, getPreviewTempFilePath, getPreviewTempFilePath, getPreviewTempFilePath, getPreviewTempFilePath, getPreviewType, getPreviewType, getPreviewTypes, getThumbnailFilePath, getThumbnailFilePath, getThumbnailFilePath, getThumbnailTempFile, getThumbnailTempFile, getThumbnailTempFilePath, getThumbnailTempFilePath, getThumbnailType, hasPreview, hasPreviews, hasThumbnail, hasThumbnails, importGeneratedFiles, importPreview, importPreview, importPreviewFromLAR, importThumbnail, importThumbnailFromLAR, importThumbnails, isSupported, isThumbnailEnabled, sendGenerationMessage, storeThumbnailImage, storeThumbnailImages, storeThumbnailImages
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void afterPropertiesSet()
afterPropertiesSet
in interface com.liferay.document.library.kernel.util.DLProcessor
public void cleanUp(com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
cleanUp
in interface com.liferay.document.library.kernel.util.DLProcessor
cleanUp
in interface com.liferay.document.library.kernel.util.ImageProcessor
cleanUp
in class com.liferay.document.library.kernel.util.DLPreviewableProcessor
public void cleanUp(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
cleanUp
in interface com.liferay.document.library.kernel.util.DLProcessor
cleanUp
in interface com.liferay.document.library.kernel.util.ImageProcessor
cleanUp
in class com.liferay.document.library.kernel.util.DLPreviewableProcessor
public void generateImages(com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion, com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion) throws Exception
generateImages
in interface com.liferay.document.library.kernel.util.ImageProcessor
Exception
public Set<String> getImageMimeTypes()
getImageMimeTypes
in interface com.liferay.document.library.kernel.util.ImageProcessor
public InputStream getPreviewAsStream(com.liferay.portal.kernel.repository.model.FileVersion fileVersion) throws Exception
getPreviewAsStream
in interface com.liferay.document.library.kernel.util.ImageProcessor
Exception
public long getPreviewFileSize(com.liferay.portal.kernel.repository.model.FileVersion fileVersion) throws Exception
getPreviewFileSize
in interface com.liferay.document.library.kernel.util.ImageProcessor
Exception
public String getPreviewType(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
getPreviewType
in interface com.liferay.document.library.kernel.util.ImageProcessor
getPreviewType
in class com.liferay.document.library.kernel.util.DLPreviewableProcessor
public InputStream getThumbnailAsStream(com.liferay.portal.kernel.repository.model.FileVersion fileVersion, int index) throws Exception
getThumbnailAsStream
in interface com.liferay.document.library.kernel.util.ImageProcessor
Exception
public long getThumbnailFileSize(com.liferay.portal.kernel.repository.model.FileVersion fileVersion, int index) throws Exception
getThumbnailFileSize
in interface com.liferay.document.library.kernel.util.ImageProcessor
Exception
public String getThumbnailType(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
getThumbnailType
in interface com.liferay.document.library.kernel.util.ImageProcessor
getThumbnailType
in class com.liferay.document.library.kernel.util.DLPreviewableProcessor
public String getType()
getType
in interface com.liferay.document.library.kernel.util.DLProcessor
public boolean hasImages(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
hasImages
in interface com.liferay.document.library.kernel.util.ImageProcessor
public boolean isImageSupported(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
isImageSupported
in interface com.liferay.document.library.kernel.util.ImageProcessor
public boolean isImageSupported(String mimeType)
isImageSupported
in interface com.liferay.document.library.kernel.util.ImageProcessor
public boolean isSupported(String mimeType)
isSupported
in interface com.liferay.document.library.kernel.util.DLProcessor
isSupported
in interface com.liferay.document.library.kernel.util.ImageProcessor
public void storeThumbnail(long companyId, long groupId, long fileEntryId, long fileVersionId, long custom1ImageId, long custom2ImageId, InputStream inputStream, String type) throws Exception
storeThumbnail
in interface com.liferay.document.library.kernel.util.ImageProcessor
Exception
public void trigger(com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion, com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion)
trigger
in interface com.liferay.document.library.kernel.util.DLProcessor
trigger
in interface com.liferay.document.library.kernel.util.ImageProcessor
trigger
in class com.liferay.document.library.kernel.util.DLPreviewableProcessor
protected void doExportGeneratedFiles(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.xml.Element fileEntryElement) throws Exception
doExportGeneratedFiles
in class com.liferay.document.library.kernel.util.DLPreviewableProcessor
Exception
protected void doImportGeneratedFiles(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.repository.model.FileEntry importedFileEntry, com.liferay.portal.kernel.xml.Element fileEntryElement) throws Exception
doImportGeneratedFiles
in class com.liferay.document.library.kernel.util.DLPreviewableProcessor
Exception
protected void exportPreview(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext, com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.xml.Element fileEntryElement) throws Exception
Exception
protected List<Long> getFileVersionIds()
getFileVersionIds
in class com.liferay.document.library.kernel.util.DLPreviewableProcessor