public class AudioProcessorImpl
extends com.liferay.document.library.kernel.util.DLPreviewableProcessor
implements com.liferay.document.library.kernel.util.AudioProcessor
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 |
---|
AudioProcessorImpl() |
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 |
generateAudio(com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion,
com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion) |
Set<String> |
getAudioMimeTypes() |
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() |
protected String |
getThumbnailType(com.liferay.portal.kernel.repository.model.FileVersion fileVersion) |
String |
getType() |
boolean |
hasAudio(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 |
isAudioSupported(com.liferay.portal.kernel.repository.model.FileVersion fileVersion) |
boolean |
isAudioSupported(String mimeType) |
boolean |
isEnabled() |
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, 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, 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 generateAudio(com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion, com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion) throws Exception
generateAudio
in interface com.liferay.document.library.kernel.util.AudioProcessor
Exception
public Set<String> getAudioMimeTypes()
getAudioMimeTypes
in interface com.liferay.document.library.kernel.util.AudioProcessor
public InputStream getPreviewAsStream(com.liferay.portal.kernel.repository.model.FileVersion fileVersion, String type) throws Exception
getPreviewAsStream
in interface com.liferay.document.library.kernel.util.AudioProcessor
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.AudioProcessor
Exception
public String getType()
getType
in interface com.liferay.document.library.kernel.util.DLProcessor
public boolean hasAudio(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
hasAudio
in interface com.liferay.document.library.kernel.util.AudioProcessor
public boolean isAudioSupported(com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
isAudioSupported
in interface com.liferay.document.library.kernel.util.AudioProcessor
public boolean isAudioSupported(String mimeType)
isAudioSupported
in interface com.liferay.document.library.kernel.util.AudioProcessor
public boolean isEnabled()
isEnabled
in interface com.liferay.document.library.kernel.util.AudioProcessor
public boolean isSupported(String mimeType)
isSupported
in interface com.liferay.document.library.kernel.util.AudioProcessor
isSupported
in interface com.liferay.document.library.kernel.util.DLProcessor
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.AudioProcessor
trigger
in interface com.liferay.document.library.kernel.util.DLProcessor
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