1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.imagegallery.service;
24  
25  
26  /**
27   * <a href="IGImageLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class is a wrapper for {@link IGImageLocalService}.
36   * </p>
37   *
38   * @author    Brian Wing Shun Chan
39   * @see       IGImageLocalService
40   * @generated
41   */
42  public class IGImageLocalServiceWrapper implements IGImageLocalService {
43      public IGImageLocalServiceWrapper(IGImageLocalService igImageLocalService) {
44          _igImageLocalService = igImageLocalService;
45      }
46  
47      public com.liferay.portlet.imagegallery.model.IGImage addIGImage(
48          com.liferay.portlet.imagegallery.model.IGImage igImage)
49          throws com.liferay.portal.SystemException {
50          return _igImageLocalService.addIGImage(igImage);
51      }
52  
53      public com.liferay.portlet.imagegallery.model.IGImage createIGImage(
54          long imageId) {
55          return _igImageLocalService.createIGImage(imageId);
56      }
57  
58      public void deleteIGImage(long imageId)
59          throws com.liferay.portal.PortalException,
60              com.liferay.portal.SystemException {
61          _igImageLocalService.deleteIGImage(imageId);
62      }
63  
64      public void deleteIGImage(
65          com.liferay.portlet.imagegallery.model.IGImage igImage)
66          throws com.liferay.portal.SystemException {
67          _igImageLocalService.deleteIGImage(igImage);
68      }
69  
70      public java.util.List<Object> dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
72          throws com.liferay.portal.SystemException {
73          return _igImageLocalService.dynamicQuery(dynamicQuery);
74      }
75  
76      public 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 _igImageLocalService.dynamicQuery(dynamicQuery, start, end);
80      }
81  
82      public com.liferay.portlet.imagegallery.model.IGImage getIGImage(
83          long imageId)
84          throws com.liferay.portal.PortalException,
85              com.liferay.portal.SystemException {
86          return _igImageLocalService.getIGImage(imageId);
87      }
88  
89      public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getIGImages(
90          int start, int end) throws com.liferay.portal.SystemException {
91          return _igImageLocalService.getIGImages(start, end);
92      }
93  
94      public int getIGImagesCount() throws com.liferay.portal.SystemException {
95          return _igImageLocalService.getIGImagesCount();
96      }
97  
98      public com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
99          com.liferay.portlet.imagegallery.model.IGImage igImage)
100         throws com.liferay.portal.SystemException {
101         return _igImageLocalService.updateIGImage(igImage);
102     }
103 
104     public com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
105         com.liferay.portlet.imagegallery.model.IGImage igImage, boolean merge)
106         throws com.liferay.portal.SystemException {
107         return _igImageLocalService.updateIGImage(igImage, merge);
108     }
109 
110     public com.liferay.portlet.imagegallery.model.IGImage addImage(
111         long userId, long folderId, java.lang.String name,
112         java.lang.String description, java.io.File file,
113         java.lang.String contentType,
114         com.liferay.portal.service.ServiceContext serviceContext)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException {
117         return _igImageLocalService.addImage(userId, folderId, name,
118             description, file, contentType, serviceContext);
119     }
120 
121     public com.liferay.portlet.imagegallery.model.IGImage addImage(
122         long userId, long folderId, java.lang.String name,
123         java.lang.String description, java.lang.String fileName, byte[] bytes,
124         java.lang.String contentType,
125         com.liferay.portal.service.ServiceContext serviceContext)
126         throws com.liferay.portal.PortalException,
127             com.liferay.portal.SystemException {
128         return _igImageLocalService.addImage(userId, folderId, name,
129             description, fileName, bytes, contentType, serviceContext);
130     }
131 
132     public com.liferay.portlet.imagegallery.model.IGImage addImage(
133         long userId, long folderId, java.lang.String name,
134         java.lang.String description, java.lang.String fileName,
135         java.io.InputStream is, java.lang.String contentType,
136         com.liferay.portal.service.ServiceContext serviceContext)
137         throws com.liferay.portal.PortalException,
138             com.liferay.portal.SystemException {
139         return _igImageLocalService.addImage(userId, folderId, name,
140             description, fileName, is, contentType, serviceContext);
141     }
142 
143     public 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,
147         com.liferay.portal.service.ServiceContext serviceContext)
148         throws com.liferay.portal.PortalException,
149             com.liferay.portal.SystemException {
150         return _igImageLocalService.addImage(uuid, userId, folderId, name,
151             description, file, contentType, serviceContext);
152     }
153 
154     public com.liferay.portlet.imagegallery.model.IGImage addImage(
155         java.lang.String uuid, long userId, long folderId,
156         java.lang.String name, java.lang.String description,
157         java.lang.String fileName, byte[] bytes, java.lang.String contentType,
158         com.liferay.portal.service.ServiceContext serviceContext)
159         throws com.liferay.portal.PortalException,
160             com.liferay.portal.SystemException {
161         return _igImageLocalService.addImage(uuid, userId, folderId, name,
162             description, fileName, bytes, contentType, serviceContext);
163     }
164 
165     public com.liferay.portlet.imagegallery.model.IGImage addImage(
166         java.lang.String uuid, long userId, long folderId,
167         java.lang.String name, java.lang.String description,
168         java.lang.String fileName, java.io.InputStream is,
169         java.lang.String contentType,
170         com.liferay.portal.service.ServiceContext serviceContext)
171         throws com.liferay.portal.PortalException,
172             com.liferay.portal.SystemException {
173         return _igImageLocalService.addImage(uuid, userId, folderId, name,
174             description, fileName, is, contentType, serviceContext);
175     }
176 
177     public void addImageResources(long imageId,
178         boolean addCommunityPermissions, boolean addGuestPermissions)
179         throws com.liferay.portal.PortalException,
180             com.liferay.portal.SystemException {
181         _igImageLocalService.addImageResources(imageId,
182             addCommunityPermissions, addGuestPermissions);
183     }
184 
185     public void addImageResources(
186         com.liferay.portlet.imagegallery.model.IGImage image,
187         boolean addCommunityPermissions, boolean addGuestPermissions)
188         throws com.liferay.portal.PortalException,
189             com.liferay.portal.SystemException {
190         _igImageLocalService.addImageResources(image, addCommunityPermissions,
191             addGuestPermissions);
192     }
193 
194     public void addImageResources(long imageId,
195         java.lang.String[] communityPermissions,
196         java.lang.String[] guestPermissions)
197         throws com.liferay.portal.PortalException,
198             com.liferay.portal.SystemException {
199         _igImageLocalService.addImageResources(imageId, communityPermissions,
200             guestPermissions);
201     }
202 
203     public void addImageResources(
204         com.liferay.portlet.imagegallery.model.IGImage image,
205         java.lang.String[] communityPermissions,
206         java.lang.String[] guestPermissions)
207         throws com.liferay.portal.PortalException,
208             com.liferay.portal.SystemException {
209         _igImageLocalService.addImageResources(image, communityPermissions,
210             guestPermissions);
211     }
212 
213     public void deleteImage(long imageId)
214         throws com.liferay.portal.PortalException,
215             com.liferay.portal.SystemException {
216         _igImageLocalService.deleteImage(imageId);
217     }
218 
219     public void deleteImage(
220         com.liferay.portlet.imagegallery.model.IGImage image)
221         throws com.liferay.portal.PortalException,
222             com.liferay.portal.SystemException {
223         _igImageLocalService.deleteImage(image);
224     }
225 
226     public void deleteImages(long folderId)
227         throws com.liferay.portal.PortalException,
228             com.liferay.portal.SystemException {
229         _igImageLocalService.deleteImages(folderId);
230     }
231 
232     public int getFoldersImagesCount(java.util.List<Long> folderIds)
233         throws com.liferay.portal.SystemException {
234         return _igImageLocalService.getFoldersImagesCount(folderIds);
235     }
236 
237     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
238         long groupId, int start, int end)
239         throws com.liferay.portal.SystemException {
240         return _igImageLocalService.getGroupImages(groupId, start, end);
241     }
242 
243     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
244         long groupId, long userId, int start, int end)
245         throws com.liferay.portal.SystemException {
246         return _igImageLocalService.getGroupImages(groupId, userId, start, end);
247     }
248 
249     public int getGroupImagesCount(long groupId)
250         throws com.liferay.portal.SystemException {
251         return _igImageLocalService.getGroupImagesCount(groupId);
252     }
253 
254     public int getGroupImagesCount(long groupId, long userId)
255         throws com.liferay.portal.SystemException {
256         return _igImageLocalService.getGroupImagesCount(groupId, userId);
257     }
258 
259     public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
260         throws com.liferay.portal.PortalException,
261             com.liferay.portal.SystemException {
262         return _igImageLocalService.getImage(imageId);
263     }
264 
265     public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom1ImageId(
266         long custom1ImageId)
267         throws com.liferay.portal.PortalException,
268             com.liferay.portal.SystemException {
269         return _igImageLocalService.getImageByCustom1ImageId(custom1ImageId);
270     }
271 
272     public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom2ImageId(
273         long custom2ImageId)
274         throws com.liferay.portal.PortalException,
275             com.liferay.portal.SystemException {
276         return _igImageLocalService.getImageByCustom2ImageId(custom2ImageId);
277     }
278 
279     public com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
280         long folderId, java.lang.String nameWithExtension)
281         throws com.liferay.portal.PortalException,
282             com.liferay.portal.SystemException {
283         return _igImageLocalService.getImageByFolderIdAndNameWithExtension(folderId,
284             nameWithExtension);
285     }
286 
287     public com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
288         long largeImageId)
289         throws com.liferay.portal.PortalException,
290             com.liferay.portal.SystemException {
291         return _igImageLocalService.getImageByLargeImageId(largeImageId);
292     }
293 
294     public com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
295         long smallImageId)
296         throws com.liferay.portal.PortalException,
297             com.liferay.portal.SystemException {
298         return _igImageLocalService.getImageBySmallImageId(smallImageId);
299     }
300 
301     public com.liferay.portlet.imagegallery.model.IGImage getImageByUuidAndGroupId(
302         java.lang.String uuid, long groupId)
303         throws com.liferay.portal.PortalException,
304             com.liferay.portal.SystemException {
305         return _igImageLocalService.getImageByUuidAndGroupId(uuid, groupId);
306     }
307 
308     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
309         long folderId) throws com.liferay.portal.SystemException {
310         return _igImageLocalService.getImages(folderId);
311     }
312 
313     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
314         long folderId, int start, int end)
315         throws com.liferay.portal.SystemException {
316         return _igImageLocalService.getImages(folderId, start, end);
317     }
318 
319     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
320         long folderId, int start, int end,
321         com.liferay.portal.kernel.util.OrderByComparator obc)
322         throws com.liferay.portal.SystemException {
323         return _igImageLocalService.getImages(folderId, start, end, obc);
324     }
325 
326     public int getImagesCount(long folderId)
327         throws com.liferay.portal.SystemException {
328         return _igImageLocalService.getImagesCount(folderId);
329     }
330 
331     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getNoAssetImages()
332         throws com.liferay.portal.SystemException {
333         return _igImageLocalService.getNoAssetImages();
334     }
335 
336     public void reIndex(long imageId) throws com.liferay.portal.SystemException {
337         _igImageLocalService.reIndex(imageId);
338     }
339 
340     public void reIndex(com.liferay.portlet.imagegallery.model.IGImage image)
341         throws com.liferay.portal.SystemException {
342         _igImageLocalService.reIndex(image);
343     }
344 
345     public com.liferay.portlet.imagegallery.model.IGImage updateImage(
346         long userId, long imageId, long folderId, java.lang.String name,
347         java.lang.String description, byte[] bytes,
348         java.lang.String contentType,
349         com.liferay.portal.service.ServiceContext serviceContext)
350         throws com.liferay.portal.PortalException,
351             com.liferay.portal.SystemException {
352         return _igImageLocalService.updateImage(userId, imageId, folderId,
353             name, description, bytes, contentType, serviceContext);
354     }
355 
356     public com.liferay.portlet.imagegallery.model.IGImage updateImage(
357         long userId, long imageId, long folderId, java.lang.String name,
358         java.lang.String description, java.io.File file,
359         java.lang.String contentType,
360         com.liferay.portal.service.ServiceContext serviceContext)
361         throws com.liferay.portal.PortalException,
362             com.liferay.portal.SystemException {
363         return _igImageLocalService.updateImage(userId, imageId, folderId,
364             name, description, file, contentType, serviceContext);
365     }
366 
367     public com.liferay.portlet.imagegallery.model.IGImage updateImage(
368         long userId, long imageId, long folderId, java.lang.String name,
369         java.lang.String description, java.io.InputStream is,
370         java.lang.String contentType,
371         com.liferay.portal.service.ServiceContext serviceContext)
372         throws com.liferay.portal.PortalException,
373             com.liferay.portal.SystemException {
374         return _igImageLocalService.updateImage(userId, imageId, folderId,
375             name, description, is, contentType, serviceContext);
376     }
377 
378     public void updateTagsAsset(long userId,
379         com.liferay.portlet.imagegallery.model.IGImage image,
380         java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
381         throws com.liferay.portal.PortalException,
382             com.liferay.portal.SystemException {
383         _igImageLocalService.updateTagsAsset(userId, image, tagsCategories,
384             tagsEntries);
385     }
386 
387     public IGImageLocalService getWrappedIGImageLocalService() {
388         return _igImageLocalService;
389     }
390 
391     private IGImageLocalService _igImageLocalService;
392 }