com.liferay.portlet.documentlibrary.util
Class AudioProcessorImpl
java.lang.Object
com.liferay.portlet.documentlibrary.util.DLPreviewableProcessor
com.liferay.portlet.documentlibrary.util.AudioProcessorImpl
- All Implemented Interfaces:
- AudioProcessor, DLProcessor
public class AudioProcessorImpl
- extends DLPreviewableProcessor
- implements AudioProcessor
Method Summary |
void |
afterPropertiesSet()
|
protected void |
doExportGeneratedFiles(PortletDataContext portletDataContext,
FileEntry fileEntry,
Element fileEntryElement)
|
protected void |
doImportGeneratedFiles(PortletDataContext portletDataContext,
FileEntry fileEntry,
FileEntry importedFileEntry,
Element fileEntryElement)
|
protected void |
exportPreviews(PortletDataContext portletDataContext,
FileEntry fileEntry,
Element fileEntryElement)
|
void |
generateAudio(FileVersion fileVersion)
|
Set<String> |
getAudioMimeTypes()
|
InputStream |
getPreviewAsStream(FileVersion fileVersion,
String type)
|
long |
getPreviewFileSize(FileVersion fileVersion,
String type)
|
protected String |
getPreviewType(FileVersion fileVersion)
|
protected String[] |
getPreviewTypes()
|
protected String |
getThumbnailType(FileVersion fileVersion)
|
boolean |
hasAudio(FileVersion fileVersion)
|
protected void |
importPreviews(PortletDataContext portletDataContext,
FileEntry fileEntry,
FileEntry importedFileEntry,
Element fileEntryElement)
|
boolean |
isAudioSupported(FileVersion fileVersion)
|
boolean |
isAudioSupported(String mimeType)
|
boolean |
isSupported(String mimeType)
|
void |
trigger(FileVersion fileVersion)
Launches the processor's work with respect to the given file version. |
Methods inherited from class com.liferay.portlet.documentlibrary.util.DLPreviewableProcessor |
addFileToStore, addFileToStore, cleanUp, cleanUp, deleteFiles, deleteFiles, deleteFiles, deleteFiles, doGetPreviewAsStream, doGetPreviewAsStream, doGetPreviewFileCount, doGetPreviewFileSize, doGetPreviewFileSize, doGetPreviewFileSize, doGetThumbnailAsStream, doGetThumbnailFileSize, exportBinary, exportGeneratedFiles, exportPreview, exportPreview, exportThumbnail, exportThumbnails, getBinPath, getBinPath, getPathSegment, getPathSegment, getPreviewFilePath, getPreviewFilePath, getPreviewFilePath, getPreviewFilePath, getPreviewTempFile, getPreviewTempFile, getPreviewTempFile, getPreviewTempFile, getPreviewTempFileCount, getPreviewTempFileCount, getPreviewTempFilePath, getPreviewTempFilePath, getPreviewTempFilePath, getPreviewTempFilePath, getPreviewType, getPreviewType, getThumbnailFilePath, getThumbnailFilePath, getThumbnailTempFile, getThumbnailTempFile, getThumbnailTempFilePath, getThumbnailTempFilePath, getThumbnailType, hasPreview, hasPreviews, hasThumbnail, hasThumbnails, importGeneratedFiles, importPreview, importPreview, importPreviewFromLAR, importThumbnail, importThumbnailFromLAR, importThumbnails, isSupported, isThumbnailEnabled, storeThumbnailImages, storeThumbnailImages, storeThumbnailmage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AudioProcessorImpl
public AudioProcessorImpl()
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interface DLProcessor
generateAudio
public void generateAudio(FileVersion fileVersion)
throws Exception
- Specified by:
generateAudio
in interface AudioProcessor
- Throws:
Exception
getAudioMimeTypes
public Set<String> getAudioMimeTypes()
- Specified by:
getAudioMimeTypes
in interface AudioProcessor
getPreviewAsStream
public InputStream getPreviewAsStream(FileVersion fileVersion,
String type)
throws Exception
- Specified by:
getPreviewAsStream
in interface AudioProcessor
- Throws:
Exception
getPreviewFileSize
public long getPreviewFileSize(FileVersion fileVersion,
String type)
throws Exception
- Specified by:
getPreviewFileSize
in interface AudioProcessor
- Throws:
Exception
hasAudio
public boolean hasAudio(FileVersion fileVersion)
- Specified by:
hasAudio
in interface AudioProcessor
isAudioSupported
public boolean isAudioSupported(FileVersion fileVersion)
- Specified by:
isAudioSupported
in interface AudioProcessor
isAudioSupported
public boolean isAudioSupported(String mimeType)
- Specified by:
isAudioSupported
in interface AudioProcessor
isSupported
public boolean isSupported(String mimeType)
- Specified by:
isSupported
in interface AudioProcessor
- Specified by:
isSupported
in interface DLProcessor
trigger
public void trigger(FileVersion fileVersion)
- Description copied from interface:
DLProcessor
- Launches the processor's work with respect to the given file version.
- Specified by:
trigger
in interface AudioProcessor
- Specified by:
trigger
in interface DLProcessor
- Parameters:
fileVersion
- the latest file version to process
doExportGeneratedFiles
protected void doExportGeneratedFiles(PortletDataContext portletDataContext,
FileEntry fileEntry,
Element fileEntryElement)
throws Exception
- Specified by:
doExportGeneratedFiles
in class DLPreviewableProcessor
- Throws:
Exception
doImportGeneratedFiles
protected void doImportGeneratedFiles(PortletDataContext portletDataContext,
FileEntry fileEntry,
FileEntry importedFileEntry,
Element fileEntryElement)
throws Exception
- Specified by:
doImportGeneratedFiles
in class DLPreviewableProcessor
- Throws:
Exception
exportPreviews
protected void exportPreviews(PortletDataContext portletDataContext,
FileEntry fileEntry,
Element fileEntryElement)
throws Exception
- Throws:
Exception
getPreviewType
protected String getPreviewType(FileVersion fileVersion)
- Specified by:
getPreviewType
in class DLPreviewableProcessor
getPreviewTypes
protected String[] getPreviewTypes()
- Overrides:
getPreviewTypes
in class DLPreviewableProcessor
getThumbnailType
protected String getThumbnailType(FileVersion fileVersion)
- Specified by:
getThumbnailType
in class DLPreviewableProcessor
importPreviews
protected void importPreviews(PortletDataContext portletDataContext,
FileEntry fileEntry,
FileEntry importedFileEntry,
Element fileEntryElement)
throws Exception
- Throws:
Exception