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
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
- Generated:
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 |
dynamicQuery(DynamicQuery dynamicQuery)
|
static java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
|
static Image |
getCompanyLogo(long imageId)
|
static Image |
getDefaultCompanyLogo()
|
static Image |
getDefaultOrganizationLogo()
|
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(Image image,
boolean merge)
|
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 SystemException
- Throws:
SystemException
createImage
public static Image createImage(long imageId)
deleteImage
public static void deleteImage(long imageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteImage
public static void deleteImage(Image image)
throws SystemException
- Throws:
SystemException
dynamicQuery
public static java.util.List dynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
dynamicQuery
public static java.util.List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
- Throws:
SystemException
dynamicQuery
public static java.util.List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
- Throws:
SystemException
dynamicQueryCount
public static long dynamicQueryCount(DynamicQuery dynamicQuery)
throws SystemException
- Throws:
SystemException
getImage
public static Image getImage(long imageId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getImages
public static java.util.List<Image> getImages(int start,
int end)
throws SystemException
- Throws:
SystemException
getImagesCount
public static int getImagesCount()
throws SystemException
- Throws:
SystemException
updateImage
public static Image updateImage(Image image)
throws SystemException
- Throws:
SystemException
updateImage
public static Image updateImage(Image image,
boolean merge)
throws SystemException
- Throws:
SystemException
getCompanyLogo
public static Image getCompanyLogo(long imageId)
getDefaultCompanyLogo
public static Image getDefaultCompanyLogo()
getDefaultOrganizationLogo
public static Image getDefaultOrganizationLogo()
getDefaultSpacer
public static Image getDefaultSpacer()
getDefaultUserFemalePortrait
public static Image getDefaultUserFemalePortrait()
getDefaultUserMalePortrait
public static Image getDefaultUserMalePortrait()
getImage
public static Image getImage(byte[] bytes)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getImage
public static Image getImage(java.io.File file)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getImage
public static Image getImage(java.io.InputStream is)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getImageOrDefault
public static Image getImageOrDefault(long imageId)
getImages
public static java.util.List<Image> getImages()
throws SystemException
- Throws:
SystemException
getImagesBySize
public static java.util.List<Image> getImagesBySize(int size)
throws SystemException
- Throws:
SystemException
isNullOrDefaultSpacer
public static boolean isNullOrDefaultSpacer(byte[] bytes)
updateImage
public static Image updateImage(long imageId,
byte[] bytes)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateImage
public static Image updateImage(long imageId,
java.io.File file)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateImage
public static Image updateImage(long imageId,
java.io.InputStream is)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateImage
public static Image updateImage(long imageId,
byte[] bytes,
java.lang.String type,
int height,
int width,
int size)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getService
public static ImageLocalService getService()
setService
public void setService(ImageLocalService service)