001    /**
002     * Copyright (c) 2000-2011 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 document library folder to the database. Also notifies the appropriate model listeners.
034            *
035            * @param dlFolder the document library folder
036            * @return the document library 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 document library folder with the primary key. Does not add the document library folder to the database.
047            *
048            * @param folderId the primary key for the new document library folder
049            * @return the new document library 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 document library folder with the primary key from the database. Also notifies the appropriate model listeners.
058            *
059            * @param folderId the primary key of the document library folder
060            * @throws PortalException if a document library 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 document library folder from the database. Also notifies the appropriate model listeners.
071            *
072            * @param dlFolder the document library folder
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
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
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 _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
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 _dlFolderLocalService.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 _dlFolderLocalService.dynamicQueryCount(dynamicQuery);
150            }
151    
152            /**
153            * Returns the document library folder with the primary key.
154            *
155            * @param folderId the primary key of the document library folder
156            * @return the document library folder
157            * @throws PortalException if a document library 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            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 _dlFolderLocalService.getPersistedModel(primaryKeyObj);
172            }
173    
174            /**
175            * Returns the document library folder with the UUID in the group.
176            *
177            * @param uuid the UUID of document library folder
178            * @param groupId the group id of the document library folder
179            * @return the document library folder
180            * @throws PortalException if a document library 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.documentlibrary.model.DLFolder getDLFolderByUuidAndGroupId(
184                    java.lang.String uuid, long groupId)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return _dlFolderLocalService.getDLFolderByUuidAndGroupId(uuid, groupId);
188            }
189    
190            /**
191            * Returns a range of all the document library 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 document library folders
198            * @param end the upper bound of the range of document library folders (not inclusive)
199            * @return the range of document library folders
200            * @throws SystemException if a system exception occurred
201            */
202            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
203                    int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return _dlFolderLocalService.getDLFolders(start, end);
206            }
207    
208            /**
209            * Returns the number of document library folders.
210            *
211            * @return the number of document library folders
212            * @throws SystemException if a system exception occurred
213            */
214            public int getDLFoldersCount()
215                    throws com.liferay.portal.kernel.exception.SystemException {
216                    return _dlFolderLocalService.getDLFoldersCount();
217            }
218    
219            /**
220            * Updates the document library folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
221            *
222            * @param dlFolder the document library folder
223            * @return the document library folder that was updated
224            * @throws SystemException if a system exception occurred
225            */
226            public com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
227                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return _dlFolderLocalService.updateDLFolder(dlFolder);
230            }
231    
232            /**
233            * Updates the document library folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
234            *
235            * @param dlFolder the document library folder
236            * @param merge whether to merge the document library 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 document library folder that was updated
238            * @throws SystemException if a system exception occurred
239            */
240            public com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
241                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
242                    boolean merge)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return _dlFolderLocalService.updateDLFolder(dlFolder, merge);
245            }
246    
247            /**
248            * Returns the Spring bean ID for this bean.
249            *
250            * @return the Spring bean ID for this bean
251            */
252            public java.lang.String getBeanIdentifier() {
253                    return _dlFolderLocalService.getBeanIdentifier();
254            }
255    
256            /**
257            * Sets the Spring bean ID for this bean.
258            *
259            * @param beanIdentifier the Spring bean ID for this bean
260            */
261            public void setBeanIdentifier(java.lang.String beanIdentifier) {
262                    _dlFolderLocalService.setBeanIdentifier(beanIdentifier);
263            }
264    
265            public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
266                    long userId, long groupId, long repositoryId, boolean mountPoint,
267                    long parentFolderId, java.lang.String name,
268                    java.lang.String description,
269                    com.liferay.portal.service.ServiceContext serviceContext)
270                    throws com.liferay.portal.kernel.exception.PortalException,
271                            com.liferay.portal.kernel.exception.SystemException {
272                    return _dlFolderLocalService.addFolder(userId, groupId, repositoryId,
273                            mountPoint, parentFolderId, name, description, serviceContext);
274            }
275    
276            public void deleteAll(long groupId)
277                    throws com.liferay.portal.kernel.exception.PortalException,
278                            com.liferay.portal.kernel.exception.SystemException {
279                    _dlFolderLocalService.deleteAll(groupId);
280            }
281    
282            public void deleteFolder(long folderId)
283                    throws com.liferay.portal.kernel.exception.PortalException,
284                            com.liferay.portal.kernel.exception.SystemException {
285                    _dlFolderLocalService.deleteFolder(folderId);
286            }
287    
288            public com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
289                    long folderId)
290                    throws com.liferay.portal.kernel.exception.SystemException {
291                    return _dlFolderLocalService.fetchFolder(folderId);
292            }
293    
294            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
295                    long companyId, int start, int end)
296                    throws com.liferay.portal.kernel.exception.SystemException {
297                    return _dlFolderLocalService.getCompanyFolders(companyId, start, end);
298            }
299    
300            public int getCompanyFoldersCount(long companyId)
301                    throws com.liferay.portal.kernel.exception.SystemException {
302                    return _dlFolderLocalService.getCompanyFoldersCount(companyId);
303            }
304    
305            public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
306                    long groupId, long folderId, int status, int start, int end)
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    return _dlFolderLocalService.getFileEntriesAndFileShortcuts(groupId,
309                            folderId, status, start, end);
310            }
311    
312            public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId,
313                    int status) throws com.liferay.portal.kernel.exception.SystemException {
314                    return _dlFolderLocalService.getFileEntriesAndFileShortcutsCount(groupId,
315                            folderId, status);
316            }
317    
318            public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
319                    long folderId)
320                    throws com.liferay.portal.kernel.exception.PortalException,
321                            com.liferay.portal.kernel.exception.SystemException {
322                    return _dlFolderLocalService.getFolder(folderId);
323            }
324    
325            public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
326                    long groupId, long parentFolderId, java.lang.String name)
327                    throws com.liferay.portal.kernel.exception.PortalException,
328                            com.liferay.portal.kernel.exception.SystemException {
329                    return _dlFolderLocalService.getFolder(groupId, parentFolderId, name);
330            }
331    
332            public long getFolderId(long companyId, long folderId)
333                    throws com.liferay.portal.kernel.exception.SystemException {
334                    return _dlFolderLocalService.getFolderId(companyId, folderId);
335            }
336    
337            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
338                    long groupId, long parentFolderId)
339                    throws com.liferay.portal.kernel.exception.SystemException {
340                    return _dlFolderLocalService.getFolders(groupId, parentFolderId);
341            }
342    
343            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
344                    long groupId, long parentFolderId, boolean includeMountfolders)
345                    throws com.liferay.portal.kernel.exception.SystemException {
346                    return _dlFolderLocalService.getFolders(groupId, parentFolderId,
347                            includeMountfolders);
348            }
349    
350            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
351                    long groupId, long parentFolderId, boolean includeMountfolders,
352                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
353                    throws com.liferay.portal.kernel.exception.SystemException {
354                    return _dlFolderLocalService.getFolders(groupId, parentFolderId,
355                            includeMountfolders, start, end, obc);
356            }
357    
358            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
359                    long groupId, long parentFolderId, int start, int end,
360                    com.liferay.portal.kernel.util.OrderByComparator obc)
361                    throws com.liferay.portal.kernel.exception.SystemException {
362                    return _dlFolderLocalService.getFolders(groupId, parentFolderId, start,
363                            end, obc);
364            }
365    
366            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
367                    long groupId, long folderId, int status, boolean includeMountFolders,
368                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
369                    throws com.liferay.portal.kernel.exception.SystemException {
370                    return _dlFolderLocalService.getFoldersAndFileEntriesAndFileShortcuts(groupId,
371                            folderId, status, includeMountFolders, start, end, obc);
372            }
373    
374            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
375                    long groupId, long folderId, int status, java.lang.String[] mimeTypes,
376                    boolean includeMountFolders, int start, int end,
377                    com.liferay.portal.kernel.util.OrderByComparator obc)
378                    throws com.liferay.portal.kernel.exception.SystemException {
379                    return _dlFolderLocalService.getFoldersAndFileEntriesAndFileShortcuts(groupId,
380                            folderId, status, mimeTypes, includeMountFolders, start, end, obc);
381            }
382    
383            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
384                    long folderId, int status, boolean includeMountFolders)
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return _dlFolderLocalService.getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
387                            folderId, status, includeMountFolders);
388            }
389    
390            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
391                    long folderId, int status, java.lang.String[] mimeTypes,
392                    boolean includeMountFolders)
393                    throws com.liferay.portal.kernel.exception.SystemException {
394                    return _dlFolderLocalService.getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
395                            folderId, status, mimeTypes, includeMountFolders);
396            }
397    
398            public int getFoldersCount(long groupId, long parentFolderId)
399                    throws com.liferay.portal.kernel.exception.SystemException {
400                    return _dlFolderLocalService.getFoldersCount(groupId, parentFolderId);
401            }
402    
403            public int getFoldersCount(long groupId, long parentFolderId,
404                    boolean includeMountfolders)
405                    throws com.liferay.portal.kernel.exception.SystemException {
406                    return _dlFolderLocalService.getFoldersCount(groupId, parentFolderId,
407                            includeMountfolders);
408            }
409    
410            public int getFoldersFileEntriesCount(long groupId,
411                    java.util.List<java.lang.Long> folderIds, int status)
412                    throws com.liferay.portal.kernel.exception.SystemException {
413                    return _dlFolderLocalService.getFoldersFileEntriesCount(groupId,
414                            folderIds, status);
415            }
416    
417            public com.liferay.portlet.documentlibrary.model.DLFolder getMountFolder(
418                    long repositoryId)
419                    throws com.liferay.portal.kernel.exception.PortalException,
420                            com.liferay.portal.kernel.exception.SystemException {
421                    return _dlFolderLocalService.getMountFolder(repositoryId);
422            }
423    
424            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
425                    long groupId, long parentFolderId, int start, int end,
426                    com.liferay.portal.kernel.util.OrderByComparator obc)
427                    throws com.liferay.portal.kernel.exception.SystemException {
428                    return _dlFolderLocalService.getMountFolders(groupId, parentFolderId,
429                            start, end, obc);
430            }
431    
432            public int getMountFoldersCount(long groupId, long parentFolderId)
433                    throws com.liferay.portal.kernel.exception.SystemException {
434                    return _dlFolderLocalService.getMountFoldersCount(groupId,
435                            parentFolderId);
436            }
437    
438            public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
439                    long groupId, long folderId)
440                    throws com.liferay.portal.kernel.exception.SystemException {
441                    _dlFolderLocalService.getSubfolderIds(folderIds, groupId, folderId);
442            }
443    
444            public com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
445                    long folderId, long parentFolderId,
446                    com.liferay.portal.service.ServiceContext serviceContext)
447                    throws com.liferay.portal.kernel.exception.PortalException,
448                            com.liferay.portal.kernel.exception.SystemException {
449                    return _dlFolderLocalService.moveFolder(folderId, parentFolderId,
450                            serviceContext);
451            }
452    
453            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
454                    long folderId, long parentFolderId, java.lang.String name,
455                    java.lang.String description, long defaultFileEntryTypeId,
456                    java.util.List<java.lang.Long> fileEntryTypeIds,
457                    boolean overrideFileEntryTypes,
458                    com.liferay.portal.service.ServiceContext serviceContext)
459                    throws com.liferay.portal.kernel.exception.PortalException,
460                            com.liferay.portal.kernel.exception.SystemException {
461                    return _dlFolderLocalService.updateFolder(folderId, parentFolderId,
462                            name, description, defaultFileEntryTypeId, fileEntryTypeIds,
463                            overrideFileEntryTypes, serviceContext);
464            }
465    
466            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
467                    long folderId, java.lang.String name, java.lang.String description,
468                    long defaultFileEntryTypeId,
469                    java.util.List<java.lang.Long> fileEntryTypeIds,
470                    boolean overrideFileEntryTypes,
471                    com.liferay.portal.service.ServiceContext serviceContext)
472                    throws com.liferay.portal.kernel.exception.PortalException,
473                            com.liferay.portal.kernel.exception.SystemException {
474                    return _dlFolderLocalService.updateFolder(folderId, name, description,
475                            defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
476                            serviceContext);
477            }
478    
479            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
480                    long folderId, long parentFolderId, java.lang.String name,
481                    java.lang.String description, long defaultFileEntryTypeId,
482                    java.util.List<java.lang.Long> fileEntryTypeIds,
483                    boolean overrideFileEntryTypes,
484                    com.liferay.portal.service.ServiceContext serviceContext)
485                    throws com.liferay.portal.kernel.exception.PortalException,
486                            com.liferay.portal.kernel.exception.SystemException {
487                    return _dlFolderLocalService.updateFolderAndFileEntryTypes(folderId,
488                            parentFolderId, name, description, defaultFileEntryTypeId,
489                            fileEntryTypeIds, overrideFileEntryTypes, serviceContext);
490            }
491    
492            public void updateLastPostDate(long folderId, java.util.Date lastPostDate)
493                    throws com.liferay.portal.kernel.exception.PortalException,
494                            com.liferay.portal.kernel.exception.SystemException {
495                    _dlFolderLocalService.updateLastPostDate(folderId, lastPostDate);
496            }
497    
498            public DLFolderLocalService getWrappedDLFolderLocalService() {
499                    return _dlFolderLocalService;
500            }
501    
502            public void setWrappedDLFolderLocalService(
503                    DLFolderLocalService dlFolderLocalService) {
504                    _dlFolderLocalService = dlFolderLocalService;
505            }
506    
507            private DLFolderLocalService _dlFolderLocalService;
508    }