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