001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link DLFolderService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see DLFolderService
026     * @generated
027     */
028    @ProviderType
029    public class DLFolderServiceWrapper implements DLFolderService,
030            ServiceWrapper<DLFolderService> {
031            public DLFolderServiceWrapper(DLFolderService dlFolderService) {
032                    _dlFolderService = dlFolderService;
033            }
034    
035            @Override
036            public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
037                    long groupId, long repositoryId, boolean mountPoint,
038                    long parentFolderId, java.lang.String name,
039                    java.lang.String description,
040                    com.liferay.portal.service.ServiceContext serviceContext)
041                    throws com.liferay.portal.kernel.exception.PortalException {
042                    return _dlFolderService.addFolder(groupId, repositoryId, mountPoint,
043                            parentFolderId, name, description, serviceContext);
044            }
045    
046            @Override
047            public void deleteFolder(long folderId)
048                    throws com.liferay.portal.kernel.exception.PortalException {
049                    _dlFolderService.deleteFolder(folderId);
050            }
051    
052            @Override
053            public void deleteFolder(long folderId, boolean includeTrashedEntries)
054                    throws com.liferay.portal.kernel.exception.PortalException {
055                    _dlFolderService.deleteFolder(folderId, includeTrashedEntries);
056            }
057    
058            @Override
059            public void deleteFolder(long groupId, long parentFolderId,
060                    java.lang.String name)
061                    throws com.liferay.portal.kernel.exception.PortalException {
062                    _dlFolderService.deleteFolder(groupId, parentFolderId, name);
063            }
064    
065            /**
066            * Returns the Spring bean ID for this bean.
067            *
068            * @return the Spring bean ID for this bean
069            */
070            @Override
071            public java.lang.String getBeanIdentifier() {
072                    return _dlFolderService.getBeanIdentifier();
073            }
074    
075            @Override
076            public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
077                    long groupId, long folderId, int status, int start, int end)
078                    throws com.liferay.portal.kernel.exception.PortalException {
079                    return _dlFolderService.getFileEntriesAndFileShortcuts(groupId,
080                            folderId, status, start, end);
081            }
082    
083            @Override
084            public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId,
085                    int status) throws com.liferay.portal.kernel.exception.PortalException {
086                    return _dlFolderService.getFileEntriesAndFileShortcutsCount(groupId,
087                            folderId, status);
088            }
089    
090            @Override
091            public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId,
092                    int status, java.lang.String[] mimeTypes)
093                    throws com.liferay.portal.kernel.exception.PortalException {
094                    return _dlFolderService.getFileEntriesAndFileShortcutsCount(groupId,
095                            folderId, status, mimeTypes);
096            }
097    
098            @Override
099            public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
100                    long folderId)
101                    throws com.liferay.portal.kernel.exception.PortalException {
102                    return _dlFolderService.getFolder(folderId);
103            }
104    
105            @Override
106            public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
107                    long groupId, long parentFolderId, java.lang.String name)
108                    throws com.liferay.portal.kernel.exception.PortalException {
109                    return _dlFolderService.getFolder(groupId, parentFolderId, name);
110            }
111    
112            @Override
113            public java.util.List<java.lang.Long> getFolderIds(long groupId,
114                    long folderId)
115                    throws com.liferay.portal.kernel.exception.PortalException {
116                    return _dlFolderService.getFolderIds(groupId, folderId);
117            }
118    
119            @Override
120            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
121                    long groupId, long parentFolderId, int start, int end,
122                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc)
123                    throws com.liferay.portal.kernel.exception.PortalException {
124                    return _dlFolderService.getFolders(groupId, parentFolderId, start, end,
125                            obc);
126            }
127    
128            @Override
129            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
130                    long groupId, long parentFolderId, int status,
131                    boolean includeMountfolders, int start, int end,
132                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc)
133                    throws com.liferay.portal.kernel.exception.PortalException {
134                    return _dlFolderService.getFolders(groupId, parentFolderId, status,
135                            includeMountfolders, start, end, obc);
136            }
137    
138            @Override
139            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
140                    long groupId, long folderId, int status, boolean includeMountFolders,
141                    int start, int end,
142                    com.liferay.portal.kernel.util.OrderByComparator<?> obc)
143                    throws com.liferay.portal.kernel.exception.PortalException {
144                    return _dlFolderService.getFoldersAndFileEntriesAndFileShortcuts(groupId,
145                            folderId, status, includeMountFolders, start, end, obc);
146            }
147    
148            @Override
149            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
150                    long groupId, long folderId, int status, java.lang.String[] mimeTypes,
151                    boolean includeMountFolders, int start, int end,
152                    com.liferay.portal.kernel.util.OrderByComparator<?> obc)
153                    throws com.liferay.portal.kernel.exception.PortalException {
154                    return _dlFolderService.getFoldersAndFileEntriesAndFileShortcuts(groupId,
155                            folderId, status, mimeTypes, includeMountFolders, start, end, obc);
156            }
157    
158            @Override
159            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
160                    long folderId, int status, boolean includeMountFolders)
161                    throws com.liferay.portal.kernel.exception.PortalException {
162                    return _dlFolderService.getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
163                            folderId, status, includeMountFolders);
164            }
165    
166            @Override
167            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
168                    long folderId, int status, java.lang.String[] mimeTypes,
169                    boolean includeMountFolders)
170                    throws com.liferay.portal.kernel.exception.PortalException {
171                    return _dlFolderService.getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
172                            folderId, status, mimeTypes, includeMountFolders);
173            }
174    
175            @Override
176            public int getFoldersCount(long groupId, long parentFolderId)
177                    throws com.liferay.portal.kernel.exception.PortalException {
178                    return _dlFolderService.getFoldersCount(groupId, parentFolderId);
179            }
180    
181            @Override
182            public int getFoldersCount(long groupId, long parentFolderId, int status,
183                    boolean includeMountfolders)
184                    throws com.liferay.portal.kernel.exception.PortalException {
185                    return _dlFolderService.getFoldersCount(groupId, parentFolderId,
186                            status, includeMountfolders);
187            }
188    
189            @Override
190            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
191                    long groupId, long parentFolderId, int start, int end,
192                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc)
193                    throws com.liferay.portal.kernel.exception.PortalException {
194                    return _dlFolderService.getMountFolders(groupId, parentFolderId, start,
195                            end, obc);
196            }
197    
198            @Override
199            public int getMountFoldersCount(long groupId, long parentFolderId)
200                    throws com.liferay.portal.kernel.exception.PortalException {
201                    return _dlFolderService.getMountFoldersCount(groupId, parentFolderId);
202            }
203    
204            /**
205            * @deprecated As of 7.0.0, replaced by {@link #getSubfolderIds(List, long,
206            long, boolean)}
207            */
208            @Deprecated
209            @Override
210            public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
211                    long groupId, long folderId)
212                    throws com.liferay.portal.kernel.exception.PortalException {
213                    _dlFolderService.getSubfolderIds(folderIds, groupId, folderId);
214            }
215    
216            @Override
217            public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
218                    long groupId, long folderId, boolean recurse)
219                    throws com.liferay.portal.kernel.exception.PortalException {
220                    _dlFolderService.getSubfolderIds(folderIds, groupId, folderId, recurse);
221            }
222    
223            @Override
224            public java.util.List<java.lang.Long> getSubfolderIds(long groupId,
225                    long folderId, boolean recurse)
226                    throws com.liferay.portal.kernel.exception.PortalException {
227                    return _dlFolderService.getSubfolderIds(groupId, folderId, recurse);
228            }
229    
230            @Override
231            public boolean hasFolderLock(long folderId)
232                    throws com.liferay.portal.kernel.exception.PortalException {
233                    return _dlFolderService.hasFolderLock(folderId);
234            }
235    
236            @Override
237            public boolean hasInheritableLock(long folderId)
238                    throws com.liferay.portal.kernel.exception.PortalException {
239                    return _dlFolderService.hasInheritableLock(folderId);
240            }
241    
242            @Override
243            public boolean isFolderLocked(long folderId) {
244                    return _dlFolderService.isFolderLocked(folderId);
245            }
246    
247            @Override
248            public com.liferay.portal.model.Lock lockFolder(long folderId)
249                    throws com.liferay.portal.kernel.exception.PortalException {
250                    return _dlFolderService.lockFolder(folderId);
251            }
252    
253            @Override
254            public com.liferay.portal.model.Lock lockFolder(long folderId,
255                    java.lang.String owner, boolean inheritable, long expirationTime)
256                    throws com.liferay.portal.kernel.exception.PortalException {
257                    return _dlFolderService.lockFolder(folderId, owner, inheritable,
258                            expirationTime);
259            }
260    
261            @Override
262            public com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
263                    long folderId, long parentFolderId,
264                    com.liferay.portal.service.ServiceContext serviceContext)
265                    throws com.liferay.portal.kernel.exception.PortalException {
266                    return _dlFolderService.moveFolder(folderId, parentFolderId,
267                            serviceContext);
268            }
269    
270            @Override
271            public com.liferay.portal.model.Lock refreshFolderLock(
272                    java.lang.String lockUuid, long companyId, long expirationTime)
273                    throws com.liferay.portal.kernel.exception.PortalException {
274                    return _dlFolderService.refreshFolderLock(lockUuid, companyId,
275                            expirationTime);
276            }
277    
278            /**
279            * Sets the Spring bean ID for this bean.
280            *
281            * @param beanIdentifier the Spring bean ID for this bean
282            */
283            @Override
284            public void setBeanIdentifier(java.lang.String beanIdentifier) {
285                    _dlFolderService.setBeanIdentifier(beanIdentifier);
286            }
287    
288            @Override
289            public void unlockFolder(long folderId, java.lang.String lockUuid)
290                    throws com.liferay.portal.kernel.exception.PortalException {
291                    _dlFolderService.unlockFolder(folderId, lockUuid);
292            }
293    
294            @Override
295            public void unlockFolder(long groupId, long parentFolderId,
296                    java.lang.String name, java.lang.String lockUuid)
297                    throws com.liferay.portal.kernel.exception.PortalException {
298                    _dlFolderService.unlockFolder(groupId, parentFolderId, name, lockUuid);
299            }
300    
301            /**
302            * @deprecated As of 7.0.0, replaced by more general {@link
303            #updateFolder(long, String, String, long, List, int,
304            ServiceContext)}
305            */
306            @Deprecated
307            @Override
308            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
309                    long folderId, java.lang.String name, java.lang.String description,
310                    long defaultFileEntryTypeId,
311                    java.util.List<java.lang.Long> fileEntryTypeIds,
312                    boolean overrideFileEntryTypes,
313                    com.liferay.portal.service.ServiceContext serviceContext)
314                    throws com.liferay.portal.kernel.exception.PortalException {
315                    return _dlFolderService.updateFolder(folderId, name, description,
316                            defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
317                            serviceContext);
318            }
319    
320            @Override
321            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
322                    long folderId, java.lang.String name, java.lang.String description,
323                    long defaultFileEntryTypeId,
324                    java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
325                    com.liferay.portal.service.ServiceContext serviceContext)
326                    throws com.liferay.portal.kernel.exception.PortalException {
327                    return _dlFolderService.updateFolder(folderId, name, description,
328                            defaultFileEntryTypeId, fileEntryTypeIds, restrictionType,
329                            serviceContext);
330            }
331    
332            @Override
333            public boolean verifyInheritableLock(long folderId,
334                    java.lang.String lockUuid)
335                    throws com.liferay.portal.kernel.exception.PortalException {
336                    return _dlFolderService.verifyInheritableLock(folderId, lockUuid);
337            }
338    
339            /**
340             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
341             */
342            @Deprecated
343            public DLFolderService getWrappedDLFolderService() {
344                    return _dlFolderService;
345            }
346    
347            /**
348             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
349             */
350            @Deprecated
351            public void setWrappedDLFolderService(DLFolderService dlFolderService) {
352                    _dlFolderService = dlFolderService;
353            }
354    
355            @Override
356            public DLFolderService getWrappedService() {
357                    return _dlFolderService;
358            }
359    
360            @Override
361            public void setWrappedService(DLFolderService dlFolderService) {
362                    _dlFolderService = dlFolderService;
363            }
364    
365            private DLFolderService _dlFolderService;
366    }