001    /**
002     * Copyright (c) 2000-present 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.document.library.kernel.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the local service utility for DLFolder. This utility wraps
024     * {@link com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on the local server. Methods of this service will not have security checks
027     * based on the propagated JAAS credentials because this service can only be
028     * accessed from within the same VM.
029     *
030     * @author Brian Wing Shun Chan
031     * @see DLFolderLocalService
032     * @see com.liferay.portlet.documentlibrary.service.base.DLFolderLocalServiceBaseImpl
033     * @see com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class DLFolderLocalServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * 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.
042             */
043            public static void addDLFileEntryTypeDLFolder(long fileEntryTypeId,
044                    com.liferay.document.library.kernel.model.DLFolder dlFolder) {
045                    getService().addDLFileEntryTypeDLFolder(fileEntryTypeId, dlFolder);
046            }
047    
048            public static void addDLFileEntryTypeDLFolder(long fileEntryTypeId,
049                    long folderId) {
050                    getService().addDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
051            }
052    
053            public static void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
054                    java.util.List<com.liferay.document.library.kernel.model.DLFolder> DLFolders) {
055                    getService().addDLFileEntryTypeDLFolders(fileEntryTypeId, DLFolders);
056            }
057    
058            public static void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
059                    long[] folderIds) {
060                    getService().addDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
061            }
062    
063            /**
064            * Adds the document library folder to the database. Also notifies the appropriate model listeners.
065            *
066            * @param dlFolder the document library folder
067            * @return the document library folder that was added
068            */
069            public static com.liferay.document.library.kernel.model.DLFolder addDLFolder(
070                    com.liferay.document.library.kernel.model.DLFolder dlFolder) {
071                    return getService().addDLFolder(dlFolder);
072            }
073    
074            public static com.liferay.document.library.kernel.model.DLFolder addFolder(
075                    long userId, long groupId, long repositoryId, boolean mountPoint,
076                    long parentFolderId, java.lang.String name,
077                    java.lang.String description, boolean hidden,
078                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
079                    throws com.liferay.portal.kernel.exception.PortalException {
080                    return getService()
081                                       .addFolder(userId, groupId, repositoryId, mountPoint,
082                            parentFolderId, name, description, hidden, serviceContext);
083            }
084    
085            public static void clearDLFileEntryTypeDLFolders(long fileEntryTypeId) {
086                    getService().clearDLFileEntryTypeDLFolders(fileEntryTypeId);
087            }
088    
089            /**
090            * Creates a new document library folder with the primary key. Does not add the document library folder to the database.
091            *
092            * @param folderId the primary key for the new document library folder
093            * @return the new document library folder
094            */
095            public static com.liferay.document.library.kernel.model.DLFolder createDLFolder(
096                    long folderId) {
097                    return getService().createDLFolder(folderId);
098            }
099    
100            /**
101            * @deprecated As of 7.0.0, replaced by {@link #deleteAllByGroup(long)}
102            */
103            @Deprecated
104            public static void deleteAll(long groupId)
105                    throws com.liferay.portal.kernel.exception.PortalException {
106                    getService().deleteAll(groupId);
107            }
108    
109            public static void deleteAllByGroup(long groupId)
110                    throws com.liferay.portal.kernel.exception.PortalException {
111                    getService().deleteAllByGroup(groupId);
112            }
113    
114            public static void deleteAllByRepository(long repositoryId)
115                    throws com.liferay.portal.kernel.exception.PortalException {
116                    getService().deleteAllByRepository(repositoryId);
117            }
118    
119            public static void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
120                    com.liferay.document.library.kernel.model.DLFolder dlFolder) {
121                    getService().deleteDLFileEntryTypeDLFolder(fileEntryTypeId, dlFolder);
122            }
123    
124            public static void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
125                    long folderId) {
126                    getService().deleteDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
127            }
128    
129            public static void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
130                    java.util.List<com.liferay.document.library.kernel.model.DLFolder> DLFolders) {
131                    getService().deleteDLFileEntryTypeDLFolders(fileEntryTypeId, DLFolders);
132            }
133    
134            public static void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
135                    long[] folderIds) {
136                    getService().deleteDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
137            }
138    
139            /**
140            * Deletes the document library folder from the database. Also notifies the appropriate model listeners.
141            *
142            * @param dlFolder the document library folder
143            * @return the document library folder that was removed
144            */
145            public static com.liferay.document.library.kernel.model.DLFolder deleteDLFolder(
146                    com.liferay.document.library.kernel.model.DLFolder dlFolder) {
147                    return getService().deleteDLFolder(dlFolder);
148            }
149    
150            /**
151            * Deletes the document library folder with the primary key from the database. Also notifies the appropriate model listeners.
152            *
153            * @param folderId the primary key of the document library folder
154            * @return the document library folder that was removed
155            * @throws PortalException if a document library folder with the primary key could not be found
156            */
157            public static com.liferay.document.library.kernel.model.DLFolder deleteDLFolder(
158                    long folderId)
159                    throws com.liferay.portal.kernel.exception.PortalException {
160                    return getService().deleteDLFolder(folderId);
161            }
162    
163            public static com.liferay.document.library.kernel.model.DLFolder deleteFolder(
164                    com.liferay.document.library.kernel.model.DLFolder dlFolder)
165                    throws com.liferay.portal.kernel.exception.PortalException {
166                    return getService().deleteFolder(dlFolder);
167            }
168    
169            public static com.liferay.document.library.kernel.model.DLFolder deleteFolder(
170                    com.liferay.document.library.kernel.model.DLFolder dlFolder,
171                    boolean includeTrashedEntries)
172                    throws com.liferay.portal.kernel.exception.PortalException {
173                    return getService().deleteFolder(dlFolder, includeTrashedEntries);
174            }
175    
176            public static com.liferay.document.library.kernel.model.DLFolder deleteFolder(
177                    long folderId)
178                    throws com.liferay.portal.kernel.exception.PortalException {
179                    return getService().deleteFolder(folderId);
180            }
181    
182            public static com.liferay.document.library.kernel.model.DLFolder deleteFolder(
183                    long folderId, boolean includeTrashedEntries)
184                    throws com.liferay.portal.kernel.exception.PortalException {
185                    return getService().deleteFolder(folderId, includeTrashedEntries);
186            }
187    
188            public static com.liferay.document.library.kernel.model.DLFolder deleteFolder(
189                    long userId, long folderId, boolean includeTrashedEntries)
190                    throws com.liferay.portal.kernel.exception.PortalException {
191                    return getService().deleteFolder(userId, folderId, includeTrashedEntries);
192            }
193    
194            /**
195            * @throws PortalException
196            */
197            public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
198                    com.liferay.portal.kernel.model.PersistedModel persistedModel)
199                    throws com.liferay.portal.kernel.exception.PortalException {
200                    return getService().deletePersistedModel(persistedModel);
201            }
202    
203            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
204                    return getService().dynamicQuery();
205            }
206    
207            /**
208            * Performs a dynamic query on the database and returns the matching rows.
209            *
210            * @param dynamicQuery the dynamic query
211            * @return the matching rows
212            */
213            public static <T> java.util.List<T> dynamicQuery(
214                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
215                    return getService().dynamicQuery(dynamicQuery);
216            }
217    
218            /**
219            * Performs a dynamic query on the database and returns a range of the matching rows.
220            *
221            * <p>
222            * 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.
223            * </p>
224            *
225            * @param dynamicQuery the dynamic query
226            * @param start the lower bound of the range of model instances
227            * @param end the upper bound of the range of model instances (not inclusive)
228            * @return the range of matching rows
229            */
230            public static <T> java.util.List<T> dynamicQuery(
231                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
232                    int end) {
233                    return getService().dynamicQuery(dynamicQuery, start, end);
234            }
235    
236            /**
237            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
238            *
239            * <p>
240            * 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.
241            * </p>
242            *
243            * @param dynamicQuery the dynamic query
244            * @param start the lower bound of the range of model instances
245            * @param end the upper bound of the range of model instances (not inclusive)
246            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
247            * @return the ordered range of matching rows
248            */
249            public static <T> java.util.List<T> dynamicQuery(
250                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
251                    int end,
252                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
253                    return getService()
254                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
255            }
256    
257            /**
258            * Returns the number of rows matching the dynamic query.
259            *
260            * @param dynamicQuery the dynamic query
261            * @return the number of rows matching the dynamic query
262            */
263            public static long dynamicQueryCount(
264                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
265                    return getService().dynamicQueryCount(dynamicQuery);
266            }
267    
268            /**
269            * Returns the number of rows matching the dynamic query.
270            *
271            * @param dynamicQuery the dynamic query
272            * @param projection the projection to apply to the query
273            * @return the number of rows matching the dynamic query
274            */
275            public static long dynamicQueryCount(
276                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
277                    com.liferay.portal.kernel.dao.orm.Projection projection) {
278                    return getService().dynamicQueryCount(dynamicQuery, projection);
279            }
280    
281            public static com.liferay.document.library.kernel.model.DLFolder fetchDLFolder(
282                    long folderId) {
283                    return getService().fetchDLFolder(folderId);
284            }
285    
286            /**
287            * Returns the document library folder matching the UUID and group.
288            *
289            * @param uuid the document library folder's UUID
290            * @param groupId the primary key of the group
291            * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found
292            */
293            public static com.liferay.document.library.kernel.model.DLFolder fetchDLFolderByUuidAndGroupId(
294                    java.lang.String uuid, long groupId) {
295                    return getService().fetchDLFolderByUuidAndGroupId(uuid, groupId);
296            }
297    
298            public static com.liferay.document.library.kernel.model.DLFolder fetchFolder(
299                    long folderId) {
300                    return getService().fetchFolder(folderId);
301            }
302    
303            public static com.liferay.document.library.kernel.model.DLFolder fetchFolder(
304                    long groupId, long parentFolderId, java.lang.String name) {
305                    return getService().fetchFolder(groupId, parentFolderId, name);
306            }
307    
308            public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
309                    return getService().getActionableDynamicQuery();
310            }
311    
312            public static java.util.List<com.liferay.document.library.kernel.model.DLFolder> getCompanyFolders(
313                    long companyId, int start, int end) {
314                    return getService().getCompanyFolders(companyId, start, end);
315            }
316    
317            public static int getCompanyFoldersCount(long companyId) {
318                    return getService().getCompanyFoldersCount(companyId);
319            }
320    
321            public static java.util.List<com.liferay.document.library.kernel.model.DLFolder> getDLFileEntryTypeDLFolders(
322                    long fileEntryTypeId) {
323                    return getService().getDLFileEntryTypeDLFolders(fileEntryTypeId);
324            }
325    
326            public static java.util.List<com.liferay.document.library.kernel.model.DLFolder> getDLFileEntryTypeDLFolders(
327                    long fileEntryTypeId, int start, int end) {
328                    return getService()
329                                       .getDLFileEntryTypeDLFolders(fileEntryTypeId, start, end);
330            }
331    
332            public static java.util.List<com.liferay.document.library.kernel.model.DLFolder> getDLFileEntryTypeDLFolders(
333                    long fileEntryTypeId, int start, int end,
334                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFolder> orderByComparator) {
335                    return getService()
336                                       .getDLFileEntryTypeDLFolders(fileEntryTypeId, start, end,
337                            orderByComparator);
338            }
339    
340            public static int getDLFileEntryTypeDLFoldersCount(long fileEntryTypeId) {
341                    return getService().getDLFileEntryTypeDLFoldersCount(fileEntryTypeId);
342            }
343    
344            /**
345            * Returns the fileEntryTypeIds of the document library file entry types associated with the document library folder.
346            *
347            * @param folderId the folderId of the document library folder
348            * @return long[] the fileEntryTypeIds of document library file entry types associated with the document library folder
349            */
350            public static long[] getDLFileEntryTypePrimaryKeys(long folderId) {
351                    return getService().getDLFileEntryTypePrimaryKeys(folderId);
352            }
353    
354            /**
355            * Returns the document library folder with the primary key.
356            *
357            * @param folderId the primary key of the document library folder
358            * @return the document library folder
359            * @throws PortalException if a document library folder with the primary key could not be found
360            */
361            public static com.liferay.document.library.kernel.model.DLFolder getDLFolder(
362                    long folderId)
363                    throws com.liferay.portal.kernel.exception.PortalException {
364                    return getService().getDLFolder(folderId);
365            }
366    
367            /**
368            * Returns the document library folder matching the UUID and group.
369            *
370            * @param uuid the document library folder's UUID
371            * @param groupId the primary key of the group
372            * @return the matching document library folder
373            * @throws PortalException if a matching document library folder could not be found
374            */
375            public static com.liferay.document.library.kernel.model.DLFolder getDLFolderByUuidAndGroupId(
376                    java.lang.String uuid, long groupId)
377                    throws com.liferay.portal.kernel.exception.PortalException {
378                    return getService().getDLFolderByUuidAndGroupId(uuid, groupId);
379            }
380    
381            /**
382            * Returns a range of all the document library folders.
383            *
384            * <p>
385            * 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.
386            * </p>
387            *
388            * @param start the lower bound of the range of document library folders
389            * @param end the upper bound of the range of document library folders (not inclusive)
390            * @return the range of document library folders
391            */
392            public static java.util.List<com.liferay.document.library.kernel.model.DLFolder> getDLFolders(
393                    int start, int end) {
394                    return getService().getDLFolders(start, end);
395            }
396    
397            /**
398            * Returns all the document library folders matching the UUID and company.
399            *
400            * @param uuid the UUID of the document library folders
401            * @param companyId the primary key of the company
402            * @return the matching document library folders, or an empty list if no matches were found
403            */
404            public static java.util.List<com.liferay.document.library.kernel.model.DLFolder> getDLFoldersByUuidAndCompanyId(
405                    java.lang.String uuid, long companyId) {
406                    return getService().getDLFoldersByUuidAndCompanyId(uuid, companyId);
407            }
408    
409            /**
410            * Returns a range of document library folders matching the UUID and company.
411            *
412            * @param uuid the UUID of the document library folders
413            * @param companyId the primary key of the company
414            * @param start the lower bound of the range of document library folders
415            * @param end the upper bound of the range of document library folders (not inclusive)
416            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
417            * @return the range of matching document library folders, or an empty list if no matches were found
418            */
419            public static java.util.List<com.liferay.document.library.kernel.model.DLFolder> getDLFoldersByUuidAndCompanyId(
420                    java.lang.String uuid, long companyId, int start, int end,
421                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFolder> orderByComparator) {
422                    return getService()
423                                       .getDLFoldersByUuidAndCompanyId(uuid, companyId, start, end,
424                            orderByComparator);
425            }
426    
427            /**
428            * Returns the number of document library folders.
429            *
430            * @return the number of document library folders
431            */
432            public static int getDLFoldersCount() {
433                    return getService().getDLFoldersCount();
434            }
435    
436            public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
437                    com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) {
438                    return getService().getExportActionableDynamicQuery(portletDataContext);
439            }
440    
441            public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
442                    long groupId, long folderId,
443                    com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
444                    return getService()
445                                       .getFileEntriesAndFileShortcuts(groupId, folderId,
446                            queryDefinition);
447            }
448    
449            public static int getFileEntriesAndFileShortcutsCount(long groupId,
450                    long folderId,
451                    com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
452                    return getService()
453                                       .getFileEntriesAndFileShortcutsCount(groupId, folderId,
454                            queryDefinition);
455            }
456    
457            public static com.liferay.document.library.kernel.model.DLFolder getFolder(
458                    long folderId)
459                    throws com.liferay.portal.kernel.exception.PortalException {
460                    return getService().getFolder(folderId);
461            }
462    
463            public static com.liferay.document.library.kernel.model.DLFolder getFolder(
464                    long groupId, long parentFolderId, java.lang.String name)
465                    throws com.liferay.portal.kernel.exception.PortalException {
466                    return getService().getFolder(groupId, parentFolderId, name);
467            }
468    
469            public static long getFolderId(long companyId, long folderId) {
470                    return getService().getFolderId(companyId, folderId);
471            }
472    
473            /**
474            * @deprecated As of 7.0.0, replaced by {@link #getGroupFolderIds(long,
475            long)}
476            */
477            @Deprecated
478            public static java.util.List<java.lang.Long> getFolderIds(long groupId,
479                    long parentFolderId) {
480                    return getService().getFolderIds(groupId, parentFolderId);
481            }
482    
483            public static java.util.List<com.liferay.document.library.kernel.model.DLFolder> getFolders(
484                    long groupId, long parentFolderId) {
485                    return getService().getFolders(groupId, parentFolderId);
486            }
487    
488            public static java.util.List<com.liferay.document.library.kernel.model.DLFolder> getFolders(
489                    long groupId, long parentFolderId, boolean includeMountfolders) {
490                    return getService()
491                                       .getFolders(groupId, parentFolderId, includeMountfolders);
492            }
493    
494            public static java.util.List<com.liferay.document.library.kernel.model.DLFolder> getFolders(
495                    long groupId, long parentFolderId, boolean includeMountfolders,
496                    int start, int end,
497                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFolder> obc) {
498                    return getService()
499                                       .getFolders(groupId, parentFolderId, includeMountfolders,
500                            start, end, obc);
501            }
502    
503            public static java.util.List<com.liferay.document.library.kernel.model.DLFolder> getFolders(
504                    long groupId, long parentFolderId, int start, int end,
505                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFolder> obc) {
506                    return getService().getFolders(groupId, parentFolderId, start, end, obc);
507            }
508    
509            public static java.util.List<com.liferay.document.library.kernel.model.DLFolder> getFolders(
510                    long groupId, long parentFolderId, int status,
511                    boolean includeMountfolders, int start, int end,
512                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFolder> obc) {
513                    return getService()
514                                       .getFolders(groupId, parentFolderId, status,
515                            includeMountfolders, start, end, obc);
516            }
517    
518            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
519                    long groupId, long folderId, java.lang.String[] mimeTypes,
520                    boolean includeMountFolders,
521                    com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
522                    return getService()
523                                       .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
524                            mimeTypes, includeMountFolders, queryDefinition);
525            }
526    
527            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
528                    long groupId, long folderId, java.lang.String[] mimeTypes,
529                    boolean includeMountFolders,
530                    com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
531                    return getService()
532                                       .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
533                            folderId, mimeTypes, includeMountFolders, queryDefinition);
534            }
535    
536            public static int getFoldersCount(long groupId, long parentFolderId) {
537                    return getService().getFoldersCount(groupId, parentFolderId);
538            }
539    
540            public static int getFoldersCount(long groupId, long parentFolderId,
541                    boolean includeMountfolders) {
542                    return getService()
543                                       .getFoldersCount(groupId, parentFolderId, includeMountfolders);
544            }
545    
546            public static int getFoldersCount(long groupId, long parentFolderId,
547                    int status, boolean includeMountfolders) {
548                    return getService()
549                                       .getFoldersCount(groupId, parentFolderId, status,
550                            includeMountfolders);
551            }
552    
553            public static java.util.List<java.lang.Long> getGroupFolderIds(
554                    long groupId, long parentFolderId) {
555                    return getService().getGroupFolderIds(groupId, parentFolderId);
556            }
557    
558            public static void getGroupSubfolderIds(
559                    java.util.List<java.lang.Long> folderIds, long groupId, long folderId) {
560                    getService().getGroupSubfolderIds(folderIds, groupId, folderId);
561            }
562    
563            public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
564                    return getService().getIndexableActionableDynamicQuery();
565            }
566    
567            public static com.liferay.document.library.kernel.model.DLFolder getMountFolder(
568                    long repositoryId)
569                    throws com.liferay.portal.kernel.exception.PortalException {
570                    return getService().getMountFolder(repositoryId);
571            }
572    
573            public static java.util.List<com.liferay.document.library.kernel.model.DLFolder> getMountFolders(
574                    long groupId, long parentFolderId, int start, int end,
575                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFolder> obc) {
576                    return getService()
577                                       .getMountFolders(groupId, parentFolderId, start, end, obc);
578            }
579    
580            public static int getMountFoldersCount(long groupId, long parentFolderId) {
581                    return getService().getMountFoldersCount(groupId, parentFolderId);
582            }
583    
584            public static java.util.List<com.liferay.document.library.kernel.model.DLFolder> getNoAssetFolders() {
585                    return getService().getNoAssetFolders();
586            }
587    
588            /**
589            * Returns the OSGi service identifier.
590            *
591            * @return the OSGi service identifier
592            */
593            public static java.lang.String getOSGiServiceIdentifier() {
594                    return getService().getOSGiServiceIdentifier();
595            }
596    
597            public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
598                    java.io.Serializable primaryKeyObj)
599                    throws com.liferay.portal.kernel.exception.PortalException {
600                    return getService().getPersistedModel(primaryKeyObj);
601            }
602    
603            public static java.util.List<java.lang.Long> getRepositoryFolderIds(
604                    long repositoryId, long parentFolderId) {
605                    return getService().getRepositoryFolderIds(repositoryId, parentFolderId);
606            }
607    
608            public static java.util.List<com.liferay.document.library.kernel.model.DLFolder> getRepositoryFolders(
609                    long repositoryId, int start, int end) {
610                    return getService().getRepositoryFolders(repositoryId, start, end);
611            }
612    
613            public static int getRepositoryFoldersCount(long repositoryId) {
614                    return getService().getRepositoryFoldersCount(repositoryId);
615            }
616    
617            public static void getRepositorySubfolderIds(
618                    java.util.List<java.lang.Long> folderIds, long repositoryId,
619                    long folderId) {
620                    getService().getRepositorySubfolderIds(folderIds, repositoryId, folderId);
621            }
622    
623            /**
624            * @deprecated As of 7.0.0, replaced by {@link #getGroupSubfolderIds(List,
625            long, long)}
626            */
627            @Deprecated
628            public static void getSubfolderIds(
629                    java.util.List<java.lang.Long> folderIds, long groupId, long folderId) {
630                    getService().getSubfolderIds(folderIds, groupId, folderId);
631            }
632    
633            public static boolean hasDLFileEntryTypeDLFolder(long fileEntryTypeId,
634                    long folderId) {
635                    return getService().hasDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
636            }
637    
638            public static boolean hasDLFileEntryTypeDLFolders(long fileEntryTypeId) {
639                    return getService().hasDLFileEntryTypeDLFolders(fileEntryTypeId);
640            }
641    
642            public static boolean hasFolderLock(long userId, long folderId) {
643                    return getService().hasFolderLock(userId, folderId);
644            }
645    
646            public static boolean hasInheritableLock(long folderId)
647                    throws com.liferay.portal.kernel.exception.PortalException {
648                    return getService().hasInheritableLock(folderId);
649            }
650    
651            public static com.liferay.portal.kernel.lock.Lock lockFolder(long userId,
652                    long folderId)
653                    throws com.liferay.portal.kernel.exception.PortalException {
654                    return getService().lockFolder(userId, folderId);
655            }
656    
657            public static com.liferay.portal.kernel.lock.Lock lockFolder(long userId,
658                    long folderId, java.lang.String owner, boolean inheritable,
659                    long expirationTime)
660                    throws com.liferay.portal.kernel.exception.PortalException {
661                    return getService()
662                                       .lockFolder(userId, folderId, owner, inheritable,
663                            expirationTime);
664            }
665    
666            public static com.liferay.document.library.kernel.model.DLFolder moveFolder(
667                    long userId, long folderId, long parentFolderId,
668                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
669                    throws com.liferay.portal.kernel.exception.PortalException {
670                    return getService()
671                                       .moveFolder(userId, folderId, parentFolderId, serviceContext);
672            }
673    
674            public static void rebuildTree(long companyId)
675                    throws com.liferay.portal.kernel.exception.PortalException {
676                    getService().rebuildTree(companyId);
677            }
678    
679            public static void rebuildTree(long companyId, long parentFolderId,
680                    java.lang.String parentTreePath, boolean reindex)
681                    throws com.liferay.portal.kernel.exception.PortalException {
682                    getService()
683                            .rebuildTree(companyId, parentFolderId, parentTreePath, reindex);
684            }
685    
686            public static void setDLFileEntryTypeDLFolders(long fileEntryTypeId,
687                    long[] folderIds) {
688                    getService().setDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
689            }
690    
691            public static void unlockFolder(long folderId, java.lang.String lockUuid)
692                    throws com.liferay.portal.kernel.exception.PortalException {
693                    getService().unlockFolder(folderId, lockUuid);
694            }
695    
696            public static void unlockFolder(long groupId, long parentFolderId,
697                    java.lang.String name, java.lang.String lockUuid)
698                    throws com.liferay.portal.kernel.exception.PortalException {
699                    getService().unlockFolder(groupId, parentFolderId, name, lockUuid);
700            }
701    
702            /**
703            * Updates the document library folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
704            *
705            * @param dlFolder the document library folder
706            * @return the document library folder that was updated
707            */
708            public static com.liferay.document.library.kernel.model.DLFolder updateDLFolder(
709                    com.liferay.document.library.kernel.model.DLFolder dlFolder) {
710                    return getService().updateDLFolder(dlFolder);
711            }
712    
713            /**
714            * @deprecated As of 7.0.0, replaced {@link #updateFolder(long, long,
715            String, String, long, List, int, ServiceContext)}
716            */
717            @Deprecated
718            public static com.liferay.document.library.kernel.model.DLFolder updateFolder(
719                    long folderId, java.lang.String name, java.lang.String description,
720                    long defaultFileEntryTypeId,
721                    java.util.List<java.lang.Long> fileEntryTypeIds,
722                    boolean overrideFileEntryTypes,
723                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
724                    throws com.liferay.portal.kernel.exception.PortalException {
725                    return getService()
726                                       .updateFolder(folderId, name, description,
727                            defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
728                            serviceContext);
729            }
730    
731            public static com.liferay.document.library.kernel.model.DLFolder updateFolder(
732                    long folderId, java.lang.String name, java.lang.String description,
733                    long defaultFileEntryTypeId,
734                    java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
735                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
736                    throws com.liferay.portal.kernel.exception.PortalException {
737                    return getService()
738                                       .updateFolder(folderId, name, description,
739                            defaultFileEntryTypeId, fileEntryTypeIds, restrictionType,
740                            serviceContext);
741            }
742    
743            /**
744            * @deprecated As of 7.0.0, replaced by {@link #updateFolder(long, long,
745            String, String, long, List, int, ServiceContext)}
746            */
747            @Deprecated
748            public static com.liferay.document.library.kernel.model.DLFolder updateFolder(
749                    long folderId, long parentFolderId, java.lang.String name,
750                    java.lang.String description, long defaultFileEntryTypeId,
751                    java.util.List<java.lang.Long> fileEntryTypeIds,
752                    boolean overrideFileEntryTypes,
753                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
754                    throws com.liferay.portal.kernel.exception.PortalException {
755                    return getService()
756                                       .updateFolder(folderId, parentFolderId, name, description,
757                            defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
758                            serviceContext);
759            }
760    
761            public static com.liferay.document.library.kernel.model.DLFolder updateFolder(
762                    long folderId, long parentFolderId, java.lang.String name,
763                    java.lang.String description, long defaultFileEntryTypeId,
764                    java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
765                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
766                    throws com.liferay.portal.kernel.exception.PortalException {
767                    return getService()
768                                       .updateFolder(folderId, parentFolderId, name, description,
769                            defaultFileEntryTypeId, fileEntryTypeIds, restrictionType,
770                            serviceContext);
771            }
772    
773            /**
774            * @deprecated As of 7.0.0, replaced by {@link #
775            updateFolderAndFileEntryTypes(long, long, long, String,
776            String, long, List, int, ServiceContext)}
777            */
778            @Deprecated
779            public static com.liferay.document.library.kernel.model.DLFolder updateFolderAndFileEntryTypes(
780                    long userId, long folderId, long parentFolderId, java.lang.String name,
781                    java.lang.String description, long defaultFileEntryTypeId,
782                    java.util.List<java.lang.Long> fileEntryTypeIds,
783                    boolean overrideFileEntryTypes,
784                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
785                    throws com.liferay.portal.kernel.exception.PortalException {
786                    return getService()
787                                       .updateFolderAndFileEntryTypes(userId, folderId,
788                            parentFolderId, name, description, defaultFileEntryTypeId,
789                            fileEntryTypeIds, overrideFileEntryTypes, serviceContext);
790            }
791    
792            public static com.liferay.document.library.kernel.model.DLFolder updateFolderAndFileEntryTypes(
793                    long userId, long folderId, long parentFolderId, java.lang.String name,
794                    java.lang.String description, long defaultFileEntryTypeId,
795                    java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
796                    com.liferay.portal.kernel.service.ServiceContext serviceContext)
797                    throws com.liferay.portal.kernel.exception.PortalException {
798                    return getService()
799                                       .updateFolderAndFileEntryTypes(userId, folderId,
800                            parentFolderId, name, description, defaultFileEntryTypeId,
801                            fileEntryTypeIds, restrictionType, serviceContext);
802            }
803    
804            public static void updateLastPostDate(long folderId,
805                    java.util.Date lastPostDate)
806                    throws com.liferay.portal.kernel.exception.PortalException {
807                    getService().updateLastPostDate(folderId, lastPostDate);
808            }
809    
810            public static com.liferay.document.library.kernel.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.kernel.service.ServiceContext serviceContext)
814                    throws com.liferay.portal.kernel.exception.PortalException {
815                    return getService()
816                                       .updateStatus(userId, folderId, status, workflowContext,
817                            serviceContext);
818            }
819    
820            public static boolean verifyInheritableLock(long folderId,
821                    java.lang.String lockUuid)
822                    throws com.liferay.portal.kernel.exception.PortalException {
823                    return getService().verifyInheritableLock(folderId, lockUuid);
824            }
825    
826            public static DLFolderLocalService getService() {
827                    if (_service == null) {
828                            _service = (DLFolderLocalService)PortalBeanLocatorUtil.locate(DLFolderLocalService.class.getName());
829    
830                            ReferenceRegistry.registerReference(DLFolderLocalServiceUtil.class,
831                                    "_service");
832                    }
833    
834                    return _service;
835            }
836    
837            private static DLFolderLocalService _service;
838    }