com.liferay.portal.service
Class ImageLocalServiceUtil
java.lang.Object
com.liferay.portal.service.ImageLocalServiceUtil
public class ImageLocalServiceUtil
- extends java.lang.Object
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
This class provides static methods for the
com.liferay.portal.service.ImageLocalService
bean. The static methods of this class calls the same methods of the bean
instance. It's convenient to be able to just write one line to call a method
on a bean instead of writing a lookup call and a method call.
- Author:
- Brian Wing Shun Chan
- See Also:
ImageLocalService
Method Summary |
static Image |
addImage(Image image)
|
static Image |
createImage(long imageId)
|
static void |
deleteImage(Image image)
|
static void |
deleteImage(long imageId)
|
static java.util.List<java.lang.Object> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static java.util.List<java.lang.Object> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
static Image |
getCompanyLogo(long imageId)
|
static Image |
getDefaultCompanyLogo()
|
static Image |
getDefaultSpacer()
|
static Image |
getDefaultUserFemalePortrait()
|
static Image |
getDefaultUserMalePortrait()
|
static Image |
getImage(byte[] bytes)
|
static Image |
getImage(java.io.File file)
|
static Image |
getImage(java.io.InputStream is)
|
static Image |
getImage(long imageId)
|
static Image |
getImageOrDefault(long imageId)
|
static java.util.List<Image> |
getImages()
|
static java.util.List<Image> |
getImages(int start,
int end)
|
static java.util.List<Image> |
getImagesBySize(int size)
|
static int |
getImagesCount()
|
static ImageLocalService |
getService()
|
static boolean |
isNullOrDefaultSpacer(byte[] bytes)
|
void |
setService(ImageLocalService service)
|
static Image |
updateImage(Image image)
|
static Image |
updateImage(long imageId,
byte[] bytes)
|
static Image |
updateImage(long imageId,
byte[] bytes,
java.lang.String type,
int height,
int width,
int size)
|
static Image |
updateImage(long imageId,
java.io.File file)
|
static 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 |
ImageLocalServiceUtil
public ImageLocalServiceUtil()
addImage
public static Image addImage(Image image)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
createImage
public static Image createImage(long imageId)
deleteImage
public static void deleteImage(long imageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteImage
public static void deleteImage(Image image)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getImage
public static Image getImage(long imageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getImages
public static java.util.List<Image> getImages(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getImagesCount
public static int getImagesCount()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateImage
public static Image updateImage(Image image)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getCompanyLogo
public static Image getCompanyLogo(long imageId)
getDefaultCompanyLogo
public static Image getDefaultCompanyLogo()
getDefaultSpacer
public static Image getDefaultSpacer()
getDefaultUserFemalePortrait
public static Image getDefaultUserFemalePortrait()
getDefaultUserMalePortrait
public static Image getDefaultUserMalePortrait()
getImage
public static Image getImage(byte[] bytes)
throws java.io.IOException
- Throws:
java.io.IOException
getImage
public static Image getImage(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
getImage
public static Image getImage(java.io.InputStream is)
throws java.io.IOException
- Throws:
java.io.IOException
getImageOrDefault
public static Image getImageOrDefault(long imageId)
getImages
public static java.util.List<Image> getImages()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getImagesBySize
public static java.util.List<Image> getImagesBySize(int size)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
isNullOrDefaultSpacer
public static boolean isNullOrDefaultSpacer(byte[] bytes)
updateImage
public static Image updateImage(long imageId,
byte[] bytes)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateImage
public static Image updateImage(long imageId,
java.io.File file)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateImage
public static Image updateImage(long imageId,
java.io.InputStream is)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateImage
public static 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
getService
public static ImageLocalService getService()
setService
public void setService(ImageLocalService service)