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