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