com.liferay.portlet.documentlibrary.util
Interface VideoProcessor


public interface VideoProcessor

Author:
Sergio González

Field Summary
static java.lang.String THUMBNAIL_TYPE
           
 
Method Summary
 void exportGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry, Element fileEntryElement)
           
 void generateVideo(FileVersion fileVersion)
           
 java.io.InputStream getPreviewAsStream(FileVersion fileVersion, java.lang.String type)
           
 long getPreviewFileSize(FileVersion fileVersion, java.lang.String type)
           
 java.io.InputStream getThumbnailAsStream(FileVersion fileVersion, int index)
           
 long getThumbnailFileSize(FileVersion fileVersion, int index)
           
 java.util.Set<java.lang.String> getVideoMimeTypes()
           
 boolean hasVideo(FileVersion fileVersion)
           
 void importGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry, FileEntry importedFileEntry, Element fileEntryElement)
           
 boolean isSupported(java.lang.String mimeType)
           
 boolean isVideoSupported(FileVersion fileVersion)
           
 boolean isVideoSupported(java.lang.String mimeType)
           
 void trigger(FileVersion fileVersion)
           
 

Field Detail

THUMBNAIL_TYPE

static final java.lang.String THUMBNAIL_TYPE
See Also:
Constant Field Values
Method Detail

exportGeneratedFiles

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

generateVideo

void generateVideo(FileVersion fileVersion)
                   throws java.lang.Exception
Throws:
java.lang.Exception

getPreviewAsStream

java.io.InputStream getPreviewAsStream(FileVersion fileVersion,
                                       java.lang.String type)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

getPreviewFileSize

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

getThumbnailAsStream

java.io.InputStream getThumbnailAsStream(FileVersion fileVersion,
                                         int index)
                                         throws java.lang.Exception
Throws:
java.lang.Exception

getThumbnailFileSize

long getThumbnailFileSize(FileVersion fileVersion,
                          int index)
                          throws java.lang.Exception
Throws:
java.lang.Exception

getVideoMimeTypes

java.util.Set<java.lang.String> getVideoMimeTypes()

hasVideo

boolean hasVideo(FileVersion fileVersion)

importGeneratedFiles

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

isSupported

boolean isSupported(java.lang.String mimeType)

isVideoSupported

boolean isVideoSupported(FileVersion fileVersion)

isVideoSupported

boolean isVideoSupported(java.lang.String mimeType)

trigger

void trigger(FileVersion fileVersion)