001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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
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
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
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
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
102            * @param start the lower bound of the range of model instances
103            * @param end the upper bound of the range of model instances (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
122            * @param start the lower bound of the range of model instances
123            * @param end the upper bound of the range of model instances (not inclusive)
124            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns the number of rows that match the dynamic query.
140            *
141            * @param dynamicQuery the dynamic query
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            * Returns the i g image with the primary key.
153            *
154            * @param imageId the primary key of the i g image
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            public com.liferay.portal.model.PersistedModel getPersistedModel(
167                    java.io.Serializable primaryKeyObj)
168                    throws com.liferay.portal.kernel.exception.PortalException,
169                            com.liferay.portal.kernel.exception.SystemException {
170                    return _igImageLocalService.getPersistedModel(primaryKeyObj);
171            }
172    
173            /**
174            * Returns the i g image with the UUID in the group.
175            *
176            * @param uuid the UUID of i g image
177            * @param groupId the group id of the i g image
178            * @return the i g image
179            * @throws PortalException if a i g image with the UUID in the group could not be found
180            * @throws SystemException if a system exception occurred
181            */
182            public com.liferay.portlet.imagegallery.model.IGImage getIGImageByUuidAndGroupId(
183                    java.lang.String uuid, long groupId)
184                    throws com.liferay.portal.kernel.exception.PortalException,
185                            com.liferay.portal.kernel.exception.SystemException {
186                    return _igImageLocalService.getIGImageByUuidAndGroupId(uuid, groupId);
187            }
188    
189            /**
190            * Returns a range of all the i g images.
191            *
192            * <p>
193            * 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.
194            * </p>
195            *
196            * @param start the lower bound of the range of i g images
197            * @param end the upper bound of the range of i g images (not inclusive)
198            * @return the range of i g images
199            * @throws SystemException if a system exception occurred
200            */
201            public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getIGImages(
202                    int start, int end)
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return _igImageLocalService.getIGImages(start, end);
205            }
206    
207            /**
208            * Returns the number of i g images.
209            *
210            * @return the number of i g images
211            * @throws SystemException if a system exception occurred
212            */
213            public int getIGImagesCount()
214                    throws com.liferay.portal.kernel.exception.SystemException {
215                    return _igImageLocalService.getIGImagesCount();
216            }
217    
218            /**
219            * Updates the i g image in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
220            *
221            * @param igImage the i g image
222            * @return the i g image that was updated
223            * @throws SystemException if a system exception occurred
224            */
225            public com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
226                    com.liferay.portlet.imagegallery.model.IGImage igImage)
227                    throws com.liferay.portal.kernel.exception.SystemException {
228                    return _igImageLocalService.updateIGImage(igImage);
229            }
230    
231            /**
232            * Updates the i g image in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
233            *
234            * @param igImage the i g image
235            * @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.
236            * @return the i g image that was updated
237            * @throws SystemException if a system exception occurred
238            */
239            public com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
240                    com.liferay.portlet.imagegallery.model.IGImage igImage, boolean merge)
241                    throws com.liferay.portal.kernel.exception.SystemException {
242                    return _igImageLocalService.updateIGImage(igImage, merge);
243            }
244    
245            /**
246            * Returns the Spring bean ID for this bean.
247            *
248            * @return the Spring bean ID for this bean
249            */
250            public java.lang.String getBeanIdentifier() {
251                    return _igImageLocalService.getBeanIdentifier();
252            }
253    
254            /**
255            * Sets the Spring bean ID for this bean.
256            *
257            * @param beanIdentifier the Spring bean ID for this bean
258            */
259            public void setBeanIdentifier(java.lang.String beanIdentifier) {
260                    _igImageLocalService.setBeanIdentifier(beanIdentifier);
261            }
262    
263            public com.liferay.portlet.imagegallery.model.IGImage addImage(
264                    long userId, long groupId, long folderId, java.lang.String name,
265                    java.lang.String description, java.io.File file,
266                    java.lang.String contentType,
267                    com.liferay.portal.service.ServiceContext serviceContext)
268                    throws com.liferay.portal.kernel.exception.PortalException,
269                            com.liferay.portal.kernel.exception.SystemException {
270                    return _igImageLocalService.addImage(userId, groupId, folderId, name,
271                            description, file, contentType, serviceContext);
272            }
273    
274            public com.liferay.portlet.imagegallery.model.IGImage addImage(
275                    long userId, long groupId, long folderId, java.lang.String name,
276                    java.lang.String description, java.lang.String fileName, byte[] bytes,
277                    java.lang.String contentType,
278                    com.liferay.portal.service.ServiceContext serviceContext)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    return _igImageLocalService.addImage(userId, groupId, folderId, name,
282                            description, fileName, bytes, contentType, serviceContext);
283            }
284    
285            public com.liferay.portlet.imagegallery.model.IGImage addImage(
286                    long userId, long groupId, long folderId, java.lang.String name,
287                    java.lang.String description, java.lang.String fileName,
288                    java.io.InputStream is, java.lang.String contentType,
289                    com.liferay.portal.service.ServiceContext serviceContext)
290                    throws com.liferay.portal.kernel.exception.PortalException,
291                            com.liferay.portal.kernel.exception.SystemException {
292                    return _igImageLocalService.addImage(userId, groupId, folderId, name,
293                            description, fileName, is, contentType, serviceContext);
294            }
295    
296            public void addImageResources(
297                    com.liferay.portlet.imagegallery.model.IGImage image,
298                    boolean addCommunityPermissions, boolean addGuestPermissions)
299                    throws com.liferay.portal.kernel.exception.PortalException,
300                            com.liferay.portal.kernel.exception.SystemException {
301                    _igImageLocalService.addImageResources(image, addCommunityPermissions,
302                            addGuestPermissions);
303            }
304    
305            public void addImageResources(
306                    com.liferay.portlet.imagegallery.model.IGImage image,
307                    java.lang.String[] communityPermissions,
308                    java.lang.String[] guestPermissions)
309                    throws com.liferay.portal.kernel.exception.PortalException,
310                            com.liferay.portal.kernel.exception.SystemException {
311                    _igImageLocalService.addImageResources(image, communityPermissions,
312                            guestPermissions);
313            }
314    
315            public void addImageResources(long imageId,
316                    boolean addCommunityPermissions, boolean addGuestPermissions)
317                    throws com.liferay.portal.kernel.exception.PortalException,
318                            com.liferay.portal.kernel.exception.SystemException {
319                    _igImageLocalService.addImageResources(imageId,
320                            addCommunityPermissions, addGuestPermissions);
321            }
322    
323            public void addImageResources(long imageId,
324                    java.lang.String[] communityPermissions,
325                    java.lang.String[] guestPermissions)
326                    throws com.liferay.portal.kernel.exception.PortalException,
327                            com.liferay.portal.kernel.exception.SystemException {
328                    _igImageLocalService.addImageResources(imageId, communityPermissions,
329                            guestPermissions);
330            }
331    
332            public void deleteImage(
333                    com.liferay.portlet.imagegallery.model.IGImage image)
334                    throws com.liferay.portal.kernel.exception.PortalException,
335                            com.liferay.portal.kernel.exception.SystemException {
336                    _igImageLocalService.deleteImage(image);
337            }
338    
339            public void deleteImage(long imageId)
340                    throws com.liferay.portal.kernel.exception.PortalException,
341                            com.liferay.portal.kernel.exception.SystemException {
342                    _igImageLocalService.deleteImage(imageId);
343            }
344    
345            public void deleteImages(long groupId, long folderId)
346                    throws com.liferay.portal.kernel.exception.PortalException,
347                            com.liferay.portal.kernel.exception.SystemException {
348                    _igImageLocalService.deleteImages(groupId, folderId);
349            }
350    
351            public int getFoldersImagesCount(long groupId,
352                    java.util.List<java.lang.Long> folderIds)
353                    throws com.liferay.portal.kernel.exception.SystemException {
354                    return _igImageLocalService.getFoldersImagesCount(groupId, folderIds);
355            }
356    
357            public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
358                    long groupId, int start, int end)
359                    throws com.liferay.portal.kernel.exception.SystemException {
360                    return _igImageLocalService.getGroupImages(groupId, start, end);
361            }
362    
363            public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
364                    long groupId, long userId, int start, int end)
365                    throws com.liferay.portal.kernel.exception.SystemException {
366                    return _igImageLocalService.getGroupImages(groupId, userId, start, end);
367            }
368    
369            public int getGroupImagesCount(long groupId)
370                    throws com.liferay.portal.kernel.exception.SystemException {
371                    return _igImageLocalService.getGroupImagesCount(groupId);
372            }
373    
374            public int getGroupImagesCount(long groupId, long userId)
375                    throws com.liferay.portal.kernel.exception.SystemException {
376                    return _igImageLocalService.getGroupImagesCount(groupId, userId);
377            }
378    
379            public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
380                    throws com.liferay.portal.kernel.exception.PortalException,
381                            com.liferay.portal.kernel.exception.SystemException {
382                    return _igImageLocalService.getImage(imageId);
383            }
384    
385            public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom1ImageId(
386                    long custom1ImageId)
387                    throws com.liferay.portal.kernel.exception.PortalException,
388                            com.liferay.portal.kernel.exception.SystemException {
389                    return _igImageLocalService.getImageByCustom1ImageId(custom1ImageId);
390            }
391    
392            public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom2ImageId(
393                    long custom2ImageId)
394                    throws com.liferay.portal.kernel.exception.PortalException,
395                            com.liferay.portal.kernel.exception.SystemException {
396                    return _igImageLocalService.getImageByCustom2ImageId(custom2ImageId);
397            }
398    
399            public com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
400                    long groupId, long folderId, java.lang.String nameWithExtension)
401                    throws com.liferay.portal.kernel.exception.PortalException,
402                            com.liferay.portal.kernel.exception.SystemException {
403                    return _igImageLocalService.getImageByFolderIdAndNameWithExtension(groupId,
404                            folderId, nameWithExtension);
405            }
406    
407            public com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
408                    long largeImageId)
409                    throws com.liferay.portal.kernel.exception.PortalException,
410                            com.liferay.portal.kernel.exception.SystemException {
411                    return _igImageLocalService.getImageByLargeImageId(largeImageId);
412            }
413    
414            public com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
415                    long smallImageId)
416                    throws com.liferay.portal.kernel.exception.PortalException,
417                            com.liferay.portal.kernel.exception.SystemException {
418                    return _igImageLocalService.getImageBySmallImageId(smallImageId);
419            }
420    
421            public com.liferay.portlet.imagegallery.model.IGImage getImageByUuidAndGroupId(
422                    java.lang.String uuid, long groupId)
423                    throws com.liferay.portal.kernel.exception.PortalException,
424                            com.liferay.portal.kernel.exception.SystemException {
425                    return _igImageLocalService.getImageByUuidAndGroupId(uuid, groupId);
426            }
427    
428            public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
429                    long groupId, long folderId)
430                    throws com.liferay.portal.kernel.exception.SystemException {
431                    return _igImageLocalService.getImages(groupId, folderId);
432            }
433    
434            public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
435                    long groupId, long folderId, int start, int end)
436                    throws com.liferay.portal.kernel.exception.SystemException {
437                    return _igImageLocalService.getImages(groupId, folderId, start, end);
438            }
439    
440            public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
441                    long groupId, long folderId, int start, int end,
442                    com.liferay.portal.kernel.util.OrderByComparator obc)
443                    throws com.liferay.portal.kernel.exception.SystemException {
444                    return _igImageLocalService.getImages(groupId, folderId, start, end, obc);
445            }
446    
447            public int getImagesCount(long groupId, long folderId)
448                    throws com.liferay.portal.kernel.exception.SystemException {
449                    return _igImageLocalService.getImagesCount(groupId, folderId);
450            }
451    
452            public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getNoAssetImages()
453                    throws com.liferay.portal.kernel.exception.SystemException {
454                    return _igImageLocalService.getNoAssetImages();
455            }
456    
457            public void updateAsset(long userId,
458                    com.liferay.portlet.imagegallery.model.IGImage image,
459                    long[] assetCategoryIds, java.lang.String[] assetTagNames,
460                    java.lang.String contentType)
461                    throws com.liferay.portal.kernel.exception.PortalException,
462                            com.liferay.portal.kernel.exception.SystemException {
463                    _igImageLocalService.updateAsset(userId, image, assetCategoryIds,
464                            assetTagNames, contentType);
465            }
466    
467            public com.liferay.portlet.imagegallery.model.IGImage updateImage(
468                    long userId, long imageId, long groupId, long folderId,
469                    java.lang.String name, java.lang.String description, byte[] bytes,
470                    java.lang.String contentType,
471                    com.liferay.portal.service.ServiceContext serviceContext)
472                    throws com.liferay.portal.kernel.exception.PortalException,
473                            com.liferay.portal.kernel.exception.SystemException {
474                    return _igImageLocalService.updateImage(userId, imageId, groupId,
475                            folderId, name, description, bytes, contentType, serviceContext);
476            }
477    
478            public com.liferay.portlet.imagegallery.model.IGImage updateImage(
479                    long userId, long imageId, long groupId, long folderId,
480                    java.lang.String name, java.lang.String description, java.io.File file,
481                    java.lang.String contentType,
482                    com.liferay.portal.service.ServiceContext serviceContext)
483                    throws com.liferay.portal.kernel.exception.PortalException,
484                            com.liferay.portal.kernel.exception.SystemException {
485                    return _igImageLocalService.updateImage(userId, imageId, groupId,
486                            folderId, name, description, file, contentType, serviceContext);
487            }
488    
489            public com.liferay.portlet.imagegallery.model.IGImage updateImage(
490                    long userId, long imageId, long groupId, long folderId,
491                    java.lang.String name, java.lang.String description,
492                    java.io.InputStream is, java.lang.String contentType,
493                    com.liferay.portal.service.ServiceContext serviceContext)
494                    throws com.liferay.portal.kernel.exception.PortalException,
495                            com.liferay.portal.kernel.exception.SystemException {
496                    return _igImageLocalService.updateImage(userId, imageId, groupId,
497                            folderId, name, description, is, contentType, serviceContext);
498            }
499    
500            public void updateSmallImage(long smallImageId, long largeImageId)
501                    throws com.liferay.portal.kernel.exception.PortalException,
502                            com.liferay.portal.kernel.exception.SystemException {
503                    _igImageLocalService.updateSmallImage(smallImageId, largeImageId);
504            }
505    
506            public IGImageLocalService getWrappedIGImageLocalService() {
507                    return _igImageLocalService;
508            }
509    
510            public void setWrappedIGImageLocalService(
511                    IGImageLocalService igImageLocalService) {
512                    _igImageLocalService = igImageLocalService;
513            }
514    
515            private IGImageLocalService _igImageLocalService;
516    }