Liferay 6.1.2-ce-ga3

com.liferay.portlet.documentlibrary.util
Interface AudioProcessor

All Known Implementing Classes:
AudioProcessorImpl

public interface AudioProcessor


Field Summary
static String PREVIEW_TYPE
           
 
Method Summary
 void exportGeneratedFiles(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)
           
 boolean hasAudio(FileVersion fileVersion)
           
 void importGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry, FileEntry importedFileEntry, Element fileEntryElement)
           
 boolean isAudioSupported(FileVersion fileVersion)
           
 boolean isAudioSupported(String mimeType)
           
 boolean isSupported(String mimeType)
           
 void trigger(FileVersion fileVersion)
           
 

Field Detail

PREVIEW_TYPE

static final String PREVIEW_TYPE
See Also:
Constant Field Values
Method Detail

exportGeneratedFiles

void exportGeneratedFiles(PortletDataContext portletDataContext,
                          FileEntry fileEntry,
                          Element fileEntryElement)
                          throws Exception
Throws:
Exception

generateAudio

void generateAudio(FileVersion fileVersion)
                   throws Exception
Throws:
Exception

getAudioMimeTypes

Set<String> getAudioMimeTypes()

getPreviewAsStream

InputStream getPreviewAsStream(FileVersion fileVersion,
                               String type)
                               throws Exception
Throws:
Exception

getPreviewFileSize

long getPreviewFileSize(FileVersion fileVersion,
                        String type)
                        throws Exception
Throws:
Exception

hasAudio

boolean hasAudio(FileVersion fileVersion)

importGeneratedFiles

void importGeneratedFiles(PortletDataContext portletDataContext,
                          FileEntry fileEntry,
                          FileEntry importedFileEntry,
                          Element fileEntryElement)
                          throws Exception
Throws:
Exception

isAudioSupported

boolean isAudioSupported(FileVersion fileVersion)

isAudioSupported

boolean isAudioSupported(String mimeType)

isSupported

boolean isSupported(String mimeType)

trigger

void trigger(FileVersion fileVersion)

Liferay 6.1.2-ce-ga3