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