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 DLFileEntryLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see DLFileEntryLocalService
026     * @generated
027     */
028    @ProviderType
029    public class DLFileEntryLocalServiceWrapper implements DLFileEntryLocalService,
030            ServiceWrapper<DLFileEntryLocalService> {
031            public DLFileEntryLocalServiceWrapper(
032                    DLFileEntryLocalService dlFileEntryLocalService) {
033                    _dlFileEntryLocalService = dlFileEntryLocalService;
034            }
035    
036            @Override
037            public boolean hasExtraSettings() {
038                    return _dlFileEntryLocalService.hasExtraSettings();
039            }
040    
041            @Override
042            public boolean hasFileEntryLock(long userId, long fileEntryId)
043                    throws com.liferay.portal.kernel.exception.PortalException {
044                    return _dlFileEntryLocalService.hasFileEntryLock(userId, fileEntryId);
045            }
046    
047            @Override
048            public boolean isFileEntryCheckedOut(long fileEntryId)
049                    throws com.liferay.portal.kernel.exception.PortalException {
050                    return _dlFileEntryLocalService.isFileEntryCheckedOut(fileEntryId);
051            }
052    
053            @Override
054            public boolean isKeepFileVersionLabel(long fileEntryId,
055                    boolean majorVersion,
056                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
057                    throws com.liferay.portal.kernel.exception.PortalException {
058                    return _dlFileEntryLocalService.isKeepFileVersionLabel(fileEntryId,
059                            majorVersion, serviceContext);
060            }
061    
062            /**
063            * As of 7.0.0, replaced by {@link #isKeepFileVersionLabel(long, boolean,
064            * ServiceContext)}
065            */
066            @Deprecated
067            @Override
068            public boolean isKeepFileVersionLabel(long fileEntryId,
069                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
070                    throws com.liferay.portal.kernel.exception.PortalException {
071                    return _dlFileEntryLocalService.isKeepFileVersionLabel(fileEntryId,
072                            serviceContext);
073            }
074    
075            @Override
076            public boolean verifyFileEntryCheckOut(long fileEntryId,
077                    java.lang.String lockUuid)
078                    throws com.liferay.portal.kernel.exception.PortalException {
079                    return _dlFileEntryLocalService.verifyFileEntryCheckOut(fileEntryId,
080                            lockUuid);
081            }
082    
083            @Override
084            public boolean verifyFileEntryLock(long fileEntryId,
085                    java.lang.String lockUuid)
086                    throws com.liferay.portal.kernel.exception.PortalException {
087                    return _dlFileEntryLocalService.verifyFileEntryLock(fileEntryId,
088                            lockUuid);
089            }
090    
091            /**
092            * Adds the document library file entry to the database. Also notifies the appropriate model listeners.
093            *
094            * @param dlFileEntry the document library file entry
095            * @return the document library file entry that was added
096            */
097            @Override
098            public com.liferay.document.library.kernel.model.DLFileEntry addDLFileEntry(
099                    com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry) {
100                    return _dlFileEntryLocalService.addDLFileEntry(dlFileEntry);
101            }
102    
103            @Override
104            public com.liferay.document.library.kernel.model.DLFileEntry addFileEntry(
105                    long userId, long groupId, long repositoryId, long folderId,
106                    java.lang.String sourceFileName, java.lang.String mimeType,
107                    java.lang.String title, java.lang.String description,
108                    java.lang.String changeLog, long fileEntryTypeId,
109                    java.util.Map<java.lang.String, com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap,
110                    java.io.File file, java.io.InputStream is, long size,
111                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
112                    throws com.liferay.portal.kernel.exception.PortalException {
113                    return _dlFileEntryLocalService.addFileEntry(userId, groupId,
114                            repositoryId, folderId, sourceFileName, mimeType, title,
115                            description, changeLog, fileEntryTypeId, ddmFormValuesMap, file,
116                            is, size, serviceContext);
117            }
118    
119            @Override
120            public com.liferay.document.library.kernel.model.DLFileEntry checkOutFileEntry(
121                    long userId, long fileEntryId,
122                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
123                    throws com.liferay.portal.kernel.exception.PortalException {
124                    return _dlFileEntryLocalService.checkOutFileEntry(userId, fileEntryId,
125                            serviceContext);
126            }
127    
128            @Override
129            public com.liferay.document.library.kernel.model.DLFileEntry checkOutFileEntry(
130                    long userId, long fileEntryId, java.lang.String owner,
131                    long expirationTime,
132                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
133                    throws com.liferay.portal.kernel.exception.PortalException {
134                    return _dlFileEntryLocalService.checkOutFileEntry(userId, fileEntryId,
135                            owner, expirationTime, serviceContext);
136            }
137    
138            @Override
139            public com.liferay.document.library.kernel.model.DLFileEntry copyFileEntry(
140                    long userId, long groupId, long repositoryId, long fileEntryId,
141                    long destFolderId,
142                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
143                    throws com.liferay.portal.kernel.exception.PortalException {
144                    return _dlFileEntryLocalService.copyFileEntry(userId, groupId,
145                            repositoryId, fileEntryId, destFolderId, serviceContext);
146            }
147    
148            /**
149            * Creates a new document library file entry with the primary key. Does not add the document library file entry to the database.
150            *
151            * @param fileEntryId the primary key for the new document library file entry
152            * @return the new document library file entry
153            */
154            @Override
155            public com.liferay.document.library.kernel.model.DLFileEntry createDLFileEntry(
156                    long fileEntryId) {
157                    return _dlFileEntryLocalService.createDLFileEntry(fileEntryId);
158            }
159    
160            /**
161            * Deletes the document library file entry from the database. Also notifies the appropriate model listeners.
162            *
163            * @param dlFileEntry the document library file entry
164            * @return the document library file entry that was removed
165            */
166            @Override
167            public com.liferay.document.library.kernel.model.DLFileEntry deleteDLFileEntry(
168                    com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry) {
169                    return _dlFileEntryLocalService.deleteDLFileEntry(dlFileEntry);
170            }
171    
172            /**
173            * Deletes the document library file entry with the primary key from the database. Also notifies the appropriate model listeners.
174            *
175            * @param fileEntryId the primary key of the document library file entry
176            * @return the document library file entry that was removed
177            * @throws PortalException if a document library file entry with the primary key could not be found
178            */
179            @Override
180            public com.liferay.document.library.kernel.model.DLFileEntry deleteDLFileEntry(
181                    long fileEntryId)
182                    throws com.liferay.portal.kernel.exception.PortalException {
183                    return _dlFileEntryLocalService.deleteDLFileEntry(fileEntryId);
184            }
185    
186            @Override
187            public com.liferay.document.library.kernel.model.DLFileEntry deleteFileEntry(
188                    com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry)
189                    throws com.liferay.portal.kernel.exception.PortalException {
190                    return _dlFileEntryLocalService.deleteFileEntry(dlFileEntry);
191            }
192    
193            @Override
194            public com.liferay.document.library.kernel.model.DLFileEntry deleteFileEntry(
195                    long fileEntryId)
196                    throws com.liferay.portal.kernel.exception.PortalException {
197                    return _dlFileEntryLocalService.deleteFileEntry(fileEntryId);
198            }
199    
200            @Override
201            public com.liferay.document.library.kernel.model.DLFileEntry deleteFileEntry(
202                    long userId, long fileEntryId)
203                    throws com.liferay.portal.kernel.exception.PortalException {
204                    return _dlFileEntryLocalService.deleteFileEntry(userId, fileEntryId);
205            }
206    
207            @Override
208            public com.liferay.document.library.kernel.model.DLFileEntry deleteFileVersion(
209                    long userId, long fileEntryId, java.lang.String version)
210                    throws com.liferay.portal.kernel.exception.PortalException {
211                    return _dlFileEntryLocalService.deleteFileVersion(userId, fileEntryId,
212                            version);
213            }
214    
215            @Override
216            public com.liferay.document.library.kernel.model.DLFileEntry fetchDLFileEntry(
217                    long fileEntryId) {
218                    return _dlFileEntryLocalService.fetchDLFileEntry(fileEntryId);
219            }
220    
221            /**
222            * Returns the document library file entry matching the UUID and group.
223            *
224            * @param uuid the document library file entry's UUID
225            * @param groupId the primary key of the group
226            * @return the matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
227            */
228            @Override
229            public com.liferay.document.library.kernel.model.DLFileEntry fetchDLFileEntryByUuidAndGroupId(
230                    java.lang.String uuid, long groupId) {
231                    return _dlFileEntryLocalService.fetchDLFileEntryByUuidAndGroupId(uuid,
232                            groupId);
233            }
234    
235            @Override
236            public com.liferay.document.library.kernel.model.DLFileEntry fetchFileEntry(
237                    long groupId, long folderId, java.lang.String title) {
238                    return _dlFileEntryLocalService.fetchFileEntry(groupId, folderId, title);
239            }
240    
241            @Override
242            public com.liferay.document.library.kernel.model.DLFileEntry fetchFileEntryByAnyImageId(
243                    long imageId) {
244                    return _dlFileEntryLocalService.fetchFileEntryByAnyImageId(imageId);
245            }
246    
247            @Override
248            public com.liferay.document.library.kernel.model.DLFileEntry fetchFileEntryByFileName(
249                    long groupId, long folderId, java.lang.String fileName) {
250                    return _dlFileEntryLocalService.fetchFileEntryByFileName(groupId,
251                            folderId, fileName);
252            }
253    
254            @Override
255            public com.liferay.document.library.kernel.model.DLFileEntry fetchFileEntryByName(
256                    long groupId, long folderId, java.lang.String name) {
257                    return _dlFileEntryLocalService.fetchFileEntryByName(groupId, folderId,
258                            name);
259            }
260    
261            /**
262            * Returns the document library file entry with the primary key.
263            *
264            * @param fileEntryId the primary key of the document library file entry
265            * @return the document library file entry
266            * @throws PortalException if a document library file entry with the primary key could not be found
267            */
268            @Override
269            public com.liferay.document.library.kernel.model.DLFileEntry getDLFileEntry(
270                    long fileEntryId)
271                    throws com.liferay.portal.kernel.exception.PortalException {
272                    return _dlFileEntryLocalService.getDLFileEntry(fileEntryId);
273            }
274    
275            /**
276            * Returns the document library file entry matching the UUID and group.
277            *
278            * @param uuid the document library file entry's UUID
279            * @param groupId the primary key of the group
280            * @return the matching document library file entry
281            * @throws PortalException if a matching document library file entry could not be found
282            */
283            @Override
284            public com.liferay.document.library.kernel.model.DLFileEntry getDLFileEntryByUuidAndGroupId(
285                    java.lang.String uuid, long groupId)
286                    throws com.liferay.portal.kernel.exception.PortalException {
287                    return _dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(uuid,
288                            groupId);
289            }
290    
291            @Override
292            public com.liferay.document.library.kernel.model.DLFileEntry getFileEntry(
293                    long fileEntryId)
294                    throws com.liferay.portal.kernel.exception.PortalException {
295                    return _dlFileEntryLocalService.getFileEntry(fileEntryId);
296            }
297    
298            @Override
299            public com.liferay.document.library.kernel.model.DLFileEntry getFileEntry(
300                    long groupId, long folderId, java.lang.String title)
301                    throws com.liferay.portal.kernel.exception.PortalException {
302                    return _dlFileEntryLocalService.getFileEntry(groupId, folderId, title);
303            }
304    
305            @Override
306            public com.liferay.document.library.kernel.model.DLFileEntry getFileEntryByName(
307                    long groupId, long folderId, java.lang.String name)
308                    throws com.liferay.portal.kernel.exception.PortalException {
309                    return _dlFileEntryLocalService.getFileEntryByName(groupId, folderId,
310                            name);
311            }
312    
313            @Override
314            public com.liferay.document.library.kernel.model.DLFileEntry getFileEntryByUuidAndGroupId(
315                    java.lang.String uuid, long groupId)
316                    throws com.liferay.portal.kernel.exception.PortalException {
317                    return _dlFileEntryLocalService.getFileEntryByUuidAndGroupId(uuid,
318                            groupId);
319            }
320    
321            @Override
322            public com.liferay.document.library.kernel.model.DLFileEntry moveFileEntry(
323                    long userId, long fileEntryId, long newFolderId,
324                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
325                    throws com.liferay.portal.kernel.exception.PortalException {
326                    return _dlFileEntryLocalService.moveFileEntry(userId, fileEntryId,
327                            newFolderId, serviceContext);
328            }
329    
330            /**
331            * Updates the document library file entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
332            *
333            * @param dlFileEntry the document library file entry
334            * @return the document library file entry that was updated
335            */
336            @Override
337            public com.liferay.document.library.kernel.model.DLFileEntry updateDLFileEntry(
338                    com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry) {
339                    return _dlFileEntryLocalService.updateDLFileEntry(dlFileEntry);
340            }
341    
342            @Override
343            public com.liferay.document.library.kernel.model.DLFileEntry updateFileEntry(
344                    long userId, long fileEntryId, java.lang.String sourceFileName,
345                    java.lang.String mimeType, java.lang.String title,
346                    java.lang.String description, java.lang.String changeLog,
347                    boolean majorVersion, long fileEntryTypeId,
348                    java.util.Map<java.lang.String, com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap,
349                    java.io.File file, java.io.InputStream is, long size,
350                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
351                    throws com.liferay.portal.kernel.exception.PortalException {
352                    return _dlFileEntryLocalService.updateFileEntry(userId, fileEntryId,
353                            sourceFileName, mimeType, title, description, changeLog,
354                            majorVersion, fileEntryTypeId, ddmFormValuesMap, file, is, size,
355                            serviceContext);
356            }
357    
358            @Override
359            public com.liferay.document.library.kernel.model.DLFileEntry updateFileEntryType(
360                    long userId, long fileEntryId, long fileEntryTypeId,
361                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
362                    throws com.liferay.portal.kernel.exception.PortalException {
363                    return _dlFileEntryLocalService.updateFileEntryType(userId,
364                            fileEntryId, fileEntryTypeId, serviceContext);
365            }
366    
367            @Override
368            public com.liferay.document.library.kernel.model.DLFileEntry updateStatus(
369                    long userId, long fileVersionId, int status,
370                    com.liferay.portal.kernel.service.ServiceContext serviceContext,
371                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
372                    throws com.liferay.portal.kernel.exception.PortalException {
373                    return _dlFileEntryLocalService.updateStatus(userId, fileVersionId,
374                            status, serviceContext, workflowContext);
375            }
376    
377            @Override
378            public com.liferay.document.library.kernel.model.DLFileVersion cancelCheckOut(
379                    long userId, long fileEntryId)
380                    throws com.liferay.portal.kernel.exception.PortalException {
381                    return _dlFileEntryLocalService.cancelCheckOut(userId, fileEntryId);
382            }
383    
384            @Override
385            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
386                    return _dlFileEntryLocalService.getActionableDynamicQuery();
387            }
388    
389            @Override
390            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
391                    return _dlFileEntryLocalService.dynamicQuery();
392            }
393    
394            @Override
395            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
396                    com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) {
397                    return _dlFileEntryLocalService.getExportActionableDynamicQuery(portletDataContext);
398            }
399    
400            @Override
401            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
402                    return _dlFileEntryLocalService.getIndexableActionableDynamicQuery();
403            }
404    
405            @Override
406            public com.liferay.portal.kernel.lock.Lock lockFileEntry(long userId,
407                    long fileEntryId)
408                    throws com.liferay.portal.kernel.exception.PortalException {
409                    return _dlFileEntryLocalService.lockFileEntry(userId, fileEntryId);
410            }
411    
412            /**
413            * @throws PortalException
414            */
415            @Override
416            public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
417                    com.liferay.portal.kernel.model.PersistedModel persistedModel)
418                    throws com.liferay.portal.kernel.exception.PortalException {
419                    return _dlFileEntryLocalService.deletePersistedModel(persistedModel);
420            }
421    
422            @Override
423            public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
424                    java.io.Serializable primaryKeyObj)
425                    throws com.liferay.portal.kernel.exception.PortalException {
426                    return _dlFileEntryLocalService.getPersistedModel(primaryKeyObj);
427            }
428    
429            @Override
430            public com.liferay.portal.kernel.search.Hits search(long groupId,
431                    long userId, long creatorUserId, int status, int start, int end)
432                    throws com.liferay.portal.kernel.exception.PortalException {
433                    return _dlFileEntryLocalService.search(groupId, userId, creatorUserId,
434                            status, start, end);
435            }
436    
437            @Override
438            public com.liferay.portal.kernel.search.Hits search(long groupId,
439                    long userId, long creatorUserId, long folderId,
440                    java.lang.String[] mimeTypes, int status, int start, int end)
441                    throws com.liferay.portal.kernel.exception.PortalException {
442                    return _dlFileEntryLocalService.search(groupId, userId, creatorUserId,
443                            folderId, mimeTypes, status, start, end);
444            }
445    
446            /**
447            * Returns the number of document library file entries.
448            *
449            * @return the number of document library file entries
450            */
451            @Override
452            public int getDLFileEntriesCount() {
453                    return _dlFileEntryLocalService.getDLFileEntriesCount();
454            }
455    
456            @Override
457            public int getExtraSettingsFileEntriesCount() {
458                    return _dlFileEntryLocalService.getExtraSettingsFileEntriesCount();
459            }
460    
461            @Override
462            public int getFileEntriesCount() {
463                    return _dlFileEntryLocalService.getFileEntriesCount();
464            }
465    
466            /**
467            * @deprecated As of 7.0.0, with no direct replacement
468            */
469            @Deprecated
470            @Override
471            public int getFileEntriesCount(long groupId,
472                    com.liferay.portal.kernel.util.DateRange dateRange, long repositoryId,
473                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.document.library.kernel.model.DLFileEntry> queryDefinition) {
474                    return _dlFileEntryLocalService.getFileEntriesCount(groupId, dateRange,
475                            repositoryId, queryDefinition);
476            }
477    
478            @Override
479            public int getFileEntriesCount(long groupId, long folderId) {
480                    return _dlFileEntryLocalService.getFileEntriesCount(groupId, folderId);
481            }
482    
483            @Override
484            public int getFileEntriesCount(long groupId, long folderId, int status) {
485                    return _dlFileEntryLocalService.getFileEntriesCount(groupId, folderId,
486                            status);
487            }
488    
489            @Override
490            public int getFileEntriesCount(long groupId, long userId,
491                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
492                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.document.library.kernel.model.DLFileEntry> queryDefinition)
493                    throws java.lang.Exception {
494                    return _dlFileEntryLocalService.getFileEntriesCount(groupId, userId,
495                            folderIds, mimeTypes, queryDefinition);
496            }
497    
498            @Override
499            public int getFileEntriesCount(long groupId, long userId,
500                    java.util.List<java.lang.Long> repositoryIds,
501                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
502                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.document.library.kernel.model.DLFileEntry> queryDefinition)
503                    throws java.lang.Exception {
504                    return _dlFileEntryLocalService.getFileEntriesCount(groupId, userId,
505                            repositoryIds, folderIds, mimeTypes, queryDefinition);
506            }
507    
508            @Override
509            public int getGroupFileEntriesCount(long groupId) {
510                    return _dlFileEntryLocalService.getGroupFileEntriesCount(groupId);
511            }
512    
513            @Override
514            public int getGroupFileEntriesCount(long groupId, long userId) {
515                    return _dlFileEntryLocalService.getGroupFileEntriesCount(groupId, userId);
516            }
517    
518            @Override
519            public int getRepositoryFileEntriesCount(long repositoryId) {
520                    return _dlFileEntryLocalService.getRepositoryFileEntriesCount(repositoryId);
521            }
522    
523            @Override
524            public java.io.File getFile(long fileEntryId, java.lang.String version,
525                    boolean incrementCounter)
526                    throws com.liferay.portal.kernel.exception.PortalException {
527                    return _dlFileEntryLocalService.getFile(fileEntryId, version,
528                            incrementCounter);
529            }
530    
531            @Override
532            public java.io.File getFile(long fileEntryId, java.lang.String version,
533                    boolean incrementCounter, int increment)
534                    throws com.liferay.portal.kernel.exception.PortalException {
535                    return _dlFileEntryLocalService.getFile(fileEntryId, version,
536                            incrementCounter, increment);
537            }
538    
539            /**
540            * @deprecated As of 7.0.0, replaced by {@link #getFile(long, String,
541            boolean)}
542            */
543            @Deprecated
544            @Override
545            public java.io.File getFile(long userId, long fileEntryId,
546                    java.lang.String version, boolean incrementCounter)
547                    throws com.liferay.portal.kernel.exception.PortalException {
548                    return _dlFileEntryLocalService.getFile(userId, fileEntryId, version,
549                            incrementCounter);
550            }
551    
552            /**
553            * @deprecated As of 7.0.0, replaced by {@link #getFile(long, String,
554            boolean, int)}
555            */
556            @Deprecated
557            @Override
558            public java.io.File getFile(long userId, long fileEntryId,
559                    java.lang.String version, boolean incrementCounter, int increment)
560                    throws com.liferay.portal.kernel.exception.PortalException {
561                    return _dlFileEntryLocalService.getFile(userId, fileEntryId, version,
562                            incrementCounter, increment);
563            }
564    
565            @Override
566            public java.io.InputStream getFileAsStream(long fileEntryId,
567                    java.lang.String version)
568                    throws com.liferay.portal.kernel.exception.PortalException {
569                    return _dlFileEntryLocalService.getFileAsStream(fileEntryId, version);
570            }
571    
572            @Override
573            public java.io.InputStream getFileAsStream(long fileEntryId,
574                    java.lang.String version, boolean incrementCounter)
575                    throws com.liferay.portal.kernel.exception.PortalException {
576                    return _dlFileEntryLocalService.getFileAsStream(fileEntryId, version,
577                            incrementCounter);
578            }
579    
580            @Override
581            public java.io.InputStream getFileAsStream(long fileEntryId,
582                    java.lang.String version, boolean incrementCounter, int increment)
583                    throws com.liferay.portal.kernel.exception.PortalException {
584                    return _dlFileEntryLocalService.getFileAsStream(fileEntryId, version,
585                            incrementCounter, increment);
586            }
587    
588            /**
589            * @deprecated As of 7.0.0, replaced by {@link #getFileAsStream(long,
590            String)}
591            */
592            @Deprecated
593            @Override
594            public java.io.InputStream getFileAsStream(long userId, long fileEntryId,
595                    java.lang.String version)
596                    throws com.liferay.portal.kernel.exception.PortalException {
597                    return _dlFileEntryLocalService.getFileAsStream(userId, fileEntryId,
598                            version);
599            }
600    
601            /**
602            * @deprecated As of 7.0.0, replaced by {@link #getFileAsStream(long,
603            String, boolean)}
604            */
605            @Deprecated
606            @Override
607            public java.io.InputStream getFileAsStream(long userId, long fileEntryId,
608                    java.lang.String version, boolean incrementCounter)
609                    throws com.liferay.portal.kernel.exception.PortalException {
610                    return _dlFileEntryLocalService.getFileAsStream(userId, fileEntryId,
611                            version, incrementCounter);
612            }
613    
614            /**
615            * @deprecated As of 7.0.0, replaced by {@link #getFileAsStream(long,
616            String, boolean, int)}
617            */
618            @Deprecated
619            @Override
620            public java.io.InputStream getFileAsStream(long userId, long fileEntryId,
621                    java.lang.String version, boolean incrementCounter, int increment)
622                    throws com.liferay.portal.kernel.exception.PortalException {
623                    return _dlFileEntryLocalService.getFileAsStream(userId, fileEntryId,
624                            version, incrementCounter, increment);
625            }
626    
627            /**
628            * Returns the OSGi service identifier.
629            *
630            * @return the OSGi service identifier
631            */
632            @Override
633            public java.lang.String getOSGiServiceIdentifier() {
634                    return _dlFileEntryLocalService.getOSGiServiceIdentifier();
635            }
636    
637            @Override
638            public java.lang.String getUniqueTitle(long groupId, long folderId,
639                    long fileEntryId, java.lang.String title, java.lang.String extension)
640                    throws com.liferay.portal.kernel.exception.PortalException {
641                    return _dlFileEntryLocalService.getUniqueTitle(groupId, folderId,
642                            fileEntryId, title, extension);
643            }
644    
645            /**
646            * Performs a dynamic query on the database and returns the matching rows.
647            *
648            * @param dynamicQuery the dynamic query
649            * @return the matching rows
650            */
651            @Override
652            public <T> java.util.List<T> dynamicQuery(
653                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
654                    return _dlFileEntryLocalService.dynamicQuery(dynamicQuery);
655            }
656    
657            /**
658            * Performs a dynamic query on the database and returns a range of the matching rows.
659            *
660            * <p>
661            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
662            * </p>
663            *
664            * @param dynamicQuery the dynamic query
665            * @param start the lower bound of the range of model instances
666            * @param end the upper bound of the range of model instances (not inclusive)
667            * @return the range of matching rows
668            */
669            @Override
670            public <T> java.util.List<T> dynamicQuery(
671                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
672                    int end) {
673                    return _dlFileEntryLocalService.dynamicQuery(dynamicQuery, start, end);
674            }
675    
676            /**
677            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
678            *
679            * <p>
680            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
681            * </p>
682            *
683            * @param dynamicQuery the dynamic query
684            * @param start the lower bound of the range of model instances
685            * @param end the upper bound of the range of model instances (not inclusive)
686            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
687            * @return the ordered range of matching rows
688            */
689            @Override
690            public <T> java.util.List<T> dynamicQuery(
691                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
692                    int end,
693                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
694                    return _dlFileEntryLocalService.dynamicQuery(dynamicQuery, start, end,
695                            orderByComparator);
696            }
697    
698            @Override
699            public java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getDDMStructureFileEntries(
700                    long groupId, long[] ddmStructureIds) {
701                    return _dlFileEntryLocalService.getDDMStructureFileEntries(groupId,
702                            ddmStructureIds);
703            }
704    
705            @Override
706            public java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getDDMStructureFileEntries(
707                    long[] ddmStructureIds) {
708                    return _dlFileEntryLocalService.getDDMStructureFileEntries(ddmStructureIds);
709            }
710    
711            /**
712            * Returns a range of all the document library file entries.
713            *
714            * <p>
715            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
716            * </p>
717            *
718            * @param start the lower bound of the range of document library file entries
719            * @param end the upper bound of the range of document library file entries (not inclusive)
720            * @return the range of document library file entries
721            */
722            @Override
723            public java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getDLFileEntries(
724                    int start, int end) {
725                    return _dlFileEntryLocalService.getDLFileEntries(start, end);
726            }
727    
728            /**
729            * Returns all the document library file entries matching the UUID and company.
730            *
731            * @param uuid the UUID of the document library file entries
732            * @param companyId the primary key of the company
733            * @return the matching document library file entries, or an empty list if no matches were found
734            */
735            @Override
736            public java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getDLFileEntriesByUuidAndCompanyId(
737                    java.lang.String uuid, long companyId) {
738                    return _dlFileEntryLocalService.getDLFileEntriesByUuidAndCompanyId(uuid,
739                            companyId);
740            }
741    
742            /**
743            * Returns a range of document library file entries matching the UUID and company.
744            *
745            * @param uuid the UUID of the document library file entries
746            * @param companyId the primary key of the company
747            * @param start the lower bound of the range of document library file entries
748            * @param end the upper bound of the range of document library file entries (not inclusive)
749            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
750            * @return the range of matching document library file entries, or an empty list if no matches were found
751            */
752            @Override
753            public java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getDLFileEntriesByUuidAndCompanyId(
754                    java.lang.String uuid, long companyId, int start, int end,
755                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> orderByComparator) {
756                    return _dlFileEntryLocalService.getDLFileEntriesByUuidAndCompanyId(uuid,
757                            companyId, start, end, orderByComparator);
758            }
759    
760            @Override
761            public java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getExtraSettingsFileEntries(
762                    int start, int end) {
763                    return _dlFileEntryLocalService.getExtraSettingsFileEntries(start, end);
764            }
765    
766            @Override
767            public java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(
768                    int start, int end) {
769                    return _dlFileEntryLocalService.getFileEntries(start, end);
770            }
771    
772            @Override
773            public java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(
774                    long folderId, java.lang.String name) {
775                    return _dlFileEntryLocalService.getFileEntries(folderId, name);
776            }
777    
778            @Override
779            public java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(
780                    long groupId, long folderId) {
781                    return _dlFileEntryLocalService.getFileEntries(groupId, folderId);
782            }
783    
784            @Override
785            public java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(
786                    long groupId, long folderId, int start, int end,
787                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc) {
788                    return _dlFileEntryLocalService.getFileEntries(groupId, folderId,
789                            start, end, obc);
790            }
791    
792            @Override
793            public java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(
794                    long groupId, long folderId, int status, int start, int end,
795                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc) {
796                    return _dlFileEntryLocalService.getFileEntries(groupId, folderId,
797                            status, start, end, obc);
798            }
799    
800            @Override
801            public java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(
802                    long groupId, long userId, java.util.List<java.lang.Long> folderIds,
803                    java.lang.String[] mimeTypes,
804                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.document.library.kernel.model.DLFileEntry> queryDefinition)
805                    throws java.lang.Exception {
806                    return _dlFileEntryLocalService.getFileEntries(groupId, userId,
807                            folderIds, mimeTypes, queryDefinition);
808            }
809    
810            @Override
811            public java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(
812                    long groupId, long userId,
813                    java.util.List<java.lang.Long> repositoryIds,
814                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
815                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.document.library.kernel.model.DLFileEntry> queryDefinition)
816                    throws java.lang.Exception {
817                    return _dlFileEntryLocalService.getFileEntries(groupId, userId,
818                            repositoryIds, folderIds, mimeTypes, queryDefinition);
819            }
820    
821            @Override
822            public java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(
823                    long groupId, int start, int end) {
824                    return _dlFileEntryLocalService.getGroupFileEntries(groupId, start, end);
825            }
826    
827            @Override
828            public java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(
829                    long groupId, int start, int end,
830                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc) {
831                    return _dlFileEntryLocalService.getGroupFileEntries(groupId, start,
832                            end, obc);
833            }
834    
835            @Override
836            public java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(
837                    long groupId, long userId, int start, int end) {
838                    return _dlFileEntryLocalService.getGroupFileEntries(groupId, userId,
839                            start, end);
840            }
841    
842            @Override
843            public java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(
844                    long groupId, long userId, int start, int end,
845                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc) {
846                    return _dlFileEntryLocalService.getGroupFileEntries(groupId, userId,
847                            start, end, obc);
848            }
849    
850            @Override
851            public java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(
852                    long groupId, long userId, long repositoryId, long rootFolderId,
853                    int start, int end,
854                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc) {
855                    return _dlFileEntryLocalService.getGroupFileEntries(groupId, userId,
856                            repositoryId, rootFolderId, start, end, obc);
857            }
858    
859            @Override
860            public java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(
861                    long groupId, long userId, long rootFolderId, int start, int end,
862                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc) {
863                    return _dlFileEntryLocalService.getGroupFileEntries(groupId, userId,
864                            rootFolderId, start, end, obc);
865            }
866    
867            @Override
868            public java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getMisversionedFileEntries() {
869                    return _dlFileEntryLocalService.getMisversionedFileEntries();
870            }
871    
872            @Override
873            public java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getNoAssetFileEntries() {
874                    return _dlFileEntryLocalService.getNoAssetFileEntries();
875            }
876    
877            @Override
878            public java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getOrphanedFileEntries() {
879                    return _dlFileEntryLocalService.getOrphanedFileEntries();
880            }
881    
882            @Override
883            public java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getRepositoryFileEntries(
884                    long repositoryId, int start, int end) {
885                    return _dlFileEntryLocalService.getRepositoryFileEntries(repositoryId,
886                            start, end);
887            }
888    
889            /**
890            * Returns the number of rows matching the dynamic query.
891            *
892            * @param dynamicQuery the dynamic query
893            * @return the number of rows matching the dynamic query
894            */
895            @Override
896            public long dynamicQueryCount(
897                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
898                    return _dlFileEntryLocalService.dynamicQueryCount(dynamicQuery);
899            }
900    
901            /**
902            * Returns the number of rows matching the dynamic query.
903            *
904            * @param dynamicQuery the dynamic query
905            * @param projection the projection to apply to the query
906            * @return the number of rows matching the dynamic query
907            */
908            @Override
909            public long dynamicQueryCount(
910                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
911                    com.liferay.portal.kernel.dao.orm.Projection projection) {
912                    return _dlFileEntryLocalService.dynamicQueryCount(dynamicQuery,
913                            projection);
914            }
915    
916            @Override
917            public void checkInFileEntry(long userId, long fileEntryId,
918                    boolean majorVersion, java.lang.String changeLog,
919                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
920                    throws com.liferay.portal.kernel.exception.PortalException {
921                    _dlFileEntryLocalService.checkInFileEntry(userId, fileEntryId,
922                            majorVersion, changeLog, serviceContext);
923            }
924    
925            @Override
926            public void checkInFileEntry(long userId, long fileEntryId,
927                    java.lang.String lockUuid,
928                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
929                    throws com.liferay.portal.kernel.exception.PortalException {
930                    _dlFileEntryLocalService.checkInFileEntry(userId, fileEntryId,
931                            lockUuid, serviceContext);
932            }
933    
934            @Override
935            public void convertExtraSettings(java.lang.String[] keys)
936                    throws com.liferay.portal.kernel.exception.PortalException {
937                    _dlFileEntryLocalService.convertExtraSettings(keys);
938            }
939    
940            @Override
941            public void copyFileEntryMetadata(long companyId, long fileEntryTypeId,
942                    long fileEntryId, long fromFileVersionId, long toFileVersionId,
943                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
944                    throws com.liferay.portal.kernel.exception.PortalException {
945                    _dlFileEntryLocalService.copyFileEntryMetadata(companyId,
946                            fileEntryTypeId, fileEntryId, fromFileVersionId, toFileVersionId,
947                            serviceContext);
948            }
949    
950            @Override
951            public void deleteFileEntries(long groupId, long folderId)
952                    throws com.liferay.portal.kernel.exception.PortalException {
953                    _dlFileEntryLocalService.deleteFileEntries(groupId, folderId);
954            }
955    
956            @Override
957            public void deleteFileEntries(long groupId, long folderId,
958                    boolean includeTrashedEntries)
959                    throws com.liferay.portal.kernel.exception.PortalException {
960                    _dlFileEntryLocalService.deleteFileEntries(groupId, folderId,
961                            includeTrashedEntries);
962            }
963    
964            @Override
965            public void deleteRepositoryFileEntries(long repositoryId, long folderId)
966                    throws com.liferay.portal.kernel.exception.PortalException {
967                    _dlFileEntryLocalService.deleteRepositoryFileEntries(repositoryId,
968                            folderId);
969            }
970    
971            @Override
972            public void deleteRepositoryFileEntries(long repositoryId, long folderId,
973                    boolean includeTrashedEntries)
974                    throws com.liferay.portal.kernel.exception.PortalException {
975                    _dlFileEntryLocalService.deleteRepositoryFileEntries(repositoryId,
976                            folderId, includeTrashedEntries);
977            }
978    
979            @Override
980            public void incrementViewCounter(
981                    com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry,
982                    int increment) {
983                    _dlFileEntryLocalService.incrementViewCounter(dlFileEntry, increment);
984            }
985    
986            @Override
987            public void rebuildTree(long companyId)
988                    throws com.liferay.portal.kernel.exception.PortalException {
989                    _dlFileEntryLocalService.rebuildTree(companyId);
990            }
991    
992            @Override
993            public void revertFileEntry(long userId, long fileEntryId,
994                    java.lang.String version,
995                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
996                    throws com.liferay.portal.kernel.exception.PortalException {
997                    _dlFileEntryLocalService.revertFileEntry(userId, fileEntryId, version,
998                            serviceContext);
999            }
1000    
1001            @Override
1002            public void setTreePaths(long folderId, java.lang.String treePath,
1003                    boolean reindex)
1004                    throws com.liferay.portal.kernel.exception.PortalException {
1005                    _dlFileEntryLocalService.setTreePaths(folderId, treePath, reindex);
1006            }
1007    
1008            @Override
1009            public void unlockFileEntry(long fileEntryId) {
1010                    _dlFileEntryLocalService.unlockFileEntry(fileEntryId);
1011            }
1012    
1013            @Override
1014            public void updateSmallImage(long smallImageId, long largeImageId)
1015                    throws com.liferay.portal.kernel.exception.PortalException {
1016                    _dlFileEntryLocalService.updateSmallImage(smallImageId, largeImageId);
1017            }
1018    
1019            @Override
1020            public void validateFile(long groupId, long folderId, long fileEntryId,
1021                    java.lang.String fileName, java.lang.String title)
1022                    throws com.liferay.portal.kernel.exception.PortalException {
1023                    _dlFileEntryLocalService.validateFile(groupId, folderId, fileEntryId,
1024                            fileName, title);
1025            }
1026    
1027            @Override
1028            public DLFileEntryLocalService getWrappedService() {
1029                    return _dlFileEntryLocalService;
1030            }
1031    
1032            @Override
1033            public void setWrappedService(
1034                    DLFileEntryLocalService dlFileEntryLocalService) {
1035                    _dlFileEntryLocalService = dlFileEntryLocalService;
1036            }
1037    
1038            private DLFileEntryLocalService _dlFileEntryLocalService;
1039    }