Liferay 6.2-ce-ga5

com.liferay.portlet.documentlibrary.util
Interface AudioProcessor


public interface AudioProcessor


Field Summary
static String PREVIEW_TYPE
           
 
Method Summary
 void exportGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry, Element fileEntryElement)
           
 void generateAudio(FileVersion sourceFileVersion, FileVersion destinationFileVersion)
           
 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 sourceFileVersion, FileVersion destinationFileVersion)
           
 

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 sourceFileVersion,
                   FileVersion destinationFileVersion)
                   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 sourceFileVersion,
             FileVersion destinationFileVersion)

Liferay 6.2-ce-ga5