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