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 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 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 IGImage getIGImageByUuidAndGroupId(java.lang.String uuid, long groupId)
           
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, 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 SystemException
Throws:
SystemException

createIGImage

public static IGImage createIGImage(long imageId)

deleteIGImage

public static void deleteIGImage(long imageId)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

deleteIGImage

public static void deleteIGImage(IGImage igImage)
                          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

getIGImage

public static IGImage getIGImage(long imageId)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getIGImageByUuidAndGroupId

public static IGImage getIGImageByUuidAndGroupId(java.lang.String uuid,
                                                 long groupId)
                                          throws PortalException,
                                                 SystemException
Throws:
PortalException
SystemException

getIGImages

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

getIGImagesCount

public static int getIGImagesCount()
                            throws SystemException
Throws:
SystemException

updateIGImage

public static IGImage updateIGImage(IGImage igImage)
                             throws SystemException
Throws:
SystemException

updateIGImage

public static IGImage updateIGImage(IGImage igImage,
                                    boolean merge)
                             throws SystemException
Throws:
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 PortalException,
                               SystemException
Throws:
PortalException
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 PortalException,
                               SystemException
Throws:
PortalException
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 PortalException,
                               SystemException
Throws:
PortalException
SystemException

addImageResources

public static void addImageResources(IGImage image,
                                     boolean addCommunityPermissions,
                                     boolean addGuestPermissions)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

addImageResources

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

addImageResources

public static void addImageResources(long imageId,
                                     boolean addCommunityPermissions,
                                     boolean addGuestPermissions)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

addImageResources

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

deleteImage

public static void deleteImage(IGImage image)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

deleteImage

public static void deleteImage(long imageId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

deleteImages

public static void deleteImages(long groupId,
                                long folderId)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

getFoldersImagesCount

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

getGroupImages

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

getGroupImages

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

getGroupImagesCount

public static int getGroupImagesCount(long groupId)
                               throws SystemException
Throws:
SystemException

getGroupImagesCount

public static int getGroupImagesCount(long groupId,
                                      long userId)
                               throws SystemException
Throws:
SystemException

getImage

public static IGImage getImage(long imageId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getImageByCustom1ImageId

public static IGImage getImageByCustom1ImageId(long custom1ImageId)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

getImageByCustom2ImageId

public static IGImage getImageByCustom2ImageId(long custom2ImageId)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

getImageByFolderIdAndNameWithExtension

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

getImageByLargeImageId

public static IGImage getImageByLargeImageId(long largeImageId)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

getImageBySmallImageId

public static IGImage getImageBySmallImageId(long smallImageId)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

getImageByUuidAndGroupId

public static IGImage getImageByUuidAndGroupId(java.lang.String uuid,
                                               long groupId)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

getImages

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

getImages

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

getImages

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

getImagesCount

public static int getImagesCount(long groupId,
                                 long folderId)
                          throws SystemException
Throws:
SystemException

getNoAssetImages

public static java.util.List<IGImage> getNoAssetImages()
                                                throws SystemException
Throws:
SystemException

updateAsset

public static void updateAsset(long userId,
                               IGImage image,
                               long[] assetCategoryIds,
                               java.lang.String[] assetTagNames,
                               java.lang.String contentType)
                        throws PortalException,
                               SystemException
Throws:
PortalException
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 PortalException,
                                  SystemException
Throws:
PortalException
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 PortalException,
                                  SystemException
Throws:
PortalException
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 PortalException,
                                  SystemException
Throws:
PortalException
SystemException

updateSmallImage

public static void updateSmallImage(long smallImageId,
                                    long largeImageId)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

getService

public static IGImageLocalService getService()

setService

public void setService(IGImageLocalService service)