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