com.liferay.portlet.documentlibrary.util
Interface VideoProcessor
public interface VideoProcessor
Method Summary |
void |
exportGeneratedFiles(PortletDataContext portletDataContext,
FileEntry fileEntry,
Element fileEntryElement)
|
void |
generateVideo(FileVersion sourceFileVersion,
FileVersion destinationFileVersion)
|
InputStream |
getPreviewAsStream(FileVersion fileVersion,
String type)
|
long |
getPreviewFileSize(FileVersion fileVersion,
String type)
|
InputStream |
getThumbnailAsStream(FileVersion fileVersion,
int index)
|
long |
getThumbnailFileSize(FileVersion fileVersion,
int index)
|
Set<String> |
getVideoMimeTypes()
|
boolean |
hasVideo(FileVersion fileVersion)
|
void |
importGeneratedFiles(PortletDataContext portletDataContext,
FileEntry fileEntry,
FileEntry importedFileEntry,
Element fileEntryElement)
|
boolean |
isSupported(String mimeType)
|
boolean |
isVideoSupported(FileVersion fileVersion)
|
boolean |
isVideoSupported(String mimeType)
|
void |
trigger(FileVersion sourceFileVersion,
FileVersion destinationFileVersion)
|
THUMBNAIL_TYPE
static final String THUMBNAIL_TYPE
- See Also:
- Constant Field Values
exportGeneratedFiles
void exportGeneratedFiles(PortletDataContext portletDataContext,
FileEntry fileEntry,
Element fileEntryElement)
throws Exception
- Throws:
Exception
generateVideo
void generateVideo(FileVersion sourceFileVersion,
FileVersion destinationFileVersion)
throws Exception
- Throws:
Exception
getPreviewAsStream
InputStream getPreviewAsStream(FileVersion fileVersion,
String type)
throws Exception
- Throws:
Exception
getPreviewFileSize
long getPreviewFileSize(FileVersion fileVersion,
String type)
throws Exception
- Throws:
Exception
getThumbnailAsStream
InputStream getThumbnailAsStream(FileVersion fileVersion,
int index)
throws Exception
- Throws:
Exception
getThumbnailFileSize
long getThumbnailFileSize(FileVersion fileVersion,
int index)
throws Exception
- Throws:
Exception
getVideoMimeTypes
Set<String> getVideoMimeTypes()
hasVideo
boolean hasVideo(FileVersion fileVersion)
importGeneratedFiles
void importGeneratedFiles(PortletDataContext portletDataContext,
FileEntry fileEntry,
FileEntry importedFileEntry,
Element fileEntryElement)
throws Exception
- Throws:
Exception
isSupported
boolean isSupported(String mimeType)
isVideoSupported
boolean isVideoSupported(FileVersion fileVersion)
isVideoSupported
boolean isVideoSupported(String mimeType)
trigger
void trigger(FileVersion sourceFileVersion,
FileVersion destinationFileVersion)