com.liferay.portlet.documentlibrary.util
Class ImageProcessorUtil
java.lang.Object
com.liferay.portlet.documentlibrary.util.ImageProcessorUtil
public class ImageProcessorUtil
- extends java.lang.Object
- Author:
- Sergio González
| 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 fileVersion)
getImageMimeTypes
public static java.util.Set<java.lang.String> getImageMimeTypes()
getImageProcessor
public static ImageProcessor getImageProcessor()
getThumbnailAsStream
public static java.io.InputStream getThumbnailAsStream(FileVersion fileVersion,
int thumbnailIndex)
throws java.lang.Exception
- Throws:
java.lang.Exception
getThumbnailFileSize
public static long getThumbnailFileSize(FileVersion fileVersion,
int thumbnailIndex)
throws java.lang.Exception
- Throws:
java.lang.Exception
hasImages
public static boolean hasImages(FileVersion fileVersion)
isImageSupported
public static boolean isImageSupported(FileVersion fileVersion)
isImageSupported
public static boolean isImageSupported(java.lang.String mimeType)
isSupported
public static boolean isSupported(java.lang.String mimeType)
storeThumbnail
public static void storeThumbnail(long companyId,
long groupId,
long fileEntryId,
long fileVersionId,
long custom1ImageId,
long custom2ImageId,
java.io.InputStream is,
java.lang.String type)
throws java.lang.Exception
- Throws:
java.lang.Exception
trigger
public static void trigger(FileVersion fileVersion)
setImageProcessor
public void setImageProcessor(ImageProcessor imageProcessor)