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

Author:
Brian Wing Shun Chan

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

addImage

public static IGImage addImage(java.lang.String userId,
                               java.lang.String folderId,
                               java.lang.String description,
                               java.io.File file,
                               java.lang.String contentType,
                               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(java.lang.String userId,
                               java.lang.String folderId,
                               java.lang.String description,
                               java.io.File file,
                               java.lang.String contentType,
                               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(java.lang.String userId,
                               java.lang.String folderId,
                               java.lang.String description,
                               java.io.File file,
                               java.lang.String contentType,
                               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(java.lang.String folderId,
                                     java.lang.String 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(java.lang.String folderId,
                                     java.lang.String 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(java.lang.String companyId,
                               java.lang.String 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(java.lang.String 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(java.lang.String groupId,
                                            int begin,
                                            int end)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupImages

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

getGroupImagesCount

public static int getGroupImagesCount(java.lang.String groupId)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupImagesCount

public static int getGroupImagesCount(java.lang.String groupId,
                                      java.lang.String userId)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getImage

public static IGImage getImage(java.lang.String companyId,
                               java.lang.String 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(java.lang.String folderId)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getImages

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

getImages

public static java.util.List getImages(java.lang.String 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(java.lang.String folderId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateImage

public static IGImage updateImage(java.lang.String companyId,
                                  java.lang.String imageId,
                                  java.lang.String folderId,
                                  java.lang.String description,
                                  java.io.File file,
                                  java.lang.String contentType)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException