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