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