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 DLFileEntryService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see DLFileEntryService
026     * @generated
027     */
028    @ProviderType
029    public class DLFileEntryServiceWrapper implements DLFileEntryService,
030            ServiceWrapper<DLFileEntryService> {
031            public DLFileEntryServiceWrapper(DLFileEntryService dlFileEntryService) {
032                    _dlFileEntryService = dlFileEntryService;
033            }
034    
035            @Override
036            public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
037                    long groupId, long repositoryId, long folderId,
038                    java.lang.String sourceFileName, java.lang.String mimeType,
039                    java.lang.String title, java.lang.String description,
040                    java.lang.String changeLog, long fileEntryTypeId,
041                    java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.DDMFormValues> ddmFormValuesMap,
042                    java.io.File file, java.io.InputStream is, long size,
043                    com.liferay.portal.service.ServiceContext serviceContext)
044                    throws com.liferay.portal.kernel.exception.PortalException {
045                    return _dlFileEntryService.addFileEntry(groupId, repositoryId,
046                            folderId, sourceFileName, mimeType, title, description, changeLog,
047                            fileEntryTypeId, ddmFormValuesMap, file, is, size, serviceContext);
048            }
049    
050            @Override
051            public com.liferay.portlet.documentlibrary.model.DLFileVersion cancelCheckOut(
052                    long fileEntryId)
053                    throws com.liferay.portal.kernel.exception.PortalException {
054                    return _dlFileEntryService.cancelCheckOut(fileEntryId);
055            }
056    
057            /**
058            * @deprecated As of 6.2.0, replaced by {@link #checkInFileEntry(long,
059            String, ServiceContext)}
060            */
061            @Deprecated
062            @Override
063            public void checkInFileEntry(long fileEntryId, java.lang.String lockUuid)
064                    throws com.liferay.portal.kernel.exception.PortalException {
065                    _dlFileEntryService.checkInFileEntry(fileEntryId, lockUuid);
066            }
067    
068            @Override
069            public void checkInFileEntry(long fileEntryId, java.lang.String lockUuid,
070                    com.liferay.portal.service.ServiceContext serviceContext)
071                    throws com.liferay.portal.kernel.exception.PortalException {
072                    _dlFileEntryService.checkInFileEntry(fileEntryId, lockUuid,
073                            serviceContext);
074            }
075    
076            @Override
077            public void checkInFileEntry(long fileEntryId, boolean major,
078                    java.lang.String changeLog,
079                    com.liferay.portal.service.ServiceContext serviceContext)
080                    throws com.liferay.portal.kernel.exception.PortalException {
081                    _dlFileEntryService.checkInFileEntry(fileEntryId, major, changeLog,
082                            serviceContext);
083            }
084    
085            /**
086            * @deprecated As of 6.2.0, replaced by {@link #checkOutFileEntry(long,
087            ServiceContext)}
088            */
089            @Deprecated
090            @Override
091            public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
092                    long fileEntryId)
093                    throws com.liferay.portal.kernel.exception.PortalException {
094                    return _dlFileEntryService.checkOutFileEntry(fileEntryId);
095            }
096    
097            /**
098            * @deprecated As of 6.2.0, replaced by {@link #checkOutFileEntry(long,
099            String, long, ServiceContext)}
100            */
101            @Deprecated
102            @Override
103            public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
104                    long fileEntryId, java.lang.String owner, long expirationTime)
105                    throws com.liferay.portal.kernel.exception.PortalException {
106                    return _dlFileEntryService.checkOutFileEntry(fileEntryId, owner,
107                            expirationTime);
108            }
109    
110            @Override
111            public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
112                    long fileEntryId, java.lang.String owner, long expirationTime,
113                    com.liferay.portal.service.ServiceContext serviceContext)
114                    throws com.liferay.portal.kernel.exception.PortalException {
115                    return _dlFileEntryService.checkOutFileEntry(fileEntryId, owner,
116                            expirationTime, serviceContext);
117            }
118    
119            @Override
120            public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
121                    long fileEntryId,
122                    com.liferay.portal.service.ServiceContext serviceContext)
123                    throws com.liferay.portal.kernel.exception.PortalException {
124                    return _dlFileEntryService.checkOutFileEntry(fileEntryId, serviceContext);
125            }
126    
127            @Override
128            public com.liferay.portlet.documentlibrary.model.DLFileEntry copyFileEntry(
129                    long groupId, long repositoryId, long fileEntryId, long destFolderId,
130                    com.liferay.portal.service.ServiceContext serviceContext)
131                    throws com.liferay.portal.kernel.exception.PortalException {
132                    return _dlFileEntryService.copyFileEntry(groupId, repositoryId,
133                            fileEntryId, destFolderId, serviceContext);
134            }
135    
136            @Override
137            public void deleteFileEntry(long fileEntryId)
138                    throws com.liferay.portal.kernel.exception.PortalException {
139                    _dlFileEntryService.deleteFileEntry(fileEntryId);
140            }
141    
142            @Override
143            public void deleteFileEntry(long groupId, long folderId,
144                    java.lang.String title)
145                    throws com.liferay.portal.kernel.exception.PortalException {
146                    _dlFileEntryService.deleteFileEntry(groupId, folderId, title);
147            }
148    
149            @Override
150            public void deleteFileVersion(long fileEntryId, java.lang.String version)
151                    throws com.liferay.portal.kernel.exception.PortalException {
152                    _dlFileEntryService.deleteFileVersion(fileEntryId, version);
153            }
154    
155            @Override
156            public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByImageId(
157                    long imageId)
158                    throws com.liferay.portal.kernel.exception.PortalException {
159                    return _dlFileEntryService.fetchFileEntryByImageId(imageId);
160            }
161    
162            @Override
163            public java.io.InputStream getFileAsStream(long fileEntryId,
164                    java.lang.String version)
165                    throws com.liferay.portal.kernel.exception.PortalException {
166                    return _dlFileEntryService.getFileAsStream(fileEntryId, version);
167            }
168    
169            @Override
170            public java.io.InputStream getFileAsStream(long fileEntryId,
171                    java.lang.String version, boolean incrementCounter)
172                    throws com.liferay.portal.kernel.exception.PortalException {
173                    return _dlFileEntryService.getFileAsStream(fileEntryId, version,
174                            incrementCounter);
175            }
176    
177            @Override
178            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
179                    long groupId, long folderId, long fileEntryTypeId, int start, int end,
180                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc)
181                    throws com.liferay.portal.kernel.exception.PortalException {
182                    return _dlFileEntryService.getFileEntries(groupId, folderId,
183                            fileEntryTypeId, start, end, obc);
184            }
185    
186            @Override
187            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
188                    long groupId, long folderId, java.lang.String[] mimeTypes, int start,
189                    int end,
190                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc)
191                    throws com.liferay.portal.kernel.exception.PortalException {
192                    return _dlFileEntryService.getFileEntries(groupId, folderId, mimeTypes,
193                            start, end, obc);
194            }
195    
196            @Override
197            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
198                    long groupId, long folderId, int start, int end,
199                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc)
200                    throws com.liferay.portal.kernel.exception.PortalException {
201                    return _dlFileEntryService.getFileEntries(groupId, folderId, start,
202                            end, obc);
203            }
204    
205            @Override
206            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
207                    long groupId, long folderId, int status, int start, int end,
208                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc)
209                    throws com.liferay.portal.kernel.exception.PortalException {
210                    return _dlFileEntryService.getFileEntries(groupId, folderId, status,
211                            start, end, obc);
212            }
213    
214            @Override
215            public int getFileEntriesCount(long groupId, long folderId) {
216                    return _dlFileEntryService.getFileEntriesCount(groupId, folderId);
217            }
218    
219            @Override
220            public int getFileEntriesCount(long groupId, long folderId,
221                    long fileEntryTypeId) {
222                    return _dlFileEntryService.getFileEntriesCount(groupId, folderId,
223                            fileEntryTypeId);
224            }
225    
226            @Override
227            public int getFileEntriesCount(long groupId, long folderId,
228                    java.lang.String[] mimeTypes) {
229                    return _dlFileEntryService.getFileEntriesCount(groupId, folderId,
230                            mimeTypes);
231            }
232    
233            @Override
234            public int getFileEntriesCount(long groupId, long folderId, int status) {
235                    return _dlFileEntryService.getFileEntriesCount(groupId, folderId, status);
236            }
237    
238            @Override
239            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
240                    long fileEntryId)
241                    throws com.liferay.portal.kernel.exception.PortalException {
242                    return _dlFileEntryService.getFileEntry(fileEntryId);
243            }
244    
245            @Override
246            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
247                    long groupId, long folderId, java.lang.String title)
248                    throws com.liferay.portal.kernel.exception.PortalException {
249                    return _dlFileEntryService.getFileEntry(groupId, folderId, title);
250            }
251    
252            @Override
253            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
254                    java.lang.String uuid, long groupId)
255                    throws com.liferay.portal.kernel.exception.PortalException {
256                    return _dlFileEntryService.getFileEntryByUuidAndGroupId(uuid, groupId);
257            }
258    
259            @Override
260            public com.liferay.portal.kernel.lock.Lock getFileEntryLock(
261                    long fileEntryId) {
262                    return _dlFileEntryService.getFileEntryLock(fileEntryId);
263            }
264    
265            @Override
266            public int getFoldersFileEntriesCount(long groupId,
267                    java.util.List<java.lang.Long> folderIds, int status) {
268                    return _dlFileEntryService.getFoldersFileEntriesCount(groupId,
269                            folderIds, status);
270            }
271    
272            @Override
273            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
274                    long groupId, long userId, long repositoryId, long rootFolderId,
275                    java.lang.String[] mimeTypes, int status, int start, int end,
276                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc)
277                    throws com.liferay.portal.kernel.exception.PortalException {
278                    return _dlFileEntryService.getGroupFileEntries(groupId, userId,
279                            repositoryId, rootFolderId, mimeTypes, status, start, end, obc);
280            }
281    
282            @Override
283            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
284                    long groupId, long userId, long rootFolderId,
285                    java.lang.String[] mimeTypes, int status, int start, int end,
286                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc)
287                    throws com.liferay.portal.kernel.exception.PortalException {
288                    return _dlFileEntryService.getGroupFileEntries(groupId, userId,
289                            rootFolderId, mimeTypes, status, start, end, obc);
290            }
291    
292            @Override
293            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
294                    long groupId, long userId, long rootFolderId, int start, int end,
295                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc)
296                    throws com.liferay.portal.kernel.exception.PortalException {
297                    return _dlFileEntryService.getGroupFileEntries(groupId, userId,
298                            rootFolderId, start, end, obc);
299            }
300    
301            @Override
302            public int getGroupFileEntriesCount(long groupId, long userId,
303                    long repositoryId, long rootFolderId, java.lang.String[] mimeTypes,
304                    int status) throws com.liferay.portal.kernel.exception.PortalException {
305                    return _dlFileEntryService.getGroupFileEntriesCount(groupId, userId,
306                            repositoryId, rootFolderId, mimeTypes, status);
307            }
308    
309            @Override
310            public int getGroupFileEntriesCount(long groupId, long userId,
311                    long rootFolderId)
312                    throws com.liferay.portal.kernel.exception.PortalException {
313                    return _dlFileEntryService.getGroupFileEntriesCount(groupId, userId,
314                            rootFolderId);
315            }
316    
317            @Override
318            public int getGroupFileEntriesCount(long groupId, long userId,
319                    long rootFolderId, java.lang.String[] mimeTypes, int status)
320                    throws com.liferay.portal.kernel.exception.PortalException {
321                    return _dlFileEntryService.getGroupFileEntriesCount(groupId, userId,
322                            rootFolderId, mimeTypes, status);
323            }
324    
325            /**
326            * Returns the OSGi service identifier.
327            *
328            * @return the OSGi service identifier
329            */
330            @Override
331            public java.lang.String getOSGiServiceIdentifier() {
332                    return _dlFileEntryService.getOSGiServiceIdentifier();
333            }
334    
335            @Override
336            public boolean hasFileEntryLock(long fileEntryId)
337                    throws com.liferay.portal.kernel.exception.PortalException {
338                    return _dlFileEntryService.hasFileEntryLock(fileEntryId);
339            }
340    
341            @Override
342            public boolean isFileEntryCheckedOut(long fileEntryId)
343                    throws com.liferay.portal.kernel.exception.PortalException {
344                    return _dlFileEntryService.isFileEntryCheckedOut(fileEntryId);
345            }
346    
347            @Override
348            public boolean isKeepFileVersionLabel(long fileEntryId,
349                    com.liferay.portal.service.ServiceContext serviceContext)
350                    throws com.liferay.portal.kernel.exception.PortalException {
351                    return _dlFileEntryService.isKeepFileVersionLabel(fileEntryId,
352                            serviceContext);
353            }
354    
355            @Override
356            public com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
357                    long fileEntryId, long newFolderId,
358                    com.liferay.portal.service.ServiceContext serviceContext)
359                    throws com.liferay.portal.kernel.exception.PortalException {
360                    return _dlFileEntryService.moveFileEntry(fileEntryId, newFolderId,
361                            serviceContext);
362            }
363    
364            @Override
365            public com.liferay.portal.kernel.lock.Lock refreshFileEntryLock(
366                    java.lang.String lockUuid, long companyId, long expirationTime)
367                    throws com.liferay.portal.kernel.exception.PortalException {
368                    return _dlFileEntryService.refreshFileEntryLock(lockUuid, companyId,
369                            expirationTime);
370            }
371    
372            @Override
373            public void revertFileEntry(long fileEntryId, java.lang.String version,
374                    com.liferay.portal.service.ServiceContext serviceContext)
375                    throws com.liferay.portal.kernel.exception.PortalException {
376                    _dlFileEntryService.revertFileEntry(fileEntryId, version, serviceContext);
377            }
378    
379            @Override
380            public com.liferay.portal.kernel.search.Hits search(long groupId,
381                    long creatorUserId, long folderId, java.lang.String[] mimeTypes,
382                    int status, int start, int end)
383                    throws com.liferay.portal.kernel.exception.PortalException {
384                    return _dlFileEntryService.search(groupId, creatorUserId, folderId,
385                            mimeTypes, status, start, end);
386            }
387    
388            @Override
389            public com.liferay.portal.kernel.search.Hits search(long groupId,
390                    long creatorUserId, int status, int start, int end)
391                    throws com.liferay.portal.kernel.exception.PortalException {
392                    return _dlFileEntryService.search(groupId, creatorUserId, status,
393                            start, end);
394            }
395    
396            @Override
397            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
398                    long fileEntryId, java.lang.String sourceFileName,
399                    java.lang.String mimeType, java.lang.String title,
400                    java.lang.String description, java.lang.String changeLog,
401                    boolean majorVersion, long fileEntryTypeId,
402                    java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.DDMFormValues> ddmFormValuesMap,
403                    java.io.File file, java.io.InputStream is, long size,
404                    com.liferay.portal.service.ServiceContext serviceContext)
405                    throws com.liferay.portal.kernel.exception.PortalException {
406                    return _dlFileEntryService.updateFileEntry(fileEntryId, sourceFileName,
407                            mimeType, title, description, changeLog, majorVersion,
408                            fileEntryTypeId, ddmFormValuesMap, file, is, size, serviceContext);
409            }
410    
411            @Override
412            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateStatus(
413                    long userId, long fileVersionId, int status,
414                    com.liferay.portal.service.ServiceContext serviceContext,
415                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
416                    throws com.liferay.portal.kernel.exception.PortalException {
417                    return _dlFileEntryService.updateStatus(userId, fileVersionId, status,
418                            serviceContext, workflowContext);
419            }
420    
421            @Override
422            public boolean verifyFileEntryCheckOut(long fileEntryId,
423                    java.lang.String lockUuid)
424                    throws com.liferay.portal.kernel.exception.PortalException {
425                    return _dlFileEntryService.verifyFileEntryCheckOut(fileEntryId, lockUuid);
426            }
427    
428            @Override
429            public boolean verifyFileEntryLock(long fileEntryId,
430                    java.lang.String lockUuid)
431                    throws com.liferay.portal.kernel.exception.PortalException {
432                    return _dlFileEntryService.verifyFileEntryLock(fileEntryId, lockUuid);
433            }
434    
435            @Override
436            public DLFileEntryService getWrappedService() {
437                    return _dlFileEntryService;
438            }
439    
440            @Override
441            public void setWrappedService(DLFileEntryService dlFileEntryService) {
442                    _dlFileEntryService = dlFileEntryService;
443            }
444    
445            private DLFileEntryService _dlFileEntryService;
446    }