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            /**
330            * Returns the Spring bean ID for this bean.
331            *
332            * @return the Spring bean ID for this bean
333            */
334            public static java.lang.String getBeanIdentifier() {
335                    return getService().getBeanIdentifier();
336            }
337    
338            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
339                    long companyId, int start, int end) {
340                    return getService().getCompanyFolders(companyId, start, end);
341            }
342    
343            public static int getCompanyFoldersCount(long companyId) {
344                    return getService().getCompanyFoldersCount(companyId);
345            }
346    
347            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
348                    long fileEntryTypeId) {
349                    return getService().getDLFileEntryTypeDLFolders(fileEntryTypeId);
350            }
351    
352            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
353                    long fileEntryTypeId, int start, int end) {
354                    return getService()
355                                       .getDLFileEntryTypeDLFolders(fileEntryTypeId, start, end);
356            }
357    
358            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
359                    long fileEntryTypeId, int start, int end,
360                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> orderByComparator) {
361                    return getService()
362                                       .getDLFileEntryTypeDLFolders(fileEntryTypeId, start, end,
363                            orderByComparator);
364            }
365    
366            public static int getDLFileEntryTypeDLFoldersCount(long fileEntryTypeId) {
367                    return getService().getDLFileEntryTypeDLFoldersCount(fileEntryTypeId);
368            }
369    
370            /**
371            * Returns the fileEntryTypeIds of the document library file entry types associated with the document library folder.
372            *
373            * @param folderId the folderId of the document library folder
374            * @return long[] the fileEntryTypeIds of document library file entry types associated with the document library folder
375            */
376            public static long[] getDLFileEntryTypePrimaryKeys(long folderId) {
377                    return getService().getDLFileEntryTypePrimaryKeys(folderId);
378            }
379    
380            /**
381            * Returns the document library folder with the primary key.
382            *
383            * @param folderId the primary key of the document library folder
384            * @return the document library folder
385            * @throws PortalException if a document library folder with the primary key could not be found
386            */
387            public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder(
388                    long folderId)
389                    throws com.liferay.portal.kernel.exception.PortalException {
390                    return getService().getDLFolder(folderId);
391            }
392    
393            /**
394            * Returns the document library folder matching the UUID and group.
395            *
396            * @param uuid the document library folder's UUID
397            * @param groupId the primary key of the group
398            * @return the matching document library folder
399            * @throws PortalException if a matching document library folder could not be found
400            */
401            public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndGroupId(
402                    java.lang.String uuid, long groupId)
403                    throws com.liferay.portal.kernel.exception.PortalException {
404                    return getService().getDLFolderByUuidAndGroupId(uuid, groupId);
405            }
406    
407            /**
408            * Returns a range of all the document library folders.
409            *
410            * <p>
411            * 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.
412            * </p>
413            *
414            * @param start the lower bound of the range of document library folders
415            * @param end the upper bound of the range of document library folders (not inclusive)
416            * @return the range of document library folders
417            */
418            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
419                    int start, int end) {
420                    return getService().getDLFolders(start, end);
421            }
422    
423            /**
424            * Returns all the document library folders matching the UUID and company.
425            *
426            * @param uuid the UUID of the document library folders
427            * @param companyId the primary key of the company
428            * @return the matching document library folders, or an empty list if no matches were found
429            */
430            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFoldersByUuidAndCompanyId(
431                    java.lang.String uuid, long companyId) {
432                    return getService().getDLFoldersByUuidAndCompanyId(uuid, companyId);
433            }
434    
435            /**
436            * Returns a range of document library folders matching the UUID and company.
437            *
438            * @param uuid the UUID of the document library folders
439            * @param companyId the primary key of the company
440            * @param start the lower bound of the range of document library folders
441            * @param end the upper bound of the range of document library folders (not inclusive)
442            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
443            * @return the range of matching document library folders, or an empty list if no matches were found
444            */
445            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFoldersByUuidAndCompanyId(
446                    java.lang.String uuid, long companyId, int start, int end,
447                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> orderByComparator) {
448                    return getService()
449                                       .getDLFoldersByUuidAndCompanyId(uuid, companyId, start, end,
450                            orderByComparator);
451            }
452    
453            /**
454            * Returns the number of document library folders.
455            *
456            * @return the number of document library folders
457            */
458            public static int getDLFoldersCount() {
459                    return getService().getDLFoldersCount();
460            }
461    
462            public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
463                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
464                    return getService().getExportActionableDynamicQuery(portletDataContext);
465            }
466    
467            public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
468                    long groupId, long folderId,
469                    com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
470                    return getService()
471                                       .getFileEntriesAndFileShortcuts(groupId, folderId,
472                            queryDefinition);
473            }
474    
475            /**
476            * @deprecated As of 6.2.0, replaced by {@link
477            #getFileEntriesAndFileShortcuts(long, long, QueryDefinition)}
478            */
479            @Deprecated
480            public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
481                    long groupId, long folderId, int status, int start, int end) {
482                    return getService()
483                                       .getFileEntriesAndFileShortcuts(groupId, folderId, status,
484                            start, end);
485            }
486    
487            public static int getFileEntriesAndFileShortcutsCount(long groupId,
488                    long folderId,
489                    com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
490                    return getService()
491                                       .getFileEntriesAndFileShortcutsCount(groupId, folderId,
492                            queryDefinition);
493            }
494    
495            /**
496            * @deprecated As of 6.2.0, replaced by {@link
497            #getFileEntriesAndFileShortcutsCount(long, long,
498            QueryDefinition)}
499            */
500            @Deprecated
501            public static int getFileEntriesAndFileShortcutsCount(long groupId,
502                    long folderId, int status) {
503                    return getService()
504                                       .getFileEntriesAndFileShortcutsCount(groupId, folderId,
505                            status);
506            }
507    
508            public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
509                    long folderId)
510                    throws com.liferay.portal.kernel.exception.PortalException {
511                    return getService().getFolder(folderId);
512            }
513    
514            public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
515                    long groupId, long parentFolderId, java.lang.String name)
516                    throws com.liferay.portal.kernel.exception.PortalException {
517                    return getService().getFolder(groupId, parentFolderId, name);
518            }
519    
520            public static long getFolderId(long companyId, long folderId) {
521                    return getService().getFolderId(companyId, folderId);
522            }
523    
524            /**
525            * @deprecated As of 7.0.0, replaced by {@link #getGroupFolderIds(long,
526            long)}
527            */
528            @Deprecated
529            public static java.util.List<java.lang.Long> getFolderIds(long groupId,
530                    long parentFolderId) {
531                    return getService().getFolderIds(groupId, parentFolderId);
532            }
533    
534            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
535                    long groupId, long parentFolderId) {
536                    return getService().getFolders(groupId, parentFolderId);
537            }
538    
539            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
540                    long groupId, long parentFolderId, boolean includeMountfolders) {
541                    return getService()
542                                       .getFolders(groupId, parentFolderId, includeMountfolders);
543            }
544    
545            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
546                    long groupId, long parentFolderId, boolean includeMountfolders,
547                    int start, int end,
548                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc) {
549                    return getService()
550                                       .getFolders(groupId, parentFolderId, includeMountfolders,
551                            start, end, obc);
552            }
553    
554            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
555                    long groupId, long parentFolderId, int start, int end,
556                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc) {
557                    return getService().getFolders(groupId, parentFolderId, 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.portlet.documentlibrary.model.DLFolder getMountFolder(
663                    long repositoryId)
664                    throws com.liferay.portal.kernel.exception.PortalException {
665                    return getService().getMountFolder(repositoryId);
666            }
667    
668            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
669                    long groupId, long parentFolderId, int start, int end,
670                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc) {
671                    return getService()
672                                       .getMountFolders(groupId, parentFolderId, start, end, obc);
673            }
674    
675            public static int getMountFoldersCount(long groupId, long parentFolderId) {
676                    return getService().getMountFoldersCount(groupId, parentFolderId);
677            }
678    
679            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getNoAssetFolders() {
680                    return getService().getNoAssetFolders();
681            }
682    
683            public static com.liferay.portal.model.PersistedModel getPersistedModel(
684                    java.io.Serializable primaryKeyObj)
685                    throws com.liferay.portal.kernel.exception.PortalException {
686                    return getService().getPersistedModel(primaryKeyObj);
687            }
688    
689            public static java.util.List<java.lang.Long> getRepositoryFolderIds(
690                    long repositoryId, long parentFolderId) {
691                    return getService().getRepositoryFolderIds(repositoryId, parentFolderId);
692            }
693    
694            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getRepositoryFolders(
695                    long repositoryId, int start, int end) {
696                    return getService().getRepositoryFolders(repositoryId, start, end);
697            }
698    
699            public static int getRepositoryFoldersCount(long repositoryId) {
700                    return getService().getRepositoryFoldersCount(repositoryId);
701            }
702    
703            public static void getRepositorySubfolderIds(
704                    java.util.List<java.lang.Long> folderIds, long repositoryId,
705                    long folderId) {
706                    getService().getRepositorySubfolderIds(folderIds, repositoryId, folderId);
707            }
708    
709            /**
710            * @deprecated As of 7.0.0, replaced by {@link #getGroupSubfolderIds(List,
711            long, long)}
712            */
713            @Deprecated
714            public static void getSubfolderIds(
715                    java.util.List<java.lang.Long> folderIds, long groupId, long folderId) {
716                    getService().getSubfolderIds(folderIds, groupId, folderId);
717            }
718    
719            public static boolean hasDLFileEntryTypeDLFolder(long fileEntryTypeId,
720                    long folderId) {
721                    return getService().hasDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
722            }
723    
724            public static boolean hasDLFileEntryTypeDLFolders(long fileEntryTypeId) {
725                    return getService().hasDLFileEntryTypeDLFolders(fileEntryTypeId);
726            }
727    
728            public static boolean hasFolderLock(long userId, long folderId) {
729                    return getService().hasFolderLock(userId, folderId);
730            }
731    
732            public static com.liferay.portal.kernel.lock.Lock lockFolder(long userId,
733                    long folderId)
734                    throws com.liferay.portal.kernel.exception.PortalException {
735                    return getService().lockFolder(userId, folderId);
736            }
737    
738            public static com.liferay.portal.kernel.lock.Lock lockFolder(long userId,
739                    long folderId, java.lang.String owner, boolean inheritable,
740                    long expirationTime)
741                    throws com.liferay.portal.kernel.exception.PortalException {
742                    return getService()
743                                       .lockFolder(userId, folderId, owner, inheritable,
744                            expirationTime);
745            }
746    
747            public static com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
748                    long userId, long folderId, long parentFolderId,
749                    com.liferay.portal.service.ServiceContext serviceContext)
750                    throws com.liferay.portal.kernel.exception.PortalException {
751                    return getService()
752                                       .moveFolder(userId, folderId, parentFolderId, serviceContext);
753            }
754    
755            public static void rebuildTree(long companyId)
756                    throws com.liferay.portal.kernel.exception.PortalException {
757                    getService().rebuildTree(companyId);
758            }
759    
760            public static void rebuildTree(long companyId, long parentFolderId,
761                    java.lang.String parentTreePath, boolean reindex)
762                    throws com.liferay.portal.kernel.exception.PortalException {
763                    getService()
764                            .rebuildTree(companyId, parentFolderId, parentTreePath, reindex);
765            }
766    
767            /**
768            * Sets the Spring bean ID for this bean.
769            *
770            * @param beanIdentifier the Spring bean ID for this bean
771            */
772            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
773                    getService().setBeanIdentifier(beanIdentifier);
774            }
775    
776            public static void setDLFileEntryTypeDLFolders(long fileEntryTypeId,
777                    long[] folderIds) {
778                    getService().setDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
779            }
780    
781            public static void unlockFolder(long folderId, java.lang.String lockUuid)
782                    throws com.liferay.portal.kernel.exception.PortalException {
783                    getService().unlockFolder(folderId, lockUuid);
784            }
785    
786            public static void unlockFolder(long groupId, long parentFolderId,
787                    java.lang.String name, java.lang.String lockUuid)
788                    throws com.liferay.portal.kernel.exception.PortalException {
789                    getService().unlockFolder(groupId, parentFolderId, name, lockUuid);
790            }
791    
792            /**
793            * Updates the document library folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
794            *
795            * @param dlFolder the document library folder
796            * @return the document library folder that was updated
797            */
798            public static com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
799                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) {
800                    return getService().updateDLFolder(dlFolder);
801            }
802    
803            /**
804            * @deprecated As of 7.0.0, replaced {@link #updateFolder(long, long,
805            String, String, long, List, int, ServiceContext)}
806            */
807            @Deprecated
808            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
809                    long folderId, java.lang.String name, java.lang.String description,
810                    long defaultFileEntryTypeId,
811                    java.util.List<java.lang.Long> fileEntryTypeIds,
812                    boolean overrideFileEntryTypes,
813                    com.liferay.portal.service.ServiceContext serviceContext)
814                    throws com.liferay.portal.kernel.exception.PortalException {
815                    return getService()
816                                       .updateFolder(folderId, name, description,
817                            defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
818                            serviceContext);
819            }
820    
821            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
822                    long folderId, java.lang.String name, java.lang.String description,
823                    long defaultFileEntryTypeId,
824                    java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
825                    com.liferay.portal.service.ServiceContext serviceContext)
826                    throws com.liferay.portal.kernel.exception.PortalException {
827                    return getService()
828                                       .updateFolder(folderId, name, description,
829                            defaultFileEntryTypeId, fileEntryTypeIds, restrictionType,
830                            serviceContext);
831            }
832    
833            /**
834            * @deprecated As of 7.0.0, replaced by {@link #updateFolder(long, long,
835            String, String, long, List, int, ServiceContext)}
836            */
837            @Deprecated
838            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
839                    long folderId, long parentFolderId, java.lang.String name,
840                    java.lang.String description, long defaultFileEntryTypeId,
841                    java.util.List<java.lang.Long> fileEntryTypeIds,
842                    boolean overrideFileEntryTypes,
843                    com.liferay.portal.service.ServiceContext serviceContext)
844                    throws com.liferay.portal.kernel.exception.PortalException {
845                    return getService()
846                                       .updateFolder(folderId, parentFolderId, name, description,
847                            defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
848                            serviceContext);
849            }
850    
851            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
852                    long folderId, long parentFolderId, java.lang.String name,
853                    java.lang.String description, long defaultFileEntryTypeId,
854                    java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
855                    com.liferay.portal.service.ServiceContext serviceContext)
856                    throws com.liferay.portal.kernel.exception.PortalException {
857                    return getService()
858                                       .updateFolder(folderId, parentFolderId, name, description,
859                            defaultFileEntryTypeId, fileEntryTypeIds, restrictionType,
860                            serviceContext);
861            }
862    
863            /**
864            * @deprecated As of 7.0.0, replaced by {@link #
865            updateFolderAndFileEntryTypes(long, long, long, String,
866            String, long, List, int, ServiceContext)}
867            */
868            @Deprecated
869            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
870                    long userId, long folderId, long parentFolderId, java.lang.String name,
871                    java.lang.String description, long defaultFileEntryTypeId,
872                    java.util.List<java.lang.Long> fileEntryTypeIds,
873                    boolean overrideFileEntryTypes,
874                    com.liferay.portal.service.ServiceContext serviceContext)
875                    throws com.liferay.portal.kernel.exception.PortalException {
876                    return getService()
877                                       .updateFolderAndFileEntryTypes(userId, folderId,
878                            parentFolderId, name, description, defaultFileEntryTypeId,
879                            fileEntryTypeIds, overrideFileEntryTypes, serviceContext);
880            }
881    
882            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
883                    long userId, long folderId, long parentFolderId, java.lang.String name,
884                    java.lang.String description, long defaultFileEntryTypeId,
885                    java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
886                    com.liferay.portal.service.ServiceContext serviceContext)
887                    throws com.liferay.portal.kernel.exception.PortalException {
888                    return getService()
889                                       .updateFolderAndFileEntryTypes(userId, folderId,
890                            parentFolderId, name, description, defaultFileEntryTypeId,
891                            fileEntryTypeIds, restrictionType, serviceContext);
892            }
893    
894            public static void updateLastPostDate(long folderId,
895                    java.util.Date lastPostDate)
896                    throws com.liferay.portal.kernel.exception.PortalException {
897                    getService().updateLastPostDate(folderId, lastPostDate);
898            }
899    
900            public static com.liferay.portlet.documentlibrary.model.DLFolder updateStatus(
901                    long userId, long folderId, int status,
902                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
903                    com.liferay.portal.service.ServiceContext serviceContext)
904                    throws com.liferay.portal.kernel.exception.PortalException {
905                    return getService()
906                                       .updateStatus(userId, folderId, status, workflowContext,
907                            serviceContext);
908            }
909    
910            public static DLFolderLocalService getService() {
911                    if (_service == null) {
912                            _service = (DLFolderLocalService)PortalBeanLocatorUtil.locate(DLFolderLocalService.class.getName());
913    
914                            ReferenceRegistry.registerReference(DLFolderLocalServiceUtil.class,
915                                    "_service");
916                    }
917    
918                    return _service;
919            }
920    
921            /**
922             * @deprecated As of 6.2.0
923             */
924            @Deprecated
925            public void setService(DLFolderLocalService service) {
926            }
927    
928            private static DLFolderLocalService _service;
929    }