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