com.liferay.portlet.imagegallery.service
Class IGImageLocalServiceUtil
java.lang.Object
com.liferay.portlet.imagegallery.service.IGImageLocalServiceUtil
public class IGImageLocalServiceUtil
- 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.portlet.imagegallery.service.IGImageLocalService
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:
IGImageLocalService
Method Summary |
static IGImage |
addIGImage(IGImage igImage)
|
static IGImage |
addImage(long userId,
long folderId,
java.lang.String name,
java.lang.String description,
java.io.File file,
java.lang.String contentType,
ServiceContext serviceContext)
|
static IGImage |
addImage(long userId,
long folderId,
java.lang.String name,
java.lang.String description,
java.lang.String fileName,
byte[] bytes,
java.lang.String contentType,
ServiceContext serviceContext)
|
static IGImage |
addImage(long userId,
long folderId,
java.lang.String name,
java.lang.String description,
java.lang.String fileName,
java.io.InputStream is,
java.lang.String contentType,
ServiceContext serviceContext)
|
static IGImage |
addImage(java.lang.String uuid,
long userId,
long folderId,
java.lang.String name,
java.lang.String description,
java.io.File file,
java.lang.String contentType,
ServiceContext serviceContext)
|
static IGImage |
addImage(java.lang.String uuid,
long userId,
long folderId,
java.lang.String name,
java.lang.String description,
java.lang.String fileName,
byte[] bytes,
java.lang.String contentType,
ServiceContext serviceContext)
|
static IGImage |
addImage(java.lang.String uuid,
long userId,
long folderId,
java.lang.String name,
java.lang.String description,
java.lang.String fileName,
java.io.InputStream is,
java.lang.String contentType,
ServiceContext serviceContext)
|
static void |
addImageResources(IGFolder folder,
IGImage image,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
static void |
addImageResources(IGFolder folder,
IGImage image,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
static void |
addImageResources(long folderId,
long imageId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
static void |
addImageResources(long folderId,
long imageId,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
static IGImage |
createIGImage(long imageId)
|
static void |
deleteIGImage(IGImage igImage)
|
static void |
deleteIGImage(long imageId)
|
static void |
deleteImage(IGImage image)
|
static void |
deleteImage(long imageId)
|
static void |
deleteImages(long folderId)
|
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 int |
getFoldersImagesCount(java.util.List<java.lang.Long> folderIds)
|
static java.util.List<IGImage> |
getGroupImages(long groupId,
int start,
int end)
|
static java.util.List<IGImage> |
getGroupImages(long groupId,
long userId,
int start,
int end)
|
static int |
getGroupImagesCount(long groupId)
|
static int |
getGroupImagesCount(long groupId,
long userId)
|
static IGImage |
getIGImage(long imageId)
|
static java.util.List<IGImage> |
getIGImages(int start,
int end)
|
static int |
getIGImagesCount()
|
static IGImage |
getImage(long imageId)
|
static IGImage |
getImageByCustom1ImageId(long custom1ImageId)
|
static IGImage |
getImageByCustom2ImageId(long custom2ImageId)
|
static IGImage |
getImageByFolderIdAndNameWithExtension(long folderId,
java.lang.String nameWithExtension)
|
static IGImage |
getImageByLargeImageId(long largeImageId)
|
static IGImage |
getImageBySmallImageId(long smallImageId)
|
static IGImage |
getImageByUuidAndGroupId(java.lang.String uuid,
long groupId)
|
static java.util.List<IGImage> |
getImages(long folderId)
|
static java.util.List<IGImage> |
getImages(long folderId,
int start,
int end)
|
static java.util.List<IGImage> |
getImages(long folderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static int |
getImagesCount(long folderId)
|
static java.util.List<IGImage> |
getNoAssetImages()
|
static IGImageLocalService |
getService()
|
static void |
reIndex(long imageId)
|
void |
setService(IGImageLocalService service)
|
static IGImage |
updateIGImage(IGImage igImage)
|
static IGImage |
updateImage(long userId,
long imageId,
long folderId,
java.lang.String name,
java.lang.String description,
byte[] bytes,
java.lang.String contentType,
ServiceContext serviceContext)
|
static IGImage |
updateImage(long userId,
long imageId,
long folderId,
java.lang.String name,
java.lang.String description,
java.io.File file,
java.lang.String contentType,
ServiceContext serviceContext)
|
static IGImage |
updateImage(long userId,
long imageId,
long folderId,
java.lang.String name,
java.lang.String description,
java.io.InputStream is,
java.lang.String contentType,
ServiceContext serviceContext)
|
static void |
updateTagsAsset(long userId,
IGImage image,
java.lang.String[] tagsEntries)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IGImageLocalServiceUtil
public IGImageLocalServiceUtil()
addIGImage
public static IGImage addIGImage(IGImage igImage)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
createIGImage
public static IGImage createIGImage(long imageId)
deleteIGImage
public static void deleteIGImage(long imageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteIGImage
public static void deleteIGImage(IGImage igImage)
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
getIGImage
public static IGImage getIGImage(long imageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getIGImages
public static java.util.List<IGImage> getIGImages(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getIGImagesCount
public static int getIGImagesCount()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateIGImage
public static IGImage updateIGImage(IGImage igImage)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addImage
public static IGImage addImage(long userId,
long folderId,
java.lang.String name,
java.lang.String description,
java.io.File file,
java.lang.String contentType,
ServiceContext serviceContext)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addImage
public static IGImage addImage(long userId,
long folderId,
java.lang.String name,
java.lang.String description,
java.lang.String fileName,
byte[] bytes,
java.lang.String contentType,
ServiceContext serviceContext)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addImage
public static IGImage addImage(long userId,
long folderId,
java.lang.String name,
java.lang.String description,
java.lang.String fileName,
java.io.InputStream is,
java.lang.String contentType,
ServiceContext serviceContext)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addImage
public static IGImage addImage(java.lang.String uuid,
long userId,
long folderId,
java.lang.String name,
java.lang.String description,
java.io.File file,
java.lang.String contentType,
ServiceContext serviceContext)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addImage
public static IGImage addImage(java.lang.String uuid,
long userId,
long folderId,
java.lang.String name,
java.lang.String description,
java.lang.String fileName,
byte[] bytes,
java.lang.String contentType,
ServiceContext serviceContext)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addImage
public static IGImage addImage(java.lang.String uuid,
long userId,
long folderId,
java.lang.String name,
java.lang.String description,
java.lang.String fileName,
java.io.InputStream is,
java.lang.String contentType,
ServiceContext serviceContext)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addImageResources
public static void addImageResources(long folderId,
long imageId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addImageResources
public static void addImageResources(IGFolder folder,
IGImage image,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addImageResources
public static void addImageResources(long folderId,
long imageId,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addImageResources
public static void addImageResources(IGFolder folder,
IGImage image,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
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(IGImage image)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteImages
public static void deleteImages(long folderId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getFoldersImagesCount
public static int getFoldersImagesCount(java.util.List<java.lang.Long> folderIds)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroupImages
public static java.util.List<IGImage> getGroupImages(long groupId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroupImages
public static java.util.List<IGImage> getGroupImages(long groupId,
long userId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroupImagesCount
public static int getGroupImagesCount(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroupImagesCount
public static int getGroupImagesCount(long groupId,
long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getImage
public static IGImage getImage(long imageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getImageByCustom1ImageId
public static IGImage getImageByCustom1ImageId(long custom1ImageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getImageByCustom2ImageId
public static IGImage getImageByCustom2ImageId(long custom2ImageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getImageByFolderIdAndNameWithExtension
public static IGImage getImageByFolderIdAndNameWithExtension(long folderId,
java.lang.String nameWithExtension)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getImageByLargeImageId
public static IGImage getImageByLargeImageId(long largeImageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getImageBySmallImageId
public static IGImage getImageBySmallImageId(long smallImageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getImageByUuidAndGroupId
public static IGImage getImageByUuidAndGroupId(java.lang.String uuid,
long groupId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getImages
public static java.util.List<IGImage> getImages(long folderId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getImages
public static java.util.List<IGImage> getImages(long folderId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getImages
public static java.util.List<IGImage> getImages(long folderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getImagesCount
public static int getImagesCount(long folderId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getNoAssetImages
public static java.util.List<IGImage> getNoAssetImages()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
reIndex
public static void reIndex(long imageId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateImage
public static IGImage updateImage(long userId,
long imageId,
long folderId,
java.lang.String name,
java.lang.String description,
byte[] bytes,
java.lang.String contentType,
ServiceContext serviceContext)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updateImage
public static IGImage updateImage(long userId,
long imageId,
long folderId,
java.lang.String name,
java.lang.String description,
java.io.File file,
java.lang.String contentType,
ServiceContext serviceContext)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updateImage
public static IGImage updateImage(long userId,
long imageId,
long folderId,
java.lang.String name,
java.lang.String description,
java.io.InputStream is,
java.lang.String contentType,
ServiceContext serviceContext)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updateTagsAsset
public static void updateTagsAsset(long userId,
IGImage image,
java.lang.String[] tagsEntries)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getService
public static IGImageLocalService getService()
setService
public void setService(IGImageLocalService service)