com.liferay.portlet.documentlibrary.util
Class ImageProcessorUtil
java.lang.Object
com.liferay.portlet.documentlibrary.util.ImageProcessorUtil
public class ImageProcessorUtil
- extends Object
Method Summary |
static void |
cleanUp(FileEntry fileEntry)
|
static void |
cleanUp(FileVersion fileVersion)
|
static void |
generateImages(FileVersion sourceFileVersion,
FileVersion destinationFileVersion)
|
static Set<String> |
getImageMimeTypes()
|
static ImageProcessor |
getImageProcessor()
|
static InputStream |
getPreviewAsStream(FileVersion fileVersion)
|
static long |
getPreviewFileSize(FileVersion fileVersion)
|
static String |
getPreviewType(FileVersion fileVersion)
|
static InputStream |
getThumbnailAsStream(FileVersion fileVersion,
int index)
|
static long |
getThumbnailFileSize(FileVersion fileVersion,
int index)
|
static String |
getThumbnailType(FileVersion fileVersion)
|
static boolean |
hasImages(FileVersion fileVersion)
|
static boolean |
isImageSupported(FileVersion fileVersion)
|
static boolean |
isImageSupported(String mimeType)
|
static boolean |
isSupported(String mimeType)
|
void |
setImageProcessor(ImageProcessor imageProcessor)
Deprecated. As of 6.2.0 |
static void |
storeThumbnail(long companyId,
long groupId,
long fileEntryId,
long fileVersionId,
long custom1ImageId,
long custom2ImageId,
InputStream is,
String type)
|
static void |
trigger(FileVersion sourceFileVersion,
FileVersion destinationFileVersion)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageProcessorUtil
public ImageProcessorUtil()
cleanUp
public static void cleanUp(FileEntry fileEntry)
cleanUp
public static void cleanUp(FileVersion fileVersion)
generateImages
public static void generateImages(FileVersion sourceFileVersion,
FileVersion destinationFileVersion)
throws Exception
- Throws:
Exception
getImageMimeTypes
public static Set<String> getImageMimeTypes()
getImageProcessor
public static ImageProcessor getImageProcessor()
getPreviewAsStream
public static InputStream getPreviewAsStream(FileVersion fileVersion)
throws Exception
- Throws:
Exception
getPreviewFileSize
public static long getPreviewFileSize(FileVersion fileVersion)
throws Exception
- Throws:
Exception
getPreviewType
public static String getPreviewType(FileVersion fileVersion)
getThumbnailAsStream
public static InputStream getThumbnailAsStream(FileVersion fileVersion,
int index)
throws Exception
- Throws:
Exception
getThumbnailFileSize
public static long getThumbnailFileSize(FileVersion fileVersion,
int index)
throws Exception
- Throws:
Exception
getThumbnailType
public static String getThumbnailType(FileVersion fileVersion)
hasImages
public static boolean hasImages(FileVersion fileVersion)
isImageSupported
public static boolean isImageSupported(FileVersion fileVersion)
isImageSupported
public static boolean isImageSupported(String mimeType)
isSupported
public static boolean isSupported(String mimeType)
storeThumbnail
public static void storeThumbnail(long companyId,
long groupId,
long fileEntryId,
long fileVersionId,
long custom1ImageId,
long custom2ImageId,
InputStream is,
String type)
throws Exception
- Throws:
Exception
trigger
public static void trigger(FileVersion sourceFileVersion,
FileVersion destinationFileVersion)
setImageProcessor
public void setImageProcessor(ImageProcessor imageProcessor)
- Deprecated. As of 6.2.0