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.documentlibrary.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link DLFolderLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       DLFolderLocalService
024     * @generated
025     */
026    public class DLFolderLocalServiceWrapper implements DLFolderLocalService {
027            public DLFolderLocalServiceWrapper(
028                    DLFolderLocalService dlFolderLocalService) {
029                    _dlFolderLocalService = dlFolderLocalService;
030            }
031    
032            /**
033            * Adds the d l folder to the database. Also notifies the appropriate model listeners.
034            *
035            * @param dlFolder the d l folder to add
036            * @return the d l folder that was added
037            * @throws SystemException if a system exception occurred
038            */
039            public com.liferay.portlet.documentlibrary.model.DLFolder addDLFolder(
040                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return _dlFolderLocalService.addDLFolder(dlFolder);
043            }
044    
045            /**
046            * Creates a new d l folder with the primary key. Does not add the d l folder to the database.
047            *
048            * @param folderId the primary key for the new d l folder
049            * @return the new d l folder
050            */
051            public com.liferay.portlet.documentlibrary.model.DLFolder createDLFolder(
052                    long folderId) {
053                    return _dlFolderLocalService.createDLFolder(folderId);
054            }
055    
056            /**
057            * Deletes the d l folder with the primary key from the database. Also notifies the appropriate model listeners.
058            *
059            * @param folderId the primary key of the d l folder to delete
060            * @throws PortalException if a d l folder with the primary key could not be found
061            * @throws SystemException if a system exception occurred
062            */
063            public void deleteDLFolder(long folderId)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    _dlFolderLocalService.deleteDLFolder(folderId);
067            }
068    
069            /**
070            * Deletes the d l folder from the database. Also notifies the appropriate model listeners.
071            *
072            * @param dlFolder the d l folder to delete
073            * @throws SystemException if a system exception occurred
074            */
075            public void deleteDLFolder(
076                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
077                    throws com.liferay.portal.kernel.exception.SystemException {
078                    _dlFolderLocalService.deleteDLFolder(dlFolder);
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 _dlFolderLocalService.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 _dlFolderLocalService.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 _dlFolderLocalService.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 _dlFolderLocalService.dynamicQueryCount(dynamicQuery);
150            }
151    
152            /**
153            * Gets the d l folder with the primary key.
154            *
155            * @param folderId the primary key of the d l folder to get
156            * @return the d l folder
157            * @throws PortalException if a d l folder with the primary key could not be found
158            * @throws SystemException if a system exception occurred
159            */
160            public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder(
161                    long folderId)
162                    throws com.liferay.portal.kernel.exception.PortalException,
163                            com.liferay.portal.kernel.exception.SystemException {
164                    return _dlFolderLocalService.getDLFolder(folderId);
165            }
166    
167            /**
168            * Gets the d l folder with the UUID and group id.
169            *
170            * @param uuid the UUID of d l folder to get
171            * @param groupId the group id of the d l folder to get
172            * @return the d l folder
173            * @throws PortalException if a d l 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.documentlibrary.model.DLFolder getDLFolderByUuidAndGroupId(
177                    java.lang.String uuid, long groupId)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _dlFolderLocalService.getDLFolderByUuidAndGroupId(uuid, groupId);
181            }
182    
183            /**
184            * Gets a range of all the d l 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 d l folders to return
191            * @param end the upper bound of the range of d l folders to return (not inclusive)
192            * @return the range of d l folders
193            * @throws SystemException if a system exception occurred
194            */
195            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
196                    int start, int end)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return _dlFolderLocalService.getDLFolders(start, end);
199            }
200    
201            /**
202            * Gets the number of d l folders.
203            *
204            * @return the number of d l folders
205            * @throws SystemException if a system exception occurred
206            */
207            public int getDLFoldersCount()
208                    throws com.liferay.portal.kernel.exception.SystemException {
209                    return _dlFolderLocalService.getDLFoldersCount();
210            }
211    
212            /**
213            * Updates the d l folder in the database. Also notifies the appropriate model listeners.
214            *
215            * @param dlFolder the d l folder to update
216            * @return the d l folder that was updated
217            * @throws SystemException if a system exception occurred
218            */
219            public com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
220                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return _dlFolderLocalService.updateDLFolder(dlFolder);
223            }
224    
225            /**
226            * Updates the d l folder in the database. Also notifies the appropriate model listeners.
227            *
228            * @param dlFolder the d l folder to update
229            * @param merge whether to merge the d l 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 d l folder that was updated
231            * @throws SystemException if a system exception occurred
232            */
233            public com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
234                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
235                    boolean merge)
236                    throws com.liferay.portal.kernel.exception.SystemException {
237                    return _dlFolderLocalService.updateDLFolder(dlFolder, merge);
238            }
239    
240            public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
241                    long userId, long groupId, long parentFolderId, java.lang.String name,
242                    java.lang.String description,
243                    com.liferay.portal.service.ServiceContext serviceContext)
244                    throws com.liferay.portal.kernel.exception.PortalException,
245                            com.liferay.portal.kernel.exception.SystemException {
246                    return _dlFolderLocalService.addFolder(userId, groupId, parentFolderId,
247                            name, description, serviceContext);
248            }
249    
250            public void addFolderResources(
251                    com.liferay.portlet.documentlibrary.model.DLFolder folder,
252                    boolean addCommunityPermissions, boolean addGuestPermissions)
253                    throws com.liferay.portal.kernel.exception.PortalException,
254                            com.liferay.portal.kernel.exception.SystemException {
255                    _dlFolderLocalService.addFolderResources(folder,
256                            addCommunityPermissions, addGuestPermissions);
257            }
258    
259            public void addFolderResources(
260                    com.liferay.portlet.documentlibrary.model.DLFolder folder,
261                    java.lang.String[] communityPermissions,
262                    java.lang.String[] guestPermissions)
263                    throws com.liferay.portal.kernel.exception.PortalException,
264                            com.liferay.portal.kernel.exception.SystemException {
265                    _dlFolderLocalService.addFolderResources(folder, communityPermissions,
266                            guestPermissions);
267            }
268    
269            public void addFolderResources(long folderId,
270                    boolean addCommunityPermissions, boolean addGuestPermissions)
271                    throws com.liferay.portal.kernel.exception.PortalException,
272                            com.liferay.portal.kernel.exception.SystemException {
273                    _dlFolderLocalService.addFolderResources(folderId,
274                            addCommunityPermissions, addGuestPermissions);
275            }
276    
277            public void addFolderResources(long folderId,
278                    java.lang.String[] communityPermissions,
279                    java.lang.String[] guestPermissions)
280                    throws com.liferay.portal.kernel.exception.PortalException,
281                            com.liferay.portal.kernel.exception.SystemException {
282                    _dlFolderLocalService.addFolderResources(folderId,
283                            communityPermissions, guestPermissions);
284            }
285    
286            public void deleteFolder(
287                    com.liferay.portlet.documentlibrary.model.DLFolder folder)
288                    throws com.liferay.portal.kernel.exception.PortalException,
289                            com.liferay.portal.kernel.exception.SystemException {
290                    _dlFolderLocalService.deleteFolder(folder);
291            }
292    
293            public void deleteFolder(long folderId)
294                    throws com.liferay.portal.kernel.exception.PortalException,
295                            com.liferay.portal.kernel.exception.SystemException {
296                    _dlFolderLocalService.deleteFolder(folderId);
297            }
298    
299            public void deleteFolders(long groupId)
300                    throws com.liferay.portal.kernel.exception.PortalException,
301                            com.liferay.portal.kernel.exception.SystemException {
302                    _dlFolderLocalService.deleteFolders(groupId);
303            }
304    
305            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
306                    long companyId, int start, int end)
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    return _dlFolderLocalService.getCompanyFolders(companyId, start, end);
309            }
310    
311            public int getCompanyFoldersCount(long companyId)
312                    throws com.liferay.portal.kernel.exception.SystemException {
313                    return _dlFolderLocalService.getCompanyFoldersCount(companyId);
314            }
315    
316            public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
317                    long groupId, java.util.List<java.lang.Long> folderIds, int status,
318                    int start, int end)
319                    throws com.liferay.portal.kernel.exception.SystemException {
320                    return _dlFolderLocalService.getFileEntriesAndFileShortcuts(groupId,
321                            folderIds, status, start, end);
322            }
323    
324            public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
325                    long groupId, long folderId, int status, int start, int end)
326                    throws com.liferay.portal.kernel.exception.SystemException {
327                    return _dlFolderLocalService.getFileEntriesAndFileShortcuts(groupId,
328                            folderId, status, start, end);
329            }
330    
331            public int getFileEntriesAndFileShortcutsCount(long groupId,
332                    java.util.List<java.lang.Long> folderIds, int status)
333                    throws com.liferay.portal.kernel.exception.SystemException {
334                    return _dlFolderLocalService.getFileEntriesAndFileShortcutsCount(groupId,
335                            folderIds, status);
336            }
337    
338            public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId,
339                    int status) throws com.liferay.portal.kernel.exception.SystemException {
340                    return _dlFolderLocalService.getFileEntriesAndFileShortcutsCount(groupId,
341                            folderId, status);
342            }
343    
344            public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
345                    long folderId)
346                    throws com.liferay.portal.kernel.exception.PortalException,
347                            com.liferay.portal.kernel.exception.SystemException {
348                    return _dlFolderLocalService.getFolder(folderId);
349            }
350    
351            public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
352                    long groupId, long parentFolderId, java.lang.String name)
353                    throws com.liferay.portal.kernel.exception.PortalException,
354                            com.liferay.portal.kernel.exception.SystemException {
355                    return _dlFolderLocalService.getFolder(groupId, parentFolderId, name);
356            }
357    
358            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
359                    long companyId)
360                    throws com.liferay.portal.kernel.exception.SystemException {
361                    return _dlFolderLocalService.getFolders(companyId);
362            }
363    
364            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
365                    long groupId, long parentFolderId)
366                    throws com.liferay.portal.kernel.exception.SystemException {
367                    return _dlFolderLocalService.getFolders(groupId, parentFolderId);
368            }
369    
370            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
371                    long groupId, long parentFolderId, int start, int end)
372                    throws com.liferay.portal.kernel.exception.SystemException {
373                    return _dlFolderLocalService.getFolders(groupId, parentFolderId, start,
374                            end);
375            }
376    
377            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
378                    long groupId, java.util.List<java.lang.Long> folderIds, int status,
379                    int start, int end)
380                    throws com.liferay.portal.kernel.exception.SystemException {
381                    return _dlFolderLocalService.getFoldersAndFileEntriesAndFileShortcuts(groupId,
382                            folderIds, status, start, end);
383            }
384    
385            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
386                    long groupId, long folderId, int status, int start, int end)
387                    throws com.liferay.portal.kernel.exception.SystemException {
388                    return _dlFolderLocalService.getFoldersAndFileEntriesAndFileShortcuts(groupId,
389                            folderId, status, start, end);
390            }
391    
392            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
393                    java.util.List<java.lang.Long> folderIds, int status)
394                    throws com.liferay.portal.kernel.exception.SystemException {
395                    return _dlFolderLocalService.getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
396                            folderIds, status);
397            }
398    
399            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
400                    long folderId, int status)
401                    throws com.liferay.portal.kernel.exception.SystemException {
402                    return _dlFolderLocalService.getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
403                            folderId, status);
404            }
405    
406            public int getFoldersCount(long groupId, long parentFolderId)
407                    throws com.liferay.portal.kernel.exception.SystemException {
408                    return _dlFolderLocalService.getFoldersCount(groupId, parentFolderId);
409            }
410    
411            public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
412                    long groupId, long folderId)
413                    throws com.liferay.portal.kernel.exception.SystemException {
414                    _dlFolderLocalService.getSubfolderIds(folderIds, groupId, folderId);
415            }
416    
417            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
418                    long folderId, long parentFolderId, java.lang.String name,
419                    java.lang.String description,
420                    com.liferay.portal.service.ServiceContext serviceContext)
421                    throws com.liferay.portal.kernel.exception.PortalException,
422                            com.liferay.portal.kernel.exception.SystemException {
423                    return _dlFolderLocalService.updateFolder(folderId, parentFolderId,
424                            name, description, serviceContext);
425            }
426    
427            public DLFolderLocalService getWrappedDLFolderLocalService() {
428                    return _dlFolderLocalService;
429            }
430    
431            private DLFolderLocalService _dlFolderLocalService;
432    }