1
14
15 package com.liferay.portlet.imagegallery.service;
16
17 import com.liferay.portal.PortalException;
18 import com.liferay.portal.SystemException;
19 import com.liferay.portal.kernel.annotation.Isolation;
20 import com.liferay.portal.kernel.annotation.Propagation;
21 import com.liferay.portal.kernel.annotation.Transactional;
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.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.PortalException,
59 com.liferay.portal.SystemException;
60
61 public void deleteIGImage(
62 com.liferay.portlet.imagegallery.model.IGImage igImage)
63 throws com.liferay.portal.SystemException;
64
65 public java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.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.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.SystemException;
78
79 public int dynamicQueryCount(
80 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81 throws com.liferay.portal.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.PortalException,
87 com.liferay.portal.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) throws com.liferay.portal.SystemException;
92
93 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
94 public int getIGImagesCount() throws com.liferay.portal.SystemException;
95
96 public com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
97 com.liferay.portlet.imagegallery.model.IGImage igImage)
98 throws com.liferay.portal.SystemException;
99
100 public com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
101 com.liferay.portlet.imagegallery.model.IGImage igImage, boolean merge)
102 throws com.liferay.portal.SystemException;
103
104 public com.liferay.portlet.imagegallery.model.IGImage addImage(
105 long userId, long folderId, java.lang.String name,
106 java.lang.String description, java.io.File file,
107 java.lang.String contentType,
108 com.liferay.portal.service.ServiceContext serviceContext)
109 throws com.liferay.portal.PortalException,
110 com.liferay.portal.SystemException;
111
112 public com.liferay.portlet.imagegallery.model.IGImage addImage(
113 long userId, long folderId, java.lang.String name,
114 java.lang.String description, java.lang.String fileName, byte[] bytes,
115 java.lang.String contentType,
116 com.liferay.portal.service.ServiceContext serviceContext)
117 throws com.liferay.portal.PortalException,
118 com.liferay.portal.SystemException;
119
120 public com.liferay.portlet.imagegallery.model.IGImage addImage(
121 long userId, long folderId, java.lang.String name,
122 java.lang.String description, java.lang.String fileName,
123 java.io.InputStream is, java.lang.String contentType,
124 com.liferay.portal.service.ServiceContext serviceContext)
125 throws com.liferay.portal.PortalException,
126 com.liferay.portal.SystemException;
127
128 public com.liferay.portlet.imagegallery.model.IGImage addImage(
129 java.lang.String uuid, long userId, long folderId,
130 java.lang.String name, java.lang.String description, java.io.File file,
131 java.lang.String contentType,
132 com.liferay.portal.service.ServiceContext serviceContext)
133 throws com.liferay.portal.PortalException,
134 com.liferay.portal.SystemException;
135
136 public com.liferay.portlet.imagegallery.model.IGImage addImage(
137 java.lang.String uuid, long userId, long folderId,
138 java.lang.String name, java.lang.String description,
139 java.lang.String fileName, byte[] bytes, java.lang.String contentType,
140 com.liferay.portal.service.ServiceContext serviceContext)
141 throws com.liferay.portal.PortalException,
142 com.liferay.portal.SystemException;
143
144 public com.liferay.portlet.imagegallery.model.IGImage addImage(
145 java.lang.String uuid, long userId, long folderId,
146 java.lang.String name, java.lang.String description,
147 java.lang.String fileName, java.io.InputStream is,
148 java.lang.String contentType,
149 com.liferay.portal.service.ServiceContext serviceContext)
150 throws com.liferay.portal.PortalException,
151 com.liferay.portal.SystemException;
152
153 public void addImageResources(
154 com.liferay.portlet.imagegallery.model.IGImage image,
155 boolean addCommunityPermissions, boolean addGuestPermissions)
156 throws com.liferay.portal.PortalException,
157 com.liferay.portal.SystemException;
158
159 public void addImageResources(
160 com.liferay.portlet.imagegallery.model.IGImage image,
161 java.lang.String[] communityPermissions,
162 java.lang.String[] guestPermissions)
163 throws com.liferay.portal.PortalException,
164 com.liferay.portal.SystemException;
165
166 public void addImageResources(long imageId,
167 boolean addCommunityPermissions, boolean addGuestPermissions)
168 throws com.liferay.portal.PortalException,
169 com.liferay.portal.SystemException;
170
171 public void addImageResources(long imageId,
172 java.lang.String[] communityPermissions,
173 java.lang.String[] guestPermissions)
174 throws com.liferay.portal.PortalException,
175 com.liferay.portal.SystemException;
176
177 public void deleteImage(
178 com.liferay.portlet.imagegallery.model.IGImage image)
179 throws com.liferay.portal.PortalException,
180 com.liferay.portal.SystemException;
181
182 public void deleteImage(long imageId)
183 throws com.liferay.portal.PortalException,
184 com.liferay.portal.SystemException;
185
186 public void deleteImages(long folderId)
187 throws com.liferay.portal.PortalException,
188 com.liferay.portal.SystemException;
189
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public int getFoldersImagesCount(java.util.List<Long> folderIds)
192 throws com.liferay.portal.SystemException;
193
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
196 long groupId, int start, int end)
197 throws com.liferay.portal.SystemException;
198
199 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
201 long groupId, long userId, int start, int end)
202 throws com.liferay.portal.SystemException;
203
204 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205 public int getGroupImagesCount(long groupId)
206 throws com.liferay.portal.SystemException;
207
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public int getGroupImagesCount(long groupId, long userId)
210 throws com.liferay.portal.SystemException;
211
212 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213 public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
214 throws com.liferay.portal.PortalException,
215 com.liferay.portal.SystemException;
216
217 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218 public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom1ImageId(
219 long custom1ImageId)
220 throws com.liferay.portal.PortalException,
221 com.liferay.portal.SystemException;
222
223 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224 public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom2ImageId(
225 long custom2ImageId)
226 throws com.liferay.portal.PortalException,
227 com.liferay.portal.SystemException;
228
229 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
230 public com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
231 long folderId, java.lang.String nameWithExtension)
232 throws com.liferay.portal.PortalException,
233 com.liferay.portal.SystemException;
234
235 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
236 public com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
237 long largeImageId)
238 throws com.liferay.portal.PortalException,
239 com.liferay.portal.SystemException;
240
241 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
242 public com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
243 long smallImageId)
244 throws com.liferay.portal.PortalException,
245 com.liferay.portal.SystemException;
246
247 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248 public com.liferay.portlet.imagegallery.model.IGImage getImageByUuidAndGroupId(
249 java.lang.String uuid, long groupId)
250 throws com.liferay.portal.PortalException,
251 com.liferay.portal.SystemException;
252
253 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
254 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
255 long folderId) throws com.liferay.portal.SystemException;
256
257 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
258 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
259 long folderId, int start, int end)
260 throws com.liferay.portal.SystemException;
261
262 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
263 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
264 long folderId, int start, int end,
265 com.liferay.portal.kernel.util.OrderByComparator obc)
266 throws com.liferay.portal.SystemException;
267
268 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
269 public int getImagesCount(long folderId)
270 throws com.liferay.portal.SystemException;
271
272 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
273 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getNoAssetImages()
274 throws com.liferay.portal.SystemException;
275
276 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277 public void reIndex(com.liferay.portlet.imagegallery.model.IGImage image)
278 throws com.liferay.portal.SystemException;
279
280 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281 public void reIndex(long imageId) throws com.liferay.portal.SystemException;
282
283 public com.liferay.portlet.imagegallery.model.IGImage updateImage(
284 long userId, long imageId, long folderId, java.lang.String name,
285 java.lang.String description, byte[] bytes,
286 java.lang.String contentType,
287 com.liferay.portal.service.ServiceContext serviceContext)
288 throws com.liferay.portal.PortalException,
289 com.liferay.portal.SystemException;
290
291 public com.liferay.portlet.imagegallery.model.IGImage updateImage(
292 long userId, long imageId, long folderId, java.lang.String name,
293 java.lang.String description, java.io.File file,
294 java.lang.String contentType,
295 com.liferay.portal.service.ServiceContext serviceContext)
296 throws com.liferay.portal.PortalException,
297 com.liferay.portal.SystemException;
298
299 public com.liferay.portlet.imagegallery.model.IGImage updateImage(
300 long userId, long imageId, long folderId, java.lang.String name,
301 java.lang.String description, java.io.InputStream is,
302 java.lang.String contentType,
303 com.liferay.portal.service.ServiceContext serviceContext)
304 throws com.liferay.portal.PortalException,
305 com.liferay.portal.SystemException;
306
307 public void updateSmallImage(long smallImageId, long largeImageId)
308 throws com.liferay.portal.PortalException,
309 com.liferay.portal.SystemException;
310
311 public void updateTagsAsset(long userId,
312 com.liferay.portlet.imagegallery.model.IGImage image,
313 java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
314 throws com.liferay.portal.PortalException,
315 com.liferay.portal.SystemException;
316
317 public void updateTagsAsset(long userId,
318 com.liferay.portlet.imagegallery.model.IGImage image,
319 java.lang.String[] tagsCategories, java.lang.String[] tagsEntries,
320 java.lang.String contentType)
321 throws com.liferay.portal.PortalException,
322 com.liferay.portal.SystemException;
323 }