com.liferay.portlet.imagegallery.service
Class IGImageLocalServiceUtil

java.lang.Object
  extended bycom.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.

com.liferay.portlet.imagegallery.service.IGImageLocalServiceFactory is responsible for the lookup of the bean.

Author:
Brian Wing Shun Chan
See Also:
IGImageLocalService, IGImageLocalServiceFactory

Constructor Summary
IGImageLocalServiceUtil()
           
 
Method Summary
static IGImage addIGImage(IGImage model)
           
static IGImage addImage(long userId, long folderId, java.lang.String description, java.io.File file, java.lang.String contentType, java.lang.String[] tagsEntries, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static IGImage addImage(long userId, long folderId, java.lang.String description, java.io.File file, java.lang.String contentType, java.lang.String[] tagsEntries, java.lang.Boolean addCommunityPermissions, java.lang.Boolean addGuestPermissions, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static IGImage addImage(long userId, long folderId, java.lang.String description, java.io.File file, java.lang.String contentType, java.lang.String[] tagsEntries, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
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 void deleteImage(IGImage image)
           
static void deleteImage(long imageId)
           
static void deleteImages(long folderId)
           
static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
static int getFoldersImagesCount(java.util.List folderIds)
           
static java.util.List getGroupImages(long groupId, int begin, int end)
           
static java.util.List getGroupImages(long groupId, long userId, int begin, int end)
           
static int getGroupImagesCount(long groupId)
           
static int getGroupImagesCount(long groupId, long userId)
           
static IGImage getImage(long imageId)
           
static java.util.List getImages(long folderId)
           
static java.util.List getImages(long folderId, int begin, int end)
           
static java.util.List getImages(long folderId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static int getImagesCount(long folderId)
           
static java.util.List getNoAssetImages()
           
static IGImage updateIGImage(IGImage model)
           
static IGImage updateImage(long userId, long imageId, long folderId, java.lang.String description, java.io.File file, java.lang.String contentType, java.lang.String[] tagsEntries)
           
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
 

Constructor Detail

IGImageLocalServiceUtil

public IGImageLocalServiceUtil()
Method Detail

addIGImage

public static IGImage addIGImage(IGImage model)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                          int begin,
                                          int end)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateIGImage

public static IGImage updateIGImage(IGImage model)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addImage

public static IGImage addImage(long userId,
                               long folderId,
                               java.lang.String description,
                               java.io.File file,
                               java.lang.String contentType,
                               java.lang.String[] tagsEntries,
                               boolean addCommunityPermissions,
                               boolean addGuestPermissions)
                        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 description,
                               java.io.File file,
                               java.lang.String contentType,
                               java.lang.String[] tagsEntries,
                               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

addImage

public static IGImage addImage(long userId,
                               long folderId,
                               java.lang.String description,
                               java.io.File file,
                               java.lang.String contentType,
                               java.lang.String[] tagsEntries,
                               java.lang.Boolean addCommunityPermissions,
                               java.lang.Boolean addGuestPermissions,
                               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(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 folderIds)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupImages

public static java.util.List getGroupImages(long groupId,
                                            int begin,
                                            int end)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupImages

public static java.util.List getGroupImages(long groupId,
                                            long userId,
                                            int begin,
                                            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

getImages

public static java.util.List getImages(long folderId)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getImages

public static java.util.List getImages(long folderId,
                                       int begin,
                                       int end)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getImages

public static java.util.List getImages(long folderId,
                                       int begin,
                                       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 getNoAssetImages()
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateImage

public static IGImage updateImage(long userId,
                                  long imageId,
                                  long folderId,
                                  java.lang.String description,
                                  java.io.File file,
                                  java.lang.String contentType,
                                  java.lang.String[] tagsEntries)
                           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