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