001    /**
002     * Copyright (c) 2000-2012 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    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link DLFolderLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       DLFolderLocalService
026     * @generated
027     */
028    public class DLFolderLocalServiceWrapper implements DLFolderLocalService,
029            ServiceWrapper<DLFolderLocalService> {
030            public DLFolderLocalServiceWrapper(
031                    DLFolderLocalService dlFolderLocalService) {
032                    _dlFolderLocalService = dlFolderLocalService;
033            }
034    
035            /**
036            * Adds the document library folder to the database. Also notifies the appropriate model listeners.
037            *
038            * @param dlFolder the document library folder
039            * @return the document library folder that was added
040            * @throws SystemException if a system exception occurred
041            */
042            public com.liferay.portlet.documentlibrary.model.DLFolder addDLFolder(
043                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return _dlFolderLocalService.addDLFolder(dlFolder);
046            }
047    
048            /**
049            * Creates a new document library folder with the primary key. Does not add the document library folder to the database.
050            *
051            * @param folderId the primary key for the new document library folder
052            * @return the new document library folder
053            */
054            public com.liferay.portlet.documentlibrary.model.DLFolder createDLFolder(
055                    long folderId) {
056                    return _dlFolderLocalService.createDLFolder(folderId);
057            }
058    
059            /**
060            * Deletes the document library folder with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param folderId the primary key of the document library folder
063            * @throws PortalException if a document library folder with the primary key could not be found
064            * @throws SystemException if a system exception occurred
065            */
066            public void deleteDLFolder(long folderId)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    _dlFolderLocalService.deleteDLFolder(folderId);
070            }
071    
072            /**
073            * Deletes the document library folder from the database. Also notifies the appropriate model listeners.
074            *
075            * @param dlFolder the document library folder
076            * @throws SystemException if a system exception occurred
077            */
078            public void deleteDLFolder(
079                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
080                    throws com.liferay.portal.kernel.exception.SystemException {
081                    _dlFolderLocalService.deleteDLFolder(dlFolder);
082            }
083    
084            /**
085            * Performs a dynamic query on the database and returns the matching rows.
086            *
087            * @param dynamicQuery the dynamic query
088            * @return the matching rows
089            * @throws SystemException if a system exception occurred
090            */
091            @SuppressWarnings("rawtypes")
092            public java.util.List dynamicQuery(
093                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094                    throws com.liferay.portal.kernel.exception.SystemException {
095                    return _dlFolderLocalService.dynamicQuery(dynamicQuery);
096            }
097    
098            /**
099            * Performs a dynamic query on the database and returns a range of the matching rows.
100            *
101            * <p>
102            * 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.
103            * </p>
104            *
105            * @param dynamicQuery the dynamic query
106            * @param start the lower bound of the range of model instances
107            * @param end the upper bound of the range of model instances (not inclusive)
108            * @return the range of matching rows
109            * @throws SystemException if a system exception occurred
110            */
111            @SuppressWarnings("rawtypes")
112            public java.util.List dynamicQuery(
113                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
114                    int end) throws com.liferay.portal.kernel.exception.SystemException {
115                    return _dlFolderLocalService.dynamicQuery(dynamicQuery, start, end);
116            }
117    
118            /**
119            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
120            *
121            * <p>
122            * 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.
123            * </p>
124            *
125            * @param dynamicQuery the dynamic query
126            * @param start the lower bound of the range of model instances
127            * @param end the upper bound of the range of model instances (not inclusive)
128            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
129            * @return the ordered range of matching rows
130            * @throws SystemException if a system exception occurred
131            */
132            @SuppressWarnings("rawtypes")
133            public java.util.List dynamicQuery(
134                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
135                    int end,
136                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
137                    throws com.liferay.portal.kernel.exception.SystemException {
138                    return _dlFolderLocalService.dynamicQuery(dynamicQuery, start, end,
139                            orderByComparator);
140            }
141    
142            /**
143            * Returns the number of rows that match the dynamic query.
144            *
145            * @param dynamicQuery the dynamic query
146            * @return the number of rows that match the dynamic query
147            * @throws SystemException if a system exception occurred
148            */
149            public long dynamicQueryCount(
150                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
151                    throws com.liferay.portal.kernel.exception.SystemException {
152                    return _dlFolderLocalService.dynamicQueryCount(dynamicQuery);
153            }
154    
155            public com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolder(
156                    long folderId)
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return _dlFolderLocalService.fetchDLFolder(folderId);
159            }
160    
161            /**
162            * Returns the document library folder with the primary key.
163            *
164            * @param folderId the primary key of the document library folder
165            * @return the document library folder
166            * @throws PortalException if a document library folder with the primary key could not be found
167            * @throws SystemException if a system exception occurred
168            */
169            public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder(
170                    long folderId)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    return _dlFolderLocalService.getDLFolder(folderId);
174            }
175    
176            public com.liferay.portal.model.PersistedModel getPersistedModel(
177                    java.io.Serializable primaryKeyObj)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _dlFolderLocalService.getPersistedModel(primaryKeyObj);
181            }
182    
183            /**
184            * Returns the document library folder with the UUID in the group.
185            *
186            * @param uuid the UUID of document library folder
187            * @param groupId the group id of the document library folder
188            * @return the document library folder
189            * @throws PortalException if a document library folder with the UUID in the group could not be found
190            * @throws SystemException if a system exception occurred
191            */
192            public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndGroupId(
193                    java.lang.String uuid, long groupId)
194                    throws com.liferay.portal.kernel.exception.PortalException,
195                            com.liferay.portal.kernel.exception.SystemException {
196                    return _dlFolderLocalService.getDLFolderByUuidAndGroupId(uuid, groupId);
197            }
198    
199            /**
200            * Returns a range of all the document library folders.
201            *
202            * <p>
203            * 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.
204            * </p>
205            *
206            * @param start the lower bound of the range of document library folders
207            * @param end the upper bound of the range of document library folders (not inclusive)
208            * @return the range of document library folders
209            * @throws SystemException if a system exception occurred
210            */
211            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
212                    int start, int end)
213                    throws com.liferay.portal.kernel.exception.SystemException {
214                    return _dlFolderLocalService.getDLFolders(start, end);
215            }
216    
217            /**
218            * Returns the number of document library folders.
219            *
220            * @return the number of document library folders
221            * @throws SystemException if a system exception occurred
222            */
223            public int getDLFoldersCount()
224                    throws com.liferay.portal.kernel.exception.SystemException {
225                    return _dlFolderLocalService.getDLFoldersCount();
226            }
227    
228            /**
229            * Updates the document library folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
230            *
231            * @param dlFolder the document library folder
232            * @return the document library folder that was updated
233            * @throws SystemException if a system exception occurred
234            */
235            public com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
236                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
237                    throws com.liferay.portal.kernel.exception.SystemException {
238                    return _dlFolderLocalService.updateDLFolder(dlFolder);
239            }
240    
241            /**
242            * Updates the document library folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
243            *
244            * @param dlFolder the document library folder
245            * @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.
246            * @return the document library folder that was updated
247            * @throws SystemException if a system exception occurred
248            */
249            public com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
250                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
251                    boolean merge)
252                    throws com.liferay.portal.kernel.exception.SystemException {
253                    return _dlFolderLocalService.updateDLFolder(dlFolder, merge);
254            }
255    
256            /**
257            * Returns the Spring bean ID for this bean.
258            *
259            * @return the Spring bean ID for this bean
260            */
261            public java.lang.String getBeanIdentifier() {
262                    return _dlFolderLocalService.getBeanIdentifier();
263            }
264    
265            /**
266            * Sets the Spring bean ID for this bean.
267            *
268            * @param beanIdentifier the Spring bean ID for this bean
269            */
270            public void setBeanIdentifier(java.lang.String beanIdentifier) {
271                    _dlFolderLocalService.setBeanIdentifier(beanIdentifier);
272            }
273    
274            public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
275                    long userId, long groupId, long repositoryId, boolean mountPoint,
276                    long parentFolderId, java.lang.String name,
277                    java.lang.String description,
278                    com.liferay.portal.service.ServiceContext serviceContext)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    return _dlFolderLocalService.addFolder(userId, groupId, repositoryId,
282                            mountPoint, parentFolderId, name, description, serviceContext);
283            }
284    
285            public void deleteAll(long groupId)
286                    throws com.liferay.portal.kernel.exception.PortalException,
287                            com.liferay.portal.kernel.exception.SystemException {
288                    _dlFolderLocalService.deleteAll(groupId);
289            }
290    
291            public void deleteFolder(long folderId)
292                    throws com.liferay.portal.kernel.exception.PortalException,
293                            com.liferay.portal.kernel.exception.SystemException {
294                    _dlFolderLocalService.deleteFolder(folderId);
295            }
296    
297            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
298                    long companyId, int start, int end)
299                    throws com.liferay.portal.kernel.exception.SystemException {
300                    return _dlFolderLocalService.getCompanyFolders(companyId, start, end);
301            }
302    
303            public int getCompanyFoldersCount(long companyId)
304                    throws com.liferay.portal.kernel.exception.SystemException {
305                    return _dlFolderLocalService.getCompanyFoldersCount(companyId);
306            }
307    
308            public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
309                    long groupId, long folderId, int status, int start, int end)
310                    throws com.liferay.portal.kernel.exception.SystemException {
311                    return _dlFolderLocalService.getFileEntriesAndFileShortcuts(groupId,
312                            folderId, status, start, end);
313            }
314    
315            public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId,
316                    int status) throws com.liferay.portal.kernel.exception.SystemException {
317                    return _dlFolderLocalService.getFileEntriesAndFileShortcutsCount(groupId,
318                            folderId, status);
319            }
320    
321            public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
322                    long folderId)
323                    throws com.liferay.portal.kernel.exception.PortalException,
324                            com.liferay.portal.kernel.exception.SystemException {
325                    return _dlFolderLocalService.getFolder(folderId);
326            }
327    
328            public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
329                    long groupId, long parentFolderId, java.lang.String name)
330                    throws com.liferay.portal.kernel.exception.PortalException,
331                            com.liferay.portal.kernel.exception.SystemException {
332                    return _dlFolderLocalService.getFolder(groupId, parentFolderId, name);
333            }
334    
335            public long getFolderId(long companyId, long folderId)
336                    throws com.liferay.portal.kernel.exception.SystemException {
337                    return _dlFolderLocalService.getFolderId(companyId, folderId);
338            }
339    
340            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
341                    long groupId, long parentFolderId)
342                    throws com.liferay.portal.kernel.exception.SystemException {
343                    return _dlFolderLocalService.getFolders(groupId, parentFolderId);
344            }
345    
346            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
347                    long groupId, long parentFolderId, boolean includeMountfolders)
348                    throws com.liferay.portal.kernel.exception.SystemException {
349                    return _dlFolderLocalService.getFolders(groupId, parentFolderId,
350                            includeMountfolders);
351            }
352    
353            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
354                    long groupId, long parentFolderId, boolean includeMountfolders,
355                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    return _dlFolderLocalService.getFolders(groupId, parentFolderId,
358                            includeMountfolders, start, end, obc);
359            }
360    
361            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
362                    long groupId, long parentFolderId, int start, int end,
363                    com.liferay.portal.kernel.util.OrderByComparator obc)
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    return _dlFolderLocalService.getFolders(groupId, parentFolderId, start,
366                            end, obc);
367            }
368    
369            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
370                    long groupId, long folderId, int status, boolean includeMountFolders,
371                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
372                    throws com.liferay.portal.kernel.exception.SystemException {
373                    return _dlFolderLocalService.getFoldersAndFileEntriesAndFileShortcuts(groupId,
374                            folderId, status, includeMountFolders, start, end, obc);
375            }
376    
377            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
378                    long groupId, long folderId, int status, java.lang.String[] mimeTypes,
379                    boolean includeMountFolders, int start, int end,
380                    com.liferay.portal.kernel.util.OrderByComparator obc)
381                    throws com.liferay.portal.kernel.exception.SystemException {
382                    return _dlFolderLocalService.getFoldersAndFileEntriesAndFileShortcuts(groupId,
383                            folderId, status, mimeTypes, includeMountFolders, start, end, obc);
384            }
385    
386            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
387                    long folderId, int status, boolean includeMountFolders)
388                    throws com.liferay.portal.kernel.exception.SystemException {
389                    return _dlFolderLocalService.getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
390                            folderId, status, includeMountFolders);
391            }
392    
393            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
394                    long folderId, int status, java.lang.String[] mimeTypes,
395                    boolean includeMountFolders)
396                    throws com.liferay.portal.kernel.exception.SystemException {
397                    return _dlFolderLocalService.getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
398                            folderId, status, mimeTypes, includeMountFolders);
399            }
400    
401            public int getFoldersCount(long groupId, long parentFolderId)
402                    throws com.liferay.portal.kernel.exception.SystemException {
403                    return _dlFolderLocalService.getFoldersCount(groupId, parentFolderId);
404            }
405    
406            public int getFoldersCount(long groupId, long parentFolderId,
407                    boolean includeMountfolders)
408                    throws com.liferay.portal.kernel.exception.SystemException {
409                    return _dlFolderLocalService.getFoldersCount(groupId, parentFolderId,
410                            includeMountfolders);
411            }
412    
413            public int getFoldersFileEntriesCount(long groupId,
414                    java.util.List<java.lang.Long> folderIds, int status)
415                    throws com.liferay.portal.kernel.exception.SystemException {
416                    return _dlFolderLocalService.getFoldersFileEntriesCount(groupId,
417                            folderIds, status);
418            }
419    
420            public com.liferay.portlet.documentlibrary.model.DLFolder getMountFolder(
421                    long repositoryId)
422                    throws com.liferay.portal.kernel.exception.PortalException,
423                            com.liferay.portal.kernel.exception.SystemException {
424                    return _dlFolderLocalService.getMountFolder(repositoryId);
425            }
426    
427            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
428                    long groupId, long parentFolderId, int start, int end,
429                    com.liferay.portal.kernel.util.OrderByComparator obc)
430                    throws com.liferay.portal.kernel.exception.SystemException {
431                    return _dlFolderLocalService.getMountFolders(groupId, parentFolderId,
432                            start, end, obc);
433            }
434    
435            public int getMountFoldersCount(long groupId, long parentFolderId)
436                    throws com.liferay.portal.kernel.exception.SystemException {
437                    return _dlFolderLocalService.getMountFoldersCount(groupId,
438                            parentFolderId);
439            }
440    
441            public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
442                    long groupId, long folderId)
443                    throws com.liferay.portal.kernel.exception.SystemException {
444                    _dlFolderLocalService.getSubfolderIds(folderIds, groupId, folderId);
445            }
446    
447            public com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
448                    long folderId, long parentFolderId,
449                    com.liferay.portal.service.ServiceContext serviceContext)
450                    throws com.liferay.portal.kernel.exception.PortalException,
451                            com.liferay.portal.kernel.exception.SystemException {
452                    return _dlFolderLocalService.moveFolder(folderId, parentFolderId,
453                            serviceContext);
454            }
455    
456            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
457                    long folderId, long parentFolderId, java.lang.String name,
458                    java.lang.String description, long defaultFileEntryTypeId,
459                    java.util.List<java.lang.Long> fileEntryTypeIds,
460                    boolean overrideFileEntryTypes,
461                    com.liferay.portal.service.ServiceContext serviceContext)
462                    throws com.liferay.portal.kernel.exception.PortalException,
463                            com.liferay.portal.kernel.exception.SystemException {
464                    return _dlFolderLocalService.updateFolder(folderId, parentFolderId,
465                            name, description, defaultFileEntryTypeId, fileEntryTypeIds,
466                            overrideFileEntryTypes, serviceContext);
467            }
468    
469            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
470                    long folderId, java.lang.String name, java.lang.String description,
471                    long defaultFileEntryTypeId,
472                    java.util.List<java.lang.Long> fileEntryTypeIds,
473                    boolean overrideFileEntryTypes,
474                    com.liferay.portal.service.ServiceContext serviceContext)
475                    throws com.liferay.portal.kernel.exception.PortalException,
476                            com.liferay.portal.kernel.exception.SystemException {
477                    return _dlFolderLocalService.updateFolder(folderId, name, description,
478                            defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
479                            serviceContext);
480            }
481    
482            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
483                    long folderId, long parentFolderId, java.lang.String name,
484                    java.lang.String description, long defaultFileEntryTypeId,
485                    java.util.List<java.lang.Long> fileEntryTypeIds,
486                    boolean overrideFileEntryTypes,
487                    com.liferay.portal.service.ServiceContext serviceContext)
488                    throws com.liferay.portal.kernel.exception.PortalException,
489                            com.liferay.portal.kernel.exception.SystemException {
490                    return _dlFolderLocalService.updateFolderAndFileEntryTypes(folderId,
491                            parentFolderId, name, description, defaultFileEntryTypeId,
492                            fileEntryTypeIds, overrideFileEntryTypes, serviceContext);
493            }
494    
495            public void updateLastPostDate(long folderId, java.util.Date lastPostDate)
496                    throws com.liferay.portal.kernel.exception.PortalException,
497                            com.liferay.portal.kernel.exception.SystemException {
498                    _dlFolderLocalService.updateLastPostDate(folderId, lastPostDate);
499            }
500    
501            /**
502             * @deprecated Renamed to {@link #getWrappedService}
503             */
504            public DLFolderLocalService getWrappedDLFolderLocalService() {
505                    return _dlFolderLocalService;
506            }
507    
508            /**
509             * @deprecated Renamed to {@link #setWrappedService}
510             */
511            public void setWrappedDLFolderLocalService(
512                    DLFolderLocalService dlFolderLocalService) {
513                    _dlFolderLocalService = dlFolderLocalService;
514            }
515    
516            public DLFolderLocalService getWrappedService() {
517                    return _dlFolderLocalService;
518            }
519    
520            public void setWrappedService(DLFolderLocalService dlFolderLocalService) {
521                    _dlFolderLocalService = dlFolderLocalService;
522            }
523    
524            private DLFolderLocalService _dlFolderLocalService;
525    }