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 folder local service. This utility wraps {@link com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl} 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 DLFolderLocalService
029     * @see com.liferay.portlet.documentlibrary.service.base.DLFolderLocalServiceBaseImpl
030     * @see com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl
031     * @generated
032     */
033    public class DLFolderLocalServiceUtil {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
038             */
039    
040            /**
041            * Adds the document library folder to the database. Also notifies the appropriate model listeners.
042            *
043            * @param dlFolder the document library folder
044            * @return the document library folder that was added
045            * @throws SystemException if a system exception occurred
046            */
047            public static com.liferay.portlet.documentlibrary.model.DLFolder addDLFolder(
048                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
049                    throws com.liferay.portal.kernel.exception.SystemException {
050                    return getService().addDLFolder(dlFolder);
051            }
052    
053            /**
054            * Creates a new document library folder with the primary key. Does not add the document library folder to the database.
055            *
056            * @param folderId the primary key for the new document library folder
057            * @return the new document library folder
058            */
059            public static com.liferay.portlet.documentlibrary.model.DLFolder createDLFolder(
060                    long folderId) {
061                    return getService().createDLFolder(folderId);
062            }
063    
064            /**
065            * Deletes the document library folder with the primary key from the database. Also notifies the appropriate model listeners.
066            *
067            * @param folderId the primary key of the document library folder
068            * @return the document library folder that was removed
069            * @throws PortalException if a document library folder 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.DLFolder deleteDLFolder(
073                    long folderId)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    return getService().deleteDLFolder(folderId);
077            }
078    
079            /**
080            * Deletes the document library folder from the database. Also notifies the appropriate model listeners.
081            *
082            * @param dlFolder the document library folder
083            * @return the document library folder that was removed
084            * @throws SystemException if a system exception occurred
085            */
086            public static com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
087                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
088                    throws com.liferay.portal.kernel.exception.SystemException {
089                    return getService().deleteDLFolder(dlFolder);
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.DLFolderModelImpl}. 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.DLFolderModelImpl}. 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.DLFolder fetchDLFolder(
168                    long folderId)
169                    throws com.liferay.portal.kernel.exception.SystemException {
170                    return getService().fetchDLFolder(folderId);
171            }
172    
173            /**
174            * Returns the document library folder with the primary key.
175            *
176            * @param folderId the primary key of the document library folder
177            * @return the document library folder
178            * @throws PortalException if a document library folder 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.DLFolder getDLFolder(
182                    long folderId)
183                    throws com.liferay.portal.kernel.exception.PortalException,
184                            com.liferay.portal.kernel.exception.SystemException {
185                    return getService().getDLFolder(folderId);
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 folder matching the UUID and group.
197            *
198            * @param uuid the document library folder's UUID
199            * @param groupId the primary key of the group
200            * @return the matching document library folder
201            * @throws PortalException if a matching document library folder could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndGroupId(
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().getDLFolderByUuidAndGroupId(uuid, groupId);
209            }
210    
211            /**
212            * Returns a range of all the document library folders.
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.DLFolderModelImpl}. 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 folders
219            * @param end the upper bound of the range of document library folders (not inclusive)
220            * @return the range of document library folders
221            * @throws SystemException if a system exception occurred
222            */
223            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
224                    int start, int end)
225                    throws com.liferay.portal.kernel.exception.SystemException {
226                    return getService().getDLFolders(start, end);
227            }
228    
229            /**
230            * Returns the number of document library folders.
231            *
232            * @return the number of document library folders
233            * @throws SystemException if a system exception occurred
234            */
235            public static int getDLFoldersCount()
236                    throws com.liferay.portal.kernel.exception.SystemException {
237                    return getService().getDLFoldersCount();
238            }
239    
240            /**
241            * Updates the document library folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
242            *
243            * @param dlFolder the document library folder
244            * @return the document library folder that was updated
245            * @throws SystemException if a system exception occurred
246            */
247            public static com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
248                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
249                    throws com.liferay.portal.kernel.exception.SystemException {
250                    return getService().updateDLFolder(dlFolder);
251            }
252    
253            /**
254            * @throws SystemException if a system exception occurred
255            */
256            public static void addDLFileEntryTypeDLFolder(long fileEntryTypeId,
257                    long folderId)
258                    throws com.liferay.portal.kernel.exception.SystemException {
259                    getService().addDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
260            }
261    
262            /**
263            * @throws SystemException if a system exception occurred
264            */
265            public static void addDLFileEntryTypeDLFolder(long fileEntryTypeId,
266                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
267                    throws com.liferay.portal.kernel.exception.SystemException {
268                    getService().addDLFileEntryTypeDLFolder(fileEntryTypeId, dlFolder);
269            }
270    
271            /**
272            * @throws SystemException if a system exception occurred
273            */
274            public static void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
275                    long[] folderIds)
276                    throws com.liferay.portal.kernel.exception.SystemException {
277                    getService().addDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
278            }
279    
280            /**
281            * @throws SystemException if a system exception occurred
282            */
283            public static void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
284                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders)
285                    throws com.liferay.portal.kernel.exception.SystemException {
286                    getService().addDLFileEntryTypeDLFolders(fileEntryTypeId, DLFolders);
287            }
288    
289            /**
290            * @throws SystemException if a system exception occurred
291            */
292            public static void clearDLFileEntryTypeDLFolders(long fileEntryTypeId)
293                    throws com.liferay.portal.kernel.exception.SystemException {
294                    getService().clearDLFileEntryTypeDLFolders(fileEntryTypeId);
295            }
296    
297            /**
298            * @throws SystemException if a system exception occurred
299            */
300            public static void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
301                    long folderId)
302                    throws com.liferay.portal.kernel.exception.SystemException {
303                    getService().deleteDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
304            }
305    
306            /**
307            * @throws SystemException if a system exception occurred
308            */
309            public static void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
310                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    getService().deleteDLFileEntryTypeDLFolder(fileEntryTypeId, dlFolder);
313            }
314    
315            /**
316            * @throws SystemException if a system exception occurred
317            */
318            public static void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
319                    long[] folderIds)
320                    throws com.liferay.portal.kernel.exception.SystemException {
321                    getService().deleteDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
322            }
323    
324            /**
325            * @throws SystemException if a system exception occurred
326            */
327            public static void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
328                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders)
329                    throws com.liferay.portal.kernel.exception.SystemException {
330                    getService().deleteDLFileEntryTypeDLFolders(fileEntryTypeId, DLFolders);
331            }
332    
333            /**
334            * @throws SystemException if a system exception occurred
335            */
336            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
337                    long fileEntryTypeId)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return getService().getDLFileEntryTypeDLFolders(fileEntryTypeId);
340            }
341    
342            /**
343            * @throws SystemException if a system exception occurred
344            */
345            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
346                    long fileEntryTypeId, int start, int end)
347                    throws com.liferay.portal.kernel.exception.SystemException {
348                    return getService()
349                                       .getDLFileEntryTypeDLFolders(fileEntryTypeId, start, end);
350            }
351    
352            /**
353            * @throws SystemException if a system exception occurred
354            */
355            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
356                    long fileEntryTypeId, int start, int end,
357                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
358                    throws com.liferay.portal.kernel.exception.SystemException {
359                    return getService()
360                                       .getDLFileEntryTypeDLFolders(fileEntryTypeId, start, end,
361                            orderByComparator);
362            }
363    
364            /**
365            * @throws SystemException if a system exception occurred
366            */
367            public static int getDLFileEntryTypeDLFoldersCount(long fileEntryTypeId)
368                    throws com.liferay.portal.kernel.exception.SystemException {
369                    return getService().getDLFileEntryTypeDLFoldersCount(fileEntryTypeId);
370            }
371    
372            /**
373            * @throws SystemException if a system exception occurred
374            */
375            public static boolean hasDLFileEntryTypeDLFolder(long fileEntryTypeId,
376                    long folderId)
377                    throws com.liferay.portal.kernel.exception.SystemException {
378                    return getService().hasDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
379            }
380    
381            /**
382            * @throws SystemException if a system exception occurred
383            */
384            public static boolean hasDLFileEntryTypeDLFolders(long fileEntryTypeId)
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return getService().hasDLFileEntryTypeDLFolders(fileEntryTypeId);
387            }
388    
389            /**
390            * @throws SystemException if a system exception occurred
391            */
392            public static void setDLFileEntryTypeDLFolders(long fileEntryTypeId,
393                    long[] folderIds)
394                    throws com.liferay.portal.kernel.exception.SystemException {
395                    getService().setDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
396            }
397    
398            /**
399            * Returns the Spring bean ID for this bean.
400            *
401            * @return the Spring bean ID for this bean
402            */
403            public static java.lang.String getBeanIdentifier() {
404                    return getService().getBeanIdentifier();
405            }
406    
407            /**
408            * Sets the Spring bean ID for this bean.
409            *
410            * @param beanIdentifier the Spring bean ID for this bean
411            */
412            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
413                    getService().setBeanIdentifier(beanIdentifier);
414            }
415    
416            public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
417                    long userId, long groupId, long repositoryId, boolean mountPoint,
418                    long parentFolderId, java.lang.String name,
419                    java.lang.String description, boolean hidden,
420                    com.liferay.portal.service.ServiceContext serviceContext)
421                    throws com.liferay.portal.kernel.exception.PortalException,
422                            com.liferay.portal.kernel.exception.SystemException {
423                    return getService()
424                                       .addFolder(userId, groupId, repositoryId, mountPoint,
425                            parentFolderId, name, description, hidden, serviceContext);
426            }
427    
428            /**
429            * @deprecated As of 6.2, replaced by more general {@link #addFolder(long,
430            long, long, boolean, long, String, String, boolean,
431            ServiceContext)}
432            */
433            public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
434                    long userId, long groupId, long repositoryId, boolean mountPoint,
435                    long parentFolderId, java.lang.String name,
436                    java.lang.String description,
437                    com.liferay.portal.service.ServiceContext serviceContext)
438                    throws com.liferay.portal.kernel.exception.PortalException,
439                            com.liferay.portal.kernel.exception.SystemException {
440                    return getService()
441                                       .addFolder(userId, groupId, repositoryId, mountPoint,
442                            parentFolderId, name, description, serviceContext);
443            }
444    
445            public static void deleteAll(long groupId)
446                    throws com.liferay.portal.kernel.exception.PortalException,
447                            com.liferay.portal.kernel.exception.SystemException {
448                    getService().deleteAll(groupId);
449            }
450    
451            public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
452                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
453                    throws com.liferay.portal.kernel.exception.PortalException,
454                            com.liferay.portal.kernel.exception.SystemException {
455                    return getService().deleteFolder(dlFolder);
456            }
457    
458            public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
459                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
460                    boolean includeTrashedEntries)
461                    throws com.liferay.portal.kernel.exception.PortalException,
462                            com.liferay.portal.kernel.exception.SystemException {
463                    return getService().deleteFolder(dlFolder, includeTrashedEntries);
464            }
465    
466            public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
467                    long folderId)
468                    throws com.liferay.portal.kernel.exception.PortalException,
469                            com.liferay.portal.kernel.exception.SystemException {
470                    return getService().deleteFolder(folderId);
471            }
472    
473            public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
474                    long folderId, boolean includeTrashedEntries)
475                    throws com.liferay.portal.kernel.exception.PortalException,
476                            com.liferay.portal.kernel.exception.SystemException {
477                    return getService().deleteFolder(folderId, includeTrashedEntries);
478            }
479    
480            public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
481                    long userId, long folderId, boolean includeTrashedEntries)
482                    throws com.liferay.portal.kernel.exception.PortalException,
483                            com.liferay.portal.kernel.exception.SystemException {
484                    return getService().deleteFolder(userId, folderId, includeTrashedEntries);
485            }
486    
487            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
488                    long groupId, long parentFolderId, java.lang.String name)
489                    throws com.liferay.portal.kernel.exception.SystemException {
490                    return getService().fetchFolder(groupId, parentFolderId, name);
491            }
492    
493            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
494                    long companyId, int start, int end)
495                    throws com.liferay.portal.kernel.exception.SystemException {
496                    return getService().getCompanyFolders(companyId, start, end);
497            }
498    
499            public static int getCompanyFoldersCount(long companyId)
500                    throws com.liferay.portal.kernel.exception.SystemException {
501                    return getService().getCompanyFoldersCount(companyId);
502            }
503    
504            /**
505            * @deprecated As of 6.2.0, replaced by {@link
506            #getFileEntriesAndFileShortcuts(long, long, QueryDefinition)}
507            */
508            public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
509                    long groupId, long folderId, int status, int start, int end)
510                    throws com.liferay.portal.kernel.exception.SystemException {
511                    return getService()
512                                       .getFileEntriesAndFileShortcuts(groupId, folderId, status,
513                            start, end);
514            }
515    
516            public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
517                    long groupId, long folderId,
518                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
519                    throws com.liferay.portal.kernel.exception.SystemException {
520                    return getService()
521                                       .getFileEntriesAndFileShortcuts(groupId, folderId,
522                            queryDefinition);
523            }
524    
525            /**
526            * @deprecated As of 6.2.0, replaced by {@link
527            #getFileEntriesAndFileShortcutsCount(long, long,
528            QueryDefinition)}
529            */
530            public static int getFileEntriesAndFileShortcutsCount(long groupId,
531                    long folderId, int status)
532                    throws com.liferay.portal.kernel.exception.SystemException {
533                    return getService()
534                                       .getFileEntriesAndFileShortcutsCount(groupId, folderId,
535                            status);
536            }
537    
538            public static int getFileEntriesAndFileShortcutsCount(long groupId,
539                    long folderId,
540                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
541                    throws com.liferay.portal.kernel.exception.SystemException {
542                    return getService()
543                                       .getFileEntriesAndFileShortcutsCount(groupId, folderId,
544                            queryDefinition);
545            }
546    
547            public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
548                    long folderId)
549                    throws com.liferay.portal.kernel.exception.PortalException,
550                            com.liferay.portal.kernel.exception.SystemException {
551                    return getService().getFolder(folderId);
552            }
553    
554            public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
555                    long groupId, long parentFolderId, java.lang.String name)
556                    throws com.liferay.portal.kernel.exception.PortalException,
557                            com.liferay.portal.kernel.exception.SystemException {
558                    return getService().getFolder(groupId, parentFolderId, name);
559            }
560    
561            public static long getFolderId(long companyId, long folderId)
562                    throws com.liferay.portal.kernel.exception.SystemException {
563                    return getService().getFolderId(companyId, folderId);
564            }
565    
566            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
567                    long groupId, long parentFolderId)
568                    throws com.liferay.portal.kernel.exception.SystemException {
569                    return getService().getFolders(groupId, parentFolderId);
570            }
571    
572            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
573                    long groupId, long parentFolderId, boolean includeMountfolders)
574                    throws com.liferay.portal.kernel.exception.SystemException {
575                    return getService()
576                                       .getFolders(groupId, parentFolderId, includeMountfolders);
577            }
578    
579            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
580                    long groupId, long parentFolderId, boolean includeMountfolders,
581                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
582                    throws com.liferay.portal.kernel.exception.SystemException {
583                    return getService()
584                                       .getFolders(groupId, parentFolderId, includeMountfolders,
585                            start, end, obc);
586            }
587    
588            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
589                    long groupId, long parentFolderId, int start, int end,
590                    com.liferay.portal.kernel.util.OrderByComparator obc)
591                    throws com.liferay.portal.kernel.exception.SystemException {
592                    return getService().getFolders(groupId, parentFolderId, start, end, obc);
593            }
594    
595            /**
596            * @deprecated As of 6.2.0, replaced by {@link
597            #getFoldersAndFileEntriesAndFileShortcuts(long, long,
598            String[], boolean, QueryDefinition)}
599            */
600            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
601                    long groupId, long folderId, int status, boolean includeMountFolders,
602                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
603                    throws com.liferay.portal.kernel.exception.SystemException {
604                    return getService()
605                                       .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
606                            status, includeMountFolders, start, end, obc);
607            }
608    
609            /**
610            * @deprecated As of 6.2.0, replaced by {@link
611            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
612            String[], boolean, QueryDefinition)}
613            */
614            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
615                    long groupId, long folderId, int status, java.lang.String[] mimeTypes,
616                    boolean includeMountFolders, int start, int end,
617                    com.liferay.portal.kernel.util.OrderByComparator obc)
618                    throws com.liferay.portal.kernel.exception.SystemException {
619                    return getService()
620                                       .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
621                            status, mimeTypes, includeMountFolders, start, end, obc);
622            }
623    
624            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
625                    long groupId, long folderId, java.lang.String[] mimeTypes,
626                    boolean includeMountFolders,
627                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
628                    throws com.liferay.portal.kernel.exception.SystemException {
629                    return getService()
630                                       .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
631                            mimeTypes, includeMountFolders, queryDefinition);
632            }
633    
634            /**
635            * @deprecated As of 6.2.0, replaced by {@link
636            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
637            String[], boolean, QueryDefinition)}
638            */
639            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
640                    long groupId, long folderId, int status, boolean includeMountFolders)
641                    throws com.liferay.portal.kernel.exception.SystemException {
642                    return getService()
643                                       .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
644                            folderId, status, includeMountFolders);
645            }
646    
647            /**
648            * @deprecated As of 6.2.0, replaced by {@link
649            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
650            String[], boolean, QueryDefinition)}
651            */
652            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
653                    long groupId, long folderId, int status, java.lang.String[] mimeTypes,
654                    boolean includeMountFolders)
655                    throws com.liferay.portal.kernel.exception.SystemException {
656                    return getService()
657                                       .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
658                            folderId, status, mimeTypes, includeMountFolders);
659            }
660    
661            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
662                    long groupId, long folderId, java.lang.String[] mimeTypes,
663                    boolean includeMountFolders,
664                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
665                    throws com.liferay.portal.kernel.exception.SystemException {
666                    return getService()
667                                       .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
668                            folderId, mimeTypes, includeMountFolders, queryDefinition);
669            }
670    
671            public static int getFoldersCount(long groupId, long parentFolderId)
672                    throws com.liferay.portal.kernel.exception.SystemException {
673                    return getService().getFoldersCount(groupId, parentFolderId);
674            }
675    
676            public static int getFoldersCount(long groupId, long parentFolderId,
677                    boolean includeMountfolders)
678                    throws com.liferay.portal.kernel.exception.SystemException {
679                    return getService()
680                                       .getFoldersCount(groupId, parentFolderId, includeMountfolders);
681            }
682    
683            public static com.liferay.portlet.documentlibrary.model.DLFolder getMountFolder(
684                    long repositoryId)
685                    throws com.liferay.portal.kernel.exception.PortalException,
686                            com.liferay.portal.kernel.exception.SystemException {
687                    return getService().getMountFolder(repositoryId);
688            }
689    
690            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
691                    long groupId, long parentFolderId, int start, int end,
692                    com.liferay.portal.kernel.util.OrderByComparator obc)
693                    throws com.liferay.portal.kernel.exception.SystemException {
694                    return getService()
695                                       .getMountFolders(groupId, parentFolderId, start, end, obc);
696            }
697    
698            public static int getMountFoldersCount(long groupId, long parentFolderId)
699                    throws com.liferay.portal.kernel.exception.SystemException {
700                    return getService().getMountFoldersCount(groupId, parentFolderId);
701            }
702    
703            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getNoAssetFolders()
704                    throws com.liferay.portal.kernel.exception.SystemException {
705                    return getService().getNoAssetFolders();
706            }
707    
708            public static void getSubfolderIds(
709                    java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
710                    throws com.liferay.portal.kernel.exception.SystemException {
711                    getService().getSubfolderIds(folderIds, groupId, folderId);
712            }
713    
714            public static boolean hasFolderLock(long userId, long folderId)
715                    throws com.liferay.portal.kernel.exception.SystemException {
716                    return getService().hasFolderLock(userId, folderId);
717            }
718    
719            public static com.liferay.portal.model.Lock lockFolder(long userId,
720                    long folderId)
721                    throws com.liferay.portal.kernel.exception.PortalException,
722                            com.liferay.portal.kernel.exception.SystemException {
723                    return getService().lockFolder(userId, folderId);
724            }
725    
726            public static com.liferay.portal.model.Lock lockFolder(long userId,
727                    long folderId, java.lang.String owner, boolean inheritable,
728                    long expirationTime)
729                    throws com.liferay.portal.kernel.exception.PortalException,
730                            com.liferay.portal.kernel.exception.SystemException {
731                    return getService()
732                                       .lockFolder(userId, folderId, owner, inheritable,
733                            expirationTime);
734            }
735    
736            public static com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
737                    long userId, long folderId, long parentFolderId,
738                    com.liferay.portal.service.ServiceContext serviceContext)
739                    throws com.liferay.portal.kernel.exception.PortalException,
740                            com.liferay.portal.kernel.exception.SystemException {
741                    return getService()
742                                       .moveFolder(userId, folderId, parentFolderId, serviceContext);
743            }
744    
745            public static void unlockFolder(long groupId, long parentFolderId,
746                    java.lang.String name, java.lang.String lockUuid)
747                    throws com.liferay.portal.kernel.exception.PortalException,
748                            com.liferay.portal.kernel.exception.SystemException {
749                    getService().unlockFolder(groupId, parentFolderId, name, lockUuid);
750            }
751    
752            public static void unlockFolder(long folderId, java.lang.String lockUuid)
753                    throws com.liferay.portal.kernel.exception.PortalException,
754                            com.liferay.portal.kernel.exception.SystemException {
755                    getService().unlockFolder(folderId, lockUuid);
756            }
757    
758            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
759                    long folderId, long parentFolderId, java.lang.String name,
760                    java.lang.String description, long defaultFileEntryTypeId,
761                    java.util.List<java.lang.Long> fileEntryTypeIds,
762                    boolean overrideFileEntryTypes,
763                    com.liferay.portal.service.ServiceContext serviceContext)
764                    throws com.liferay.portal.kernel.exception.PortalException,
765                            com.liferay.portal.kernel.exception.SystemException {
766                    return getService()
767                                       .updateFolder(folderId, parentFolderId, name, description,
768                            defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
769                            serviceContext);
770            }
771    
772            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
773                    long folderId, java.lang.String name, java.lang.String description,
774                    long defaultFileEntryTypeId,
775                    java.util.List<java.lang.Long> fileEntryTypeIds,
776                    boolean overrideFileEntryTypes,
777                    com.liferay.portal.service.ServiceContext serviceContext)
778                    throws com.liferay.portal.kernel.exception.PortalException,
779                            com.liferay.portal.kernel.exception.SystemException {
780                    return getService()
781                                       .updateFolder(folderId, name, description,
782                            defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
783                            serviceContext);
784            }
785    
786            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
787                    long userId, long folderId, long parentFolderId, java.lang.String name,
788                    java.lang.String description, long defaultFileEntryTypeId,
789                    java.util.List<java.lang.Long> fileEntryTypeIds,
790                    boolean overrideFileEntryTypes,
791                    com.liferay.portal.service.ServiceContext serviceContext)
792                    throws com.liferay.portal.kernel.exception.PortalException,
793                            com.liferay.portal.kernel.exception.SystemException {
794                    return getService()
795                                       .updateFolderAndFileEntryTypes(userId, folderId,
796                            parentFolderId, name, description, defaultFileEntryTypeId,
797                            fileEntryTypeIds, overrideFileEntryTypes, serviceContext);
798            }
799    
800            /**
801            * @deprecated As of 6.2.0
802            */
803            public static void updateLastPostDate(long folderId,
804                    java.util.Date lastPostDate)
805                    throws com.liferay.portal.kernel.exception.PortalException,
806                            com.liferay.portal.kernel.exception.SystemException {
807                    getService().updateLastPostDate(folderId, lastPostDate);
808            }
809    
810            public static com.liferay.portlet.documentlibrary.model.DLFolder updateStatus(
811                    long userId, long folderId, int status,
812                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
813                    com.liferay.portal.service.ServiceContext serviceContext)
814                    throws com.liferay.portal.kernel.exception.PortalException,
815                            com.liferay.portal.kernel.exception.SystemException {
816                    return getService()
817                                       .updateStatus(userId, folderId, status, workflowContext,
818                            serviceContext);
819            }
820    
821            public static DLFolderLocalService getService() {
822                    if (_service == null) {
823                            _service = (DLFolderLocalService)PortalBeanLocatorUtil.locate(DLFolderLocalService.class.getName());
824    
825                            ReferenceRegistry.registerReference(DLFolderLocalServiceUtil.class,
826                                    "_service");
827                    }
828    
829                    return _service;
830            }
831    
832            /**
833             * @deprecated As of 6.2.0
834             */
835            public void setService(DLFolderLocalService service) {
836            }
837    
838            private static DLFolderLocalService _service;
839    }