com.liferay.portlet.documentlibrary.util
Class PDFProcessorImpl
java.lang.Object
com.liferay.document.library.kernel.util.DLPreviewableProcessor
com.liferay.portlet.documentlibrary.util.PDFProcessorImpl
- All Implemented Interfaces:
- com.liferay.document.library.kernel.util.DLProcessor, com.liferay.document.library.kernel.util.PDFProcessor
public class PDFProcessorImpl
- extends com.liferay.document.library.kernel.util.DLPreviewableProcessor
- implements com.liferay.document.library.kernel.util.PDFProcessor
| Fields inherited from class com.liferay.document.library.kernel.util.DLPreviewableProcessor |
futures, PREVIEW_PATH, PREVIEW_TMP_PATH, REPOSITORY_ID, THUMBNAIL_INDEX_CUSTOM_1, THUMBNAIL_INDEX_CUSTOM_2, THUMBNAIL_INDEX_DEFAULT, THUMBNAIL_PATH, THUMBNAIL_TMP_PATH |
| Fields inherited from interface com.liferay.document.library.kernel.util.PDFProcessor |
PREVIEW_TYPE, THUMBNAIL_TYPE |
|
Method Summary |
void |
afterPropertiesSet()
|
protected void |
copyPreviews(com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion,
com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion)
|
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)
|
| Methods inherited from class com.liferay.document.library.kernel.util.DLPreviewableProcessor |
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, 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.document.library.kernel.util.PDFProcessor |
exportGeneratedFiles, importGeneratedFiles |
PDFProcessorImpl
public PDFProcessorImpl()
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface com.liferay.document.library.kernel.util.DLProcessor
- Throws:
Exception
generateImages
public void generateImages(com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion,
com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion)
throws Exception
- Specified by:
generateImages in interface com.liferay.document.library.kernel.util.PDFProcessor
- Throws:
Exception
getPreviewAsStream
public InputStream getPreviewAsStream(com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
int index)
throws Exception
- Specified by:
getPreviewAsStream in interface com.liferay.document.library.kernel.util.PDFProcessor
- Throws:
Exception
getPreviewFileCount
public int getPreviewFileCount(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
- Specified by:
getPreviewFileCount in interface com.liferay.document.library.kernel.util.PDFProcessor
getPreviewFileSize
public long getPreviewFileSize(com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
int index)
throws Exception
- Specified by:
getPreviewFileSize in interface com.liferay.document.library.kernel.util.PDFProcessor
- Throws:
Exception
getThumbnailAsStream
public InputStream getThumbnailAsStream(com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
int index)
throws Exception
- Specified by:
getThumbnailAsStream in interface com.liferay.document.library.kernel.util.PDFProcessor
- Throws:
Exception
getThumbnailFileSize
public long getThumbnailFileSize(com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
int index)
throws Exception
- Specified by:
getThumbnailFileSize in interface com.liferay.document.library.kernel.util.PDFProcessor
- Throws:
Exception
getType
public String getType()
- Specified by:
getType in interface com.liferay.document.library.kernel.util.DLProcessor
hasImages
public boolean hasImages(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
- Specified by:
hasImages in interface com.liferay.document.library.kernel.util.PDFProcessor
isDocumentSupported
public boolean isDocumentSupported(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
- Specified by:
isDocumentSupported in interface com.liferay.document.library.kernel.util.PDFProcessor
isDocumentSupported
public boolean isDocumentSupported(String mimeType)
- Specified by:
isDocumentSupported in interface com.liferay.document.library.kernel.util.PDFProcessor
isSupported
public boolean isSupported(String mimeType)
- Specified by:
isSupported in interface com.liferay.document.library.kernel.util.DLProcessor- Specified by:
isSupported in interface com.liferay.document.library.kernel.util.PDFProcessor
trigger
public void trigger(com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion,
com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion)
- Specified by:
trigger in interface com.liferay.document.library.kernel.util.DLProcessor- Specified by:
trigger in interface com.liferay.document.library.kernel.util.PDFProcessor- Overrides:
trigger in class com.liferay.document.library.kernel.util.DLPreviewableProcessor
copyPreviews
protected void copyPreviews(com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion,
com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion)
- Overrides:
copyPreviews in class com.liferay.document.library.kernel.util.DLPreviewableProcessor
doExportGeneratedFiles
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
- Specified by:
doExportGeneratedFiles in class com.liferay.document.library.kernel.util.DLPreviewableProcessor
- Throws:
Exception
doImportGeneratedFiles
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
- Specified by:
doImportGeneratedFiles in class com.liferay.document.library.kernel.util.DLPreviewableProcessor
- Throws:
Exception
exportPreviews
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
- Throws:
Exception
getFileVersionIds
protected List<Long> getFileVersionIds()
- Specified by:
getFileVersionIds in class com.liferay.document.library.kernel.util.DLPreviewableProcessor
getPreviewType
protected String getPreviewType(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
- Specified by:
getPreviewType in class com.liferay.document.library.kernel.util.DLPreviewableProcessor
getThumbnailType
protected String getThumbnailType(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
- Specified by:
getThumbnailType in class com.liferay.document.library.kernel.util.DLPreviewableProcessor
hasPreview
protected boolean hasPreview(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
throws Exception
- Throws:
Exception
hasPreview
protected boolean hasPreview(com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
String type)
throws Exception
- Overrides:
hasPreview in class com.liferay.document.library.kernel.util.DLPreviewableProcessor
- Throws:
Exception
importPreviews
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
- Throws:
Exception