com.liferay.portal.service.impl
Class ImageLocalUtil

java.lang.Object
  extended by com.liferay.portal.service.impl.ImageLocalUtil

public class ImageLocalUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan, Michael Weisser

Method Summary
static void deleteImage(long imageId)
           
static com.liferay.portal.model.Image getCompanyLogo(long imageId)
           
static com.liferay.portal.model.Image getDefaultCompanyLogo()
           
static com.liferay.portal.model.Image getDefaultSpacer()
           
static com.liferay.portal.model.Image getDefaultUserFemalePortrait()
           
static com.liferay.portal.model.Image getDefaultUserMalePortrait()
           
static com.liferay.portal.model.Image getImage(byte[] bytes)
           
static com.liferay.portal.model.Image getImage(java.io.File file)
           
static com.liferay.portal.model.Image getImage(java.io.InputStream is)
           
static com.liferay.portal.model.Image getImage(long imageId)
           
static com.liferay.portal.model.Image getImageOrDefault(long imageId)
           
static boolean isNullOrDefaultSpacer(byte[] bytes)
           
static com.liferay.portal.model.Image updateImage(long imageId, byte[] bytes)
           
static com.liferay.portal.model.Image updateImage(long imageId, byte[] bytes, java.lang.String type, int height, int width, int size)
           
static com.liferay.portal.model.Image updateImage(long imageId, java.io.File file)
           
static com.liferay.portal.model.Image updateImage(long imageId, java.io.InputStream is)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

deleteImage

public static void deleteImage(long imageId)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyLogo

public static com.liferay.portal.model.Image getCompanyLogo(long imageId)

getDefaultCompanyLogo

public static com.liferay.portal.model.Image getDefaultCompanyLogo()

getDefaultSpacer

public static com.liferay.portal.model.Image getDefaultSpacer()

getDefaultUserFemalePortrait

public static com.liferay.portal.model.Image getDefaultUserFemalePortrait()

getDefaultUserMalePortrait

public static com.liferay.portal.model.Image getDefaultUserMalePortrait()

getImage

public static com.liferay.portal.model.Image getImage(long imageId)

getImage

public static com.liferay.portal.model.Image getImage(byte[] bytes)
                                               throws java.io.IOException
Throws:
java.io.IOException

getImage

public static com.liferay.portal.model.Image getImage(java.io.File file)
                                               throws java.io.IOException
Throws:
java.io.IOException

getImage

public static com.liferay.portal.model.Image getImage(java.io.InputStream is)
                                               throws java.io.IOException
Throws:
java.io.IOException

getImageOrDefault

public static com.liferay.portal.model.Image getImageOrDefault(long imageId)

isNullOrDefaultSpacer

public static boolean isNullOrDefaultSpacer(byte[] bytes)

updateImage

public static com.liferay.portal.model.Image updateImage(long imageId,
                                                         byte[] bytes)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateImage

public static com.liferay.portal.model.Image updateImage(long imageId,
                                                         java.io.File file)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateImage

public static com.liferay.portal.model.Image updateImage(long imageId,
                                                         java.io.InputStream is)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateImage

public static com.liferay.portal.model.Image updateImage(long imageId,
                                                         byte[] bytes,
                                                         java.lang.String type,
                                                         int height,
                                                         int width,
                                                         int size)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException