Liferay 6.1.0-ce-rc1

com.liferay.portlet.documentlibrary.util
Class VideoProcessor

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.util.DLPreviewableProcessor
      extended by com.liferay.portlet.documentlibrary.util.DefaultPreviewableProcessor
          extended by com.liferay.portlet.documentlibrary.util.VideoProcessor
All Implemented Interfaces:
DLProcessor

public class VideoProcessor
extends DefaultPreviewableProcessor


Field Summary
static String THUMBNAIL_TYPE
           
 
Fields inherited from class com.liferay.portlet.documentlibrary.util.DLPreviewableProcessor
PREVIEW_PATH, PREVIEW_TMP_PATH, REPOSITORY_ID, THUMBNAIL_PATH, THUMBNAIL_TMP_PATH
 
Constructor Summary
VideoProcessor()
           
 
Method Summary
static void generateVideo(FileVersion fileVersion)
           
static InputStream getPreviewAsStream(FileVersion fileVersion)
           
static InputStream getPreviewAsStream(FileVersion fileVersion, String type)
           
static long getPreviewFileSize(FileVersion fileVersion)
           
static long getPreviewFileSize(FileVersion fileVersion, String type)
           
protected  String getPreviewType()
           
protected  String[] getPreviewTypes()
           
static InputStream getThumbnailAsStream(FileVersion fileVersion)
           
static long getThumbnailFileSize(FileVersion fileVersion)
           
protected  String getThumbnailType()
           
static Set<String> getVideoMimeTypes()
           
static boolean hasVideo(FileVersion fileVersion)
           
 boolean isSupported(String mimeType)
           
static boolean isVideoSupported(FileVersion fileVersion)
           
static boolean isVideoSupported(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.DefaultPreviewableProcessor
cleanUp, cleanUp, doGetPreviewAsStream, doGetPreviewAsStream, doGetPreviewFileSize, doGetPreviewFileSize, doGetThumbnailAsStream, doGetThumbnailFileSize, getPreviewFilePath, getPreviewFilePath, getPreviewTempFile, getPreviewTempFile, getPreviewTempFileCount, getPreviewTempFilePath, getPreviewTempFilePath, getPreviewType, getThumbnailFilePath, getThumbnailTempFile, getThumbnailTempFilePath
 
Methods inherited from class com.liferay.portlet.documentlibrary.util.DLPreviewableProcessor
addFileToStore, deleteFiles, deleteFiles, deleteFiles, deleteFiles, doGetPreviewAsStream, doGetPreviewAsStream, doGetPreviewFileCount, doGetPreviewFileSize, doGetPreviewFileSize, doGetThumbnailAsStream, doGetThumbnailFileSize, getPathSegment, getPathSegment, getPreviewFilePath, getPreviewFilePath, getPreviewTempFile, getPreviewTempFile, getPreviewTempFileCount, getPreviewTempFilePath, getPreviewTempFilePath, getThumbnailFilePath, getThumbnailTempFile, getThumbnailTempFilePath, isSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THUMBNAIL_TYPE

public static final String THUMBNAIL_TYPE
See Also:
Constant Field Values
Constructor Detail

VideoProcessor

public VideoProcessor()
Method Detail

generateVideo

public static void generateVideo(FileVersion fileVersion)
                          throws Exception
Throws:
Exception

getPreviewAsStream

public static InputStream getPreviewAsStream(FileVersion fileVersion)
                                      throws Exception
Throws:
Exception

getPreviewAsStream

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

getPreviewFileSize

public static long getPreviewFileSize(FileVersion fileVersion)
                               throws Exception
Throws:
Exception

getPreviewFileSize

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

getThumbnailAsStream

public static InputStream getThumbnailAsStream(FileVersion fileVersion)
                                        throws Exception
Throws:
Exception

getThumbnailFileSize

public static long getThumbnailFileSize(FileVersion fileVersion)
                                 throws Exception
Throws:
Exception

getVideoMimeTypes

public static Set<String> getVideoMimeTypes()

hasVideo

public static boolean hasVideo(FileVersion fileVersion)

isVideoSupported

public static boolean isVideoSupported(FileVersion fileVersion)

isVideoSupported

public static boolean isVideoSupported(String mimeType)

isSupported

public boolean isSupported(String mimeType)

trigger

public void trigger(FileVersion fileVersion)
Description copied from interface: DLProcessor
Launches the processor's work with respect to the given file version.

Parameters:
fileVersion - the latest file version to process

getPreviewType

protected String getPreviewType()
Specified by:
getPreviewType in class DefaultPreviewableProcessor

getPreviewTypes

protected String[] getPreviewTypes()
Overrides:
getPreviewTypes in class DefaultPreviewableProcessor

getThumbnailType

protected String getThumbnailType()
Overrides:
getThumbnailType in class DefaultPreviewableProcessor

Liferay 6.1.0-ce-rc1