001    /**
002     * Copyright (c) 2000-2012 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 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. 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 {@link #checkInFileEntry(long, long, String, ServiceContext)}
306            */
307            public static void checkInFileEntry(long userId, long fileEntryId,
308                    java.lang.String lockUuid)
309                    throws com.liferay.portal.kernel.exception.PortalException,
310                            com.liferay.portal.kernel.exception.SystemException {
311                    getService().checkInFileEntry(userId, fileEntryId, lockUuid);
312            }
313    
314            public static void checkInFileEntry(long userId, long fileEntryId,
315                    java.lang.String lockUuid,
316                    com.liferay.portal.service.ServiceContext serviceContext)
317                    throws com.liferay.portal.kernel.exception.PortalException,
318                            com.liferay.portal.kernel.exception.SystemException {
319                    getService()
320                            .checkInFileEntry(userId, fileEntryId, lockUuid, serviceContext);
321            }
322    
323            /**
324            * @deprecated {@link #checkOutFileEntry(long, long, ServiceContext)}
325            */
326            public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
327                    long userId, long fileEntryId)
328                    throws com.liferay.portal.kernel.exception.PortalException,
329                            com.liferay.portal.kernel.exception.SystemException {
330                    return getService().checkOutFileEntry(userId, fileEntryId);
331            }
332    
333            public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
334                    long userId, long fileEntryId,
335                    com.liferay.portal.service.ServiceContext serviceContext)
336                    throws com.liferay.portal.kernel.exception.PortalException,
337                            com.liferay.portal.kernel.exception.SystemException {
338                    return getService()
339                                       .checkOutFileEntry(userId, fileEntryId, serviceContext);
340            }
341    
342            /**
343            * @deprecated {@link #checkOutFileEntry(long, long, String, long,
344            ServiceContext)}
345            */
346            public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
347                    long userId, long fileEntryId, java.lang.String owner,
348                    long expirationTime)
349                    throws com.liferay.portal.kernel.exception.PortalException,
350                            com.liferay.portal.kernel.exception.SystemException {
351                    return getService()
352                                       .checkOutFileEntry(userId, fileEntryId, owner, expirationTime);
353            }
354    
355            public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
356                    long userId, long fileEntryId, java.lang.String owner,
357                    long expirationTime,
358                    com.liferay.portal.service.ServiceContext serviceContext)
359                    throws com.liferay.portal.kernel.exception.PortalException,
360                            com.liferay.portal.kernel.exception.SystemException {
361                    return getService()
362                                       .checkOutFileEntry(userId, fileEntryId, owner,
363                            expirationTime, serviceContext);
364            }
365    
366            public static void convertExtraSettings(java.lang.String[] keys)
367                    throws com.liferay.portal.kernel.exception.PortalException,
368                            com.liferay.portal.kernel.exception.SystemException {
369                    getService().convertExtraSettings(keys);
370            }
371    
372            public static void copyFileEntryMetadata(long companyId,
373                    long fileEntryTypeId, long fileEntryId, long fromFileVersionId,
374                    long toFileVersionId,
375                    com.liferay.portal.service.ServiceContext serviceContext)
376                    throws com.liferay.portal.kernel.exception.PortalException,
377                            com.liferay.portal.kernel.exception.SystemException {
378                    getService()
379                            .copyFileEntryMetadata(companyId, fileEntryTypeId, fileEntryId,
380                            fromFileVersionId, toFileVersionId, serviceContext);
381            }
382    
383            public static void deleteFileEntries(long groupId, long folderId)
384                    throws com.liferay.portal.kernel.exception.PortalException,
385                            com.liferay.portal.kernel.exception.SystemException {
386                    getService().deleteFileEntries(groupId, folderId);
387            }
388    
389            public static void deleteFileEntries(long groupId, long folderId,
390                    boolean includeTrashedEntries)
391                    throws com.liferay.portal.kernel.exception.PortalException,
392                            com.liferay.portal.kernel.exception.SystemException {
393                    getService().deleteFileEntries(groupId, folderId, includeTrashedEntries);
394            }
395    
396            public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
397                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
398                    throws com.liferay.portal.kernel.exception.PortalException,
399                            com.liferay.portal.kernel.exception.SystemException {
400                    return getService().deleteFileEntry(dlFileEntry);
401            }
402    
403            public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
404                    long fileEntryId)
405                    throws com.liferay.portal.kernel.exception.PortalException,
406                            com.liferay.portal.kernel.exception.SystemException {
407                    return getService().deleteFileEntry(fileEntryId);
408            }
409    
410            public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
411                    long userId, long fileEntryId)
412                    throws com.liferay.portal.kernel.exception.PortalException,
413                            com.liferay.portal.kernel.exception.SystemException {
414                    return getService().deleteFileEntry(userId, fileEntryId);
415            }
416    
417            public static void deleteFileVersion(long userId, long fileEntryId,
418                    java.lang.String version)
419                    throws com.liferay.portal.kernel.exception.PortalException,
420                            com.liferay.portal.kernel.exception.SystemException {
421                    getService().deleteFileVersion(userId, fileEntryId, version);
422            }
423    
424            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntry(
425                    long groupId, long folderId, java.lang.String title)
426                    throws com.liferay.portal.kernel.exception.SystemException {
427                    return getService().fetchFileEntry(groupId, folderId, title);
428            }
429    
430            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByAnyImageId(
431                    long imageId)
432                    throws com.liferay.portal.kernel.exception.SystemException {
433                    return getService().fetchFileEntryByAnyImageId(imageId);
434            }
435    
436            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByName(
437                    long groupId, long folderId, java.lang.String name)
438                    throws com.liferay.portal.kernel.exception.SystemException {
439                    return getService().fetchFileEntryByName(groupId, folderId, name);
440            }
441    
442            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getExtraSettingsFileEntries(
443                    int start, int end)
444                    throws com.liferay.portal.kernel.exception.SystemException {
445                    return getService().getExtraSettingsFileEntries(start, end);
446            }
447    
448            public static java.io.File getFile(long userId, long fileEntryId,
449                    java.lang.String version, boolean incrementCounter)
450                    throws com.liferay.portal.kernel.exception.PortalException,
451                            com.liferay.portal.kernel.exception.SystemException {
452                    return getService()
453                                       .getFile(userId, fileEntryId, version, incrementCounter);
454            }
455    
456            public static java.io.File getFile(long userId, long fileEntryId,
457                    java.lang.String version, boolean incrementCounter, int increment)
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                            increment);
463            }
464    
465            public static java.io.InputStream getFileAsStream(long userId,
466                    long fileEntryId, java.lang.String version)
467                    throws com.liferay.portal.kernel.exception.PortalException,
468                            com.liferay.portal.kernel.exception.SystemException {
469                    return getService().getFileAsStream(userId, fileEntryId, version);
470            }
471    
472            public static java.io.InputStream getFileAsStream(long userId,
473                    long fileEntryId, java.lang.String version, boolean incrementCounter)
474                    throws com.liferay.portal.kernel.exception.PortalException,
475                            com.liferay.portal.kernel.exception.SystemException {
476                    return getService()
477                                       .getFileAsStream(userId, fileEntryId, version,
478                            incrementCounter);
479            }
480    
481            public static java.io.InputStream getFileAsStream(long userId,
482                    long fileEntryId, java.lang.String version, boolean incrementCounter,
483                    int increment)
484                    throws com.liferay.portal.kernel.exception.PortalException,
485                            com.liferay.portal.kernel.exception.SystemException {
486                    return getService()
487                                       .getFileAsStream(userId, fileEntryId, version,
488                            incrementCounter, increment);
489            }
490    
491            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
492                    int start, int end)
493                    throws com.liferay.portal.kernel.exception.SystemException {
494                    return getService().getFileEntries(start, end);
495            }
496    
497            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
498                    long groupId, long folderId)
499                    throws com.liferay.portal.kernel.exception.SystemException {
500                    return getService().getFileEntries(groupId, folderId);
501            }
502    
503            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
504                    long groupId, long folderId, int status, int start, int end,
505                    com.liferay.portal.kernel.util.OrderByComparator obc)
506                    throws com.liferay.portal.kernel.exception.SystemException {
507                    return getService()
508                                       .getFileEntries(groupId, folderId, status, start, end, obc);
509            }
510    
511            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
512                    long groupId, long folderId, int start, int end,
513                    com.liferay.portal.kernel.util.OrderByComparator obc)
514                    throws com.liferay.portal.kernel.exception.SystemException {
515                    return getService().getFileEntries(groupId, folderId, start, end, obc);
516            }
517    
518            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
519                    long folderId, java.lang.String name)
520                    throws com.liferay.portal.kernel.exception.SystemException {
521                    return getService().getFileEntries(folderId, name);
522            }
523    
524            public static int getFileEntriesCount()
525                    throws com.liferay.portal.kernel.exception.SystemException {
526                    return getService().getFileEntriesCount();
527            }
528    
529            public static int getFileEntriesCount(long groupId, long folderId)
530                    throws com.liferay.portal.kernel.exception.SystemException {
531                    return getService().getFileEntriesCount(groupId, folderId);
532            }
533    
534            public static int getFileEntriesCount(long groupId, long folderId,
535                    int status) throws com.liferay.portal.kernel.exception.SystemException {
536                    return getService().getFileEntriesCount(groupId, folderId, status);
537            }
538    
539            public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
540                    long fileEntryId)
541                    throws com.liferay.portal.kernel.exception.PortalException,
542                            com.liferay.portal.kernel.exception.SystemException {
543                    return getService().getFileEntry(fileEntryId);
544            }
545    
546            public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
547                    long groupId, long folderId, java.lang.String title)
548                    throws com.liferay.portal.kernel.exception.PortalException,
549                            com.liferay.portal.kernel.exception.SystemException {
550                    return getService().getFileEntry(groupId, folderId, title);
551            }
552    
553            public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByName(
554                    long groupId, long folderId, java.lang.String name)
555                    throws com.liferay.portal.kernel.exception.PortalException,
556                            com.liferay.portal.kernel.exception.SystemException {
557                    return getService().getFileEntryByName(groupId, folderId, name);
558            }
559    
560            public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
561                    java.lang.String uuid, long groupId)
562                    throws com.liferay.portal.kernel.exception.PortalException,
563                            com.liferay.portal.kernel.exception.SystemException {
564                    return getService().getFileEntryByUuidAndGroupId(uuid, groupId);
565            }
566    
567            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
568                    long groupId, int start, int end)
569                    throws com.liferay.portal.kernel.exception.SystemException {
570                    return getService().getGroupFileEntries(groupId, start, end);
571            }
572    
573            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
574                    long groupId, int start, int end,
575                    com.liferay.portal.kernel.util.OrderByComparator obc)
576                    throws com.liferay.portal.kernel.exception.SystemException {
577                    return getService().getGroupFileEntries(groupId, start, end, obc);
578            }
579    
580            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
581                    long groupId, long userId, int start, int end)
582                    throws com.liferay.portal.kernel.exception.SystemException {
583                    return getService().getGroupFileEntries(groupId, userId, start, end);
584            }
585    
586            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
587                    long groupId, long userId, int start, int end,
588                    com.liferay.portal.kernel.util.OrderByComparator obc)
589                    throws com.liferay.portal.kernel.exception.SystemException {
590                    return getService().getGroupFileEntries(groupId, userId, start, end, obc);
591            }
592    
593            public static int getGroupFileEntriesCount(long groupId)
594                    throws com.liferay.portal.kernel.exception.SystemException {
595                    return getService().getGroupFileEntriesCount(groupId);
596            }
597    
598            public static int getGroupFileEntriesCount(long groupId, long userId)
599                    throws com.liferay.portal.kernel.exception.SystemException {
600                    return getService().getGroupFileEntriesCount(groupId, userId);
601            }
602    
603            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getMisversionedFileEntries()
604                    throws com.liferay.portal.kernel.exception.SystemException {
605                    return getService().getMisversionedFileEntries();
606            }
607    
608            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries()
609                    throws com.liferay.portal.kernel.exception.SystemException {
610                    return getService().getNoAssetFileEntries();
611            }
612    
613            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getOrphanedFileEntries()
614                    throws com.liferay.portal.kernel.exception.SystemException {
615                    return getService().getOrphanedFileEntries();
616            }
617    
618            public static boolean hasExtraSettings()
619                    throws com.liferay.portal.kernel.exception.SystemException {
620                    return getService().hasExtraSettings();
621            }
622    
623            public static boolean hasFileEntryLock(long userId, long fileEntryId)
624                    throws com.liferay.portal.kernel.exception.PortalException,
625                            com.liferay.portal.kernel.exception.SystemException {
626                    return getService().hasFileEntryLock(userId, fileEntryId);
627            }
628    
629            public static void incrementViewCounter(
630                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
631                    boolean incrementCounter, int increment)
632                    throws com.liferay.portal.kernel.exception.SystemException {
633                    getService()
634                            .incrementViewCounter(dlFileEntry, incrementCounter, increment);
635            }
636    
637            public static boolean isFileEntryCheckedOut(long fileEntryId)
638                    throws com.liferay.portal.kernel.exception.PortalException,
639                            com.liferay.portal.kernel.exception.SystemException {
640                    return getService().isFileEntryCheckedOut(fileEntryId);
641            }
642    
643            public static com.liferay.portal.model.Lock lockFileEntry(long userId,
644                    long fileEntryId)
645                    throws com.liferay.portal.kernel.exception.PortalException,
646                            com.liferay.portal.kernel.exception.SystemException {
647                    return getService().lockFileEntry(userId, fileEntryId);
648            }
649    
650            public static com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
651                    long userId, long fileEntryId, long newFolderId,
652                    com.liferay.portal.service.ServiceContext serviceContext)
653                    throws com.liferay.portal.kernel.exception.PortalException,
654                            com.liferay.portal.kernel.exception.SystemException {
655                    return getService()
656                                       .moveFileEntry(userId, fileEntryId, newFolderId,
657                            serviceContext);
658            }
659    
660            public static void revertFileEntry(long userId, long fileEntryId,
661                    java.lang.String version,
662                    com.liferay.portal.service.ServiceContext serviceContext)
663                    throws com.liferay.portal.kernel.exception.PortalException,
664                            com.liferay.portal.kernel.exception.SystemException {
665                    getService()
666                            .revertFileEntry(userId, fileEntryId, version, serviceContext);
667            }
668    
669            public static void unlockFileEntry(long fileEntryId)
670                    throws com.liferay.portal.kernel.exception.SystemException {
671                    getService().unlockFileEntry(fileEntryId);
672            }
673    
674            public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
675                    long userId, long fileEntryId, java.lang.String sourceFileName,
676                    java.lang.String mimeType, java.lang.String title,
677                    java.lang.String description, java.lang.String changeLog,
678                    boolean majorVersion, long fileEntryTypeId,
679                    java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
680                    java.io.File file, java.io.InputStream is, long size,
681                    com.liferay.portal.service.ServiceContext serviceContext)
682                    throws com.liferay.portal.kernel.exception.PortalException,
683                            com.liferay.portal.kernel.exception.SystemException {
684                    return getService()
685                                       .updateFileEntry(userId, fileEntryId, sourceFileName,
686                            mimeType, title, description, changeLog, majorVersion,
687                            fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
688            }
689    
690            public static void updateSmallImage(long smallImageId, long largeImageId)
691                    throws com.liferay.portal.kernel.exception.PortalException,
692                            com.liferay.portal.kernel.exception.SystemException {
693                    getService().updateSmallImage(smallImageId, largeImageId);
694            }
695    
696            public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateStatus(
697                    long userId, long fileVersionId, int status,
698                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
699                    com.liferay.portal.service.ServiceContext serviceContext)
700                    throws com.liferay.portal.kernel.exception.PortalException,
701                            com.liferay.portal.kernel.exception.SystemException {
702                    return getService()
703                                       .updateStatus(userId, fileVersionId, status,
704                            workflowContext, serviceContext);
705            }
706    
707            public static boolean verifyFileEntryCheckOut(long fileEntryId,
708                    java.lang.String lockUuid)
709                    throws com.liferay.portal.kernel.exception.PortalException,
710                            com.liferay.portal.kernel.exception.SystemException {
711                    return getService().verifyFileEntryCheckOut(fileEntryId, lockUuid);
712            }
713    
714            public static boolean verifyFileEntryLock(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().verifyFileEntryLock(fileEntryId, lockUuid);
719            }
720    
721            public static DLFileEntryLocalService getService() {
722                    if (_service == null) {
723                            _service = (DLFileEntryLocalService)PortalBeanLocatorUtil.locate(DLFileEntryLocalService.class.getName());
724    
725                            ReferenceRegistry.registerReference(DLFileEntryLocalServiceUtil.class,
726                                    "_service");
727                    }
728    
729                    return _service;
730            }
731    
732            /**
733             * @deprecated
734             */
735            public void setService(DLFileEntryLocalService service) {
736            }
737    
738            private static DLFileEntryLocalService _service;
739    }