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