com.liferay.portlet.imagegallery.service
Class IGImageServiceUtil

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

public class IGImageServiceUtil
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.IGImageService 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:
IGImageService

Constructor Summary
IGImageServiceUtil()
           
 
Method Summary
static IGImage addImage(long folderId, java.lang.String name, java.lang.String description, java.io.File file, java.lang.String contentType, ServiceContext serviceContext)
           
static void deleteImage(long imageId)
           
static void deleteImageByFolderIdAndNameWithExtension(long folderId, java.lang.String nameWithExtension)
           
static IGImage getImage(long imageId)
           
static IGImage getImageByFolderIdAndNameWithExtension(long folderId, java.lang.String nameWithExtension)
           
static IGImage getImageByLargeImageId(long largeImageId)
           
static IGImage getImageBySmallImageId(long smallImageId)
           
static java.util.List<IGImage> getImages(long folderId)
           
static IGImageService getService()
           
 void setService(IGImageService service)
           
static IGImage updateImage(long imageId, long folderId, java.lang.String name, java.lang.String description, java.io.File file, java.lang.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 folderId,
                               java.lang.String name,
                               java.lang.String description,
                               java.io.File file,
                               java.lang.String contentType,
                               ServiceContext serviceContext)
                        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

deleteImageByFolderIdAndNameWithExtension

public static void deleteImageByFolderIdAndNameWithExtension(long folderId,
                                                             java.lang.String nameWithExtension)
                                                      throws com.liferay.portal.PortalException,
                                                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
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

getImageByFolderIdAndNameWithExtension

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

getImageByLargeImageId

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

getImageBySmallImageId

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

getImages

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

updateImage

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

getService

public static IGImageService getService()

setService

public void setService(IGImageService service)