Liferay 6.0.5

com.liferay.portlet.imagegallery.service
Class IGImageServiceUtil

java.lang.Object
  extended by com.liferay.portlet.imagegallery.service.IGImageServiceUtil

public class IGImageServiceUtil
extends Object

The utility for the i g image remote service. This utility wraps IGImageServiceImpl and is the primary access point for service operations in application layer code running on a remote server.

Never modify this class directly. Add custom service methods to IGImageServiceImpl and rerun ServiceBuilder to regenerate this class.

This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

See Also:
IGImageService, IGImageServiceBaseImpl, IGImageServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
IGImageServiceUtil()
           
 
Method Summary
static IGImage addImage(long groupId, long folderId, String name, String description, File file, String contentType, ServiceContext serviceContext)
           
static void deleteImage(long imageId)
           
static void deleteImageByFolderIdAndNameWithExtension(long groupId, long folderId, String nameWithExtension)
           
static List<IGImage> getGroupImages(long groupId, long userId, int start, int end)
           
static int getGroupImagesCount(long groupId, long userId)
           
static IGImage getImage(long imageId)
           
static IGImage getImageByFolderIdAndNameWithExtension(long groupId, long folderId, String nameWithExtension)
           
static IGImage getImageByLargeImageId(long largeImageId)
           
static IGImage getImageBySmallImageId(long smallImageId)
           
static List<IGImage> getImages(long groupId, long folderId)
           
static List<IGImage> getImages(long groupId, long folderId, int start, int end)
           
static int getImagesCount(long groupId, long folderId)
           
static IGImageService getService()
           
 void setService(IGImageService service)
           
static IGImage updateImage(long imageId, long groupId, long folderId, String name, String description, File file, String contentType, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IGImageServiceUtil

public IGImageServiceUtil()
Method Detail

addImage

public static IGImage addImage(long groupId,
                               long folderId,
                               String name,
                               String description,
                               File file,
                               String contentType,
                               ServiceContext serviceContext)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

deleteImage

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

deleteImageByFolderIdAndNameWithExtension

public static void deleteImageByFolderIdAndNameWithExtension(long groupId,
                                                             long folderId,
                                                             String nameWithExtension)
                                                      throws PortalException,
                                                             SystemException
Throws:
PortalException
SystemException

getGroupImages

public static List<IGImage> getGroupImages(long groupId,
                                           long userId,
                                           int start,
                                           int end)
                                    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

getImageByFolderIdAndNameWithExtension

public static IGImage getImageByFolderIdAndNameWithExtension(long groupId,
                                                             long folderId,
                                                             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

getImages

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

getImages

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

getImagesCount

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

updateImage

public static IGImage updateImage(long imageId,
                                  long groupId,
                                  long folderId,
                                  String name,
                                  String description,
                                  File file,
                                  String contentType,
                                  ServiceContext serviceContext)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

getService

public static IGImageService getService()

setService

public void setService(IGImageService service)

Liferay 6.0.5