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 com.liferay.portlet.imagegallery.model.IGImage getIGImage(
76 long imageId)
77 throws com.liferay.portal.PortalException,
78 com.liferay.portal.SystemException {
79 return getService().getIGImage(imageId);
80 }
81
82 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getIGImages(
83 int start, int end) throws com.liferay.portal.SystemException {
84 return getService().getIGImages(start, end);
85 }
86
87 public static int getIGImagesCount()
88 throws com.liferay.portal.SystemException {
89 return getService().getIGImagesCount();
90 }
91
92 public static com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
93 com.liferay.portlet.imagegallery.model.IGImage igImage)
94 throws com.liferay.portal.SystemException {
95 return getService().updateIGImage(igImage);
96 }
97
98 public static com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
99 com.liferay.portlet.imagegallery.model.IGImage igImage, boolean merge)
100 throws com.liferay.portal.SystemException {
101 return getService().updateIGImage(igImage, merge);
102 }
103
104 public static 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, java.lang.String[] tagsEntries,
108 boolean addCommunityPermissions, boolean addGuestPermissions)
109 throws com.liferay.portal.PortalException,
110 com.liferay.portal.SystemException {
111 return getService()
112 .addImage(userId, folderId, name, description, file,
113 contentType, tagsEntries, addCommunityPermissions,
114 addGuestPermissions);
115 }
116
117 public static com.liferay.portlet.imagegallery.model.IGImage addImage(
118 long userId, long folderId, java.lang.String name,
119 java.lang.String description, java.io.File file,
120 java.lang.String contentType, java.lang.String[] tagsEntries,
121 java.lang.String[] communityPermissions,
122 java.lang.String[] guestPermissions)
123 throws com.liferay.portal.PortalException,
124 com.liferay.portal.SystemException {
125 return getService()
126 .addImage(userId, folderId, name, description, file,
127 contentType, tagsEntries, communityPermissions, guestPermissions);
128 }
129
130 public static com.liferay.portlet.imagegallery.model.IGImage addImage(
131 java.lang.String uuid, long userId, long folderId,
132 java.lang.String name, java.lang.String description, java.io.File file,
133 java.lang.String contentType, java.lang.String[] tagsEntries,
134 boolean addCommunityPermissions, boolean addGuestPermissions)
135 throws com.liferay.portal.PortalException,
136 com.liferay.portal.SystemException {
137 return getService()
138 .addImage(uuid, userId, folderId, name, description, file,
139 contentType, tagsEntries, addCommunityPermissions,
140 addGuestPermissions);
141 }
142
143 public static com.liferay.portlet.imagegallery.model.IGImage addImage(
144 java.lang.String uuid, long userId, long folderId,
145 java.lang.String name, java.lang.String description, java.io.File file,
146 java.lang.String contentType, java.lang.String[] tagsEntries,
147 java.lang.Boolean addCommunityPermissions,
148 java.lang.Boolean addGuestPermissions,
149 java.lang.String[] communityPermissions,
150 java.lang.String[] guestPermissions)
151 throws com.liferay.portal.PortalException,
152 com.liferay.portal.SystemException {
153 return getService()
154 .addImage(uuid, userId, folderId, name, description, file,
155 contentType, tagsEntries, addCommunityPermissions,
156 addGuestPermissions, communityPermissions, guestPermissions);
157 }
158
159 public static void addImageResources(
160 com.liferay.portlet.imagegallery.model.IGImage image,
161 boolean addCommunityPermissions, boolean addGuestPermissions)
162 throws com.liferay.portal.PortalException,
163 com.liferay.portal.SystemException {
164 getService()
165 .addImageResources(image, addCommunityPermissions,
166 addGuestPermissions);
167 }
168
169 public static void addImageResources(
170 com.liferay.portlet.imagegallery.model.IGImage image,
171 java.lang.String[] communityPermissions,
172 java.lang.String[] guestPermissions)
173 throws com.liferay.portal.PortalException,
174 com.liferay.portal.SystemException {
175 getService()
176 .addImageResources(image, communityPermissions, guestPermissions);
177 }
178
179 public static void addImageResources(long imageId,
180 boolean addCommunityPermissions, boolean addGuestPermissions)
181 throws com.liferay.portal.PortalException,
182 com.liferay.portal.SystemException {
183 getService()
184 .addImageResources(imageId, addCommunityPermissions,
185 addGuestPermissions);
186 }
187
188 public static void addImageResources(long imageId,
189 java.lang.String[] communityPermissions,
190 java.lang.String[] guestPermissions)
191 throws com.liferay.portal.PortalException,
192 com.liferay.portal.SystemException {
193 getService()
194 .addImageResources(imageId, communityPermissions, guestPermissions);
195 }
196
197 public static void deleteImage(
198 com.liferay.portlet.imagegallery.model.IGImage image)
199 throws com.liferay.portal.PortalException,
200 com.liferay.portal.SystemException {
201 getService().deleteImage(image);
202 }
203
204 public static void deleteImage(long imageId)
205 throws com.liferay.portal.PortalException,
206 com.liferay.portal.SystemException {
207 getService().deleteImage(imageId);
208 }
209
210 public static void deleteImages(long folderId)
211 throws com.liferay.portal.PortalException,
212 com.liferay.portal.SystemException {
213 getService().deleteImages(folderId);
214 }
215
216 public static int getFoldersImagesCount(java.util.List<Long> folderIds)
217 throws com.liferay.portal.SystemException {
218 return getService().getFoldersImagesCount(folderIds);
219 }
220
221 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
222 long groupId, int start, int end)
223 throws com.liferay.portal.SystemException {
224 return getService().getGroupImages(groupId, start, end);
225 }
226
227 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
228 long groupId, long userId, int start, int end)
229 throws com.liferay.portal.SystemException {
230 return getService().getGroupImages(groupId, userId, start, end);
231 }
232
233 public static int getGroupImagesCount(long groupId)
234 throws com.liferay.portal.SystemException {
235 return getService().getGroupImagesCount(groupId);
236 }
237
238 public static int getGroupImagesCount(long groupId, long userId)
239 throws com.liferay.portal.SystemException {
240 return getService().getGroupImagesCount(groupId, userId);
241 }
242
243 public static com.liferay.portlet.imagegallery.model.IGImage getImage(
244 long imageId)
245 throws com.liferay.portal.PortalException,
246 com.liferay.portal.SystemException {
247 return getService().getImage(imageId);
248 }
249
250 public static com.liferay.portlet.imagegallery.model.IGImage getImageByCustom1ImageId(
251 long custom1ImageId)
252 throws com.liferay.portal.PortalException,
253 com.liferay.portal.SystemException {
254 return getService().getImageByCustom1ImageId(custom1ImageId);
255 }
256
257 public static com.liferay.portlet.imagegallery.model.IGImage getImageByCustom2ImageId(
258 long custom2ImageId)
259 throws com.liferay.portal.PortalException,
260 com.liferay.portal.SystemException {
261 return getService().getImageByCustom2ImageId(custom2ImageId);
262 }
263
264 public static com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
265 long folderId, java.lang.String nameWithExtension)
266 throws com.liferay.portal.PortalException,
267 com.liferay.portal.SystemException {
268 return getService()
269 .getImageByFolderIdAndNameWithExtension(folderId,
270 nameWithExtension);
271 }
272
273 public static com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
274 long largeImageId)
275 throws com.liferay.portal.PortalException,
276 com.liferay.portal.SystemException {
277 return getService().getImageByLargeImageId(largeImageId);
278 }
279
280 public static com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
281 long smallImageId)
282 throws com.liferay.portal.PortalException,
283 com.liferay.portal.SystemException {
284 return getService().getImageBySmallImageId(smallImageId);
285 }
286
287 public static com.liferay.portlet.imagegallery.model.IGImage getImageByUuidAndGroupId(
288 java.lang.String uuid, long groupId)
289 throws com.liferay.portal.PortalException,
290 com.liferay.portal.SystemException {
291 return getService().getImageByUuidAndGroupId(uuid, groupId);
292 }
293
294 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
295 long folderId) throws com.liferay.portal.SystemException {
296 return getService().getImages(folderId);
297 }
298
299 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
300 long folderId, int start, int end)
301 throws com.liferay.portal.SystemException {
302 return getService().getImages(folderId, start, end);
303 }
304
305 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
306 long folderId, int start, int end,
307 com.liferay.portal.kernel.util.OrderByComparator obc)
308 throws com.liferay.portal.SystemException {
309 return getService().getImages(folderId, start, end, obc);
310 }
311
312 public static int getImagesCount(long folderId)
313 throws com.liferay.portal.SystemException {
314 return getService().getImagesCount(folderId);
315 }
316
317 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getNoAssetImages()
318 throws com.liferay.portal.SystemException {
319 return getService().getNoAssetImages();
320 }
321
322 public static void reIndex(
323 com.liferay.portlet.imagegallery.model.IGImage image)
324 throws com.liferay.portal.SystemException {
325 getService().reIndex(image);
326 }
327
328 public static void reIndex(long imageId)
329 throws com.liferay.portal.SystemException {
330 getService().reIndex(imageId);
331 }
332
333 public static com.liferay.portlet.imagegallery.model.IGImage updateImage(
334 long userId, long imageId, long folderId, java.lang.String name,
335 java.lang.String description, java.io.File file,
336 java.lang.String contentType, java.lang.String[] tagsEntries)
337 throws com.liferay.portal.PortalException,
338 com.liferay.portal.SystemException {
339 return getService()
340 .updateImage(userId, imageId, folderId, name, description,
341 file, contentType, tagsEntries);
342 }
343
344 public static void updateSmallImage(long smallImageId, long largeImageId)
345 throws com.liferay.portal.PortalException,
346 com.liferay.portal.SystemException {
347 getService().updateSmallImage(smallImageId, largeImageId);
348 }
349
350 public static void updateTagsAsset(long userId,
351 com.liferay.portlet.imagegallery.model.IGImage image,
352 java.lang.String[] tagsEntries)
353 throws com.liferay.portal.PortalException,
354 com.liferay.portal.SystemException {
355 getService().updateTagsAsset(userId, image, tagsEntries);
356 }
357
358 public static void updateTagsAsset(long userId,
359 com.liferay.portlet.imagegallery.model.IGImage image,
360 java.lang.String[] tagsEntries, java.lang.String contentType)
361 throws com.liferay.portal.PortalException,
362 com.liferay.portal.SystemException {
363 getService().updateTagsAsset(userId, image, tagsEntries, contentType);
364 }
365
366 public static IGImageLocalService getService() {
367 if (_service == null) {
368 _service = (IGImageLocalService)PortalBeanLocatorUtil.locate(IGImageLocalService.class.getName());
369 }
370
371 return _service;
372 }
373
374 public void setService(IGImageLocalService service) {
375 _service = service;
376 }
377
378 private static IGImageLocalService _service;
379 }