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