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            @Override
066            public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
067                    long groupId, long folderId, int status, int start, int end)
068                    throws com.liferay.portal.kernel.exception.PortalException {
069                    return _dlFolderService.getFileEntriesAndFileShortcuts(groupId,
070                            folderId, status, start, end);
071            }
072    
073            @Override
074            public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId,
075                    int status) throws com.liferay.portal.kernel.exception.PortalException {
076                    return _dlFolderService.getFileEntriesAndFileShortcutsCount(groupId,
077                            folderId, status);
078            }
079    
080            @Override
081            public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId,
082                    int status, java.lang.String[] mimeTypes)
083                    throws com.liferay.portal.kernel.exception.PortalException {
084                    return _dlFolderService.getFileEntriesAndFileShortcutsCount(groupId,
085                            folderId, status, mimeTypes);
086            }
087    
088            @Override
089            public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
090                    long folderId)
091                    throws com.liferay.portal.kernel.exception.PortalException {
092                    return _dlFolderService.getFolder(folderId);
093            }
094    
095            @Override
096            public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
097                    long groupId, long parentFolderId, java.lang.String name)
098                    throws com.liferay.portal.kernel.exception.PortalException {
099                    return _dlFolderService.getFolder(groupId, parentFolderId, name);
100            }
101    
102            @Override
103            public java.util.List<java.lang.Long> getFolderIds(long groupId,
104                    long folderId)
105                    throws com.liferay.portal.kernel.exception.PortalException {
106                    return _dlFolderService.getFolderIds(groupId, folderId);
107            }
108    
109            @Override
110            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
111                    long groupId, long parentFolderId, int start, int end,
112                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc)
113                    throws com.liferay.portal.kernel.exception.PortalException {
114                    return _dlFolderService.getFolders(groupId, parentFolderId, start, end,
115                            obc);
116            }
117    
118            @Override
119            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
120                    long groupId, long parentFolderId, int status,
121                    boolean includeMountfolders, 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, status,
125                            includeMountfolders, start, end, obc);
126            }
127    
128            @Override
129            public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
130                    long groupId, long folderId, java.lang.String[] mimeTypes,
131                    boolean includeMountFolders,
132                    com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition)
133                    throws com.liferay.portal.kernel.exception.PortalException {
134                    return _dlFolderService.getFoldersAndFileEntriesAndFileShortcuts(groupId,
135                            folderId, mimeTypes, includeMountFolders, queryDefinition);
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            * Returns the OSGi service identifier.
206            *
207            * @return the OSGi service identifier
208            */
209            @Override
210            public java.lang.String getOSGiServiceIdentifier() {
211                    return _dlFolderService.getOSGiServiceIdentifier();
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            @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 com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
334                    long folderId, long parentFolderId, java.lang.String name,
335                    java.lang.String description, long defaultFileEntryTypeId,
336                    java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
337                    com.liferay.portal.service.ServiceContext serviceContext)
338                    throws com.liferay.portal.kernel.exception.PortalException {
339                    return _dlFolderService.updateFolder(folderId, parentFolderId, name,
340                            description, defaultFileEntryTypeId, fileEntryTypeIds,
341                            restrictionType, serviceContext);
342            }
343    
344            @Override
345            public boolean verifyInheritableLock(long folderId,
346                    java.lang.String lockUuid)
347                    throws com.liferay.portal.kernel.exception.PortalException {
348                    return _dlFolderService.verifyInheritableLock(folderId, lockUuid);
349            }
350    
351            @Override
352            public DLFolderService getWrappedService() {
353                    return _dlFolderService;
354            }
355    
356            @Override
357            public void setWrappedService(DLFolderService dlFolderService) {
358                    _dlFolderService = dlFolderService;
359            }
360    
361            private DLFolderService _dlFolderService;
362    }