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