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
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()
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