com.liferay.portlet.imagegallery.service
Class IGImageLocalServiceUtil

java.lang.Object
  extended by 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 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
Generated:

Constructor Summary
IGImageLocalServiceUtil()
           
 
Method Summary
static IGImage addIGImage(IGImage igImage)
           
static IGImage addImage(java.lang.String uuid, long userId, long groupId, 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 groupId, 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 groupId, 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(IGImage image, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static void addImageResources(IGImage image, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static void addImageResources(long imageId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static void addImageResources(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 groupId, 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(long groupId, 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 groupId, 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 groupId, long folderId)
           
static java.util.List<IGImage> getImages(long groupId, long folderId, int start, int end)
           
static java.util.List<IGImage> getImages(long groupId, long folderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static int getImagesCount(long groupId, long folderId)
           
static java.util.List<IGImage> getNoAssetImages()
           
static IGImageLocalService getService()
           
 void setService(IGImageLocalService service)
           
static void updateAsset(long userId, IGImage image, long[] assetCategoryIds, java.lang.String[] assetTagNames, java.lang.String contentType)
           
static IGImage updateIGImage(IGImage igImage)
           
static IGImage updateIGImage(IGImage igImage, boolean merge)
           
static IGImage updateImage(long userId, long imageId, long groupId, 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 groupId, 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 groupId, long folderId, java.lang.String name, java.lang.String description, java.io.InputStream is, java.lang.String contentType, ServiceContext serviceContext)
           
static void updateSmallImage(long smallImageId, long largeImageId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IGImageLocalServiceUtil

public IGImageLocalServiceUtil()
Method Detail

addIGImage

public static IGImage addIGImage(IGImage igImage)
                          throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

createIGImage

public static IGImage createIGImage(long imageId)

deleteIGImage

public static void deleteIGImage(long imageId)
                          throws com.liferay.portal.kernel.exception.PortalException,
                                 com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteIGImage

public static void deleteIGImage(IGImage igImage)
                          throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

dynamicQuery

public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                     throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.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.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getIGImage

public static IGImage getIGImage(long imageId)
                          throws com.liferay.portal.kernel.exception.PortalException,
                                 com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getIGImages

public static java.util.List<IGImage> getIGImages(int start,
                                                  int end)
                                           throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getIGImagesCount

public static int getIGImagesCount()
                            throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

updateIGImage

public static IGImage updateIGImage(IGImage igImage)
                             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

updateIGImage

public static IGImage updateIGImage(IGImage igImage,
                                    boolean merge)
                             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

addImage

public static IGImage addImage(java.lang.String uuid,
                               long userId,
                               long groupId,
                               long folderId,
                               java.lang.String name,
                               java.lang.String description,
                               java.io.File file,
                               java.lang.String contentType,
                               ServiceContext serviceContext)
                        throws com.liferay.portal.kernel.exception.PortalException,
                               com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addImage

public static IGImage addImage(java.lang.String uuid,
                               long userId,
                               long groupId,
                               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.kernel.exception.PortalException,
                               com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addImage

public static IGImage addImage(java.lang.String uuid,
                               long userId,
                               long groupId,
                               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.kernel.exception.PortalException,
                               com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addImageResources

public static void addImageResources(IGImage image,
                                     boolean addCommunityPermissions,
                                     boolean addGuestPermissions)
                              throws com.liferay.portal.kernel.exception.PortalException,
                                     com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addImageResources

public static void addImageResources(IGImage image,
                                     java.lang.String[] communityPermissions,
                                     java.lang.String[] guestPermissions)
                              throws com.liferay.portal.kernel.exception.PortalException,
                                     com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addImageResources

public static void addImageResources(long imageId,
                                     boolean addCommunityPermissions,
                                     boolean addGuestPermissions)
                              throws com.liferay.portal.kernel.exception.PortalException,
                                     com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addImageResources

public static void addImageResources(long imageId,
                                     java.lang.String[] communityPermissions,
                                     java.lang.String[] guestPermissions)
                              throws com.liferay.portal.kernel.exception.PortalException,
                                     com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteImage

public static void deleteImage(IGImage image)
                        throws com.liferay.portal.kernel.exception.PortalException,
                               com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteImage

public static void deleteImage(long imageId)
                        throws com.liferay.portal.kernel.exception.PortalException,
                               com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteImages

public static void deleteImages(long groupId,
                                long folderId)
                         throws com.liferay.portal.kernel.exception.PortalException,
                                com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getFoldersImagesCount

public static int getFoldersImagesCount(long groupId,
                                        java.util.List<java.lang.Long> folderIds)
                                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupImages

public static java.util.List<IGImage> getGroupImages(long groupId,
                                                     int start,
                                                     int end)
                                              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupImages

public static java.util.List<IGImage> getGroupImages(long groupId,
                                                     long userId,
                                                     int start,
                                                     int end)
                                              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupImagesCount

public static int getGroupImagesCount(long groupId)
                               throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupImagesCount

public static int getGroupImagesCount(long groupId,
                                      long userId)
                               throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getImage

public static IGImage getImage(long imageId)
                        throws com.liferay.portal.kernel.exception.PortalException,
                               com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getImageByCustom1ImageId

public static IGImage getImageByCustom1ImageId(long custom1ImageId)
                                        throws com.liferay.portal.kernel.exception.PortalException,
                                               com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getImageByCustom2ImageId

public static IGImage getImageByCustom2ImageId(long custom2ImageId)
                                        throws com.liferay.portal.kernel.exception.PortalException,
                                               com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getImageByFolderIdAndNameWithExtension

public static IGImage getImageByFolderIdAndNameWithExtension(long groupId,
                                                             long folderId,
                                                             java.lang.String nameWithExtension)
                                                      throws com.liferay.portal.kernel.exception.PortalException,
                                                             com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getImageByLargeImageId

public static IGImage getImageByLargeImageId(long largeImageId)
                                      throws com.liferay.portal.kernel.exception.PortalException,
                                             com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getImageBySmallImageId

public static IGImage getImageBySmallImageId(long smallImageId)
                                      throws com.liferay.portal.kernel.exception.PortalException,
                                             com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getImageByUuidAndGroupId

public static IGImage getImageByUuidAndGroupId(java.lang.String uuid,
                                               long groupId)
                                        throws com.liferay.portal.kernel.exception.PortalException,
                                               com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getImages

public static java.util.List<IGImage> getImages(long groupId,
                                                long folderId)
                                         throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getImages

public static java.util.List<IGImage> getImages(long groupId,
                                                long folderId,
                                                int start,
                                                int end)
                                         throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getImages

public static java.util.List<IGImage> getImages(long groupId,
                                                long folderId,
                                                int start,
                                                int end,
                                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                         throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getImagesCount

public static int getImagesCount(long groupId,
                                 long folderId)
                          throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getNoAssetImages

public static java.util.List<IGImage> getNoAssetImages()
                                                throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

updateAsset

public static void updateAsset(long userId,
                               IGImage image,
                               long[] assetCategoryIds,
                               java.lang.String[] assetTagNames,
                               java.lang.String contentType)
                        throws com.liferay.portal.kernel.exception.PortalException,
                               com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateImage

public static IGImage updateImage(long userId,
                                  long imageId,
                                  long groupId,
                                  long folderId,
                                  java.lang.String name,
                                  java.lang.String description,
                                  byte[] bytes,
                                  java.lang.String contentType,
                                  ServiceContext serviceContext)
                           throws com.liferay.portal.kernel.exception.PortalException,
                                  com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateImage

public static IGImage updateImage(long userId,
                                  long imageId,
                                  long groupId,
                                  long folderId,
                                  java.lang.String name,
                                  java.lang.String description,
                                  java.io.File file,
                                  java.lang.String contentType,
                                  ServiceContext serviceContext)
                           throws com.liferay.portal.kernel.exception.PortalException,
                                  com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateImage

public static IGImage updateImage(long userId,
                                  long imageId,
                                  long groupId,
                                  long folderId,
                                  java.lang.String name,
                                  java.lang.String description,
                                  java.io.InputStream is,
                                  java.lang.String contentType,
                                  ServiceContext serviceContext)
                           throws com.liferay.portal.kernel.exception.PortalException,
                                  com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateSmallImage

public static void updateSmallImage(long smallImageId,
                                    long largeImageId)
                             throws com.liferay.portal.kernel.exception.PortalException,
                                    com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getService

public static IGImageLocalService getService()

setService

public void setService(IGImageLocalService service)