com.liferay.portlet.imagegallery.service
Interface IGImageService


@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface IGImageService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portlet.imagegallery.service.impl.IGImageServiceImpl. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

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.

Author:
Brian Wing Shun Chan
See Also:
IGImageServiceUtil

Method Summary
 IGImage addImage(long folderId, java.lang.String name, java.lang.String description, java.io.File file, java.lang.String contentType, ServiceContext serviceContext)
           
 void deleteImage(long imageId)
           
 void deleteImageByFolderIdAndNameWithExtension(long folderId, java.lang.String nameWithExtension)
           
 IGImage getImage(long imageId)
           
 IGImage getImageByFolderIdAndNameWithExtension(long folderId, java.lang.String nameWithExtension)
           
 IGImage getImageByLargeImageId(long largeImageId)
           
 IGImage getImageBySmallImageId(long smallImageId)
           
 java.util.List<IGImage> getImages(long folderId)
           
 IGImage updateImage(long imageId, long folderId, java.lang.String name, java.lang.String description, java.io.File file, java.lang.String contentType, ServiceContext serviceContext)
           
 

Method Detail

addImage

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

void deleteImage(long imageId)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteImageByFolderIdAndNameWithExtension

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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGImage getImage(long imageId)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getImageByFolderIdAndNameWithExtension

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGImage getImageByLargeImageId(long largeImageId)
                               throws com.liferay.portal.PortalException,
                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getImageBySmallImageId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGImage getImageBySmallImageId(long smallImageId)
                               throws com.liferay.portal.PortalException,
                                      com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getImages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

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