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.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022 import com.liferay.portal.service.PersistedModelLocalService;
023
024
037 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
038 PortalException.class, SystemException.class})
039 public interface IGImageLocalService extends PersistedModelLocalService {
040
045
046
053 public com.liferay.portlet.imagegallery.model.IGImage addIGImage(
054 com.liferay.portlet.imagegallery.model.IGImage igImage)
055 throws com.liferay.portal.kernel.exception.SystemException;
056
057
063 public com.liferay.portlet.imagegallery.model.IGImage createIGImage(
064 long imageId);
065
066
073 public void deleteIGImage(long imageId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException;
076
077
083 public void deleteIGImage(
084 com.liferay.portlet.imagegallery.model.IGImage igImage)
085 throws com.liferay.portal.kernel.exception.SystemException;
086
087
094 @SuppressWarnings("rawtypes")
095 public java.util.List dynamicQuery(
096 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099
112 @SuppressWarnings("rawtypes")
113 public java.util.List dynamicQuery(
114 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
115 int end) throws com.liferay.portal.kernel.exception.SystemException;
116
117
131 @SuppressWarnings("rawtypes")
132 public java.util.List dynamicQuery(
133 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
134 int end,
135 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136 throws com.liferay.portal.kernel.exception.SystemException;
137
138
145 public long dynamicQueryCount(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
147 throws com.liferay.portal.kernel.exception.SystemException;
148
149
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public com.liferay.portlet.imagegallery.model.IGImage getIGImage(
159 long imageId)
160 throws com.liferay.portal.kernel.exception.PortalException,
161 com.liferay.portal.kernel.exception.SystemException;
162
163 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164 public com.liferay.portal.model.PersistedModel getPersistedModel(
165 java.io.Serializable primaryKeyObj)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException;
168
169
178 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179 public com.liferay.portlet.imagegallery.model.IGImage getIGImageByUuidAndGroupId(
180 java.lang.String uuid, long groupId)
181 throws com.liferay.portal.kernel.exception.PortalException,
182 com.liferay.portal.kernel.exception.SystemException;
183
184
196 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getIGImages(
198 int start, int end)
199 throws com.liferay.portal.kernel.exception.SystemException;
200
201
207 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208 public int getIGImagesCount()
209 throws com.liferay.portal.kernel.exception.SystemException;
210
211
218 public com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
219 com.liferay.portlet.imagegallery.model.IGImage igImage)
220 throws com.liferay.portal.kernel.exception.SystemException;
221
222
230 public com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
231 com.liferay.portlet.imagegallery.model.IGImage igImage, boolean merge)
232 throws com.liferay.portal.kernel.exception.SystemException;
233
234
239 public java.lang.String getBeanIdentifier();
240
241
246 public void setBeanIdentifier(java.lang.String beanIdentifier);
247
248 public com.liferay.portlet.imagegallery.model.IGImage addImage(
249 long userId, long groupId, long folderId, java.lang.String name,
250 java.lang.String description, java.io.File file,
251 java.lang.String contentType,
252 com.liferay.portal.service.ServiceContext serviceContext)
253 throws com.liferay.portal.kernel.exception.PortalException,
254 com.liferay.portal.kernel.exception.SystemException;
255
256 public com.liferay.portlet.imagegallery.model.IGImage addImage(
257 long userId, long groupId, long folderId, java.lang.String name,
258 java.lang.String description, java.lang.String fileName, byte[] bytes,
259 java.lang.String contentType,
260 com.liferay.portal.service.ServiceContext serviceContext)
261 throws com.liferay.portal.kernel.exception.PortalException,
262 com.liferay.portal.kernel.exception.SystemException;
263
264 public com.liferay.portlet.imagegallery.model.IGImage addImage(
265 long userId, long groupId, long folderId, java.lang.String name,
266 java.lang.String description, java.lang.String fileName,
267 java.io.InputStream is, 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 void addImageResources(
273 com.liferay.portlet.imagegallery.model.IGImage image,
274 boolean addCommunityPermissions, boolean addGuestPermissions)
275 throws com.liferay.portal.kernel.exception.PortalException,
276 com.liferay.portal.kernel.exception.SystemException;
277
278 public void addImageResources(
279 com.liferay.portlet.imagegallery.model.IGImage image,
280 java.lang.String[] communityPermissions,
281 java.lang.String[] guestPermissions)
282 throws com.liferay.portal.kernel.exception.PortalException,
283 com.liferay.portal.kernel.exception.SystemException;
284
285 public void addImageResources(long imageId,
286 boolean addCommunityPermissions, boolean addGuestPermissions)
287 throws com.liferay.portal.kernel.exception.PortalException,
288 com.liferay.portal.kernel.exception.SystemException;
289
290 public void addImageResources(long imageId,
291 java.lang.String[] communityPermissions,
292 java.lang.String[] guestPermissions)
293 throws com.liferay.portal.kernel.exception.PortalException,
294 com.liferay.portal.kernel.exception.SystemException;
295
296 public void deleteImage(
297 com.liferay.portlet.imagegallery.model.IGImage image)
298 throws com.liferay.portal.kernel.exception.PortalException,
299 com.liferay.portal.kernel.exception.SystemException;
300
301 public void deleteImage(long imageId)
302 throws com.liferay.portal.kernel.exception.PortalException,
303 com.liferay.portal.kernel.exception.SystemException;
304
305 public void deleteImages(long groupId, long folderId)
306 throws com.liferay.portal.kernel.exception.PortalException,
307 com.liferay.portal.kernel.exception.SystemException;
308
309 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310 public int getFoldersImagesCount(long groupId,
311 java.util.List<java.lang.Long> folderIds)
312 throws com.liferay.portal.kernel.exception.SystemException;
313
314 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
315 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
316 long groupId, int start, int end)
317 throws com.liferay.portal.kernel.exception.SystemException;
318
319 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
320 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
321 long groupId, long userId, int start, int end)
322 throws com.liferay.portal.kernel.exception.SystemException;
323
324 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
325 public int getGroupImagesCount(long groupId)
326 throws com.liferay.portal.kernel.exception.SystemException;
327
328 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
329 public int getGroupImagesCount(long groupId, long userId)
330 throws com.liferay.portal.kernel.exception.SystemException;
331
332 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333 public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
334 throws com.liferay.portal.kernel.exception.PortalException,
335 com.liferay.portal.kernel.exception.SystemException;
336
337 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
338 public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom1ImageId(
339 long custom1ImageId)
340 throws com.liferay.portal.kernel.exception.PortalException,
341 com.liferay.portal.kernel.exception.SystemException;
342
343 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
344 public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom2ImageId(
345 long custom2ImageId)
346 throws com.liferay.portal.kernel.exception.PortalException,
347 com.liferay.portal.kernel.exception.SystemException;
348
349 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
350 public com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
351 long groupId, long folderId, java.lang.String nameWithExtension)
352 throws com.liferay.portal.kernel.exception.PortalException,
353 com.liferay.portal.kernel.exception.SystemException;
354
355 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
356 public com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
357 long largeImageId)
358 throws com.liferay.portal.kernel.exception.PortalException,
359 com.liferay.portal.kernel.exception.SystemException;
360
361 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
362 public com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
363 long smallImageId)
364 throws com.liferay.portal.kernel.exception.PortalException,
365 com.liferay.portal.kernel.exception.SystemException;
366
367 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
368 public com.liferay.portlet.imagegallery.model.IGImage getImageByUuidAndGroupId(
369 java.lang.String uuid, long groupId)
370 throws com.liferay.portal.kernel.exception.PortalException,
371 com.liferay.portal.kernel.exception.SystemException;
372
373 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
374 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
375 long groupId, long folderId)
376 throws com.liferay.portal.kernel.exception.SystemException;
377
378 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
379 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
380 long groupId, long folderId, int start, int end)
381 throws com.liferay.portal.kernel.exception.SystemException;
382
383 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
384 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
385 long groupId, long folderId, int start, int end,
386 com.liferay.portal.kernel.util.OrderByComparator obc)
387 throws com.liferay.portal.kernel.exception.SystemException;
388
389 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
390 public int getImagesCount(long groupId, long folderId)
391 throws com.liferay.portal.kernel.exception.SystemException;
392
393 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
394 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getNoAssetImages()
395 throws com.liferay.portal.kernel.exception.SystemException;
396
397 public void updateAsset(long userId,
398 com.liferay.portlet.imagegallery.model.IGImage image,
399 long[] assetCategoryIds, java.lang.String[] assetTagNames,
400 java.lang.String contentType)
401 throws com.liferay.portal.kernel.exception.PortalException,
402 com.liferay.portal.kernel.exception.SystemException;
403
404 public com.liferay.portlet.imagegallery.model.IGImage updateImage(
405 long userId, long imageId, long groupId, long folderId,
406 java.lang.String name, java.lang.String description, byte[] bytes,
407 java.lang.String contentType,
408 com.liferay.portal.service.ServiceContext serviceContext)
409 throws com.liferay.portal.kernel.exception.PortalException,
410 com.liferay.portal.kernel.exception.SystemException;
411
412 public com.liferay.portlet.imagegallery.model.IGImage updateImage(
413 long userId, long imageId, long groupId, long folderId,
414 java.lang.String name, java.lang.String description, java.io.File file,
415 java.lang.String contentType,
416 com.liferay.portal.service.ServiceContext serviceContext)
417 throws com.liferay.portal.kernel.exception.PortalException,
418 com.liferay.portal.kernel.exception.SystemException;
419
420 public com.liferay.portlet.imagegallery.model.IGImage updateImage(
421 long userId, long imageId, long groupId, long folderId,
422 java.lang.String name, java.lang.String description,
423 java.io.InputStream is, java.lang.String contentType,
424 com.liferay.portal.service.ServiceContext serviceContext)
425 throws com.liferay.portal.kernel.exception.PortalException,
426 com.liferay.portal.kernel.exception.SystemException;
427
428 public void updateSmallImage(long smallImageId, long largeImageId)
429 throws com.liferay.portal.kernel.exception.PortalException,
430 com.liferay.portal.kernel.exception.SystemException;
431 }