001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.imagegallery.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link IGImageLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       IGImageLocalService
024     * @generated
025     */
026    public class IGImageLocalServiceWrapper implements IGImageLocalService {
027            public IGImageLocalServiceWrapper(IGImageLocalService igImageLocalService) {
028                    _igImageLocalService = igImageLocalService;
029            }
030    
031            /**
032            * Adds the i g image to the database. Also notifies the appropriate model listeners.
033            *
034            * @param igImage the i g image to add
035            * @return the i g image that was added
036            * @throws SystemException if a system exception occurred
037            */
038            public com.liferay.portlet.imagegallery.model.IGImage addIGImage(
039                    com.liferay.portlet.imagegallery.model.IGImage igImage)
040                    throws com.liferay.portal.kernel.exception.SystemException {
041                    return _igImageLocalService.addIGImage(igImage);
042            }
043    
044            /**
045            * Creates a new i g image with the primary key. Does not add the i g image to the database.
046            *
047            * @param imageId the primary key for the new i g image
048            * @return the new i g image
049            */
050            public com.liferay.portlet.imagegallery.model.IGImage createIGImage(
051                    long imageId) {
052                    return _igImageLocalService.createIGImage(imageId);
053            }
054    
055            /**
056            * Deletes the i g image with the primary key from the database. Also notifies the appropriate model listeners.
057            *
058            * @param imageId the primary key of the i g image to delete
059            * @throws PortalException if a i g image with the primary key could not be found
060            * @throws SystemException if a system exception occurred
061            */
062            public void deleteIGImage(long imageId)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    _igImageLocalService.deleteIGImage(imageId);
066            }
067    
068            /**
069            * Deletes the i g image from the database. Also notifies the appropriate model listeners.
070            *
071            * @param igImage the i g image to delete
072            * @throws SystemException if a system exception occurred
073            */
074            public void deleteIGImage(
075                    com.liferay.portlet.imagegallery.model.IGImage igImage)
076                    throws com.liferay.portal.kernel.exception.SystemException {
077                    _igImageLocalService.deleteIGImage(igImage);
078            }
079    
080            /**
081            * Performs a dynamic query on the database and returns the matching rows.
082            *
083            * @param dynamicQuery the dynamic query to search with
084            * @return the matching rows
085            * @throws SystemException if a system exception occurred
086            */
087            @SuppressWarnings("rawtypes")
088            public java.util.List dynamicQuery(
089                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
090                    throws com.liferay.portal.kernel.exception.SystemException {
091                    return _igImageLocalService.dynamicQuery(dynamicQuery);
092            }
093    
094            /**
095            * Performs a dynamic query on the database and returns a range of the matching rows.
096            *
097            * <p>
098            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
099            * </p>
100            *
101            * @param dynamicQuery the dynamic query to search with
102            * @param start the lower bound of the range of model instances to return
103            * @param end the upper bound of the range of model instances to return (not inclusive)
104            * @return the range of matching rows
105            * @throws SystemException if a system exception occurred
106            */
107            @SuppressWarnings("rawtypes")
108            public java.util.List dynamicQuery(
109                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
110                    int end) throws com.liferay.portal.kernel.exception.SystemException {
111                    return _igImageLocalService.dynamicQuery(dynamicQuery, start, end);
112            }
113    
114            /**
115            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
116            *
117            * <p>
118            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
119            * </p>
120            *
121            * @param dynamicQuery the dynamic query to search with
122            * @param start the lower bound of the range of model instances to return
123            * @param end the upper bound of the range of model instances to return (not inclusive)
124            * @param orderByComparator the comparator to order the results by
125            * @return the ordered range of matching rows
126            * @throws SystemException if a system exception occurred
127            */
128            @SuppressWarnings("rawtypes")
129            public java.util.List dynamicQuery(
130                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
131                    int end,
132                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133                    throws com.liferay.portal.kernel.exception.SystemException {
134                    return _igImageLocalService.dynamicQuery(dynamicQuery, start, end,
135                            orderByComparator);
136            }
137    
138            /**
139            * Counts the number of rows that match the dynamic query.
140            *
141            * @param dynamicQuery the dynamic query to search with
142            * @return the number of rows that match the dynamic query
143            * @throws SystemException if a system exception occurred
144            */
145            public long dynamicQueryCount(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
147                    throws com.liferay.portal.kernel.exception.SystemException {
148                    return _igImageLocalService.dynamicQueryCount(dynamicQuery);
149            }
150    
151            /**
152            * Gets the i g image with the primary key.
153            *
154            * @param imageId the primary key of the i g image to get
155            * @return the i g image
156            * @throws PortalException if a i g image with the primary key could not be found
157            * @throws SystemException if a system exception occurred
158            */
159            public com.liferay.portlet.imagegallery.model.IGImage getIGImage(
160                    long imageId)
161                    throws com.liferay.portal.kernel.exception.PortalException,
162                            com.liferay.portal.kernel.exception.SystemException {
163                    return _igImageLocalService.getIGImage(imageId);
164            }
165    
166            /**
167            * Gets the i g image with the UUID and group id.
168            *
169            * @param uuid the UUID of i g image to get
170            * @param groupId the group id of the i g image to get
171            * @return the i g image
172            * @throws PortalException if a i g image with the UUID and group id could not be found
173            * @throws SystemException if a system exception occurred
174            */
175            public com.liferay.portlet.imagegallery.model.IGImage getIGImageByUuidAndGroupId(
176                    java.lang.String uuid, long groupId)
177                    throws com.liferay.portal.kernel.exception.PortalException,
178                            com.liferay.portal.kernel.exception.SystemException {
179                    return _igImageLocalService.getIGImageByUuidAndGroupId(uuid, groupId);
180            }
181    
182            /**
183            * Gets a range of all the i g images.
184            *
185            * <p>
186            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
187            * </p>
188            *
189            * @param start the lower bound of the range of i g images to return
190            * @param end the upper bound of the range of i g images to return (not inclusive)
191            * @return the range of i g images
192            * @throws SystemException if a system exception occurred
193            */
194            public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getIGImages(
195                    int start, int end)
196                    throws com.liferay.portal.kernel.exception.SystemException {
197                    return _igImageLocalService.getIGImages(start, end);
198            }
199    
200            /**
201            * Gets the number of i g images.
202            *
203            * @return the number of i g images
204            * @throws SystemException if a system exception occurred
205            */
206            public int getIGImagesCount()
207                    throws com.liferay.portal.kernel.exception.SystemException {
208                    return _igImageLocalService.getIGImagesCount();
209            }
210    
211            /**
212            * Updates the i g image in the database. Also notifies the appropriate model listeners.
213            *
214            * @param igImage the i g image to update
215            * @return the i g image that was updated
216            * @throws SystemException if a system exception occurred
217            */
218            public com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
219                    com.liferay.portlet.imagegallery.model.IGImage igImage)
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return _igImageLocalService.updateIGImage(igImage);
222            }
223    
224            /**
225            * Updates the i g image in the database. Also notifies the appropriate model listeners.
226            *
227            * @param igImage the i g image to update
228            * @param merge whether to merge the i g image with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
229            * @return the i g image that was updated
230            * @throws SystemException if a system exception occurred
231            */
232            public com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
233                    com.liferay.portlet.imagegallery.model.IGImage igImage, boolean merge)
234                    throws com.liferay.portal.kernel.exception.SystemException {
235                    return _igImageLocalService.updateIGImage(igImage, merge);
236            }
237    
238            public com.liferay.portlet.imagegallery.model.IGImage addImage(
239                    long userId, long groupId, long folderId, java.lang.String name,
240                    java.lang.String description, java.io.File file,
241                    java.lang.String contentType,
242                    com.liferay.portal.service.ServiceContext serviceContext)
243                    throws com.liferay.portal.kernel.exception.PortalException,
244                            com.liferay.portal.kernel.exception.SystemException {
245                    return _igImageLocalService.addImage(userId, groupId, folderId, name,
246                            description, file, contentType, serviceContext);
247            }
248    
249            public com.liferay.portlet.imagegallery.model.IGImage addImage(
250                    long userId, long groupId, long folderId, java.lang.String name,
251                    java.lang.String description, java.lang.String fileName, byte[] bytes,
252                    java.lang.String contentType,
253                    com.liferay.portal.service.ServiceContext serviceContext)
254                    throws com.liferay.portal.kernel.exception.PortalException,
255                            com.liferay.portal.kernel.exception.SystemException {
256                    return _igImageLocalService.addImage(userId, groupId, folderId, name,
257                            description, fileName, bytes, contentType, serviceContext);
258            }
259    
260            public com.liferay.portlet.imagegallery.model.IGImage addImage(
261                    long userId, long groupId, long folderId, java.lang.String name,
262                    java.lang.String description, java.lang.String fileName,
263                    java.io.InputStream is, java.lang.String contentType,
264                    com.liferay.portal.service.ServiceContext serviceContext)
265                    throws com.liferay.portal.kernel.exception.PortalException,
266                            com.liferay.portal.kernel.exception.SystemException {
267                    return _igImageLocalService.addImage(userId, groupId, folderId, name,
268                            description, fileName, is, contentType, serviceContext);
269            }
270    
271            public void addImageResources(
272                    com.liferay.portlet.imagegallery.model.IGImage image,
273                    boolean addCommunityPermissions, boolean addGuestPermissions)
274                    throws com.liferay.portal.kernel.exception.PortalException,
275                            com.liferay.portal.kernel.exception.SystemException {
276                    _igImageLocalService.addImageResources(image, addCommunityPermissions,
277                            addGuestPermissions);
278            }
279    
280            public void addImageResources(
281                    com.liferay.portlet.imagegallery.model.IGImage image,
282                    java.lang.String[] communityPermissions,
283                    java.lang.String[] guestPermissions)
284                    throws com.liferay.portal.kernel.exception.PortalException,
285                            com.liferay.portal.kernel.exception.SystemException {
286                    _igImageLocalService.addImageResources(image, communityPermissions,
287                            guestPermissions);
288            }
289    
290            public void addImageResources(long imageId,
291                    boolean addCommunityPermissions, boolean addGuestPermissions)
292                    throws com.liferay.portal.kernel.exception.PortalException,
293                            com.liferay.portal.kernel.exception.SystemException {
294                    _igImageLocalService.addImageResources(imageId,
295                            addCommunityPermissions, addGuestPermissions);
296            }
297    
298            public void addImageResources(long imageId,
299                    java.lang.String[] communityPermissions,
300                    java.lang.String[] guestPermissions)
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException {
303                    _igImageLocalService.addImageResources(imageId, communityPermissions,
304                            guestPermissions);
305            }
306    
307            public void deleteImage(
308                    com.liferay.portlet.imagegallery.model.IGImage image)
309                    throws com.liferay.portal.kernel.exception.PortalException,
310                            com.liferay.portal.kernel.exception.SystemException {
311                    _igImageLocalService.deleteImage(image);
312            }
313    
314            public void deleteImage(long imageId)
315                    throws com.liferay.portal.kernel.exception.PortalException,
316                            com.liferay.portal.kernel.exception.SystemException {
317                    _igImageLocalService.deleteImage(imageId);
318            }
319    
320            public void deleteImages(long groupId, long folderId)
321                    throws com.liferay.portal.kernel.exception.PortalException,
322                            com.liferay.portal.kernel.exception.SystemException {
323                    _igImageLocalService.deleteImages(groupId, folderId);
324            }
325    
326            public int getFoldersImagesCount(long groupId,
327                    java.util.List<java.lang.Long> folderIds)
328                    throws com.liferay.portal.kernel.exception.SystemException {
329                    return _igImageLocalService.getFoldersImagesCount(groupId, folderIds);
330            }
331    
332            public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
333                    long groupId, int start, int end)
334                    throws com.liferay.portal.kernel.exception.SystemException {
335                    return _igImageLocalService.getGroupImages(groupId, start, end);
336            }
337    
338            public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
339                    long groupId, long userId, int start, int end)
340                    throws com.liferay.portal.kernel.exception.SystemException {
341                    return _igImageLocalService.getGroupImages(groupId, userId, start, end);
342            }
343    
344            public int getGroupImagesCount(long groupId)
345                    throws com.liferay.portal.kernel.exception.SystemException {
346                    return _igImageLocalService.getGroupImagesCount(groupId);
347            }
348    
349            public int getGroupImagesCount(long groupId, long userId)
350                    throws com.liferay.portal.kernel.exception.SystemException {
351                    return _igImageLocalService.getGroupImagesCount(groupId, userId);
352            }
353    
354            public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
355                    throws com.liferay.portal.kernel.exception.PortalException,
356                            com.liferay.portal.kernel.exception.SystemException {
357                    return _igImageLocalService.getImage(imageId);
358            }
359    
360            public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom1ImageId(
361                    long custom1ImageId)
362                    throws com.liferay.portal.kernel.exception.PortalException,
363                            com.liferay.portal.kernel.exception.SystemException {
364                    return _igImageLocalService.getImageByCustom1ImageId(custom1ImageId);
365            }
366    
367            public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom2ImageId(
368                    long custom2ImageId)
369                    throws com.liferay.portal.kernel.exception.PortalException,
370                            com.liferay.portal.kernel.exception.SystemException {
371                    return _igImageLocalService.getImageByCustom2ImageId(custom2ImageId);
372            }
373    
374            public com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
375                    long groupId, long folderId, java.lang.String nameWithExtension)
376                    throws com.liferay.portal.kernel.exception.PortalException,
377                            com.liferay.portal.kernel.exception.SystemException {
378                    return _igImageLocalService.getImageByFolderIdAndNameWithExtension(groupId,
379                            folderId, nameWithExtension);
380            }
381    
382            public com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
383                    long largeImageId)
384                    throws com.liferay.portal.kernel.exception.PortalException,
385                            com.liferay.portal.kernel.exception.SystemException {
386                    return _igImageLocalService.getImageByLargeImageId(largeImageId);
387            }
388    
389            public com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
390                    long smallImageId)
391                    throws com.liferay.portal.kernel.exception.PortalException,
392                            com.liferay.portal.kernel.exception.SystemException {
393                    return _igImageLocalService.getImageBySmallImageId(smallImageId);
394            }
395    
396            public com.liferay.portlet.imagegallery.model.IGImage getImageByUuidAndGroupId(
397                    java.lang.String uuid, long groupId)
398                    throws com.liferay.portal.kernel.exception.PortalException,
399                            com.liferay.portal.kernel.exception.SystemException {
400                    return _igImageLocalService.getImageByUuidAndGroupId(uuid, groupId);
401            }
402    
403            public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
404                    long groupId, long folderId)
405                    throws com.liferay.portal.kernel.exception.SystemException {
406                    return _igImageLocalService.getImages(groupId, folderId);
407            }
408    
409            public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
410                    long groupId, long folderId, int start, int end)
411                    throws com.liferay.portal.kernel.exception.SystemException {
412                    return _igImageLocalService.getImages(groupId, folderId, start, end);
413            }
414    
415            public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
416                    long groupId, long folderId, int start, int end,
417                    com.liferay.portal.kernel.util.OrderByComparator obc)
418                    throws com.liferay.portal.kernel.exception.SystemException {
419                    return _igImageLocalService.getImages(groupId, folderId, start, end, obc);
420            }
421    
422            public int getImagesCount(long groupId, long folderId)
423                    throws com.liferay.portal.kernel.exception.SystemException {
424                    return _igImageLocalService.getImagesCount(groupId, folderId);
425            }
426    
427            public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getNoAssetImages()
428                    throws com.liferay.portal.kernel.exception.SystemException {
429                    return _igImageLocalService.getNoAssetImages();
430            }
431    
432            public void updateAsset(long userId,
433                    com.liferay.portlet.imagegallery.model.IGImage image,
434                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
435                    java.lang.String contentType)
436                    throws com.liferay.portal.kernel.exception.PortalException,
437                            com.liferay.portal.kernel.exception.SystemException {
438                    _igImageLocalService.updateAsset(userId, image, assetCategoryIds,
439                            assetTagNames, contentType);
440            }
441    
442            public com.liferay.portlet.imagegallery.model.IGImage updateImage(
443                    long userId, long imageId, long groupId, long folderId,
444                    java.lang.String name, java.lang.String description, byte[] bytes,
445                    java.lang.String contentType,
446                    com.liferay.portal.service.ServiceContext serviceContext)
447                    throws com.liferay.portal.kernel.exception.PortalException,
448                            com.liferay.portal.kernel.exception.SystemException {
449                    return _igImageLocalService.updateImage(userId, imageId, groupId,
450                            folderId, name, description, bytes, contentType, serviceContext);
451            }
452    
453            public com.liferay.portlet.imagegallery.model.IGImage updateImage(
454                    long userId, long imageId, long groupId, long folderId,
455                    java.lang.String name, java.lang.String description, java.io.File file,
456                    java.lang.String contentType,
457                    com.liferay.portal.service.ServiceContext serviceContext)
458                    throws com.liferay.portal.kernel.exception.PortalException,
459                            com.liferay.portal.kernel.exception.SystemException {
460                    return _igImageLocalService.updateImage(userId, imageId, groupId,
461                            folderId, name, description, file, contentType, serviceContext);
462            }
463    
464            public com.liferay.portlet.imagegallery.model.IGImage updateImage(
465                    long userId, long imageId, long groupId, long folderId,
466                    java.lang.String name, java.lang.String description,
467                    java.io.InputStream is, java.lang.String contentType,
468                    com.liferay.portal.service.ServiceContext serviceContext)
469                    throws com.liferay.portal.kernel.exception.PortalException,
470                            com.liferay.portal.kernel.exception.SystemException {
471                    return _igImageLocalService.updateImage(userId, imageId, groupId,
472                            folderId, name, description, is, contentType, serviceContext);
473            }
474    
475            public void updateSmallImage(long smallImageId, long largeImageId)
476                    throws com.liferay.portal.kernel.exception.PortalException,
477                            com.liferay.portal.kernel.exception.SystemException {
478                    _igImageLocalService.updateSmallImage(smallImageId, largeImageId);
479            }
480    
481            public IGImageLocalService getWrappedIGImageLocalService() {
482                    return _igImageLocalService;
483            }
484    
485            private IGImageLocalService _igImageLocalService;
486    }