001
014
015 package com.liferay.portlet.imagegallery.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020 import com.liferay.portal.kernel.transaction.Isolation;
021 import com.liferay.portal.kernel.transaction.Propagation;
022 import com.liferay.portal.kernel.transaction.Transactional;
023
024
037 @JSONWebService
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface IGImageService {
041
046 public com.liferay.portlet.imagegallery.model.IGImage addImage(
047 long groupId, long folderId, java.lang.String name,
048 java.lang.String description, java.io.File file,
049 java.lang.String contentType,
050 com.liferay.portal.service.ServiceContext serviceContext)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException;
053
054 public void deleteImage(long imageId)
055 throws com.liferay.portal.kernel.exception.PortalException,
056 com.liferay.portal.kernel.exception.SystemException;
057
058 public void deleteImageByFolderIdAndNameWithExtension(long groupId,
059 long folderId, java.lang.String nameWithExtension)
060 throws com.liferay.portal.kernel.exception.PortalException,
061 com.liferay.portal.kernel.exception.SystemException;
062
063 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
064 public int getFoldersImagesCount(long groupId,
065 java.util.List<java.lang.Long> folderIds)
066 throws com.liferay.portal.kernel.exception.SystemException;
067
068 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
069 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
070 long groupId, long userId, int start, int end)
071 throws com.liferay.portal.kernel.exception.SystemException;
072
073 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
074 public int getGroupImagesCount(long groupId, long userId)
075 throws com.liferay.portal.kernel.exception.SystemException;
076
077 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
078 public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
079 throws com.liferay.portal.kernel.exception.PortalException,
080 com.liferay.portal.kernel.exception.SystemException;
081
082 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
083 public com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
084 long groupId, long folderId, java.lang.String nameWithExtension)
085 throws com.liferay.portal.kernel.exception.PortalException,
086 com.liferay.portal.kernel.exception.SystemException;
087
088 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
089 public com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
090 long largeImageId)
091 throws com.liferay.portal.kernel.exception.PortalException,
092 com.liferay.portal.kernel.exception.SystemException;
093
094 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
095 public com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
096 long smallImageId)
097 throws com.liferay.portal.kernel.exception.PortalException,
098 com.liferay.portal.kernel.exception.SystemException;
099
100 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
101 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
102 long groupId, long folderId)
103 throws com.liferay.portal.kernel.exception.SystemException;
104
105 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
106 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
107 long groupId, long folderId, int start, int end)
108 throws com.liferay.portal.kernel.exception.SystemException;
109
110 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
111 public int getImagesCount(long groupId, long folderId)
112 throws com.liferay.portal.kernel.exception.SystemException;
113
114 public com.liferay.portlet.imagegallery.model.IGImage updateImage(
115 long imageId, long groupId, long folderId, java.lang.String name,
116 java.lang.String description, java.io.File file,
117 java.lang.String contentType,
118 com.liferay.portal.service.ServiceContext serviceContext)
119 throws com.liferay.portal.kernel.exception.PortalException,
120 com.liferay.portal.kernel.exception.SystemException;
121 }