public class VideoProcessorImpl
extends com.liferay.document.library.kernel.util.DLPreviewableProcessor
implements com.liferay.document.library.kernel.util.VideoProcessor
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 |
---|
VideoProcessorImpl() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
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 |
generateVideo(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,
String type) |
long |
getPreviewFileSize(com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
String type) |
protected String |
getPreviewType(com.liferay.portal.kernel.repository.model.FileVersion fileVersion) |
protected String[] |
getPreviewTypes() |
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() |
Set<String> |
getVideoMimeTypes() |
boolean |
hasVideo(com.liferay.portal.kernel.repository.model.FileVersion fileVersion) |
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 |
isAvailable() |
boolean |
isSupported(String mimeType) |
boolean |
isVideoSupported(com.liferay.portal.kernel.repository.model.FileVersion fileVersion) |
boolean |
isVideoSupported(String mimeType) |
protected void |
storeThumbnailImages(com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
File file) |
void |
trigger(com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion,
com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion) |
addFileToStore, addFileToStore, cleanUp, cleanUp, 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, getThumbnailFilePath, getThumbnailFilePath, getThumbnailFilePath, getThumbnailTempFile, getThumbnailTempFile, getThumbnailTempFilePath, getThumbnailTempFilePath, getThumbnailType, hasPreview, hasPreviews, hasThumbnail, hasThumbnails, importGeneratedFiles, importPreview, importPreview, importPreviewFromLAR, importThumbnail, importThumbnailFromLAR, importThumbnails, isSupported, isThumbnailEnabled, sendGenerationMessage, storeThumbnailImage, 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 generateVideo(com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion, com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion) throws Exception
generateVideo
in interface com.liferay.document.library.kernel.util.VideoProcessor
Exception
public InputStream getPreviewAsStream(com.liferay.portal.kernel.repository.model.FileVersion fileVersion, String type) throws Exception
getPreviewAsStream
in interface com.liferay.document.library.kernel.util.VideoProcessor
Exception
public long getPreviewFileSize(com.liferay.portal.kernel.repository.model.FileVersion fileVersion, String type) throws Exception
getPreviewFileSize
in interface com.liferay.document.library.kernel.util.VideoProcessor
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.VideoProcessor
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.VideoProcessor
Exception
public String getType()
getType
in interface com.liferay.document.library.kernel.util.DLProcessor
public Set<String> getVideoMimeTypes()
getVideoMimeTypes
in interface com.liferay.document.library.kernel.util.VideoProcessor
public boolean hasVideo(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
hasVideo
in interface com.liferay.document.library.kernel.util.VideoProcessor
public boolean isAvailable()
isAvailable
in interface com.liferay.document.library.kernel.util.VideoProcessor
public boolean isSupported(String mimeType)
isSupported
in interface com.liferay.document.library.kernel.util.DLProcessor
isSupported
in interface com.liferay.document.library.kernel.util.VideoProcessor
public boolean isVideoSupported(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
isVideoSupported
in interface com.liferay.document.library.kernel.util.VideoProcessor
public boolean isVideoSupported(String mimeType)
isVideoSupported
in interface com.liferay.document.library.kernel.util.VideoProcessor
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.VideoProcessor
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 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[] getPreviewTypes()
getPreviewTypes
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 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
protected void storeThumbnailImages(com.liferay.portal.kernel.repository.model.FileVersion fileVersion, File file) throws Exception
storeThumbnailImages
in class com.liferay.document.library.kernel.util.DLPreviewableProcessor
Exception