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