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.
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.
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 with the UUID in the group.
197            *
198            * @param uuid the UUID of document library file entry
199            * @param groupId the group id of the document library file entry
200            * @return the document library file entry
201            * @throws PortalException if a document library file entry with the UUID in the group 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.
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            * Updates the document library file entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
255            *
256            * @param dlFileEntry the document library file entry
257            * @param merge whether to merge the document library file entry with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
258            * @return the document library file entry that was updated
259            * @throws SystemException if a system exception occurred
260            */
261            public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
262                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
263                    boolean merge)
264                    throws com.liferay.portal.kernel.exception.SystemException {
265                    return getService().updateDLFileEntry(dlFileEntry, merge);
266            }
267    
268            /**
269            * Returns the Spring bean ID for this bean.
270            *
271            * @return the Spring bean ID for this bean
272            */
273            public static java.lang.String getBeanIdentifier() {
274                    return getService().getBeanIdentifier();
275            }
276    
277            /**
278            * Sets the Spring bean ID for this bean.
279            *
280            * @param beanIdentifier the Spring bean ID for this bean
281            */
282            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
283                    getService().setBeanIdentifier(beanIdentifier);
284            }
285    
286            public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
287                    long userId, long groupId, long repositoryId, long folderId,
288                    java.lang.String sourceFileName, java.lang.String mimeType,
289                    java.lang.String title, java.lang.String description,
290                    java.lang.String changeLog, long fileEntryTypeId,
291                    java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
292                    java.io.File file, java.io.InputStream is, long size,
293                    com.liferay.portal.service.ServiceContext serviceContext)
294                    throws com.liferay.portal.kernel.exception.PortalException,
295                            com.liferay.portal.kernel.exception.SystemException {
296                    return getService()
297                                       .addFileEntry(userId, groupId, repositoryId, folderId,
298                            sourceFileName, mimeType, title, description, changeLog,
299                            fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
300            }
301    
302            public static com.liferay.portlet.documentlibrary.model.DLFileVersion cancelCheckOut(
303                    long userId, long fileEntryId)
304                    throws com.liferay.portal.kernel.exception.PortalException,
305                            com.liferay.portal.kernel.exception.SystemException {
306                    return getService().cancelCheckOut(userId, fileEntryId);
307            }
308    
309            public static void checkInFileEntry(long userId, long fileEntryId,
310                    boolean majorVersion, java.lang.String changeLog,
311                    com.liferay.portal.service.ServiceContext serviceContext)
312                    throws com.liferay.portal.kernel.exception.PortalException,
313                            com.liferay.portal.kernel.exception.SystemException {
314                    getService()
315                            .checkInFileEntry(userId, fileEntryId, majorVersion, changeLog,
316                            serviceContext);
317            }
318    
319            public static void checkInFileEntry(long userId, long fileEntryId,
320                    java.lang.String lockUuid)
321                    throws com.liferay.portal.kernel.exception.PortalException,
322                            com.liferay.portal.kernel.exception.SystemException {
323                    getService().checkInFileEntry(userId, fileEntryId, lockUuid);
324            }
325    
326            /**
327            * @deprecated {@link #checkOutFileEntry(long, long, ServiceContext)}
328            */
329            public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
330                    long userId, long fileEntryId)
331                    throws com.liferay.portal.kernel.exception.PortalException,
332                            com.liferay.portal.kernel.exception.SystemException {
333                    return getService().checkOutFileEntry(userId, fileEntryId);
334            }
335    
336            public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
337                    long userId, long fileEntryId,
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                                       .checkOutFileEntry(userId, fileEntryId, serviceContext);
343            }
344    
345            /**
346            * @deprecated {@link #checkOutFileEntry(long, long, String, long,
347            ServiceContext)}
348            */
349            public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
350                    long userId, long fileEntryId, java.lang.String owner,
351                    long expirationTime)
352                    throws com.liferay.portal.kernel.exception.PortalException,
353                            com.liferay.portal.kernel.exception.SystemException {
354                    return getService()
355                                       .checkOutFileEntry(userId, fileEntryId, owner, expirationTime);
356            }
357    
358            public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
359                    long userId, long fileEntryId, java.lang.String owner,
360                    long expirationTime,
361                    com.liferay.portal.service.ServiceContext serviceContext)
362                    throws com.liferay.portal.kernel.exception.PortalException,
363                            com.liferay.portal.kernel.exception.SystemException {
364                    return getService()
365                                       .checkOutFileEntry(userId, fileEntryId, owner,
366                            expirationTime, serviceContext);
367            }
368    
369            public static void convertExtraSettings(java.lang.String[] keys)
370                    throws com.liferay.portal.kernel.exception.PortalException,
371                            com.liferay.portal.kernel.exception.SystemException {
372                    getService().convertExtraSettings(keys);
373            }
374    
375            public static void copyFileEntryMetadata(long companyId,
376                    long fileEntryTypeId, long fileEntryId, long fromFileVersionId,
377                    long toFileVersionId,
378                    com.liferay.portal.service.ServiceContext serviceContext)
379                    throws com.liferay.portal.kernel.exception.PortalException,
380                            com.liferay.portal.kernel.exception.SystemException {
381                    getService()
382                            .copyFileEntryMetadata(companyId, fileEntryTypeId, fileEntryId,
383                            fromFileVersionId, toFileVersionId, serviceContext);
384            }
385    
386            public static void deleteFileEntries(long groupId, long folderId)
387                    throws com.liferay.portal.kernel.exception.PortalException,
388                            com.liferay.portal.kernel.exception.SystemException {
389                    getService().deleteFileEntries(groupId, folderId);
390            }
391    
392            public static void deleteFileEntry(long fileEntryId)
393                    throws com.liferay.portal.kernel.exception.PortalException,
394                            com.liferay.portal.kernel.exception.SystemException {
395                    getService().deleteFileEntry(fileEntryId);
396            }
397    
398            public static void deleteFileEntry(long userId, long fileEntryId)
399                    throws com.liferay.portal.kernel.exception.PortalException,
400                            com.liferay.portal.kernel.exception.SystemException {
401                    getService().deleteFileEntry(userId, fileEntryId);
402            }
403    
404            public static void deleteFileVersion(long userId, long fileEntryId,
405                    java.lang.String version)
406                    throws com.liferay.portal.kernel.exception.PortalException,
407                            com.liferay.portal.kernel.exception.SystemException {
408                    getService().deleteFileVersion(userId, fileEntryId, version);
409            }
410    
411            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByAnyImageId(
412                    long imageId)
413                    throws com.liferay.portal.kernel.exception.SystemException {
414                    return getService().fetchFileEntryByAnyImageId(imageId);
415            }
416    
417            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByName(
418                    long groupId, long folderId, java.lang.String name)
419                    throws com.liferay.portal.kernel.exception.SystemException {
420                    return getService().fetchFileEntryByName(groupId, folderId, name);
421            }
422    
423            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getExtraSettingsFileEntries(
424                    int start, int end)
425                    throws com.liferay.portal.kernel.exception.SystemException {
426                    return getService().getExtraSettingsFileEntries(start, end);
427            }
428    
429            public static java.io.File getFile(long userId, long fileEntryId,
430                    java.lang.String version, boolean incrementCounter)
431                    throws com.liferay.portal.kernel.exception.PortalException,
432                            com.liferay.portal.kernel.exception.SystemException {
433                    return getService()
434                                       .getFile(userId, fileEntryId, version, incrementCounter);
435            }
436    
437            public static java.io.InputStream getFileAsStream(long userId,
438                    long fileEntryId, java.lang.String version)
439                    throws com.liferay.portal.kernel.exception.PortalException,
440                            com.liferay.portal.kernel.exception.SystemException {
441                    return getService().getFileAsStream(userId, fileEntryId, version);
442            }
443    
444            public static java.io.InputStream getFileAsStream(long userId,
445                    long fileEntryId, java.lang.String version, boolean incrementCounter)
446                    throws com.liferay.portal.kernel.exception.PortalException,
447                            com.liferay.portal.kernel.exception.SystemException {
448                    return getService()
449                                       .getFileAsStream(userId, fileEntryId, version,
450                            incrementCounter);
451            }
452    
453            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
454                    int start, int end)
455                    throws com.liferay.portal.kernel.exception.SystemException {
456                    return getService().getFileEntries(start, end);
457            }
458    
459            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
460                    long groupId, long folderId, int start, int end,
461                    com.liferay.portal.kernel.util.OrderByComparator obc)
462                    throws com.liferay.portal.kernel.exception.SystemException {
463                    return getService().getFileEntries(groupId, folderId, start, end, obc);
464            }
465    
466            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
467                    long folderId, java.lang.String name)
468                    throws com.liferay.portal.kernel.exception.SystemException {
469                    return getService().getFileEntries(folderId, name);
470            }
471    
472            public static int getFileEntriesCount()
473                    throws com.liferay.portal.kernel.exception.SystemException {
474                    return getService().getFileEntriesCount();
475            }
476    
477            public static int getFileEntriesCount(long groupId, long folderId)
478                    throws com.liferay.portal.kernel.exception.SystemException {
479                    return getService().getFileEntriesCount(groupId, folderId);
480            }
481    
482            public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
483                    long fileEntryId)
484                    throws com.liferay.portal.kernel.exception.PortalException,
485                            com.liferay.portal.kernel.exception.SystemException {
486                    return getService().getFileEntry(fileEntryId);
487            }
488    
489            public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
490                    long groupId, long folderId, java.lang.String title)
491                    throws com.liferay.portal.kernel.exception.PortalException,
492                            com.liferay.portal.kernel.exception.SystemException {
493                    return getService().getFileEntry(groupId, folderId, title);
494            }
495    
496            public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByName(
497                    long groupId, long folderId, java.lang.String name)
498                    throws com.liferay.portal.kernel.exception.PortalException,
499                            com.liferay.portal.kernel.exception.SystemException {
500                    return getService().getFileEntryByName(groupId, folderId, name);
501            }
502    
503            public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
504                    java.lang.String uuid, long groupId)
505                    throws com.liferay.portal.kernel.exception.PortalException,
506                            com.liferay.portal.kernel.exception.SystemException {
507                    return getService().getFileEntryByUuidAndGroupId(uuid, groupId);
508            }
509    
510            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
511                    long groupId, int start, int end)
512                    throws com.liferay.portal.kernel.exception.SystemException {
513                    return getService().getGroupFileEntries(groupId, start, end);
514            }
515    
516            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
517                    long groupId, int start, int end,
518                    com.liferay.portal.kernel.util.OrderByComparator obc)
519                    throws com.liferay.portal.kernel.exception.SystemException {
520                    return getService().getGroupFileEntries(groupId, start, end, obc);
521            }
522    
523            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
524                    long groupId, long userId, int start, int end)
525                    throws com.liferay.portal.kernel.exception.SystemException {
526                    return getService().getGroupFileEntries(groupId, userId, start, end);
527            }
528    
529            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
530                    long groupId, long userId, int start, int end,
531                    com.liferay.portal.kernel.util.OrderByComparator obc)
532                    throws com.liferay.portal.kernel.exception.SystemException {
533                    return getService().getGroupFileEntries(groupId, userId, start, end, obc);
534            }
535    
536            public static int getGroupFileEntriesCount(long groupId)
537                    throws com.liferay.portal.kernel.exception.SystemException {
538                    return getService().getGroupFileEntriesCount(groupId);
539            }
540    
541            public static int getGroupFileEntriesCount(long groupId, long userId)
542                    throws com.liferay.portal.kernel.exception.SystemException {
543                    return getService().getGroupFileEntriesCount(groupId, userId);
544            }
545    
546            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getMisversionedFileEntries()
547                    throws com.liferay.portal.kernel.exception.SystemException {
548                    return getService().getMisversionedFileEntries();
549            }
550    
551            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries()
552                    throws com.liferay.portal.kernel.exception.SystemException {
553                    return getService().getNoAssetFileEntries();
554            }
555    
556            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getOrphanedFileEntries()
557                    throws com.liferay.portal.kernel.exception.SystemException {
558                    return getService().getOrphanedFileEntries();
559            }
560    
561            public static boolean hasExtraSettings()
562                    throws com.liferay.portal.kernel.exception.SystemException {
563                    return getService().hasExtraSettings();
564            }
565    
566            public static boolean hasFileEntryLock(long userId, long fileEntryId)
567                    throws com.liferay.portal.kernel.exception.PortalException,
568                            com.liferay.portal.kernel.exception.SystemException {
569                    return getService().hasFileEntryLock(userId, fileEntryId);
570            }
571    
572            public static boolean isFileEntryCheckedOut(long fileEntryId)
573                    throws com.liferay.portal.kernel.exception.PortalException,
574                            com.liferay.portal.kernel.exception.SystemException {
575                    return getService().isFileEntryCheckedOut(fileEntryId);
576            }
577    
578            public static com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
579                    long userId, long fileEntryId, long newFolderId,
580                    com.liferay.portal.service.ServiceContext serviceContext)
581                    throws com.liferay.portal.kernel.exception.PortalException,
582                            com.liferay.portal.kernel.exception.SystemException {
583                    return getService()
584                                       .moveFileEntry(userId, fileEntryId, newFolderId,
585                            serviceContext);
586            }
587    
588            public static void revertFileEntry(long userId, long fileEntryId,
589                    java.lang.String version,
590                    com.liferay.portal.service.ServiceContext serviceContext)
591                    throws com.liferay.portal.kernel.exception.PortalException,
592                            com.liferay.portal.kernel.exception.SystemException {
593                    getService()
594                            .revertFileEntry(userId, fileEntryId, version, serviceContext);
595            }
596    
597            public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
598                    long userId, long fileEntryId, java.lang.String sourceFileName,
599                    java.lang.String mimeType, java.lang.String title,
600                    java.lang.String description, java.lang.String changeLog,
601                    boolean majorVersion, long fileEntryTypeId,
602                    java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
603                    java.io.File file, java.io.InputStream is, long size,
604                    com.liferay.portal.service.ServiceContext serviceContext)
605                    throws com.liferay.portal.kernel.exception.PortalException,
606                            com.liferay.portal.kernel.exception.SystemException {
607                    return getService()
608                                       .updateFileEntry(userId, fileEntryId, sourceFileName,
609                            mimeType, title, description, changeLog, majorVersion,
610                            fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
611            }
612    
613            public static void updateSmallImage(long smallImageId, long largeImageId)
614                    throws com.liferay.portal.kernel.exception.PortalException,
615                            com.liferay.portal.kernel.exception.SystemException {
616                    getService().updateSmallImage(smallImageId, largeImageId);
617            }
618    
619            public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateStatus(
620                    long userId, long fileVersionId, int status,
621                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
622                    com.liferay.portal.service.ServiceContext serviceContext)
623                    throws com.liferay.portal.kernel.exception.PortalException,
624                            com.liferay.portal.kernel.exception.SystemException {
625                    return getService()
626                                       .updateStatus(userId, fileVersionId, status,
627                            workflowContext, serviceContext);
628            }
629    
630            public static boolean verifyFileEntryCheckOut(long fileEntryId,
631                    java.lang.String lockUuid)
632                    throws com.liferay.portal.kernel.exception.PortalException,
633                            com.liferay.portal.kernel.exception.SystemException {
634                    return getService().verifyFileEntryCheckOut(fileEntryId, lockUuid);
635            }
636    
637            public static boolean verifyFileEntryLock(long fileEntryId,
638                    java.lang.String lockUuid)
639                    throws com.liferay.portal.kernel.exception.PortalException,
640                            com.liferay.portal.kernel.exception.SystemException {
641                    return getService().verifyFileEntryLock(fileEntryId, lockUuid);
642            }
643    
644            public static DLFileEntryLocalService getService() {
645                    if (_service == null) {
646                            _service = (DLFileEntryLocalService)PortalBeanLocatorUtil.locate(DLFileEntryLocalService.class.getName());
647    
648                            ReferenceRegistry.registerReference(DLFileEntryLocalServiceUtil.class,
649                                    "_service");
650                    }
651    
652                    return _service;
653            }
654    
655            /**
656             * @deprecated
657             */
658            public void setService(DLFileEntryLocalService service) {
659            }
660    
661            private static DLFileEntryLocalService _service;
662    }