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 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
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
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
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
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
103            * @param start the lower bound of the range of model instances
104            * @param end the upper bound of the range of model instances (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
123            * @param start the lower bound of the range of model instances
124            * @param end the upper bound of the range of model instances (not inclusive)
125            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns the number of rows that match the dynamic query.
141            *
142            * @param dynamicQuery the dynamic query
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            * Returns the i g folder with the primary key.
154            *
155            * @param folderId the primary key of the i g folder
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            public com.liferay.portal.model.PersistedModel getPersistedModel(
168                    java.io.Serializable primaryKeyObj)
169                    throws com.liferay.portal.kernel.exception.PortalException,
170                            com.liferay.portal.kernel.exception.SystemException {
171                    return _igFolderLocalService.getPersistedModel(primaryKeyObj);
172            }
173    
174            /**
175            * Returns the i g folder with the UUID in the group.
176            *
177            * @param uuid the UUID of i g folder
178            * @param groupId the group id of the i g folder
179            * @return the i g folder
180            * @throws PortalException if a i g folder with the UUID in the group could not be found
181            * @throws SystemException if a system exception occurred
182            */
183            public com.liferay.portlet.imagegallery.model.IGFolder getIGFolderByUuidAndGroupId(
184                    java.lang.String uuid, long groupId)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return _igFolderLocalService.getIGFolderByUuidAndGroupId(uuid, groupId);
188            }
189    
190            /**
191            * Returns a range of all the i g folders.
192            *
193            * <p>
194            * 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.
195            * </p>
196            *
197            * @param start the lower bound of the range of i g folders
198            * @param end the upper bound of the range of i g folders (not inclusive)
199            * @return the range of i g folders
200            * @throws SystemException if a system exception occurred
201            */
202            public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getIGFolders(
203                    int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return _igFolderLocalService.getIGFolders(start, end);
206            }
207    
208            /**
209            * Returns the number of i g folders.
210            *
211            * @return the number of i g folders
212            * @throws SystemException if a system exception occurred
213            */
214            public int getIGFoldersCount()
215                    throws com.liferay.portal.kernel.exception.SystemException {
216                    return _igFolderLocalService.getIGFoldersCount();
217            }
218    
219            /**
220            * Updates the i g folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
221            *
222            * @param igFolder the i g folder
223            * @return the i g folder that was updated
224            * @throws SystemException if a system exception occurred
225            */
226            public com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
227                    com.liferay.portlet.imagegallery.model.IGFolder igFolder)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return _igFolderLocalService.updateIGFolder(igFolder);
230            }
231    
232            /**
233            * Updates the i g folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
234            *
235            * @param igFolder the i g folder
236            * @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.
237            * @return the i g folder that was updated
238            * @throws SystemException if a system exception occurred
239            */
240            public com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
241                    com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
242                    throws com.liferay.portal.kernel.exception.SystemException {
243                    return _igFolderLocalService.updateIGFolder(igFolder, merge);
244            }
245    
246            /**
247            * Returns the Spring bean ID for this bean.
248            *
249            * @return the Spring bean ID for this bean
250            */
251            public java.lang.String getBeanIdentifier() {
252                    return _igFolderLocalService.getBeanIdentifier();
253            }
254    
255            /**
256            * Sets the Spring bean ID for this bean.
257            *
258            * @param beanIdentifier the Spring bean ID for this bean
259            */
260            public void setBeanIdentifier(java.lang.String beanIdentifier) {
261                    _igFolderLocalService.setBeanIdentifier(beanIdentifier);
262            }
263    
264            public com.liferay.portlet.imagegallery.model.IGFolder addFolder(
265                    long userId, long parentFolderId, java.lang.String name,
266                    java.lang.String description,
267                    com.liferay.portal.service.ServiceContext serviceContext)
268                    throws com.liferay.portal.kernel.exception.PortalException,
269                            com.liferay.portal.kernel.exception.SystemException {
270                    return _igFolderLocalService.addFolder(userId, parentFolderId, name,
271                            description, serviceContext);
272            }
273    
274            public void addFolderResources(
275                    com.liferay.portlet.imagegallery.model.IGFolder folder,
276                    boolean addCommunityPermissions, boolean addGuestPermissions)
277                    throws com.liferay.portal.kernel.exception.PortalException,
278                            com.liferay.portal.kernel.exception.SystemException {
279                    _igFolderLocalService.addFolderResources(folder,
280                            addCommunityPermissions, addGuestPermissions);
281            }
282    
283            public void addFolderResources(
284                    com.liferay.portlet.imagegallery.model.IGFolder folder,
285                    java.lang.String[] communityPermissions,
286                    java.lang.String[] guestPermissions)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    _igFolderLocalService.addFolderResources(folder, communityPermissions,
290                            guestPermissions);
291            }
292    
293            public void addFolderResources(long folderId,
294                    boolean addCommunityPermissions, boolean addGuestPermissions)
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException {
297                    _igFolderLocalService.addFolderResources(folderId,
298                            addCommunityPermissions, addGuestPermissions);
299            }
300    
301            public void addFolderResources(long folderId,
302                    java.lang.String[] communityPermissions,
303                    java.lang.String[] guestPermissions)
304                    throws com.liferay.portal.kernel.exception.PortalException,
305                            com.liferay.portal.kernel.exception.SystemException {
306                    _igFolderLocalService.addFolderResources(folderId,
307                            communityPermissions, guestPermissions);
308            }
309    
310            public void deleteFolder(
311                    com.liferay.portlet.imagegallery.model.IGFolder folder)
312                    throws com.liferay.portal.kernel.exception.PortalException,
313                            com.liferay.portal.kernel.exception.SystemException {
314                    _igFolderLocalService.deleteFolder(folder);
315            }
316    
317            public void deleteFolder(long folderId)
318                    throws com.liferay.portal.kernel.exception.PortalException,
319                            com.liferay.portal.kernel.exception.SystemException {
320                    _igFolderLocalService.deleteFolder(folderId);
321            }
322    
323            public void deleteFolders(long groupId)
324                    throws com.liferay.portal.kernel.exception.PortalException,
325                            com.liferay.portal.kernel.exception.SystemException {
326                    _igFolderLocalService.deleteFolders(groupId);
327            }
328    
329            public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getCompanyFolders(
330                    long companyId, int start, int end)
331                    throws com.liferay.portal.kernel.exception.SystemException {
332                    return _igFolderLocalService.getCompanyFolders(companyId, start, end);
333            }
334    
335            public int getCompanyFoldersCount(long companyId)
336                    throws com.liferay.portal.kernel.exception.SystemException {
337                    return _igFolderLocalService.getCompanyFoldersCount(companyId);
338            }
339    
340            public com.liferay.portlet.imagegallery.model.IGFolder getFolder(
341                    long folderId)
342                    throws com.liferay.portal.kernel.exception.PortalException,
343                            com.liferay.portal.kernel.exception.SystemException {
344                    return _igFolderLocalService.getFolder(folderId);
345            }
346    
347            public com.liferay.portlet.imagegallery.model.IGFolder getFolder(
348                    long groupId, long parentFolderId, java.lang.String name)
349                    throws com.liferay.portal.kernel.exception.PortalException,
350                            com.liferay.portal.kernel.exception.SystemException {
351                    return _igFolderLocalService.getFolder(groupId, parentFolderId, name);
352            }
353    
354            public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
355                    long groupId)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    return _igFolderLocalService.getFolders(groupId);
358            }
359    
360            public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
361                    long groupId, long parentFolderId)
362                    throws com.liferay.portal.kernel.exception.SystemException {
363                    return _igFolderLocalService.getFolders(groupId, parentFolderId);
364            }
365    
366            public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
367                    long groupId, long parentFolderId, int start, int end)
368                    throws com.liferay.portal.kernel.exception.SystemException {
369                    return _igFolderLocalService.getFolders(groupId, parentFolderId, start,
370                            end);
371            }
372    
373            public int getFoldersCount(long groupId, long parentFolderId)
374                    throws com.liferay.portal.kernel.exception.SystemException {
375                    return _igFolderLocalService.getFoldersCount(groupId, parentFolderId);
376            }
377    
378            public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
379                    long groupId, long folderId)
380                    throws com.liferay.portal.kernel.exception.SystemException {
381                    _igFolderLocalService.getSubfolderIds(folderIds, groupId, folderId);
382            }
383    
384            public com.liferay.portlet.imagegallery.model.IGFolder updateFolder(
385                    long folderId, long parentFolderId, java.lang.String name,
386                    java.lang.String description, boolean mergeWithParentFolder,
387                    com.liferay.portal.service.ServiceContext serviceContext)
388                    throws com.liferay.portal.kernel.exception.PortalException,
389                            com.liferay.portal.kernel.exception.SystemException {
390                    return _igFolderLocalService.updateFolder(folderId, parentFolderId,
391                            name, description, mergeWithParentFolder, serviceContext);
392            }
393    
394            public IGFolderLocalService getWrappedIGFolderLocalService() {
395                    return _igFolderLocalService;
396            }
397    
398            public void setWrappedIGFolderLocalService(
399                    IGFolderLocalService igFolderLocalService) {
400                    _igFolderLocalService = igFolderLocalService;
401            }
402    
403            private IGFolderLocalService _igFolderLocalService;
404    }