Liferay 6.0.4

com.liferay.portlet.imagegallery.service
Interface IGImageService

All Known Implementing Classes:
IGImageServiceBaseImpl, IGImageServiceImpl, IGImageServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface IGImageService

This interface defines the service. The default implementation is 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.

See Also:
IGImageServiceUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Method Summary
 IGImage addImage(long groupId, long folderId, String name, String description, File file, String contentType, ServiceContext serviceContext)
           
 void deleteImage(long imageId)
           
 void deleteImageByFolderIdAndNameWithExtension(long groupId, long folderId, String nameWithExtension)
           
 List<IGImage> getGroupImages(long groupId, long userId, int start, int end)
           
 int getGroupImagesCount(long groupId, long userId)
           
 IGImage getImage(long imageId)
           
 IGImage getImageByFolderIdAndNameWithExtension(long groupId, long folderId, String nameWithExtension)
           
 IGImage getImageByLargeImageId(long largeImageId)
           
 IGImage getImageBySmallImageId(long smallImageId)
           
 List<IGImage> getImages(long groupId, long folderId)
           
 List<IGImage> getImages(long groupId, long folderId, int start, int end)
           
 int getImagesCount(long groupId, long folderId)
           
 IGImage updateImage(long imageId, long groupId, long folderId, String name, String description, File file, String contentType, ServiceContext serviceContext)
           
 

Method Detail

addImage

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

deleteImage

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

deleteImageByFolderIdAndNameWithExtension

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

getGroupImages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<IGImage> getGroupImages(long groupId,
                                                                      long userId,
                                                                      int start,
                                                                      int end)
                             throws SystemException
Throws:
SystemException

getGroupImagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupImagesCount(long groupId,
                                                                 long userId)
                        throws SystemException
Throws:
SystemException

getImage

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

getImageByFolderIdAndNameWithExtension

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IGImage getImageByFolderIdAndNameWithExtension(long groupId,
                                                                                        long folderId,
                                                                                        String nameWithExtension)
                                               throws PortalException,
                                                      SystemException
Throws:
PortalException
SystemException

getImageByLargeImageId

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

getImageBySmallImageId

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

getImages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<IGImage> getImages(long groupId,
                                                                 long folderId)
                        throws SystemException
Throws:
SystemException

getImages

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<IGImage> getImages(long groupId,
                                                                 long folderId,
                                                                 int start,
                                                                 int end)
                        throws SystemException
Throws:
SystemException

getImagesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getImagesCount(long groupId,
                                                            long folderId)
                   throws SystemException
Throws:
SystemException

updateImage

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

Liferay 6.0.4