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