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 IGFolderLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       IGFolderLocalService
024     * @generated
025     */
026    public class IGFolderLocalServiceWrapper implements IGFolderLocalService {
027            public IGFolderLocalServiceWrapper(
028                    IGFolderLocalService igFolderLocalService) {
029                    _igFolderLocalService = igFolderLocalService;
030            }
031    
032            /**
033            * Adds the i g folder to the database. Also notifies the appropriate model listeners.
034            *
035            * @param igFolder the i g folder to add
036            * @return the i g folder that was added
037            * @throws SystemException if a system exception occurred
038            */
039            public com.liferay.portlet.imagegallery.model.IGFolder addIGFolder(
040                    com.liferay.portlet.imagegallery.model.IGFolder igFolder)
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return _igFolderLocalService.addIGFolder(igFolder);
043            }
044    
045            /**
046            * Creates a new i g folder with the primary key. Does not add the i g folder to the database.
047            *
048            * @param folderId the primary key for the new i g folder
049            * @return the new i g folder
050            */
051            public com.liferay.portlet.imagegallery.model.IGFolder createIGFolder(
052                    long folderId) {
053                    return _igFolderLocalService.createIGFolder(folderId);
054            }
055    
056            /**
057            * Deletes the i g folder with the primary key from the database. Also notifies the appropriate model listeners.
058            *
059            * @param folderId the primary key of the i g folder to delete
060            * @throws PortalException if a i g folder with the primary key could not be found
061            * @throws SystemException if a system exception occurred
062            */
063            public void deleteIGFolder(long folderId)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    _igFolderLocalService.deleteIGFolder(folderId);
067            }
068    
069            /**
070            * Deletes the i g folder from the database. Also notifies the appropriate model listeners.
071            *
072            * @param igFolder the i g folder to delete
073            * @throws SystemException if a system exception occurred
074            */
075            public void deleteIGFolder(
076                    com.liferay.portlet.imagegallery.model.IGFolder igFolder)
077                    throws com.liferay.portal.kernel.exception.SystemException {
078                    _igFolderLocalService.deleteIGFolder(igFolder);
079            }
080    
081            /**
082            * Performs a dynamic query on the database and returns the matching rows.
083            *
084            * @param dynamicQuery the dynamic query to search with
085            * @return the matching rows
086            * @throws SystemException if a system exception occurred
087            */
088            @SuppressWarnings("rawtypes")
089            public java.util.List dynamicQuery(
090                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
091                    throws com.liferay.portal.kernel.exception.SystemException {
092                    return _igFolderLocalService.dynamicQuery(dynamicQuery);
093            }
094    
095            /**
096            * Performs a dynamic query on the database and returns a range of the matching rows.
097            *
098            * <p>
099            * 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.
100            * </p>
101            *
102            * @param dynamicQuery the dynamic query to search with
103            * @param start the lower bound of the range of model instances to return
104            * @param end the upper bound of the range of model instances to return (not inclusive)
105            * @return the range of matching rows
106            * @throws SystemException if a system exception occurred
107            */
108            @SuppressWarnings("rawtypes")
109            public java.util.List dynamicQuery(
110                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
111                    int end) throws com.liferay.portal.kernel.exception.SystemException {
112                    return _igFolderLocalService.dynamicQuery(dynamicQuery, start, end);
113            }
114    
115            /**
116            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
117            *
118            * <p>
119            * 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.
120            * </p>
121            *
122            * @param dynamicQuery the dynamic query to search with
123            * @param start the lower bound of the range of model instances to return
124            * @param end the upper bound of the range of model instances to return (not inclusive)
125            * @param orderByComparator the comparator to order the results by
126            * @return the ordered range of matching rows
127            * @throws SystemException if a system exception occurred
128            */
129            @SuppressWarnings("rawtypes")
130            public java.util.List dynamicQuery(
131                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
132                    int end,
133                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134                    throws com.liferay.portal.kernel.exception.SystemException {
135                    return _igFolderLocalService.dynamicQuery(dynamicQuery, start, end,
136                            orderByComparator);
137            }
138    
139            /**
140            * Counts the number of rows that match the dynamic query.
141            *
142            * @param dynamicQuery the dynamic query to search with
143            * @return the number of rows that match the dynamic query
144            * @throws SystemException if a system exception occurred
145            */
146            public long dynamicQueryCount(
147                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
148                    throws com.liferay.portal.kernel.exception.SystemException {
149                    return _igFolderLocalService.dynamicQueryCount(dynamicQuery);
150            }
151    
152            /**
153            * Gets the i g folder with the primary key.
154            *
155            * @param folderId the primary key of the i g folder to get
156            * @return the i g folder
157            * @throws PortalException if a i g folder with the primary key could not be found
158            * @throws SystemException if a system exception occurred
159            */
160            public com.liferay.portlet.imagegallery.model.IGFolder getIGFolder(
161                    long folderId)
162                    throws com.liferay.portal.kernel.exception.PortalException,
163                            com.liferay.portal.kernel.exception.SystemException {
164                    return _igFolderLocalService.getIGFolder(folderId);
165            }
166    
167            /**
168            * Gets the i g folder with the UUID and group id.
169            *
170            * @param uuid the UUID of i g folder to get
171            * @param groupId the group id of the i g folder to get
172            * @return the i g folder
173            * @throws PortalException if a i g folder with the UUID and group id could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public com.liferay.portlet.imagegallery.model.IGFolder getIGFolderByUuidAndGroupId(
177                    java.lang.String uuid, long groupId)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _igFolderLocalService.getIGFolderByUuidAndGroupId(uuid, groupId);
181            }
182    
183            /**
184            * Gets a range of all the i g folders.
185            *
186            * <p>
187            * 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.
188            * </p>
189            *
190            * @param start the lower bound of the range of i g folders to return
191            * @param end the upper bound of the range of i g folders to return (not inclusive)
192            * @return the range of i g folders
193            * @throws SystemException if a system exception occurred
194            */
195            public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getIGFolders(
196                    int start, int end)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return _igFolderLocalService.getIGFolders(start, end);
199            }
200    
201            /**
202            * Gets the number of i g folders.
203            *
204            * @return the number of i g folders
205            * @throws SystemException if a system exception occurred
206            */
207            public int getIGFoldersCount()
208                    throws com.liferay.portal.kernel.exception.SystemException {
209                    return _igFolderLocalService.getIGFoldersCount();
210            }
211    
212            /**
213            * Updates the i g folder in the database. Also notifies the appropriate model listeners.
214            *
215            * @param igFolder the i g folder to update
216            * @return the i g folder that was updated
217            * @throws SystemException if a system exception occurred
218            */
219            public com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
220                    com.liferay.portlet.imagegallery.model.IGFolder igFolder)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return _igFolderLocalService.updateIGFolder(igFolder);
223            }
224    
225            /**
226            * Updates the i g folder in the database. Also notifies the appropriate model listeners.
227            *
228            * @param igFolder the i g folder to update
229            * @param merge whether to merge the i g folder 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.
230            * @return the i g folder that was updated
231            * @throws SystemException if a system exception occurred
232            */
233            public com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
234                    com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
235                    throws com.liferay.portal.kernel.exception.SystemException {
236                    return _igFolderLocalService.updateIGFolder(igFolder, merge);
237            }
238    
239            public com.liferay.portlet.imagegallery.model.IGFolder addFolder(
240                    long userId, long parentFolderId, java.lang.String name,
241                    java.lang.String description,
242                    com.liferay.portal.service.ServiceContext serviceContext)
243                    throws com.liferay.portal.kernel.exception.PortalException,
244                            com.liferay.portal.kernel.exception.SystemException {
245                    return _igFolderLocalService.addFolder(userId, parentFolderId, name,
246                            description, serviceContext);
247            }
248    
249            public void addFolderResources(
250                    com.liferay.portlet.imagegallery.model.IGFolder folder,
251                    boolean addCommunityPermissions, boolean addGuestPermissions)
252                    throws com.liferay.portal.kernel.exception.PortalException,
253                            com.liferay.portal.kernel.exception.SystemException {
254                    _igFolderLocalService.addFolderResources(folder,
255                            addCommunityPermissions, addGuestPermissions);
256            }
257    
258            public void addFolderResources(
259                    com.liferay.portlet.imagegallery.model.IGFolder folder,
260                    java.lang.String[] communityPermissions,
261                    java.lang.String[] guestPermissions)
262                    throws com.liferay.portal.kernel.exception.PortalException,
263                            com.liferay.portal.kernel.exception.SystemException {
264                    _igFolderLocalService.addFolderResources(folder, communityPermissions,
265                            guestPermissions);
266            }
267    
268            public void addFolderResources(long folderId,
269                    boolean addCommunityPermissions, boolean addGuestPermissions)
270                    throws com.liferay.portal.kernel.exception.PortalException,
271                            com.liferay.portal.kernel.exception.SystemException {
272                    _igFolderLocalService.addFolderResources(folderId,
273                            addCommunityPermissions, addGuestPermissions);
274            }
275    
276            public void addFolderResources(long folderId,
277                    java.lang.String[] communityPermissions,
278                    java.lang.String[] guestPermissions)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    _igFolderLocalService.addFolderResources(folderId,
282                            communityPermissions, guestPermissions);
283            }
284    
285            public void deleteFolder(
286                    com.liferay.portlet.imagegallery.model.IGFolder folder)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    _igFolderLocalService.deleteFolder(folder);
290            }
291    
292            public void deleteFolder(long folderId)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException {
295                    _igFolderLocalService.deleteFolder(folderId);
296            }
297    
298            public void deleteFolders(long groupId)
299                    throws com.liferay.portal.kernel.exception.PortalException,
300                            com.liferay.portal.kernel.exception.SystemException {
301                    _igFolderLocalService.deleteFolders(groupId);
302            }
303    
304            public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getCompanyFolders(
305                    long companyId, int start, int end)
306                    throws com.liferay.portal.kernel.exception.SystemException {
307                    return _igFolderLocalService.getCompanyFolders(companyId, start, end);
308            }
309    
310            public int getCompanyFoldersCount(long companyId)
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    return _igFolderLocalService.getCompanyFoldersCount(companyId);
313            }
314    
315            public com.liferay.portlet.imagegallery.model.IGFolder getFolder(
316                    long folderId)
317                    throws com.liferay.portal.kernel.exception.PortalException,
318                            com.liferay.portal.kernel.exception.SystemException {
319                    return _igFolderLocalService.getFolder(folderId);
320            }
321    
322            public com.liferay.portlet.imagegallery.model.IGFolder getFolder(
323                    long groupId, long parentFolderId, java.lang.String name)
324                    throws com.liferay.portal.kernel.exception.PortalException,
325                            com.liferay.portal.kernel.exception.SystemException {
326                    return _igFolderLocalService.getFolder(groupId, parentFolderId, name);
327            }
328    
329            public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
330                    long groupId)
331                    throws com.liferay.portal.kernel.exception.SystemException {
332                    return _igFolderLocalService.getFolders(groupId);
333            }
334    
335            public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
336                    long groupId, long parentFolderId)
337                    throws com.liferay.portal.kernel.exception.SystemException {
338                    return _igFolderLocalService.getFolders(groupId, parentFolderId);
339            }
340    
341            public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
342                    long groupId, long parentFolderId, int start, int end)
343                    throws com.liferay.portal.kernel.exception.SystemException {
344                    return _igFolderLocalService.getFolders(groupId, parentFolderId, start,
345                            end);
346            }
347    
348            public int getFoldersCount(long groupId, long parentFolderId)
349                    throws com.liferay.portal.kernel.exception.SystemException {
350                    return _igFolderLocalService.getFoldersCount(groupId, parentFolderId);
351            }
352    
353            public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
354                    long groupId, long folderId)
355                    throws com.liferay.portal.kernel.exception.SystemException {
356                    _igFolderLocalService.getSubfolderIds(folderIds, groupId, folderId);
357            }
358    
359            public com.liferay.portlet.imagegallery.model.IGFolder updateFolder(
360                    long folderId, long parentFolderId, java.lang.String name,
361                    java.lang.String description, boolean mergeWithParentFolder,
362                    com.liferay.portal.service.ServiceContext serviceContext)
363                    throws com.liferay.portal.kernel.exception.PortalException,
364                            com.liferay.portal.kernel.exception.SystemException {
365                    return _igFolderLocalService.updateFolder(folderId, parentFolderId,
366                            name, description, mergeWithParentFolder, serviceContext);
367            }
368    
369            public IGFolderLocalService getWrappedIGFolderLocalService() {
370                    return _igFolderLocalService;
371            }
372    
373            private IGFolderLocalService _igFolderLocalService;
374    }