1
14
15 package com.liferay.portlet.imagegallery.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class IGImageLocalServiceUtil {
40 public static com.liferay.portlet.imagegallery.model.IGImage addIGImage(
41 com.liferay.portlet.imagegallery.model.IGImage igImage)
42 throws com.liferay.portal.SystemException {
43 return getService().addIGImage(igImage);
44 }
45
46 public static com.liferay.portlet.imagegallery.model.IGImage createIGImage(
47 long imageId) {
48 return getService().createIGImage(imageId);
49 }
50
51 public static void deleteIGImage(long imageId)
52 throws com.liferay.portal.PortalException,
53 com.liferay.portal.SystemException {
54 getService().deleteIGImage(imageId);
55 }
56
57 public static void deleteIGImage(
58 com.liferay.portlet.imagegallery.model.IGImage igImage)
59 throws com.liferay.portal.SystemException {
60 getService().deleteIGImage(igImage);
61 }
62
63 public static java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.SystemException {
66 return getService().dynamicQuery(dynamicQuery);
67 }
68
69 public static 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 return getService().dynamicQuery(dynamicQuery, start, end);
73 }
74
75 public static java.util.List<Object> dynamicQuery(
76 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77 int end,
78 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79 throws com.liferay.portal.SystemException {
80 return getService()
81 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
82 }
83
84 public static int dynamicQueryCount(
85 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86 throws com.liferay.portal.SystemException {
87 return getService().dynamicQueryCount(dynamicQuery);
88 }
89
90 public static com.liferay.portlet.imagegallery.model.IGImage getIGImage(
91 long imageId)
92 throws com.liferay.portal.PortalException,
93 com.liferay.portal.SystemException {
94 return getService().getIGImage(imageId);
95 }
96
97 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getIGImages(
98 int start, int end) throws com.liferay.portal.SystemException {
99 return getService().getIGImages(start, end);
100 }
101
102 public static int getIGImagesCount()
103 throws com.liferay.portal.SystemException {
104 return getService().getIGImagesCount();
105 }
106
107 public static com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
108 com.liferay.portlet.imagegallery.model.IGImage igImage)
109 throws com.liferay.portal.SystemException {
110 return getService().updateIGImage(igImage);
111 }
112
113 public static com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
114 com.liferay.portlet.imagegallery.model.IGImage igImage, boolean merge)
115 throws com.liferay.portal.SystemException {
116 return getService().updateIGImage(igImage, merge);
117 }
118
119 public static com.liferay.portlet.imagegallery.model.IGImage addImage(
120 long userId, long folderId, java.lang.String name,
121 java.lang.String description, java.io.File file,
122 java.lang.String contentType,
123 com.liferay.portal.service.ServiceContext serviceContext)
124 throws com.liferay.portal.PortalException,
125 com.liferay.portal.SystemException {
126 return getService()
127 .addImage(userId, folderId, name, description, file,
128 contentType, serviceContext);
129 }
130
131 public static com.liferay.portlet.imagegallery.model.IGImage addImage(
132 long userId, long folderId, java.lang.String name,
133 java.lang.String description, java.lang.String fileName, byte[] bytes,
134 java.lang.String contentType,
135 com.liferay.portal.service.ServiceContext serviceContext)
136 throws com.liferay.portal.PortalException,
137 com.liferay.portal.SystemException {
138 return getService()
139 .addImage(userId, folderId, name, description, fileName,
140 bytes, contentType, serviceContext);
141 }
142
143 public static com.liferay.portlet.imagegallery.model.IGImage addImage(
144 long userId, long folderId, java.lang.String name,
145 java.lang.String description, java.lang.String fileName,
146 java.io.InputStream is, java.lang.String contentType,
147 com.liferay.portal.service.ServiceContext serviceContext)
148 throws com.liferay.portal.PortalException,
149 com.liferay.portal.SystemException {
150 return getService()
151 .addImage(userId, folderId, name, description, fileName, is,
152 contentType, serviceContext);
153 }
154
155 public static com.liferay.portlet.imagegallery.model.IGImage addImage(
156 java.lang.String uuid, long userId, long folderId,
157 java.lang.String name, java.lang.String description, java.io.File file,
158 java.lang.String contentType,
159 com.liferay.portal.service.ServiceContext serviceContext)
160 throws com.liferay.portal.PortalException,
161 com.liferay.portal.SystemException {
162 return getService()
163 .addImage(uuid, userId, folderId, name, description, file,
164 contentType, serviceContext);
165 }
166
167 public static com.liferay.portlet.imagegallery.model.IGImage addImage(
168 java.lang.String uuid, long userId, long folderId,
169 java.lang.String name, java.lang.String description,
170 java.lang.String fileName, byte[] bytes, java.lang.String contentType,
171 com.liferay.portal.service.ServiceContext serviceContext)
172 throws com.liferay.portal.PortalException,
173 com.liferay.portal.SystemException {
174 return getService()
175 .addImage(uuid, userId, folderId, name, description,
176 fileName, bytes, contentType, serviceContext);
177 }
178
179 public static com.liferay.portlet.imagegallery.model.IGImage addImage(
180 java.lang.String uuid, long userId, long folderId,
181 java.lang.String name, java.lang.String description,
182 java.lang.String fileName, java.io.InputStream is,
183 java.lang.String contentType,
184 com.liferay.portal.service.ServiceContext serviceContext)
185 throws com.liferay.portal.PortalException,
186 com.liferay.portal.SystemException {
187 return getService()
188 .addImage(uuid, userId, folderId, name, description,
189 fileName, is, contentType, serviceContext);
190 }
191
192 public static void addImageResources(
193 com.liferay.portlet.imagegallery.model.IGImage image,
194 boolean addCommunityPermissions, boolean addGuestPermissions)
195 throws com.liferay.portal.PortalException,
196 com.liferay.portal.SystemException {
197 getService()
198 .addImageResources(image, addCommunityPermissions,
199 addGuestPermissions);
200 }
201
202 public static void addImageResources(
203 com.liferay.portlet.imagegallery.model.IGImage image,
204 java.lang.String[] communityPermissions,
205 java.lang.String[] guestPermissions)
206 throws com.liferay.portal.PortalException,
207 com.liferay.portal.SystemException {
208 getService()
209 .addImageResources(image, communityPermissions, guestPermissions);
210 }
211
212 public static void addImageResources(long imageId,
213 boolean addCommunityPermissions, boolean addGuestPermissions)
214 throws com.liferay.portal.PortalException,
215 com.liferay.portal.SystemException {
216 getService()
217 .addImageResources(imageId, addCommunityPermissions,
218 addGuestPermissions);
219 }
220
221 public static void addImageResources(long imageId,
222 java.lang.String[] communityPermissions,
223 java.lang.String[] guestPermissions)
224 throws com.liferay.portal.PortalException,
225 com.liferay.portal.SystemException {
226 getService()
227 .addImageResources(imageId, communityPermissions, guestPermissions);
228 }
229
230 public static void deleteImage(
231 com.liferay.portlet.imagegallery.model.IGImage image)
232 throws com.liferay.portal.PortalException,
233 com.liferay.portal.SystemException {
234 getService().deleteImage(image);
235 }
236
237 public static void deleteImage(long imageId)
238 throws com.liferay.portal.PortalException,
239 com.liferay.portal.SystemException {
240 getService().deleteImage(imageId);
241 }
242
243 public static void deleteImages(long folderId)
244 throws com.liferay.portal.PortalException,
245 com.liferay.portal.SystemException {
246 getService().deleteImages(folderId);
247 }
248
249 public static int getFoldersImagesCount(java.util.List<Long> folderIds)
250 throws com.liferay.portal.SystemException {
251 return getService().getFoldersImagesCount(folderIds);
252 }
253
254 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
255 long groupId, int start, int end)
256 throws com.liferay.portal.SystemException {
257 return getService().getGroupImages(groupId, start, end);
258 }
259
260 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
261 long groupId, long userId, int start, int end)
262 throws com.liferay.portal.SystemException {
263 return getService().getGroupImages(groupId, userId, start, end);
264 }
265
266 public static int getGroupImagesCount(long groupId)
267 throws com.liferay.portal.SystemException {
268 return getService().getGroupImagesCount(groupId);
269 }
270
271 public static int getGroupImagesCount(long groupId, long userId)
272 throws com.liferay.portal.SystemException {
273 return getService().getGroupImagesCount(groupId, userId);
274 }
275
276 public static com.liferay.portlet.imagegallery.model.IGImage getImage(
277 long imageId)
278 throws com.liferay.portal.PortalException,
279 com.liferay.portal.SystemException {
280 return getService().getImage(imageId);
281 }
282
283 public static com.liferay.portlet.imagegallery.model.IGImage getImageByCustom1ImageId(
284 long custom1ImageId)
285 throws com.liferay.portal.PortalException,
286 com.liferay.portal.SystemException {
287 return getService().getImageByCustom1ImageId(custom1ImageId);
288 }
289
290 public static com.liferay.portlet.imagegallery.model.IGImage getImageByCustom2ImageId(
291 long custom2ImageId)
292 throws com.liferay.portal.PortalException,
293 com.liferay.portal.SystemException {
294 return getService().getImageByCustom2ImageId(custom2ImageId);
295 }
296
297 public static com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
298 long folderId, java.lang.String nameWithExtension)
299 throws com.liferay.portal.PortalException,
300 com.liferay.portal.SystemException {
301 return getService()
302 .getImageByFolderIdAndNameWithExtension(folderId,
303 nameWithExtension);
304 }
305
306 public static com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
307 long largeImageId)
308 throws com.liferay.portal.PortalException,
309 com.liferay.portal.SystemException {
310 return getService().getImageByLargeImageId(largeImageId);
311 }
312
313 public static com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
314 long smallImageId)
315 throws com.liferay.portal.PortalException,
316 com.liferay.portal.SystemException {
317 return getService().getImageBySmallImageId(smallImageId);
318 }
319
320 public static com.liferay.portlet.imagegallery.model.IGImage getImageByUuidAndGroupId(
321 java.lang.String uuid, long groupId)
322 throws com.liferay.portal.PortalException,
323 com.liferay.portal.SystemException {
324 return getService().getImageByUuidAndGroupId(uuid, groupId);
325 }
326
327 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
328 long folderId) throws com.liferay.portal.SystemException {
329 return getService().getImages(folderId);
330 }
331
332 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
333 long folderId, int start, int end)
334 throws com.liferay.portal.SystemException {
335 return getService().getImages(folderId, start, end);
336 }
337
338 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
339 long folderId, int start, int end,
340 com.liferay.portal.kernel.util.OrderByComparator obc)
341 throws com.liferay.portal.SystemException {
342 return getService().getImages(folderId, start, end, obc);
343 }
344
345 public static int getImagesCount(long folderId)
346 throws com.liferay.portal.SystemException {
347 return getService().getImagesCount(folderId);
348 }
349
350 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getNoAssetImages()
351 throws com.liferay.portal.SystemException {
352 return getService().getNoAssetImages();
353 }
354
355 public static void reIndex(
356 com.liferay.portlet.imagegallery.model.IGImage image)
357 throws com.liferay.portal.SystemException {
358 getService().reIndex(image);
359 }
360
361 public static void reIndex(long imageId)
362 throws com.liferay.portal.SystemException {
363 getService().reIndex(imageId);
364 }
365
366 public static com.liferay.portlet.imagegallery.model.IGImage updateImage(
367 long userId, long imageId, long folderId, java.lang.String name,
368 java.lang.String description, byte[] bytes,
369 java.lang.String contentType,
370 com.liferay.portal.service.ServiceContext serviceContext)
371 throws com.liferay.portal.PortalException,
372 com.liferay.portal.SystemException {
373 return getService()
374 .updateImage(userId, imageId, folderId, name, description,
375 bytes, contentType, serviceContext);
376 }
377
378 public static com.liferay.portlet.imagegallery.model.IGImage updateImage(
379 long userId, long imageId, long folderId, java.lang.String name,
380 java.lang.String description, java.io.File file,
381 java.lang.String contentType,
382 com.liferay.portal.service.ServiceContext serviceContext)
383 throws com.liferay.portal.PortalException,
384 com.liferay.portal.SystemException {
385 return getService()
386 .updateImage(userId, imageId, folderId, name, description,
387 file, contentType, serviceContext);
388 }
389
390 public static com.liferay.portlet.imagegallery.model.IGImage updateImage(
391 long userId, long imageId, long folderId, java.lang.String name,
392 java.lang.String description, java.io.InputStream is,
393 java.lang.String contentType,
394 com.liferay.portal.service.ServiceContext serviceContext)
395 throws com.liferay.portal.PortalException,
396 com.liferay.portal.SystemException {
397 return getService()
398 .updateImage(userId, imageId, folderId, name, description,
399 is, contentType, serviceContext);
400 }
401
402 public static void updateSmallImage(long smallImageId, long largeImageId)
403 throws com.liferay.portal.PortalException,
404 com.liferay.portal.SystemException {
405 getService().updateSmallImage(smallImageId, largeImageId);
406 }
407
408 public static void updateTagsAsset(long userId,
409 com.liferay.portlet.imagegallery.model.IGImage image,
410 java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
411 throws com.liferay.portal.PortalException,
412 com.liferay.portal.SystemException {
413 getService().updateTagsAsset(userId, image, tagsCategories, tagsEntries);
414 }
415
416 public static void updateTagsAsset(long userId,
417 com.liferay.portlet.imagegallery.model.IGImage image,
418 java.lang.String[] tagsCategories, java.lang.String[] tagsEntries,
419 java.lang.String contentType)
420 throws com.liferay.portal.PortalException,
421 com.liferay.portal.SystemException {
422 getService()
423 .updateTagsAsset(userId, image, tagsCategories, tagsEntries,
424 contentType);
425 }
426
427 public static IGImageLocalService getService() {
428 if (_service == null) {
429 _service = (IGImageLocalService)PortalBeanLocatorUtil.locate(IGImageLocalService.class.getName());
430 }
431
432 return _service;
433 }
434
435 public void setService(IGImageLocalService service) {
436 _service = service;
437 }
438
439 private static IGImageLocalService _service;
440 }