001
014
015 package com.liferay.portlet.imagegallery.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface IGImageLocalService {
043 public com.liferay.portlet.imagegallery.model.IGImage addIGImage(
044 com.liferay.portlet.imagegallery.model.IGImage igImage)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portlet.imagegallery.model.IGImage createIGImage(
048 long imageId);
049
050 public void deleteIGImage(long imageId)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException;
053
054 public void deleteIGImage(
055 com.liferay.portlet.imagegallery.model.IGImage igImage)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058 @SuppressWarnings("unchecked")
059 public java.util.List dynamicQuery(
060 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061 throws com.liferay.portal.kernel.exception.SystemException;
062
063 @SuppressWarnings("unchecked")
064 public java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException;
067
068 @SuppressWarnings("unchecked")
069 public java.util.List dynamicQuery(
070 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071 int end,
072 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073 throws com.liferay.portal.kernel.exception.SystemException;
074
075 public long dynamicQueryCount(
076 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
077 throws com.liferay.portal.kernel.exception.SystemException;
078
079 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080 public com.liferay.portlet.imagegallery.model.IGImage getIGImage(
081 long imageId)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException;
084
085 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086 public com.liferay.portlet.imagegallery.model.IGImage getIGImageByUuidAndGroupId(
087 java.lang.String uuid, long groupId)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException;
090
091 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getIGImages(
093 int start, int end)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097 public int getIGImagesCount()
098 throws com.liferay.portal.kernel.exception.SystemException;
099
100 public com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
101 com.liferay.portlet.imagegallery.model.IGImage igImage)
102 throws com.liferay.portal.kernel.exception.SystemException;
103
104 public com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
105 com.liferay.portlet.imagegallery.model.IGImage igImage, boolean merge)
106 throws com.liferay.portal.kernel.exception.SystemException;
107
108 public com.liferay.portlet.imagegallery.model.IGImage addImage(
109 long userId, long groupId, long folderId, java.lang.String name,
110 java.lang.String description, java.io.File file,
111 java.lang.String contentType,
112 com.liferay.portal.service.ServiceContext serviceContext)
113 throws com.liferay.portal.kernel.exception.PortalException,
114 com.liferay.portal.kernel.exception.SystemException;
115
116 public com.liferay.portlet.imagegallery.model.IGImage addImage(
117 long userId, long groupId, long folderId, java.lang.String name,
118 java.lang.String description, java.lang.String fileName, byte[] bytes,
119 java.lang.String contentType,
120 com.liferay.portal.service.ServiceContext serviceContext)
121 throws com.liferay.portal.kernel.exception.PortalException,
122 com.liferay.portal.kernel.exception.SystemException;
123
124 public com.liferay.portlet.imagegallery.model.IGImage addImage(
125 long userId, long groupId, long folderId, java.lang.String name,
126 java.lang.String description, java.lang.String fileName,
127 java.io.InputStream is, java.lang.String contentType,
128 com.liferay.portal.service.ServiceContext serviceContext)
129 throws com.liferay.portal.kernel.exception.PortalException,
130 com.liferay.portal.kernel.exception.SystemException;
131
132 public void addImageResources(
133 com.liferay.portlet.imagegallery.model.IGImage image,
134 boolean addCommunityPermissions, boolean addGuestPermissions)
135 throws com.liferay.portal.kernel.exception.PortalException,
136 com.liferay.portal.kernel.exception.SystemException;
137
138 public void addImageResources(
139 com.liferay.portlet.imagegallery.model.IGImage image,
140 java.lang.String[] communityPermissions,
141 java.lang.String[] guestPermissions)
142 throws com.liferay.portal.kernel.exception.PortalException,
143 com.liferay.portal.kernel.exception.SystemException;
144
145 public void addImageResources(long imageId,
146 boolean addCommunityPermissions, boolean addGuestPermissions)
147 throws com.liferay.portal.kernel.exception.PortalException,
148 com.liferay.portal.kernel.exception.SystemException;
149
150 public void addImageResources(long imageId,
151 java.lang.String[] communityPermissions,
152 java.lang.String[] guestPermissions)
153 throws com.liferay.portal.kernel.exception.PortalException,
154 com.liferay.portal.kernel.exception.SystemException;
155
156 public void deleteImage(
157 com.liferay.portlet.imagegallery.model.IGImage image)
158 throws com.liferay.portal.kernel.exception.PortalException,
159 com.liferay.portal.kernel.exception.SystemException;
160
161 public void deleteImage(long imageId)
162 throws com.liferay.portal.kernel.exception.PortalException,
163 com.liferay.portal.kernel.exception.SystemException;
164
165 public void deleteImages(long groupId, long folderId)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException;
168
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public int getFoldersImagesCount(long groupId,
171 java.util.List<java.lang.Long> folderIds)
172 throws com.liferay.portal.kernel.exception.SystemException;
173
174 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
176 long groupId, int start, int end)
177 throws com.liferay.portal.kernel.exception.SystemException;
178
179 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
181 long groupId, long userId, int start, int end)
182 throws com.liferay.portal.kernel.exception.SystemException;
183
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public int getGroupImagesCount(long groupId)
186 throws com.liferay.portal.kernel.exception.SystemException;
187
188 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189 public int getGroupImagesCount(long groupId, long userId)
190 throws com.liferay.portal.kernel.exception.SystemException;
191
192 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193 public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
194 throws com.liferay.portal.kernel.exception.PortalException,
195 com.liferay.portal.kernel.exception.SystemException;
196
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom1ImageId(
199 long custom1ImageId)
200 throws com.liferay.portal.kernel.exception.PortalException,
201 com.liferay.portal.kernel.exception.SystemException;
202
203 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204 public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom2ImageId(
205 long custom2ImageId)
206 throws com.liferay.portal.kernel.exception.PortalException,
207 com.liferay.portal.kernel.exception.SystemException;
208
209 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210 public com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
211 long groupId, long folderId, java.lang.String nameWithExtension)
212 throws com.liferay.portal.kernel.exception.PortalException,
213 com.liferay.portal.kernel.exception.SystemException;
214
215 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216 public com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
217 long largeImageId)
218 throws com.liferay.portal.kernel.exception.PortalException,
219 com.liferay.portal.kernel.exception.SystemException;
220
221 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
222 public com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
223 long smallImageId)
224 throws com.liferay.portal.kernel.exception.PortalException,
225 com.liferay.portal.kernel.exception.SystemException;
226
227 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228 public com.liferay.portlet.imagegallery.model.IGImage getImageByUuidAndGroupId(
229 java.lang.String uuid, long groupId)
230 throws com.liferay.portal.kernel.exception.PortalException,
231 com.liferay.portal.kernel.exception.SystemException;
232
233 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
234 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
235 long groupId, long folderId)
236 throws com.liferay.portal.kernel.exception.SystemException;
237
238 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
240 long groupId, long folderId, int start, int end)
241 throws com.liferay.portal.kernel.exception.SystemException;
242
243 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
244 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
245 long groupId, long folderId, int start, int end,
246 com.liferay.portal.kernel.util.OrderByComparator obc)
247 throws com.liferay.portal.kernel.exception.SystemException;
248
249 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
250 public int getImagesCount(long groupId, long folderId)
251 throws com.liferay.portal.kernel.exception.SystemException;
252
253 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
254 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getNoAssetImages()
255 throws com.liferay.portal.kernel.exception.SystemException;
256
257 public void updateAsset(long userId,
258 com.liferay.portlet.imagegallery.model.IGImage image,
259 long[] assetCategoryIds, java.lang.String[] assetTagNames,
260 java.lang.String contentType)
261 throws com.liferay.portal.kernel.exception.PortalException,
262 com.liferay.portal.kernel.exception.SystemException;
263
264 public com.liferay.portlet.imagegallery.model.IGImage updateImage(
265 long userId, long imageId, long groupId, long folderId,
266 java.lang.String name, java.lang.String description, byte[] bytes,
267 java.lang.String contentType,
268 com.liferay.portal.service.ServiceContext serviceContext)
269 throws com.liferay.portal.kernel.exception.PortalException,
270 com.liferay.portal.kernel.exception.SystemException;
271
272 public com.liferay.portlet.imagegallery.model.IGImage updateImage(
273 long userId, long imageId, long groupId, long folderId,
274 java.lang.String name, java.lang.String description, java.io.File file,
275 java.lang.String contentType,
276 com.liferay.portal.service.ServiceContext serviceContext)
277 throws com.liferay.portal.kernel.exception.PortalException,
278 com.liferay.portal.kernel.exception.SystemException;
279
280 public com.liferay.portlet.imagegallery.model.IGImage updateImage(
281 long userId, long imageId, long groupId, long folderId,
282 java.lang.String name, java.lang.String description,
283 java.io.InputStream is, java.lang.String contentType,
284 com.liferay.portal.service.ServiceContext serviceContext)
285 throws com.liferay.portal.kernel.exception.PortalException,
286 com.liferay.portal.kernel.exception.SystemException;
287
288 public void updateSmallImage(long smallImageId, long largeImageId)
289 throws com.liferay.portal.kernel.exception.PortalException,
290 com.liferay.portal.kernel.exception.SystemException;
291 }