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 void deleteRepositoryFileEntries(long repositoryId, long folderId)
255                    throws com.liferay.portal.kernel.exception.PortalException {
256                    _dlFileEntryLocalService.deleteRepositoryFileEntries(repositoryId,
257                            folderId);
258            }
259    
260            @Override
261            public void deleteRepositoryFileEntries(long repositoryId, long folderId,
262                    boolean includeTrashedEntries)
263                    throws com.liferay.portal.kernel.exception.PortalException {
264                    _dlFileEntryLocalService.deleteRepositoryFileEntries(repositoryId,
265                            folderId, includeTrashedEntries);
266            }
267    
268            @Override
269            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
270                    return _dlFileEntryLocalService.dynamicQuery();
271            }
272    
273            /**
274            * Performs a dynamic query on the database and returns the matching rows.
275            *
276            * @param dynamicQuery the dynamic query
277            * @return the matching rows
278            */
279            @Override
280            public <T> java.util.List<T> dynamicQuery(
281                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
282                    return _dlFileEntryLocalService.dynamicQuery(dynamicQuery);
283            }
284    
285            /**
286            * Performs a dynamic query on the database and returns a range of the matching rows.
287            *
288            * <p>
289            * 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.
290            * </p>
291            *
292            * @param dynamicQuery the dynamic query
293            * @param start the lower bound of the range of model instances
294            * @param end the upper bound of the range of model instances (not inclusive)
295            * @return the range of matching rows
296            */
297            @Override
298            public <T> java.util.List<T> dynamicQuery(
299                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
300                    int end) {
301                    return _dlFileEntryLocalService.dynamicQuery(dynamicQuery, start, end);
302            }
303    
304            /**
305            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
306            *
307            * <p>
308            * 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.
309            * </p>
310            *
311            * @param dynamicQuery the dynamic query
312            * @param start the lower bound of the range of model instances
313            * @param end the upper bound of the range of model instances (not inclusive)
314            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
315            * @return the ordered range of matching rows
316            */
317            @Override
318            public <T> java.util.List<T> dynamicQuery(
319                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
320                    int end,
321                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
322                    return _dlFileEntryLocalService.dynamicQuery(dynamicQuery, start, end,
323                            orderByComparator);
324            }
325    
326            /**
327            * Returns the number of rows matching the dynamic query.
328            *
329            * @param dynamicQuery the dynamic query
330            * @return the number of rows matching the dynamic query
331            */
332            @Override
333            public long dynamicQueryCount(
334                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
335                    return _dlFileEntryLocalService.dynamicQueryCount(dynamicQuery);
336            }
337    
338            /**
339            * Returns the number of rows matching the dynamic query.
340            *
341            * @param dynamicQuery the dynamic query
342            * @param projection the projection to apply to the query
343            * @return the number of rows matching the dynamic query
344            */
345            @Override
346            public long dynamicQueryCount(
347                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
348                    com.liferay.portal.kernel.dao.orm.Projection projection) {
349                    return _dlFileEntryLocalService.dynamicQueryCount(dynamicQuery,
350                            projection);
351            }
352    
353            @Override
354            public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchDLFileEntry(
355                    long fileEntryId) {
356                    return _dlFileEntryLocalService.fetchDLFileEntry(fileEntryId);
357            }
358    
359            /**
360            * Returns the document library file entry matching the UUID and group.
361            *
362            * @param uuid the document library file entry's UUID
363            * @param groupId the primary key of the group
364            * @return the matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
365            */
366            @Override
367            public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchDLFileEntryByUuidAndGroupId(
368                    java.lang.String uuid, long groupId) {
369                    return _dlFileEntryLocalService.fetchDLFileEntryByUuidAndGroupId(uuid,
370                            groupId);
371            }
372    
373            @Override
374            public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntry(
375                    long groupId, long folderId, java.lang.String title) {
376                    return _dlFileEntryLocalService.fetchFileEntry(groupId, folderId, title);
377            }
378    
379            @Override
380            public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByAnyImageId(
381                    long imageId) {
382                    return _dlFileEntryLocalService.fetchFileEntryByAnyImageId(imageId);
383            }
384    
385            @Override
386            public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByFileName(
387                    long groupId, long folderId, java.lang.String fileName) {
388                    return _dlFileEntryLocalService.fetchFileEntryByFileName(groupId,
389                            folderId, fileName);
390            }
391    
392            @Override
393            public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByName(
394                    long groupId, long folderId, java.lang.String name) {
395                    return _dlFileEntryLocalService.fetchFileEntryByName(groupId, folderId,
396                            name);
397            }
398    
399            @Override
400            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
401                    return _dlFileEntryLocalService.getActionableDynamicQuery();
402            }
403    
404            /**
405            * Returns the Spring bean ID for this bean.
406            *
407            * @return the Spring bean ID for this bean
408            */
409            @Override
410            public java.lang.String getBeanIdentifier() {
411                    return _dlFileEntryLocalService.getBeanIdentifier();
412            }
413    
414            @Override
415            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDDMStructureFileEntries(
416                    long[] ddmStructureIds) {
417                    return _dlFileEntryLocalService.getDDMStructureFileEntries(ddmStructureIds);
418            }
419    
420            /**
421            * Returns a range of all the document library file entries.
422            *
423            * <p>
424            * 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.
425            * </p>
426            *
427            * @param start the lower bound of the range of document library file entries
428            * @param end the upper bound of the range of document library file entries (not inclusive)
429            * @return the range of document library file entries
430            */
431            @Override
432            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntries(
433                    int start, int end) {
434                    return _dlFileEntryLocalService.getDLFileEntries(start, end);
435            }
436    
437            /**
438            * Returns all the document library file entries matching the UUID and company.
439            *
440            * @param uuid the UUID of the document library file entries
441            * @param companyId the primary key of the company
442            * @return the matching document library file entries, or an empty list if no matches were found
443            */
444            @Override
445            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntriesByUuidAndCompanyId(
446                    java.lang.String uuid, long companyId) {
447                    return _dlFileEntryLocalService.getDLFileEntriesByUuidAndCompanyId(uuid,
448                            companyId);
449            }
450    
451            /**
452            * Returns a range of document library file entries matching the UUID and company.
453            *
454            * @param uuid the UUID of the document library file entries
455            * @param companyId the primary key of the company
456            * @param start the lower bound of the range of document library file entries
457            * @param end the upper bound of the range of document library file entries (not inclusive)
458            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
459            * @return the range of matching document library file entries, or an empty list if no matches were found
460            */
461            @Override
462            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntriesByUuidAndCompanyId(
463                    java.lang.String uuid, long companyId, int start, int end,
464                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> orderByComparator) {
465                    return _dlFileEntryLocalService.getDLFileEntriesByUuidAndCompanyId(uuid,
466                            companyId, start, end, orderByComparator);
467            }
468    
469            /**
470            * Returns the number of document library file entries.
471            *
472            * @return the number of document library file entries
473            */
474            @Override
475            public int getDLFileEntriesCount() {
476                    return _dlFileEntryLocalService.getDLFileEntriesCount();
477            }
478    
479            /**
480            * Returns the document library file entry with the primary key.
481            *
482            * @param fileEntryId the primary key of the document library file entry
483            * @return the document library file entry
484            * @throws PortalException if a document library file entry with the primary key could not be found
485            */
486            @Override
487            public com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntry(
488                    long fileEntryId)
489                    throws com.liferay.portal.kernel.exception.PortalException {
490                    return _dlFileEntryLocalService.getDLFileEntry(fileEntryId);
491            }
492    
493            /**
494            * Returns the document library file entry matching the UUID and group.
495            *
496            * @param uuid the document library file entry's UUID
497            * @param groupId the primary key of the group
498            * @return the matching document library file entry
499            * @throws PortalException if a matching document library file entry could not be found
500            */
501            @Override
502            public com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntryByUuidAndGroupId(
503                    java.lang.String uuid, long groupId)
504                    throws com.liferay.portal.kernel.exception.PortalException {
505                    return _dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(uuid,
506                            groupId);
507            }
508    
509            @Override
510            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
511                    com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) {
512                    return _dlFileEntryLocalService.getExportActionableDynamicQuery(portletDataContext);
513            }
514    
515            @Override
516            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getExtraSettingsFileEntries(
517                    int start, int end) {
518                    return _dlFileEntryLocalService.getExtraSettingsFileEntries(start, end);
519            }
520    
521            @Override
522            public int getExtraSettingsFileEntriesCount() {
523                    return _dlFileEntryLocalService.getExtraSettingsFileEntriesCount();
524            }
525    
526            @Override
527            public java.io.File getFile(long fileEntryId, java.lang.String version,
528                    boolean incrementCounter)
529                    throws com.liferay.portal.kernel.exception.PortalException {
530                    return _dlFileEntryLocalService.getFile(fileEntryId, version,
531                            incrementCounter);
532            }
533    
534            @Override
535            public java.io.File getFile(long fileEntryId, java.lang.String version,
536                    boolean incrementCounter, int increment)
537                    throws com.liferay.portal.kernel.exception.PortalException {
538                    return _dlFileEntryLocalService.getFile(fileEntryId, version,
539                            incrementCounter, increment);
540            }
541    
542            /**
543            * @deprecated As of 7.0.0, replaced by {@link #getFile(long, String,
544            boolean)}
545            */
546            @Deprecated
547            @Override
548            public java.io.File getFile(long userId, long fileEntryId,
549                    java.lang.String version, boolean incrementCounter)
550                    throws com.liferay.portal.kernel.exception.PortalException {
551                    return _dlFileEntryLocalService.getFile(userId, fileEntryId, version,
552                            incrementCounter);
553            }
554    
555            /**
556            * @deprecated As of 7.0.0, replaced by {@link #getFile(long, String,
557            boolean, int)}
558            */
559            @Deprecated
560            @Override
561            public java.io.File getFile(long userId, long fileEntryId,
562                    java.lang.String version, boolean incrementCounter, int increment)
563                    throws com.liferay.portal.kernel.exception.PortalException {
564                    return _dlFileEntryLocalService.getFile(userId, fileEntryId, version,
565                            incrementCounter, increment);
566            }
567    
568            @Override
569            public java.io.InputStream getFileAsStream(long fileEntryId,
570                    java.lang.String version)
571                    throws com.liferay.portal.kernel.exception.PortalException {
572                    return _dlFileEntryLocalService.getFileAsStream(fileEntryId, version);
573            }
574    
575            @Override
576            public java.io.InputStream getFileAsStream(long fileEntryId,
577                    java.lang.String version, boolean incrementCounter)
578                    throws com.liferay.portal.kernel.exception.PortalException {
579                    return _dlFileEntryLocalService.getFileAsStream(fileEntryId, version,
580                            incrementCounter);
581            }
582    
583            @Override
584            public java.io.InputStream getFileAsStream(long fileEntryId,
585                    java.lang.String version, boolean incrementCounter, int increment)
586                    throws com.liferay.portal.kernel.exception.PortalException {
587                    return _dlFileEntryLocalService.getFileAsStream(fileEntryId, version,
588                            incrementCounter, increment);
589            }
590    
591            /**
592            * @deprecated As of 7.0.0, replaced by {@link #getFileAsStream(long,
593            String)}
594            */
595            @Deprecated
596            @Override
597            public java.io.InputStream getFileAsStream(long userId, long fileEntryId,
598                    java.lang.String version)
599                    throws com.liferay.portal.kernel.exception.PortalException {
600                    return _dlFileEntryLocalService.getFileAsStream(userId, fileEntryId,
601                            version);
602            }
603    
604            /**
605            * @deprecated As of 7.0.0, replaced by {@link #getFileAsStream(long,
606            String, boolean)}
607            */
608            @Deprecated
609            @Override
610            public java.io.InputStream getFileAsStream(long userId, long fileEntryId,
611                    java.lang.String version, boolean incrementCounter)
612                    throws com.liferay.portal.kernel.exception.PortalException {
613                    return _dlFileEntryLocalService.getFileAsStream(userId, fileEntryId,
614                            version, incrementCounter);
615            }
616    
617            /**
618            * @deprecated As of 7.0.0, replaced by {@link #getFileAsStream(long,
619            String, boolean, int)}
620            */
621            @Deprecated
622            @Override
623            public java.io.InputStream getFileAsStream(long userId, long fileEntryId,
624                    java.lang.String version, boolean incrementCounter, int increment)
625                    throws com.liferay.portal.kernel.exception.PortalException {
626                    return _dlFileEntryLocalService.getFileAsStream(userId, fileEntryId,
627                            version, incrementCounter, increment);
628            }
629    
630            @Override
631            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
632                    long folderId, java.lang.String name) {
633                    return _dlFileEntryLocalService.getFileEntries(folderId, name);
634            }
635    
636            @Override
637            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
638                    long groupId, long folderId) {
639                    return _dlFileEntryLocalService.getFileEntries(groupId, folderId);
640            }
641    
642            @Override
643            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
644                    long groupId, long folderId, int start, int end,
645                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc) {
646                    return _dlFileEntryLocalService.getFileEntries(groupId, folderId,
647                            start, end, obc);
648            }
649    
650            @Override
651            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
652                    long groupId, long folderId, int status, int start, int end,
653                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc) {
654                    return _dlFileEntryLocalService.getFileEntries(groupId, folderId,
655                            status, start, end, obc);
656            }
657    
658            @Override
659            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
660                    long groupId, long userId, java.util.List<java.lang.Long> folderIds,
661                    java.lang.String[] mimeTypes,
662                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
663                    throws java.lang.Exception {
664                    return _dlFileEntryLocalService.getFileEntries(groupId, userId,
665                            folderIds, mimeTypes, queryDefinition);
666            }
667    
668            @Override
669            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
670                    long groupId, long userId,
671                    java.util.List<java.lang.Long> repositoryIds,
672                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
673                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
674                    throws java.lang.Exception {
675                    return _dlFileEntryLocalService.getFileEntries(groupId, userId,
676                            repositoryIds, folderIds, mimeTypes, queryDefinition);
677            }
678    
679            @Override
680            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
681                    int start, int end) {
682                    return _dlFileEntryLocalService.getFileEntries(start, end);
683            }
684    
685            @Override
686            public int getFileEntriesCount() {
687                    return _dlFileEntryLocalService.getFileEntriesCount();
688            }
689    
690            @Override
691            public int getFileEntriesCount(long groupId,
692                    com.liferay.portal.kernel.util.DateRange dateRange, long repositoryId,
693                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition) {
694                    return _dlFileEntryLocalService.getFileEntriesCount(groupId, dateRange,
695                            repositoryId, queryDefinition);
696            }
697    
698            @Override
699            public int getFileEntriesCount(long groupId, long folderId) {
700                    return _dlFileEntryLocalService.getFileEntriesCount(groupId, folderId);
701            }
702    
703            @Override
704            public int getFileEntriesCount(long groupId, long folderId, int status) {
705                    return _dlFileEntryLocalService.getFileEntriesCount(groupId, folderId,
706                            status);
707            }
708    
709            @Override
710            public int getFileEntriesCount(long groupId, long userId,
711                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
712                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
713                    throws java.lang.Exception {
714                    return _dlFileEntryLocalService.getFileEntriesCount(groupId, userId,
715                            folderIds, mimeTypes, queryDefinition);
716            }
717    
718            @Override
719            public int getFileEntriesCount(long groupId, long userId,
720                    java.util.List<java.lang.Long> repositoryIds,
721                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
722                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
723                    throws java.lang.Exception {
724                    return _dlFileEntryLocalService.getFileEntriesCount(groupId, userId,
725                            repositoryIds, folderIds, mimeTypes, queryDefinition);
726            }
727    
728            @Override
729            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
730                    long fileEntryId)
731                    throws com.liferay.portal.kernel.exception.PortalException {
732                    return _dlFileEntryLocalService.getFileEntry(fileEntryId);
733            }
734    
735            @Override
736            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
737                    long groupId, long folderId, java.lang.String title)
738                    throws com.liferay.portal.kernel.exception.PortalException {
739                    return _dlFileEntryLocalService.getFileEntry(groupId, folderId, title);
740            }
741    
742            @Override
743            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByName(
744                    long groupId, long folderId, java.lang.String name)
745                    throws com.liferay.portal.kernel.exception.PortalException {
746                    return _dlFileEntryLocalService.getFileEntryByName(groupId, folderId,
747                            name);
748            }
749    
750            @Override
751            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
752                    java.lang.String uuid, long groupId)
753                    throws com.liferay.portal.kernel.exception.PortalException {
754                    return _dlFileEntryLocalService.getFileEntryByUuidAndGroupId(uuid,
755                            groupId);
756            }
757    
758            @Override
759            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
760                    long groupId, int start, int end) {
761                    return _dlFileEntryLocalService.getGroupFileEntries(groupId, start, end);
762            }
763    
764            @Override
765            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
766                    long groupId, int start, int end,
767                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc) {
768                    return _dlFileEntryLocalService.getGroupFileEntries(groupId, start,
769                            end, obc);
770            }
771    
772            @Override
773            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
774                    long groupId, long userId, long repositoryId, long rootFolderId,
775                    int start, int end,
776                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc) {
777                    return _dlFileEntryLocalService.getGroupFileEntries(groupId, userId,
778                            repositoryId, rootFolderId, start, end, obc);
779            }
780    
781            @Override
782            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
783                    long groupId, long userId, long rootFolderId, int start, int end,
784                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc) {
785                    return _dlFileEntryLocalService.getGroupFileEntries(groupId, userId,
786                            rootFolderId, start, end, obc);
787            }
788    
789            @Override
790            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
791                    long groupId, long userId, int start, int end) {
792                    return _dlFileEntryLocalService.getGroupFileEntries(groupId, userId,
793                            start, end);
794            }
795    
796            @Override
797            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
798                    long groupId, long userId, int start, int end,
799                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc) {
800                    return _dlFileEntryLocalService.getGroupFileEntries(groupId, userId,
801                            start, end, obc);
802            }
803    
804            @Override
805            public int getGroupFileEntriesCount(long groupId) {
806                    return _dlFileEntryLocalService.getGroupFileEntriesCount(groupId);
807            }
808    
809            @Override
810            public int getGroupFileEntriesCount(long groupId, long userId) {
811                    return _dlFileEntryLocalService.getGroupFileEntriesCount(groupId, userId);
812            }
813    
814            @Override
815            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getMisversionedFileEntries() {
816                    return _dlFileEntryLocalService.getMisversionedFileEntries();
817            }
818    
819            @Override
820            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries() {
821                    return _dlFileEntryLocalService.getNoAssetFileEntries();
822            }
823    
824            @Override
825            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getOrphanedFileEntries() {
826                    return _dlFileEntryLocalService.getOrphanedFileEntries();
827            }
828    
829            @Override
830            public com.liferay.portal.model.PersistedModel getPersistedModel(
831                    java.io.Serializable primaryKeyObj)
832                    throws com.liferay.portal.kernel.exception.PortalException {
833                    return _dlFileEntryLocalService.getPersistedModel(primaryKeyObj);
834            }
835    
836            @Override
837            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getRepositoryFileEntries(
838                    long repositoryId, int start, int end) {
839                    return _dlFileEntryLocalService.getRepositoryFileEntries(repositoryId,
840                            start, end);
841            }
842    
843            @Override
844            public int getRepositoryFileEntriesCount(long repositoryId) {
845                    return _dlFileEntryLocalService.getRepositoryFileEntriesCount(repositoryId);
846            }
847    
848            @Override
849            public boolean hasExtraSettings() {
850                    return _dlFileEntryLocalService.hasExtraSettings();
851            }
852    
853            @Override
854            public boolean hasFileEntryLock(long userId, long fileEntryId)
855                    throws com.liferay.portal.kernel.exception.PortalException {
856                    return _dlFileEntryLocalService.hasFileEntryLock(userId, fileEntryId);
857            }
858    
859            @Override
860            public void incrementViewCounter(
861                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
862                    int increment) {
863                    _dlFileEntryLocalService.incrementViewCounter(dlFileEntry, increment);
864            }
865    
866            @Override
867            public boolean isFileEntryCheckedOut(long fileEntryId)
868                    throws com.liferay.portal.kernel.exception.PortalException {
869                    return _dlFileEntryLocalService.isFileEntryCheckedOut(fileEntryId);
870            }
871    
872            @Override
873            public boolean isKeepFileVersionLabel(long fileEntryId,
874                    com.liferay.portal.service.ServiceContext serviceContext)
875                    throws com.liferay.portal.kernel.exception.PortalException {
876                    return _dlFileEntryLocalService.isKeepFileVersionLabel(fileEntryId,
877                            serviceContext);
878            }
879    
880            @Override
881            public com.liferay.portal.model.Lock lockFileEntry(long userId,
882                    long fileEntryId)
883                    throws com.liferay.portal.kernel.exception.PortalException {
884                    return _dlFileEntryLocalService.lockFileEntry(userId, fileEntryId);
885            }
886    
887            @Override
888            public com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
889                    long userId, long fileEntryId, long newFolderId,
890                    com.liferay.portal.service.ServiceContext serviceContext)
891                    throws com.liferay.portal.kernel.exception.PortalException {
892                    return _dlFileEntryLocalService.moveFileEntry(userId, fileEntryId,
893                            newFolderId, serviceContext);
894            }
895    
896            @Override
897            public void rebuildTree(long companyId)
898                    throws com.liferay.portal.kernel.exception.PortalException {
899                    _dlFileEntryLocalService.rebuildTree(companyId);
900            }
901    
902            @Override
903            public void revertFileEntry(long userId, long fileEntryId,
904                    java.lang.String version,
905                    com.liferay.portal.service.ServiceContext serviceContext)
906                    throws com.liferay.portal.kernel.exception.PortalException {
907                    _dlFileEntryLocalService.revertFileEntry(userId, fileEntryId, version,
908                            serviceContext);
909            }
910    
911            @Override
912            public com.liferay.portal.kernel.search.Hits search(long groupId,
913                    long userId, long creatorUserId, long folderId,
914                    java.lang.String[] mimeTypes, int status, int start, int end)
915                    throws com.liferay.portal.kernel.exception.PortalException {
916                    return _dlFileEntryLocalService.search(groupId, userId, creatorUserId,
917                            folderId, mimeTypes, status, start, end);
918            }
919    
920            @Override
921            public com.liferay.portal.kernel.search.Hits search(long groupId,
922                    long userId, long creatorUserId, int status, int start, int end)
923                    throws com.liferay.portal.kernel.exception.PortalException {
924                    return _dlFileEntryLocalService.search(groupId, userId, creatorUserId,
925                            status, start, end);
926            }
927    
928            /**
929            * Sets the Spring bean ID for this bean.
930            *
931            * @param beanIdentifier the Spring bean ID for this bean
932            */
933            @Override
934            public void setBeanIdentifier(java.lang.String beanIdentifier) {
935                    _dlFileEntryLocalService.setBeanIdentifier(beanIdentifier);
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.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
958                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry) {
959                    return _dlFileEntryLocalService.updateDLFileEntry(dlFileEntry);
960            }
961    
962            @Override
963            public com.liferay.portlet.documentlibrary.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.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
969                    java.io.File file, java.io.InputStream is, long size,
970                    com.liferay.portal.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, fieldsMap, file, is, size,
975                            serviceContext);
976            }
977    
978            @Override
979            public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntryType(
980                    long userId, long fileEntryId, long fileEntryTypeId,
981                    com.liferay.portal.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.portlet.documentlibrary.model.DLFileEntry updateStatus(
995                    long userId, long fileVersionId, int status,
996                    com.liferay.portal.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            /**
1028             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
1029             */
1030            @Deprecated
1031            public DLFileEntryLocalService getWrappedDLFileEntryLocalService() {
1032                    return _dlFileEntryLocalService;
1033            }
1034    
1035            /**
1036             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
1037             */
1038            @Deprecated
1039            public void setWrappedDLFileEntryLocalService(
1040                    DLFileEntryLocalService dlFileEntryLocalService) {
1041                    _dlFileEntryLocalService = dlFileEntryLocalService;
1042            }
1043    
1044            @Override
1045            public DLFileEntryLocalService getWrappedService() {
1046                    return _dlFileEntryLocalService;
1047            }
1048    
1049            @Override
1050            public void setWrappedService(
1051                    DLFileEntryLocalService dlFileEntryLocalService) {
1052                    _dlFileEntryLocalService = dlFileEntryLocalService;
1053            }
1054    
1055            private DLFileEntryLocalService _dlFileEntryLocalService;
1056    }