1
19
20 package com.liferay.portlet.imagegallery.service;
21
22 import com.liferay.portal.PortalException;
23 import com.liferay.portal.SystemException;
24 import com.liferay.portal.kernel.annotation.Isolation;
25 import com.liferay.portal.kernel.annotation.Propagation;
26 import com.liferay.portal.kernel.annotation.Transactional;
27
28
52 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
53 PortalException.class, SystemException.class})
54 public interface IGImageService {
55 public com.liferay.portlet.imagegallery.model.IGImage addImage(
56 long folderId, java.lang.String name, java.lang.String description,
57 java.io.File file, java.lang.String contentType,
58 com.liferay.portal.service.ServiceContext serviceContext)
59 throws com.liferay.portal.PortalException,
60 com.liferay.portal.SystemException;
61
62 public void deleteImage(long imageId)
63 throws com.liferay.portal.PortalException,
64 com.liferay.portal.SystemException;
65
66 public void deleteImageByFolderIdAndNameWithExtension(long folderId,
67 java.lang.String nameWithExtension)
68 throws com.liferay.portal.PortalException,
69 com.liferay.portal.SystemException;
70
71 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
72 public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
73 throws com.liferay.portal.PortalException,
74 com.liferay.portal.SystemException;
75
76 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
77 public com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
78 long folderId, java.lang.String nameWithExtension)
79 throws com.liferay.portal.PortalException,
80 com.liferay.portal.SystemException;
81
82 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
83 public com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
84 long largeImageId)
85 throws com.liferay.portal.PortalException,
86 com.liferay.portal.SystemException;
87
88 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89 public com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
90 long smallImageId)
91 throws com.liferay.portal.PortalException,
92 com.liferay.portal.SystemException;
93
94 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
96 long folderId)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException;
99
100 public com.liferay.portlet.imagegallery.model.IGImage updateImage(
101 long imageId, long folderId, java.lang.String name,
102 java.lang.String description, java.io.File file,
103 java.lang.String contentType,
104 com.liferay.portal.service.ServiceContext serviceContext)
105 throws com.liferay.portal.PortalException,
106 com.liferay.portal.SystemException;
107 }