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