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, java.lang.String[] mimeTypes,
141                    boolean includeMountFolders,
142                    com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition)
143                    throws com.liferay.portal.kernel.exception.PortalException {
144                    return _dlFolderService.getFoldersAndFileEntriesAndFileShortcuts(groupId,
145                            folderId, mimeTypes, includeMountFolders, queryDefinition);
146            }
147    
148            @Override
149            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
150                    long groupId, long folderId, int status, boolean includeMountFolders,
151                    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, includeMountFolders, start, end, obc);
156            }
157    
158            @Override
159            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
160                    long groupId, long folderId, int status, java.lang.String[] mimeTypes,
161                    boolean includeMountFolders, int start, int end,
162                    com.liferay.portal.kernel.util.OrderByComparator<?> obc)
163                    throws com.liferay.portal.kernel.exception.PortalException {
164                    return _dlFolderService.getFoldersAndFileEntriesAndFileShortcuts(groupId,
165                            folderId, status, mimeTypes, includeMountFolders, start, end, obc);
166            }
167    
168            @Override
169            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
170                    long folderId, int status, boolean includeMountFolders)
171                    throws com.liferay.portal.kernel.exception.PortalException {
172                    return _dlFolderService.getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
173                            folderId, status, includeMountFolders);
174            }
175    
176            @Override
177            public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
178                    long folderId, int status, java.lang.String[] mimeTypes,
179                    boolean includeMountFolders)
180                    throws com.liferay.portal.kernel.exception.PortalException {
181                    return _dlFolderService.getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
182                            folderId, status, mimeTypes, includeMountFolders);
183            }
184    
185            @Override
186            public int getFoldersCount(long groupId, long parentFolderId)
187                    throws com.liferay.portal.kernel.exception.PortalException {
188                    return _dlFolderService.getFoldersCount(groupId, parentFolderId);
189            }
190    
191            @Override
192            public int getFoldersCount(long groupId, long parentFolderId, int status,
193                    boolean includeMountfolders)
194                    throws com.liferay.portal.kernel.exception.PortalException {
195                    return _dlFolderService.getFoldersCount(groupId, parentFolderId,
196                            status, includeMountfolders);
197            }
198    
199            @Override
200            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
201                    long groupId, long parentFolderId, int start, int end,
202                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc)
203                    throws com.liferay.portal.kernel.exception.PortalException {
204                    return _dlFolderService.getMountFolders(groupId, parentFolderId, start,
205                            end, obc);
206            }
207    
208            @Override
209            public int getMountFoldersCount(long groupId, long parentFolderId)
210                    throws com.liferay.portal.kernel.exception.PortalException {
211                    return _dlFolderService.getMountFoldersCount(groupId, parentFolderId);
212            }
213    
214            /**
215            * @deprecated As of 7.0.0, replaced by {@link #getSubfolderIds(List, long,
216            long, boolean)}
217            */
218            @Deprecated
219            @Override
220            public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
221                    long groupId, long folderId)
222                    throws com.liferay.portal.kernel.exception.PortalException {
223                    _dlFolderService.getSubfolderIds(folderIds, groupId, folderId);
224            }
225    
226            @Override
227            public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
228                    long groupId, long folderId, boolean recurse)
229                    throws com.liferay.portal.kernel.exception.PortalException {
230                    _dlFolderService.getSubfolderIds(folderIds, groupId, folderId, recurse);
231            }
232    
233            @Override
234            public java.util.List<java.lang.Long> getSubfolderIds(long groupId,
235                    long folderId, boolean recurse)
236                    throws com.liferay.portal.kernel.exception.PortalException {
237                    return _dlFolderService.getSubfolderIds(groupId, folderId, recurse);
238            }
239    
240            @Override
241            public boolean hasFolderLock(long folderId)
242                    throws com.liferay.portal.kernel.exception.PortalException {
243                    return _dlFolderService.hasFolderLock(folderId);
244            }
245    
246            @Override
247            public boolean hasInheritableLock(long folderId)
248                    throws com.liferay.portal.kernel.exception.PortalException {
249                    return _dlFolderService.hasInheritableLock(folderId);
250            }
251    
252            @Override
253            public boolean isFolderLocked(long folderId) {
254                    return _dlFolderService.isFolderLocked(folderId);
255            }
256    
257            @Override
258            public com.liferay.portal.kernel.lock.Lock lockFolder(long folderId)
259                    throws com.liferay.portal.kernel.exception.PortalException {
260                    return _dlFolderService.lockFolder(folderId);
261            }
262    
263            @Override
264            public com.liferay.portal.kernel.lock.Lock lockFolder(long folderId,
265                    java.lang.String owner, boolean inheritable, long expirationTime)
266                    throws com.liferay.portal.kernel.exception.PortalException {
267                    return _dlFolderService.lockFolder(folderId, owner, inheritable,
268                            expirationTime);
269            }
270    
271            @Override
272            public com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
273                    long folderId, long parentFolderId,
274                    com.liferay.portal.service.ServiceContext serviceContext)
275                    throws com.liferay.portal.kernel.exception.PortalException {
276                    return _dlFolderService.moveFolder(folderId, parentFolderId,
277                            serviceContext);
278            }
279    
280            @Override
281            public com.liferay.portal.kernel.lock.Lock refreshFolderLock(
282                    java.lang.String lockUuid, long companyId, long expirationTime)
283                    throws com.liferay.portal.kernel.exception.PortalException {
284                    return _dlFolderService.refreshFolderLock(lockUuid, companyId,
285                            expirationTime);
286            }
287    
288            /**
289            * Sets the Spring bean ID for this bean.
290            *
291            * @param beanIdentifier the Spring bean ID for this bean
292            */
293            @Override
294            public void setBeanIdentifier(java.lang.String beanIdentifier) {
295                    _dlFolderService.setBeanIdentifier(beanIdentifier);
296            }
297    
298            @Override
299            public void unlockFolder(long folderId, java.lang.String lockUuid)
300                    throws com.liferay.portal.kernel.exception.PortalException {
301                    _dlFolderService.unlockFolder(folderId, lockUuid);
302            }
303    
304            @Override
305            public void unlockFolder(long groupId, long parentFolderId,
306                    java.lang.String name, java.lang.String lockUuid)
307                    throws com.liferay.portal.kernel.exception.PortalException {
308                    _dlFolderService.unlockFolder(groupId, parentFolderId, name, lockUuid);
309            }
310    
311            /**
312            * @deprecated As of 7.0.0, replaced by more general {@link
313            #updateFolder(long, String, String, long, List, int,
314            ServiceContext)}
315            */
316            @Deprecated
317            @Override
318            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
319                    long folderId, java.lang.String name, java.lang.String description,
320                    long defaultFileEntryTypeId,
321                    java.util.List<java.lang.Long> fileEntryTypeIds,
322                    boolean overrideFileEntryTypes,
323                    com.liferay.portal.service.ServiceContext serviceContext)
324                    throws com.liferay.portal.kernel.exception.PortalException {
325                    return _dlFolderService.updateFolder(folderId, name, description,
326                            defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
327                            serviceContext);
328            }
329    
330            @Override
331            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
332                    long folderId, java.lang.String name, java.lang.String description,
333                    long defaultFileEntryTypeId,
334                    java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
335                    com.liferay.portal.service.ServiceContext serviceContext)
336                    throws com.liferay.portal.kernel.exception.PortalException {
337                    return _dlFolderService.updateFolder(folderId, name, description,
338                            defaultFileEntryTypeId, fileEntryTypeIds, restrictionType,
339                            serviceContext);
340            }
341    
342            @Override
343            public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
344                    long folderId, long parentFolderId, java.lang.String name,
345                    java.lang.String description, long defaultFileEntryTypeId,
346                    java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
347                    com.liferay.portal.service.ServiceContext serviceContext)
348                    throws com.liferay.portal.kernel.exception.PortalException {
349                    return _dlFolderService.updateFolder(folderId, parentFolderId, name,
350                            description, defaultFileEntryTypeId, fileEntryTypeIds,
351                            restrictionType, serviceContext);
352            }
353    
354            @Override
355            public boolean verifyInheritableLock(long folderId,
356                    java.lang.String lockUuid)
357                    throws com.liferay.portal.kernel.exception.PortalException {
358                    return _dlFolderService.verifyInheritableLock(folderId, lockUuid);
359            }
360    
361            /**
362             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
363             */
364            @Deprecated
365            public DLFolderService getWrappedDLFolderService() {
366                    return _dlFolderService;
367            }
368    
369            /**
370             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
371             */
372            @Deprecated
373            public void setWrappedDLFolderService(DLFolderService dlFolderService) {
374                    _dlFolderService = dlFolderService;
375            }
376    
377            @Override
378            public DLFolderService getWrappedService() {
379                    return _dlFolderService;
380            }
381    
382            @Override
383            public void setWrappedService(DLFolderService dlFolderService) {
384                    _dlFolderService = dlFolderService;
385            }
386    
387            private DLFolderService _dlFolderService;
388    }