com.liferay.portal.service.impl
Class ImageLocalUtil
java.lang.Object
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 |
getDefaultUserPortrait()
|
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 |
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()
getDefaultUserPortrait
public static com.liferay.portal.model.Image getDefaultUserPortrait()
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