public class PDFProcessorImpl
extends com.liferay.document.library.kernel.util.DLPreviewableProcessor
implements com.liferay.document.library.kernel.util.PDFProcessor
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 |
---|
PDFProcessorImpl() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected void |
copyPreviews(com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion,
com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion) |
void |
destroy() |
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 |
exportPreviews(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() |
InputStream |
getPreviewAsStream(com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
int index) |
int |
getPreviewFileCount(com.liferay.portal.kernel.repository.model.FileVersion fileVersion) |
long |
getPreviewFileSize(com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
int index) |
protected 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) |
protected String |
getThumbnailType(com.liferay.portal.kernel.repository.model.FileVersion fileVersion) |
String |
getType() |
boolean |
hasImages(com.liferay.portal.kernel.repository.model.FileVersion fileVersion) |
protected boolean |
hasPreview(com.liferay.portal.kernel.repository.model.FileVersion fileVersion) |
protected boolean |
hasPreview(com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
String type) |
protected void |
importPreviews(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) |
boolean |
isDocumentSupported(com.liferay.portal.kernel.repository.model.FileVersion fileVersion) |
boolean |
isDocumentSupported(String mimeType) |
boolean |
isSupported(String mimeType) |
void |
trigger(com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion,
com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion) |
addFileToStore, addFileToStore, cleanUp, cleanUp, copy, 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, hasPreviews, hasThumbnail, hasThumbnails, importGeneratedFiles, importPreview, importPreview, importPreviewFromLAR, importThumbnail, importThumbnailFromLAR, importThumbnails, isSupported, isThumbnailEnabled, sendGenerationMessage, storeThumbnailImage, storeThumbnailImages, storeThumbnailImages
public void afterPropertiesSet()
afterPropertiesSet
in interface com.liferay.document.library.kernel.util.DLProcessor
public void destroy()
destroy
in interface com.liferay.document.library.kernel.util.DLProcessor
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.PDFProcessor
Exception
public InputStream getPreviewAsStream(com.liferay.portal.kernel.repository.model.FileVersion fileVersion, int index) throws Exception
getPreviewAsStream
in interface com.liferay.document.library.kernel.util.PDFProcessor
Exception
public int getPreviewFileCount(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
getPreviewFileCount
in interface com.liferay.document.library.kernel.util.PDFProcessor
public long getPreviewFileSize(com.liferay.portal.kernel.repository.model.FileVersion fileVersion, int index) throws Exception
getPreviewFileSize
in interface com.liferay.document.library.kernel.util.PDFProcessor
Exception
public InputStream getThumbnailAsStream(com.liferay.portal.kernel.repository.model.FileVersion fileVersion, int index) throws Exception
getThumbnailAsStream
in interface com.liferay.document.library.kernel.util.PDFProcessor
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.PDFProcessor
Exception
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.PDFProcessor
public boolean isDocumentSupported(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
isDocumentSupported
in interface com.liferay.document.library.kernel.util.PDFProcessor
public boolean isDocumentSupported(String mimeType)
isDocumentSupported
in interface com.liferay.document.library.kernel.util.PDFProcessor
public boolean isSupported(String mimeType)
isSupported
in interface com.liferay.document.library.kernel.util.DLProcessor
isSupported
in interface com.liferay.document.library.kernel.util.PDFProcessor
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.PDFProcessor
trigger
in class com.liferay.document.library.kernel.util.DLPreviewableProcessor
protected void copyPreviews(com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion, com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion)
copyPreviews
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 exportPreviews(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
protected String getPreviewType(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
getPreviewType
in class com.liferay.document.library.kernel.util.DLPreviewableProcessor
protected String getThumbnailType(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
getThumbnailType
in class com.liferay.document.library.kernel.util.DLPreviewableProcessor
protected boolean hasPreview(com.liferay.portal.kernel.repository.model.FileVersion fileVersion) throws Exception
Exception
protected boolean hasPreview(com.liferay.portal.kernel.repository.model.FileVersion fileVersion, String type) throws Exception
hasPreview
in class com.liferay.document.library.kernel.util.DLPreviewableProcessor
Exception
protected void importPreviews(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
Exception