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<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
561                    long groupId, long parentFolderId, int status,
562                    boolean includeMountfolders, int start, int end,
563                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc) {
564                    return getService()
565                                       .getFolders(groupId, parentFolderId, status,
566                            includeMountfolders, start, end, obc);
567            }
568    
569            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
570                    long groupId, long folderId, java.lang.String[] mimeTypes,
571                    boolean includeMountFolders,
572                    com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
573                    return getService()
574                                       .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
575                            mimeTypes, includeMountFolders, queryDefinition);
576            }
577    
578            /**
579            * @deprecated As of 6.2.0, replaced by {@link
580            #getFoldersAndFileEntriesAndFileShortcuts(long, long,
581            String[], boolean, QueryDefinition)}
582            */
583            @Deprecated
584            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
585                    long groupId, long folderId, int status, boolean includeMountFolders,
586                    int start, int end,
587                    com.liferay.portal.kernel.util.OrderByComparator<?> obc) {
588                    return getService()
589                                       .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
590                            status, includeMountFolders, start, end, obc);
591            }
592    
593            /**
594            * @deprecated As of 6.2.0, replaced by {@link
595            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
596            String[], boolean, QueryDefinition)}
597            */
598            @Deprecated
599            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
600                    long groupId, long folderId, int status, java.lang.String[] mimeTypes,
601                    boolean includeMountFolders, int start, int end,
602                    com.liferay.portal.kernel.util.OrderByComparator<?> obc) {
603                    return getService()
604                                       .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
605                            status, mimeTypes, includeMountFolders, start, end, obc);
606            }
607    
608            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
609                    long groupId, long folderId, java.lang.String[] mimeTypes,
610                    boolean includeMountFolders,
611                    com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
612                    return getService()
613                                       .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
614                            folderId, mimeTypes, includeMountFolders, queryDefinition);
615            }
616    
617            /**
618            * @deprecated As of 6.2.0, replaced by {@link
619            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
620            String[], boolean, QueryDefinition)}
621            */
622            @Deprecated
623            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
624                    long groupId, long folderId, int status, boolean includeMountFolders) {
625                    return getService()
626                                       .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
627                            folderId, status, includeMountFolders);
628            }
629    
630            /**
631            * @deprecated As of 6.2.0, replaced by {@link
632            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
633            String[], boolean, QueryDefinition)}
634            */
635            @Deprecated
636            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
637                    long groupId, long folderId, int status, java.lang.String[] mimeTypes,
638                    boolean includeMountFolders) {
639                    return getService()
640                                       .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
641                            folderId, status, mimeTypes, includeMountFolders);
642            }
643    
644            public static int getFoldersCount(long groupId, long parentFolderId) {
645                    return getService().getFoldersCount(groupId, parentFolderId);
646            }
647    
648            public static int getFoldersCount(long groupId, long parentFolderId,
649                    boolean includeMountfolders) {
650                    return getService()
651                                       .getFoldersCount(groupId, parentFolderId, includeMountfolders);
652            }
653    
654            public static int getFoldersCount(long groupId, long parentFolderId,
655                    int status, boolean includeMountfolders) {
656                    return getService()
657                                       .getFoldersCount(groupId, parentFolderId, status,
658                            includeMountfolders);
659            }
660    
661            public static java.util.List<java.lang.Long> getGroupFolderIds(
662                    long groupId, long parentFolderId) {
663                    return getService().getGroupFolderIds(groupId, parentFolderId);
664            }
665    
666            public static void getGroupSubfolderIds(
667                    java.util.List<java.lang.Long> folderIds, long groupId, long folderId) {
668                    getService().getGroupSubfolderIds(folderIds, groupId, folderId);
669            }
670    
671            public static com.liferay.portlet.documentlibrary.model.DLFolder getMountFolder(
672                    long repositoryId)
673                    throws com.liferay.portal.kernel.exception.PortalException {
674                    return getService().getMountFolder(repositoryId);
675            }
676    
677            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
678                    long groupId, long parentFolderId, int start, int end,
679                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc) {
680                    return getService()
681                                       .getMountFolders(groupId, parentFolderId, start, end, obc);
682            }
683    
684            public static int getMountFoldersCount(long groupId, long parentFolderId) {
685                    return getService().getMountFoldersCount(groupId, parentFolderId);
686            }
687    
688            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getNoAssetFolders() {
689                    return getService().getNoAssetFolders();
690            }
691    
692            public static com.liferay.portal.model.PersistedModel getPersistedModel(
693                    java.io.Serializable primaryKeyObj)
694                    throws com.liferay.portal.kernel.exception.PortalException {
695                    return getService().getPersistedModel(primaryKeyObj);
696            }
697    
698            public static java.util.List<java.lang.Long> getRepositoryFolderIds(
699                    long repositoryId, long parentFolderId) {
700                    return getService().getRepositoryFolderIds(repositoryId, parentFolderId);
701            }
702    
703            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getRepositoryFolders(
704                    long repositoryId, int start, int end) {
705                    return getService().getRepositoryFolders(repositoryId, start, end);
706            }
707    
708            public static int getRepositoryFoldersCount(long repositoryId) {
709                    return getService().getRepositoryFoldersCount(repositoryId);
710            }
711    
712            public static void getRepositorySubfolderIds(
713                    java.util.List<java.lang.Long> folderIds, long repositoryId,
714                    long folderId) {
715                    getService().getRepositorySubfolderIds(folderIds, repositoryId, folderId);
716            }
717    
718            /**
719            * @deprecated As of 7.0.0, replaced by {@link #getGroupSubfolderIds(List,
720            long, long)}
721            */
722            @Deprecated
723            public static void getSubfolderIds(
724                    java.util.List<java.lang.Long> folderIds, long groupId, long folderId) {
725                    getService().getSubfolderIds(folderIds, groupId, folderId);
726            }
727    
728            public static boolean hasDLFileEntryTypeDLFolder(long fileEntryTypeId,
729                    long folderId) {
730                    return getService().hasDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
731            }
732    
733            public static boolean hasDLFileEntryTypeDLFolders(long fileEntryTypeId) {
734                    return getService().hasDLFileEntryTypeDLFolders(fileEntryTypeId);
735            }
736    
737            public static boolean hasFolderLock(long userId, long folderId) {
738                    return getService().hasFolderLock(userId, folderId);
739            }
740    
741            public static com.liferay.portal.kernel.lock.Lock lockFolder(long userId,
742                    long folderId)
743                    throws com.liferay.portal.kernel.exception.PortalException {
744                    return getService().lockFolder(userId, folderId);
745            }
746    
747            public static com.liferay.portal.kernel.lock.Lock lockFolder(long userId,
748                    long folderId, java.lang.String owner, boolean inheritable,
749                    long expirationTime)
750                    throws com.liferay.portal.kernel.exception.PortalException {
751                    return getService()
752                                       .lockFolder(userId, folderId, owner, inheritable,
753                            expirationTime);
754            }
755    
756            public static com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
757                    long userId, long folderId, long parentFolderId,
758                    com.liferay.portal.service.ServiceContext serviceContext)
759                    throws com.liferay.portal.kernel.exception.PortalException {
760                    return getService()
761                                       .moveFolder(userId, folderId, parentFolderId, serviceContext);
762            }
763    
764            public static void rebuildTree(long companyId)
765                    throws com.liferay.portal.kernel.exception.PortalException {
766                    getService().rebuildTree(companyId);
767            }
768    
769            public static void rebuildTree(long companyId, long parentFolderId,
770                    java.lang.String parentTreePath, boolean reindex)
771                    throws com.liferay.portal.kernel.exception.PortalException {
772                    getService()
773                            .rebuildTree(companyId, parentFolderId, parentTreePath, reindex);
774            }
775    
776            /**
777            * Sets the Spring bean ID for this bean.
778            *
779            * @param beanIdentifier the Spring bean ID for this bean
780            */
781            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
782                    getService().setBeanIdentifier(beanIdentifier);
783            }
784    
785            public static void setDLFileEntryTypeDLFolders(long fileEntryTypeId,
786                    long[] folderIds) {
787                    getService().setDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
788            }
789    
790            public static void unlockFolder(long folderId, java.lang.String lockUuid)
791                    throws com.liferay.portal.kernel.exception.PortalException {
792                    getService().unlockFolder(folderId, lockUuid);
793            }
794    
795            public static void unlockFolder(long groupId, long parentFolderId,
796                    java.lang.String name, java.lang.String lockUuid)
797                    throws com.liferay.portal.kernel.exception.PortalException {
798                    getService().unlockFolder(groupId, parentFolderId, name, lockUuid);
799            }
800    
801            /**
802            * Updates the document library folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
803            *
804            * @param dlFolder the document library folder
805            * @return the document library folder that was updated
806            */
807            public static com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
808                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) {
809                    return getService().updateDLFolder(dlFolder);
810            }
811    
812            /**
813            * @deprecated As of 7.0.0, replaced {@link #updateFolder(long, long,
814            String, String, long, List, int, ServiceContext)}
815            */
816            @Deprecated
817            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
818                    long folderId, java.lang.String name, java.lang.String description,
819                    long defaultFileEntryTypeId,
820                    java.util.List<java.lang.Long> fileEntryTypeIds,
821                    boolean overrideFileEntryTypes,
822                    com.liferay.portal.service.ServiceContext serviceContext)
823                    throws com.liferay.portal.kernel.exception.PortalException {
824                    return getService()
825                                       .updateFolder(folderId, name, description,
826                            defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
827                            serviceContext);
828            }
829    
830            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
831                    long folderId, java.lang.String name, java.lang.String description,
832                    long defaultFileEntryTypeId,
833                    java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
834                    com.liferay.portal.service.ServiceContext serviceContext)
835                    throws com.liferay.portal.kernel.exception.PortalException {
836                    return getService()
837                                       .updateFolder(folderId, name, description,
838                            defaultFileEntryTypeId, fileEntryTypeIds, restrictionType,
839                            serviceContext);
840            }
841    
842            /**
843            * @deprecated As of 7.0.0, replaced by {@link #updateFolder(long, long,
844            String, String, long, List, int, ServiceContext)}
845            */
846            @Deprecated
847            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
848                    long folderId, long parentFolderId, java.lang.String name,
849                    java.lang.String description, long defaultFileEntryTypeId,
850                    java.util.List<java.lang.Long> fileEntryTypeIds,
851                    boolean overrideFileEntryTypes,
852                    com.liferay.portal.service.ServiceContext serviceContext)
853                    throws com.liferay.portal.kernel.exception.PortalException {
854                    return getService()
855                                       .updateFolder(folderId, parentFolderId, name, description,
856                            defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
857                            serviceContext);
858            }
859    
860            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
861                    long folderId, long parentFolderId, java.lang.String name,
862                    java.lang.String description, long defaultFileEntryTypeId,
863                    java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
864                    com.liferay.portal.service.ServiceContext serviceContext)
865                    throws com.liferay.portal.kernel.exception.PortalException {
866                    return getService()
867                                       .updateFolder(folderId, parentFolderId, name, description,
868                            defaultFileEntryTypeId, fileEntryTypeIds, restrictionType,
869                            serviceContext);
870            }
871    
872            /**
873            * @deprecated As of 7.0.0, replaced by {@link #
874            updateFolderAndFileEntryTypes(long, long, long, String,
875            String, long, List, int, ServiceContext)}
876            */
877            @Deprecated
878            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
879                    long userId, long folderId, long parentFolderId, java.lang.String name,
880                    java.lang.String description, long defaultFileEntryTypeId,
881                    java.util.List<java.lang.Long> fileEntryTypeIds,
882                    boolean overrideFileEntryTypes,
883                    com.liferay.portal.service.ServiceContext serviceContext)
884                    throws com.liferay.portal.kernel.exception.PortalException {
885                    return getService()
886                                       .updateFolderAndFileEntryTypes(userId, folderId,
887                            parentFolderId, name, description, defaultFileEntryTypeId,
888                            fileEntryTypeIds, overrideFileEntryTypes, serviceContext);
889            }
890    
891            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
892                    long userId, long folderId, long parentFolderId, java.lang.String name,
893                    java.lang.String description, long defaultFileEntryTypeId,
894                    java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
895                    com.liferay.portal.service.ServiceContext serviceContext)
896                    throws com.liferay.portal.kernel.exception.PortalException {
897                    return getService()
898                                       .updateFolderAndFileEntryTypes(userId, folderId,
899                            parentFolderId, name, description, defaultFileEntryTypeId,
900                            fileEntryTypeIds, restrictionType, serviceContext);
901            }
902    
903            public static void updateLastPostDate(long folderId,
904                    java.util.Date lastPostDate)
905                    throws com.liferay.portal.kernel.exception.PortalException {
906                    getService().updateLastPostDate(folderId, lastPostDate);
907            }
908    
909            public static com.liferay.portlet.documentlibrary.model.DLFolder updateStatus(
910                    long userId, long folderId, int status,
911                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
912                    com.liferay.portal.service.ServiceContext serviceContext)
913                    throws com.liferay.portal.kernel.exception.PortalException {
914                    return getService()
915                                       .updateStatus(userId, folderId, status, workflowContext,
916                            serviceContext);
917            }
918    
919            public static DLFolderLocalService getService() {
920                    if (_service == null) {
921                            _service = (DLFolderLocalService)PortalBeanLocatorUtil.locate(DLFolderLocalService.class.getName());
922    
923                            ReferenceRegistry.registerReference(DLFolderLocalServiceUtil.class,
924                                    "_service");
925                    }
926    
927                    return _service;
928            }
929    
930            /**
931             * @deprecated As of 6.2.0
932             */
933            @Deprecated
934            public void setService(DLFolderLocalService service) {
935            }
936    
937            private static DLFolderLocalService _service;
938    }