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.Fields> fieldsMap,
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, fieldsMap, 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 void copyFileEntryMetadata(long companyId,
152                    long fileEntryTypeId, long fileEntryId, long fromFileVersionId,
153                    long toFileVersionId,
154                    com.liferay.portal.service.ServiceContext serviceContext)
155                    throws com.liferay.portal.kernel.exception.PortalException {
156                    getService()
157                            .copyFileEntryMetadata(companyId, fileEntryTypeId, fileEntryId,
158                            fromFileVersionId, toFileVersionId, serviceContext);
159            }
160    
161            /**
162            * Creates a new document library file entry with the primary key. Does not add the document library file entry to the database.
163            *
164            * @param fileEntryId the primary key for the new document library file entry
165            * @return the new document library file entry
166            */
167            public static com.liferay.portlet.documentlibrary.model.DLFileEntry createDLFileEntry(
168                    long fileEntryId) {
169                    return getService().createDLFileEntry(fileEntryId);
170            }
171    
172            /**
173            * Deletes the document library file entry from the database. Also notifies the appropriate model listeners.
174            *
175            * @param dlFileEntry the document library file entry
176            * @return the document library file entry that was removed
177            */
178            public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteDLFileEntry(
179                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry) {
180                    return getService().deleteDLFileEntry(dlFileEntry);
181            }
182    
183            /**
184            * Deletes the document library file entry with the primary key from the database. Also notifies the appropriate model listeners.
185            *
186            * @param fileEntryId the primary key of the document library file entry
187            * @return the document library file entry that was removed
188            * @throws PortalException if a document library file entry with the primary key could not be found
189            */
190            public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteDLFileEntry(
191                    long fileEntryId)
192                    throws com.liferay.portal.kernel.exception.PortalException {
193                    return getService().deleteDLFileEntry(fileEntryId);
194            }
195    
196            public static void deleteFileEntries(long groupId, long folderId)
197                    throws com.liferay.portal.kernel.exception.PortalException {
198                    getService().deleteFileEntries(groupId, folderId);
199            }
200    
201            public static void deleteFileEntries(long groupId, long folderId,
202                    boolean includeTrashedEntries)
203                    throws com.liferay.portal.kernel.exception.PortalException {
204                    getService().deleteFileEntries(groupId, folderId, includeTrashedEntries);
205            }
206    
207            public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
208                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
209                    throws com.liferay.portal.kernel.exception.PortalException {
210                    return getService().deleteFileEntry(dlFileEntry);
211            }
212    
213            public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
214                    long fileEntryId)
215                    throws com.liferay.portal.kernel.exception.PortalException {
216                    return getService().deleteFileEntry(fileEntryId);
217            }
218    
219            public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
220                    long userId, long fileEntryId)
221                    throws com.liferay.portal.kernel.exception.PortalException {
222                    return getService().deleteFileEntry(userId, fileEntryId);
223            }
224    
225            public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileVersion(
226                    long userId, long fileEntryId, java.lang.String version)
227                    throws com.liferay.portal.kernel.exception.PortalException {
228                    return getService().deleteFileVersion(userId, fileEntryId, version);
229            }
230    
231            /**
232            * @throws PortalException
233            */
234            public static com.liferay.portal.model.PersistedModel deletePersistedModel(
235                    com.liferay.portal.model.PersistedModel persistedModel)
236                    throws com.liferay.portal.kernel.exception.PortalException {
237                    return getService().deletePersistedModel(persistedModel);
238            }
239    
240            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
241                    return getService().dynamicQuery();
242            }
243    
244            /**
245            * Performs a dynamic query on the database and returns the matching rows.
246            *
247            * @param dynamicQuery the dynamic query
248            * @return the matching rows
249            */
250            public static <T> java.util.List<T> dynamicQuery(
251                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
252                    return getService().dynamicQuery(dynamicQuery);
253            }
254    
255            /**
256            * Performs a dynamic query on the database and returns a range of the matching rows.
257            *
258            * <p>
259            * 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.
260            * </p>
261            *
262            * @param dynamicQuery the dynamic query
263            * @param start the lower bound of the range of model instances
264            * @param end the upper bound of the range of model instances (not inclusive)
265            * @return the range of matching rows
266            */
267            public static <T> java.util.List<T> dynamicQuery(
268                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
269                    int end) {
270                    return getService().dynamicQuery(dynamicQuery, start, end);
271            }
272    
273            /**
274            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
275            *
276            * <p>
277            * 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.
278            * </p>
279            *
280            * @param dynamicQuery the dynamic query
281            * @param start the lower bound of the range of model instances
282            * @param end the upper bound of the range of model instances (not inclusive)
283            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
284            * @return the ordered range of matching rows
285            */
286            public static <T> java.util.List<T> dynamicQuery(
287                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
288                    int end,
289                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
290                    return getService()
291                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
292            }
293    
294            /**
295            * Returns the number of rows that match the dynamic query.
296            *
297            * @param dynamicQuery the dynamic query
298            * @return the number of rows that match the dynamic query
299            */
300            public static long dynamicQueryCount(
301                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
302                    return getService().dynamicQueryCount(dynamicQuery);
303            }
304    
305            /**
306            * Returns the number of rows that match the dynamic query.
307            *
308            * @param dynamicQuery the dynamic query
309            * @param projection the projection to apply to the query
310            * @return the number of rows that match the dynamic query
311            */
312            public static long dynamicQueryCount(
313                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
314                    com.liferay.portal.kernel.dao.orm.Projection projection) {
315                    return getService().dynamicQueryCount(dynamicQuery, projection);
316            }
317    
318            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchDLFileEntry(
319                    long fileEntryId) {
320                    return getService().fetchDLFileEntry(fileEntryId);
321            }
322    
323            /**
324            * Returns the document library file entry matching the UUID and group.
325            *
326            * @param uuid the document library file entry's UUID
327            * @param groupId the primary key of the group
328            * @return the matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
329            */
330            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchDLFileEntryByUuidAndGroupId(
331                    java.lang.String uuid, long groupId) {
332                    return getService().fetchDLFileEntryByUuidAndGroupId(uuid, groupId);
333            }
334    
335            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntry(
336                    long groupId, long folderId, java.lang.String title) {
337                    return getService().fetchFileEntry(groupId, folderId, title);
338            }
339    
340            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByAnyImageId(
341                    long imageId) {
342                    return getService().fetchFileEntryByAnyImageId(imageId);
343            }
344    
345            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByFileName(
346                    long groupId, long folderId, java.lang.String fileName) {
347                    return getService().fetchFileEntryByFileName(groupId, folderId, fileName);
348            }
349    
350            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByName(
351                    long groupId, long folderId, java.lang.String name) {
352                    return getService().fetchFileEntryByName(groupId, folderId, name);
353            }
354    
355            public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
356                    return getService().getActionableDynamicQuery();
357            }
358    
359            /**
360            * Returns the Spring bean ID for this bean.
361            *
362            * @return the Spring bean ID for this bean
363            */
364            public static java.lang.String getBeanIdentifier() {
365                    return getService().getBeanIdentifier();
366            }
367    
368            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDDMStructureFileEntries(
369                    long[] ddmStructureIds) {
370                    return getService().getDDMStructureFileEntries(ddmStructureIds);
371            }
372    
373            /**
374            * Returns a range of all the document library file entries.
375            *
376            * <p>
377            * 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.
378            * </p>
379            *
380            * @param start the lower bound of the range of document library file entries
381            * @param end the upper bound of the range of document library file entries (not inclusive)
382            * @return the range of document library file entries
383            */
384            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntries(
385                    int start, int end) {
386                    return getService().getDLFileEntries(start, end);
387            }
388    
389            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntriesByUuidAndCompanyId(
390                    java.lang.String uuid, long companyId) {
391                    return getService().getDLFileEntriesByUuidAndCompanyId(uuid, companyId);
392            }
393    
394            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntriesByUuidAndCompanyId(
395                    java.lang.String uuid, long companyId, int start, int end,
396                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> orderByComparator) {
397                    return getService()
398                                       .getDLFileEntriesByUuidAndCompanyId(uuid, companyId, start,
399                            end, orderByComparator);
400            }
401    
402            /**
403            * Returns the number of document library file entries.
404            *
405            * @return the number of document library file entries
406            */
407            public static int getDLFileEntriesCount() {
408                    return getService().getDLFileEntriesCount();
409            }
410    
411            /**
412            * Returns the document library file entry with the primary key.
413            *
414            * @param fileEntryId the primary key of the document library file entry
415            * @return the document library file entry
416            * @throws PortalException if a document library file entry with the primary key could not be found
417            */
418            public static com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntry(
419                    long fileEntryId)
420                    throws com.liferay.portal.kernel.exception.PortalException {
421                    return getService().getDLFileEntry(fileEntryId);
422            }
423    
424            /**
425            * Returns the document library file entry matching the UUID and group.
426            *
427            * @param uuid the document library file entry's UUID
428            * @param groupId the primary key of the group
429            * @return the matching document library file entry
430            * @throws PortalException if a matching document library file entry could not be found
431            */
432            public static com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntryByUuidAndGroupId(
433                    java.lang.String uuid, long groupId)
434                    throws com.liferay.portal.kernel.exception.PortalException {
435                    return getService().getDLFileEntryByUuidAndGroupId(uuid, groupId);
436            }
437    
438            public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
439                    com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) {
440                    return getService().getExportActionableDynamicQuery(portletDataContext);
441            }
442    
443            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getExtraSettingsFileEntries(
444                    int start, int end) {
445                    return getService().getExtraSettingsFileEntries(start, end);
446            }
447    
448            public static int getExtraSettingsFileEntriesCount() {
449                    return getService().getExtraSettingsFileEntriesCount();
450            }
451    
452            public static java.io.File getFile(long fileEntryId,
453                    java.lang.String version, boolean incrementCounter)
454                    throws com.liferay.portal.kernel.exception.PortalException {
455                    return getService().getFile(fileEntryId, version, incrementCounter);
456            }
457    
458            public static java.io.File getFile(long fileEntryId,
459                    java.lang.String version, boolean incrementCounter, int increment)
460                    throws com.liferay.portal.kernel.exception.PortalException {
461                    return getService()
462                                       .getFile(fileEntryId, version, incrementCounter, increment);
463            }
464    
465            /**
466            * @deprecated As of 7.0.0, replaced by {@link #getFile(long, String,
467            boolean)}
468            */
469            @Deprecated
470            public static java.io.File getFile(long userId, long fileEntryId,
471                    java.lang.String version, boolean incrementCounter)
472                    throws com.liferay.portal.kernel.exception.PortalException {
473                    return getService()
474                                       .getFile(userId, fileEntryId, version, incrementCounter);
475            }
476    
477            /**
478            * @deprecated As of 7.0.0, replaced by {@link #getFile(long, String,
479            boolean, int)}
480            */
481            @Deprecated
482            public static java.io.File getFile(long userId, long fileEntryId,
483                    java.lang.String version, boolean incrementCounter, int increment)
484                    throws com.liferay.portal.kernel.exception.PortalException {
485                    return getService()
486                                       .getFile(userId, fileEntryId, version, incrementCounter,
487                            increment);
488            }
489    
490            public static java.io.InputStream getFileAsStream(long fileEntryId,
491                    java.lang.String version)
492                    throws com.liferay.portal.kernel.exception.PortalException {
493                    return getService().getFileAsStream(fileEntryId, version);
494            }
495    
496            public static java.io.InputStream getFileAsStream(long fileEntryId,
497                    java.lang.String version, boolean incrementCounter)
498                    throws com.liferay.portal.kernel.exception.PortalException {
499                    return getService()
500                                       .getFileAsStream(fileEntryId, version, incrementCounter);
501            }
502    
503            public static java.io.InputStream getFileAsStream(long fileEntryId,
504                    java.lang.String version, boolean incrementCounter, int increment)
505                    throws com.liferay.portal.kernel.exception.PortalException {
506                    return getService()
507                                       .getFileAsStream(fileEntryId, version, incrementCounter,
508                            increment);
509            }
510    
511            /**
512            * @deprecated As of 7.0.0, replaced by {@link #getFileAsStream(long,
513            String)}
514            */
515            @Deprecated
516            public static java.io.InputStream getFileAsStream(long userId,
517                    long fileEntryId, java.lang.String version)
518                    throws com.liferay.portal.kernel.exception.PortalException {
519                    return getService().getFileAsStream(userId, fileEntryId, version);
520            }
521    
522            /**
523            * @deprecated As of 7.0.0, replaced by {@link #getFileAsStream(long,
524            String, boolean)}
525            */
526            @Deprecated
527            public static java.io.InputStream getFileAsStream(long userId,
528                    long fileEntryId, java.lang.String version, boolean incrementCounter)
529                    throws com.liferay.portal.kernel.exception.PortalException {
530                    return getService()
531                                       .getFileAsStream(userId, fileEntryId, version,
532                            incrementCounter);
533            }
534    
535            /**
536            * @deprecated As of 7.0.0, replaced by {@link #getFileAsStream(long,
537            String, boolean, int)}
538            */
539            @Deprecated
540            public static java.io.InputStream getFileAsStream(long userId,
541                    long fileEntryId, java.lang.String version, boolean incrementCounter,
542                    int increment)
543                    throws com.liferay.portal.kernel.exception.PortalException {
544                    return getService()
545                                       .getFileAsStream(userId, fileEntryId, version,
546                            incrementCounter, increment);
547            }
548    
549            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
550                    long folderId, java.lang.String name) {
551                    return getService().getFileEntries(folderId, name);
552            }
553    
554            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
555                    long groupId, long folderId) {
556                    return getService().getFileEntries(groupId, folderId);
557            }
558    
559            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
560                    long groupId, long folderId, int start, int end,
561                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc) {
562                    return getService().getFileEntries(groupId, folderId, start, end, obc);
563            }
564    
565            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
566                    long groupId, long folderId, int status, int start, int end,
567                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc) {
568                    return getService()
569                                       .getFileEntries(groupId, folderId, status, start, end, obc);
570            }
571    
572            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
573                    long groupId, long userId, java.util.List<java.lang.Long> folderIds,
574                    java.lang.String[] mimeTypes,
575                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
576                    throws java.lang.Exception {
577                    return getService()
578                                       .getFileEntries(groupId, userId, folderIds, mimeTypes,
579                            queryDefinition);
580            }
581    
582            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
583                    long groupId, long userId,
584                    java.util.List<java.lang.Long> repositoryIds,
585                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
586                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
587                    throws java.lang.Exception {
588                    return getService()
589                                       .getFileEntries(groupId, userId, repositoryIds, folderIds,
590                            mimeTypes, queryDefinition);
591            }
592    
593            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
594                    int start, int end) {
595                    return getService().getFileEntries(start, end);
596            }
597    
598            public static int getFileEntriesCount() {
599                    return getService().getFileEntriesCount();
600            }
601    
602            public static int getFileEntriesCount(long groupId,
603                    com.liferay.portal.kernel.util.DateRange dateRange, long repositoryId,
604                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition) {
605                    return getService()
606                                       .getFileEntriesCount(groupId, dateRange, repositoryId,
607                            queryDefinition);
608            }
609    
610            public static int getFileEntriesCount(long groupId, long folderId) {
611                    return getService().getFileEntriesCount(groupId, folderId);
612            }
613    
614            public static int getFileEntriesCount(long groupId, long folderId,
615                    int status) {
616                    return getService().getFileEntriesCount(groupId, folderId, status);
617            }
618    
619            public static int getFileEntriesCount(long groupId, long userId,
620                    java.util.List<java.lang.Long> folderIds, 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                                       .getFileEntriesCount(groupId, userId, folderIds, mimeTypes,
625                            queryDefinition);
626            }
627    
628            public static int getFileEntriesCount(long groupId, long userId,
629                    java.util.List<java.lang.Long> repositoryIds,
630                    java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
631                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
632                    throws java.lang.Exception {
633                    return getService()
634                                       .getFileEntriesCount(groupId, userId, repositoryIds,
635                            folderIds, mimeTypes, queryDefinition);
636            }
637    
638            public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
639                    long fileEntryId)
640                    throws com.liferay.portal.kernel.exception.PortalException {
641                    return getService().getFileEntry(fileEntryId);
642            }
643    
644            public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
645                    long groupId, long folderId, java.lang.String title)
646                    throws com.liferay.portal.kernel.exception.PortalException {
647                    return getService().getFileEntry(groupId, folderId, title);
648            }
649    
650            public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByName(
651                    long groupId, long folderId, java.lang.String name)
652                    throws com.liferay.portal.kernel.exception.PortalException {
653                    return getService().getFileEntryByName(groupId, folderId, name);
654            }
655    
656            public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
657                    java.lang.String uuid, long groupId)
658                    throws com.liferay.portal.kernel.exception.PortalException {
659                    return getService().getFileEntryByUuidAndGroupId(uuid, groupId);
660            }
661    
662            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
663                    long groupId, int start, int end) {
664                    return getService().getGroupFileEntries(groupId, start, end);
665            }
666    
667            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
668                    long groupId, int start, int end,
669                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc) {
670                    return getService().getGroupFileEntries(groupId, start, end, obc);
671            }
672    
673            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
674                    long groupId, long userId, long rootFolderId, int start, int end,
675                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc) {
676                    return getService()
677                                       .getGroupFileEntries(groupId, userId, rootFolderId, start,
678                            end, obc);
679            }
680    
681            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
682                    long groupId, long userId, int start, int end) {
683                    return getService().getGroupFileEntries(groupId, userId, start, end);
684            }
685    
686            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
687                    long groupId, long userId, int start, int end,
688                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc) {
689                    return getService().getGroupFileEntries(groupId, userId, start, end, obc);
690            }
691    
692            public static int getGroupFileEntriesCount(long groupId) {
693                    return getService().getGroupFileEntriesCount(groupId);
694            }
695    
696            public static int getGroupFileEntriesCount(long groupId, long userId) {
697                    return getService().getGroupFileEntriesCount(groupId, userId);
698            }
699    
700            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getMisversionedFileEntries() {
701                    return getService().getMisversionedFileEntries();
702            }
703    
704            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries() {
705                    return getService().getNoAssetFileEntries();
706            }
707    
708            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getOrphanedFileEntries() {
709                    return getService().getOrphanedFileEntries();
710            }
711    
712            public static com.liferay.portal.model.PersistedModel getPersistedModel(
713                    java.io.Serializable primaryKeyObj)
714                    throws com.liferay.portal.kernel.exception.PortalException {
715                    return getService().getPersistedModel(primaryKeyObj);
716            }
717    
718            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getRepositoryFileEntries(
719                    long repositoryId, int start, int end) {
720                    return getService().getRepositoryFileEntries(repositoryId, start, end);
721            }
722    
723            public static int getRepositoryFileEntriesCount(long repositoryId) {
724                    return getService().getRepositoryFileEntriesCount(repositoryId);
725            }
726    
727            public static boolean hasExtraSettings() {
728                    return getService().hasExtraSettings();
729            }
730    
731            public static boolean hasFileEntryLock(long userId, long fileEntryId)
732                    throws com.liferay.portal.kernel.exception.PortalException {
733                    return getService().hasFileEntryLock(userId, fileEntryId);
734            }
735    
736            public static void incrementViewCounter(
737                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
738                    int increment) {
739                    getService().incrementViewCounter(dlFileEntry, increment);
740            }
741    
742            public static boolean isFileEntryCheckedOut(long fileEntryId)
743                    throws com.liferay.portal.kernel.exception.PortalException {
744                    return getService().isFileEntryCheckedOut(fileEntryId);
745            }
746    
747            public static com.liferay.portal.model.Lock lockFileEntry(long userId,
748                    long fileEntryId)
749                    throws com.liferay.portal.kernel.exception.PortalException {
750                    return getService().lockFileEntry(userId, fileEntryId);
751            }
752    
753            public static com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
754                    long userId, long fileEntryId, long newFolderId,
755                    com.liferay.portal.service.ServiceContext serviceContext)
756                    throws com.liferay.portal.kernel.exception.PortalException {
757                    return getService()
758                                       .moveFileEntry(userId, fileEntryId, newFolderId,
759                            serviceContext);
760            }
761    
762            public static void rebuildTree(long companyId)
763                    throws com.liferay.portal.kernel.exception.PortalException {
764                    getService().rebuildTree(companyId);
765            }
766    
767            public static void revertFileEntry(long userId, long fileEntryId,
768                    java.lang.String version,
769                    com.liferay.portal.service.ServiceContext serviceContext)
770                    throws com.liferay.portal.kernel.exception.PortalException {
771                    getService()
772                            .revertFileEntry(userId, fileEntryId, version, serviceContext);
773            }
774    
775            public static com.liferay.portal.kernel.search.Hits search(long groupId,
776                    long userId, long creatorUserId, long folderId,
777                    java.lang.String[] mimeTypes, int status, int start, int end)
778                    throws com.liferay.portal.kernel.exception.PortalException {
779                    return getService()
780                                       .search(groupId, userId, creatorUserId, folderId, mimeTypes,
781                            status, start, end);
782            }
783    
784            public static com.liferay.portal.kernel.search.Hits search(long groupId,
785                    long userId, long creatorUserId, int status, int start, int end)
786                    throws com.liferay.portal.kernel.exception.PortalException {
787                    return getService()
788                                       .search(groupId, userId, creatorUserId, status, start, end);
789            }
790    
791            /**
792            * Sets the Spring bean ID for this bean.
793            *
794            * @param beanIdentifier the Spring bean ID for this bean
795            */
796            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
797                    getService().setBeanIdentifier(beanIdentifier);
798            }
799    
800            public static void setTreePaths(long folderId, java.lang.String treePath,
801                    boolean reindex)
802                    throws com.liferay.portal.kernel.exception.PortalException {
803                    getService().setTreePaths(folderId, treePath, reindex);
804            }
805    
806            public static void unlockFileEntry(long fileEntryId) {
807                    getService().unlockFileEntry(fileEntryId);
808            }
809    
810            /**
811            * Updates the document library file entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
812            *
813            * @param dlFileEntry the document library file entry
814            * @return the document library file entry that was updated
815            */
816            public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
817                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry) {
818                    return getService().updateDLFileEntry(dlFileEntry);
819            }
820    
821            public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
822                    long userId, long fileEntryId, java.lang.String sourceFileName,
823                    java.lang.String mimeType, java.lang.String title,
824                    java.lang.String description, java.lang.String changeLog,
825                    boolean majorVersion, long fileEntryTypeId,
826                    java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
827                    java.io.File file, java.io.InputStream is, long size,
828                    com.liferay.portal.service.ServiceContext serviceContext)
829                    throws com.liferay.portal.kernel.exception.PortalException {
830                    return getService()
831                                       .updateFileEntry(userId, fileEntryId, sourceFileName,
832                            mimeType, title, description, changeLog, majorVersion,
833                            fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
834            }
835    
836            public static void updateSmallImage(long smallImageId, long largeImageId)
837                    throws com.liferay.portal.kernel.exception.PortalException {
838                    getService().updateSmallImage(smallImageId, largeImageId);
839            }
840    
841            public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateStatus(
842                    long userId, long fileVersionId, int status,
843                    com.liferay.portal.service.ServiceContext serviceContext,
844                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
845                    throws com.liferay.portal.kernel.exception.PortalException {
846                    return getService()
847                                       .updateStatus(userId, fileVersionId, status, serviceContext,
848                            workflowContext);
849            }
850    
851            public static void validateFile(long groupId, long folderId,
852                    long fileEntryId, java.lang.String fileName, java.lang.String title)
853                    throws com.liferay.portal.kernel.exception.PortalException {
854                    getService()
855                            .validateFile(groupId, folderId, fileEntryId, fileName, title);
856            }
857    
858            public static boolean verifyFileEntryCheckOut(long fileEntryId,
859                    java.lang.String lockUuid)
860                    throws com.liferay.portal.kernel.exception.PortalException {
861                    return getService().verifyFileEntryCheckOut(fileEntryId, lockUuid);
862            }
863    
864            public static boolean verifyFileEntryLock(long fileEntryId,
865                    java.lang.String lockUuid)
866                    throws com.liferay.portal.kernel.exception.PortalException {
867                    return getService().verifyFileEntryLock(fileEntryId, lockUuid);
868            }
869    
870            public static DLFileEntryLocalService getService() {
871                    if (_service == null) {
872                            _service = (DLFileEntryLocalService)PortalBeanLocatorUtil.locate(DLFileEntryLocalService.class.getName());
873    
874                            ReferenceRegistry.registerReference(DLFileEntryLocalServiceUtil.class,
875                                    "_service");
876                    }
877    
878                    return _service;
879            }
880    
881            /**
882             * @deprecated As of 6.2.0
883             */
884            @Deprecated
885            public void setService(DLFileEntryLocalService service) {
886            }
887    
888            private static DLFileEntryLocalService _service;
889    }