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