1
14
15 package com.liferay.portlet.imagegallery.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface IGImageLocalService {
50 public com.liferay.portlet.imagegallery.model.IGImage addIGImage(
51 com.liferay.portlet.imagegallery.model.IGImage igImage)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.imagegallery.model.IGImage createIGImage(
55 long imageId);
56
57 public void deleteIGImage(long imageId)
58 throws com.liferay.portal.kernel.exception.PortalException,
59 com.liferay.portal.kernel.exception.SystemException;
60
61 public void deleteIGImage(
62 com.liferay.portlet.imagegallery.model.IGImage igImage)
63 throws com.liferay.portal.kernel.exception.SystemException;
64
65 public java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.kernel.exception.SystemException;
68
69 public java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end,
76 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77 throws com.liferay.portal.kernel.exception.SystemException;
78
79 public int dynamicQueryCount(
80 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81 throws com.liferay.portal.kernel.exception.SystemException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public com.liferay.portlet.imagegallery.model.IGImage getIGImage(
85 long imageId)
86 throws com.liferay.portal.kernel.exception.PortalException,
87 com.liferay.portal.kernel.exception.SystemException;
88
89 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getIGImages(
91 int start, int end)
92 throws com.liferay.portal.kernel.exception.SystemException;
93
94 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95 public int getIGImagesCount()
96 throws com.liferay.portal.kernel.exception.SystemException;
97
98 public com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
99 com.liferay.portlet.imagegallery.model.IGImage igImage)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 public com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
103 com.liferay.portlet.imagegallery.model.IGImage igImage, boolean merge)
104 throws com.liferay.portal.kernel.exception.SystemException;
105
106 public com.liferay.portlet.imagegallery.model.IGImage addImage(
107 java.lang.String uuid, long userId, long groupId, long folderId,
108 java.lang.String name, java.lang.String description, java.io.File file,
109 java.lang.String contentType,
110 com.liferay.portal.service.ServiceContext serviceContext)
111 throws com.liferay.portal.kernel.exception.PortalException,
112 com.liferay.portal.kernel.exception.SystemException;
113
114 public com.liferay.portlet.imagegallery.model.IGImage addImage(
115 java.lang.String uuid, long userId, long groupId, long folderId,
116 java.lang.String name, java.lang.String description,
117 java.lang.String fileName, byte[] bytes, 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
122 public com.liferay.portlet.imagegallery.model.IGImage addImage(
123 java.lang.String uuid, long userId, long groupId, long folderId,
124 java.lang.String name, java.lang.String description,
125 java.lang.String fileName, java.io.InputStream is,
126 java.lang.String contentType,
127 com.liferay.portal.service.ServiceContext serviceContext)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException;
130
131 public void addImageResources(
132 com.liferay.portlet.imagegallery.model.IGImage image,
133 boolean addCommunityPermissions, boolean addGuestPermissions)
134 throws com.liferay.portal.kernel.exception.PortalException,
135 com.liferay.portal.kernel.exception.SystemException;
136
137 public void addImageResources(
138 com.liferay.portlet.imagegallery.model.IGImage image,
139 java.lang.String[] communityPermissions,
140 java.lang.String[] guestPermissions)
141 throws com.liferay.portal.kernel.exception.PortalException,
142 com.liferay.portal.kernel.exception.SystemException;
143
144 public void addImageResources(long imageId,
145 boolean addCommunityPermissions, boolean addGuestPermissions)
146 throws com.liferay.portal.kernel.exception.PortalException,
147 com.liferay.portal.kernel.exception.SystemException;
148
149 public void addImageResources(long imageId,
150 java.lang.String[] communityPermissions,
151 java.lang.String[] guestPermissions)
152 throws com.liferay.portal.kernel.exception.PortalException,
153 com.liferay.portal.kernel.exception.SystemException;
154
155 public void deleteImage(
156 com.liferay.portlet.imagegallery.model.IGImage image)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException;
159
160 public void deleteImage(long imageId)
161 throws com.liferay.portal.kernel.exception.PortalException,
162 com.liferay.portal.kernel.exception.SystemException;
163
164 public void deleteImages(long groupId, long folderId)
165 throws com.liferay.portal.kernel.exception.PortalException,
166 com.liferay.portal.kernel.exception.SystemException;
167
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public int getFoldersImagesCount(long groupId,
170 java.util.List<Long> folderIds)
171 throws com.liferay.portal.kernel.exception.SystemException;
172
173 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
175 long groupId, int start, int end)
176 throws com.liferay.portal.kernel.exception.SystemException;
177
178 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
180 long groupId, long userId, int start, int end)
181 throws com.liferay.portal.kernel.exception.SystemException;
182
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public int getGroupImagesCount(long groupId)
185 throws com.liferay.portal.kernel.exception.SystemException;
186
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public int getGroupImagesCount(long groupId, long userId)
189 throws com.liferay.portal.kernel.exception.SystemException;
190
191 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192 public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
193 throws com.liferay.portal.kernel.exception.PortalException,
194 com.liferay.portal.kernel.exception.SystemException;
195
196 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197 public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom1ImageId(
198 long custom1ImageId)
199 throws com.liferay.portal.kernel.exception.PortalException,
200 com.liferay.portal.kernel.exception.SystemException;
201
202 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203 public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom2ImageId(
204 long custom2ImageId)
205 throws com.liferay.portal.kernel.exception.PortalException,
206 com.liferay.portal.kernel.exception.SystemException;
207
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
210 long groupId, long folderId, java.lang.String nameWithExtension)
211 throws com.liferay.portal.kernel.exception.PortalException,
212 com.liferay.portal.kernel.exception.SystemException;
213
214 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215 public com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
216 long largeImageId)
217 throws com.liferay.portal.kernel.exception.PortalException,
218 com.liferay.portal.kernel.exception.SystemException;
219
220 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221 public com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
222 long smallImageId)
223 throws com.liferay.portal.kernel.exception.PortalException,
224 com.liferay.portal.kernel.exception.SystemException;
225
226 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
227 public com.liferay.portlet.imagegallery.model.IGImage getImageByUuidAndGroupId(
228 java.lang.String uuid, long groupId)
229 throws com.liferay.portal.kernel.exception.PortalException,
230 com.liferay.portal.kernel.exception.SystemException;
231
232 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
234 long groupId, long folderId)
235 throws com.liferay.portal.kernel.exception.SystemException;
236
237 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
239 long groupId, long folderId, int start, int end)
240 throws com.liferay.portal.kernel.exception.SystemException;
241
242 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
243 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
244 long groupId, long folderId, int start, int end,
245 com.liferay.portal.kernel.util.OrderByComparator obc)
246 throws com.liferay.portal.kernel.exception.SystemException;
247
248 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
249 public int getImagesCount(long groupId, long folderId)
250 throws com.liferay.portal.kernel.exception.SystemException;
251
252 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getNoAssetImages()
254 throws com.liferay.portal.kernel.exception.SystemException;
255
256 public void updateAsset(long userId,
257 com.liferay.portlet.imagegallery.model.IGImage image,
258 long[] assetCategoryIds, java.lang.String[] assetTagNames,
259 java.lang.String contentType)
260 throws com.liferay.portal.kernel.exception.PortalException,
261 com.liferay.portal.kernel.exception.SystemException;
262
263 public com.liferay.portlet.imagegallery.model.IGImage updateImage(
264 long userId, long imageId, long groupId, long folderId,
265 java.lang.String name, java.lang.String description, byte[] bytes,
266 java.lang.String contentType,
267 com.liferay.portal.service.ServiceContext serviceContext)
268 throws com.liferay.portal.kernel.exception.PortalException,
269 com.liferay.portal.kernel.exception.SystemException;
270
271 public com.liferay.portlet.imagegallery.model.IGImage updateImage(
272 long userId, long imageId, long groupId, long folderId,
273 java.lang.String name, java.lang.String description, java.io.File file,
274 java.lang.String contentType,
275 com.liferay.portal.service.ServiceContext serviceContext)
276 throws com.liferay.portal.kernel.exception.PortalException,
277 com.liferay.portal.kernel.exception.SystemException;
278
279 public com.liferay.portlet.imagegallery.model.IGImage updateImage(
280 long userId, long imageId, long groupId, long folderId,
281 java.lang.String name, java.lang.String description,
282 java.io.InputStream is, java.lang.String contentType,
283 com.liferay.portal.service.ServiceContext serviceContext)
284 throws com.liferay.portal.kernel.exception.PortalException,
285 com.liferay.portal.kernel.exception.SystemException;
286
287 public void updateSmallImage(long smallImageId, long largeImageId)
288 throws com.liferay.portal.kernel.exception.PortalException,
289 com.liferay.portal.kernel.exception.SystemException;
290 }