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            public static void deleteAll(long groupId)
509                    throws com.liferay.portal.kernel.exception.PortalException,
510                            com.liferay.portal.kernel.exception.SystemException {
511                    getService().deleteAll(groupId);
512            }
513    
514            public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
515                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
516                    throws com.liferay.portal.kernel.exception.PortalException,
517                            com.liferay.portal.kernel.exception.SystemException {
518                    return getService().deleteFolder(dlFolder);
519            }
520    
521            public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
522                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
523                    boolean includeTrashedEntries)
524                    throws com.liferay.portal.kernel.exception.PortalException,
525                            com.liferay.portal.kernel.exception.SystemException {
526                    return getService().deleteFolder(dlFolder, includeTrashedEntries);
527            }
528    
529            public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
530                    long folderId)
531                    throws com.liferay.portal.kernel.exception.PortalException,
532                            com.liferay.portal.kernel.exception.SystemException {
533                    return getService().deleteFolder(folderId);
534            }
535    
536            public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
537                    long folderId, boolean includeTrashedEntries)
538                    throws com.liferay.portal.kernel.exception.PortalException,
539                            com.liferay.portal.kernel.exception.SystemException {
540                    return getService().deleteFolder(folderId, includeTrashedEntries);
541            }
542    
543            public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
544                    long userId, long folderId, boolean includeTrashedEntries)
545                    throws com.liferay.portal.kernel.exception.PortalException,
546                            com.liferay.portal.kernel.exception.SystemException {
547                    return getService().deleteFolder(userId, folderId, includeTrashedEntries);
548            }
549    
550            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
551                    long folderId)
552                    throws com.liferay.portal.kernel.exception.SystemException {
553                    return getService().fetchFolder(folderId);
554            }
555    
556            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
557                    long groupId, long parentFolderId, java.lang.String name)
558                    throws com.liferay.portal.kernel.exception.SystemException {
559                    return getService().fetchFolder(groupId, parentFolderId, name);
560            }
561    
562            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
563                    long companyId, int start, int end)
564                    throws com.liferay.portal.kernel.exception.SystemException {
565                    return getService().getCompanyFolders(companyId, start, end);
566            }
567    
568            public static int getCompanyFoldersCount(long companyId)
569                    throws com.liferay.portal.kernel.exception.SystemException {
570                    return getService().getCompanyFoldersCount(companyId);
571            }
572    
573            /**
574            * @deprecated As of 6.2.0, replaced by {@link
575            #getFileEntriesAndFileShortcuts(long, long, QueryDefinition)}
576            */
577            public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
578                    long groupId, long folderId, int status, int start, int end)
579                    throws com.liferay.portal.kernel.exception.SystemException {
580                    return getService()
581                                       .getFileEntriesAndFileShortcuts(groupId, folderId, status,
582                            start, end);
583            }
584    
585            public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
586                    long groupId, long folderId,
587                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
588                    throws com.liferay.portal.kernel.exception.SystemException {
589                    return getService()
590                                       .getFileEntriesAndFileShortcuts(groupId, folderId,
591                            queryDefinition);
592            }
593    
594            /**
595            * @deprecated As of 6.2.0, replaced by {@link
596            #getFileEntriesAndFileShortcutsCount(long, long,
597            QueryDefinition)}
598            */
599            public static int getFileEntriesAndFileShortcutsCount(long groupId,
600                    long folderId, int status)
601                    throws com.liferay.portal.kernel.exception.SystemException {
602                    return getService()
603                                       .getFileEntriesAndFileShortcutsCount(groupId, folderId,
604                            status);
605            }
606    
607            public static int getFileEntriesAndFileShortcutsCount(long groupId,
608                    long folderId,
609                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
610                    throws com.liferay.portal.kernel.exception.SystemException {
611                    return getService()
612                                       .getFileEntriesAndFileShortcutsCount(groupId, folderId,
613                            queryDefinition);
614            }
615    
616            public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
617                    long folderId)
618                    throws com.liferay.portal.kernel.exception.PortalException,
619                            com.liferay.portal.kernel.exception.SystemException {
620                    return getService().getFolder(folderId);
621            }
622    
623            public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
624                    long groupId, long parentFolderId, java.lang.String name)
625                    throws com.liferay.portal.kernel.exception.PortalException,
626                            com.liferay.portal.kernel.exception.SystemException {
627                    return getService().getFolder(groupId, parentFolderId, name);
628            }
629    
630            public static long getFolderId(long companyId, long folderId)
631                    throws com.liferay.portal.kernel.exception.SystemException {
632                    return getService().getFolderId(companyId, folderId);
633            }
634    
635            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
636                    long groupId, long parentFolderId)
637                    throws com.liferay.portal.kernel.exception.SystemException {
638                    return getService().getFolders(groupId, parentFolderId);
639            }
640    
641            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
642                    long groupId, long parentFolderId, boolean includeMountfolders)
643                    throws com.liferay.portal.kernel.exception.SystemException {
644                    return getService()
645                                       .getFolders(groupId, parentFolderId, includeMountfolders);
646            }
647    
648            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
649                    long groupId, long parentFolderId, boolean includeMountfolders,
650                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
651                    throws com.liferay.portal.kernel.exception.SystemException {
652                    return getService()
653                                       .getFolders(groupId, parentFolderId, includeMountfolders,
654                            start, end, obc);
655            }
656    
657            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
658                    long groupId, long parentFolderId, int start, int end,
659                    com.liferay.portal.kernel.util.OrderByComparator obc)
660                    throws com.liferay.portal.kernel.exception.SystemException {
661                    return getService().getFolders(groupId, parentFolderId, start, end, obc);
662            }
663    
664            /**
665            * @deprecated As of 6.2.0, replaced by {@link
666            #getFoldersAndFileEntriesAndFileShortcuts(long, long,
667            String[], boolean, QueryDefinition)}
668            */
669            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
670                    long groupId, long folderId, int status, boolean includeMountFolders,
671                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
672                    throws com.liferay.portal.kernel.exception.SystemException {
673                    return getService()
674                                       .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
675                            status, includeMountFolders, start, end, obc);
676            }
677    
678            /**
679            * @deprecated As of 6.2.0, replaced by {@link
680            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
681            String[], boolean, QueryDefinition)}
682            */
683            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
684                    long groupId, long folderId, int status, java.lang.String[] mimeTypes,
685                    boolean includeMountFolders, int start, int end,
686                    com.liferay.portal.kernel.util.OrderByComparator obc)
687                    throws com.liferay.portal.kernel.exception.SystemException {
688                    return getService()
689                                       .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
690                            status, mimeTypes, includeMountFolders, start, end, obc);
691            }
692    
693            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
694                    long groupId, long folderId, java.lang.String[] mimeTypes,
695                    boolean includeMountFolders,
696                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
697                    throws com.liferay.portal.kernel.exception.SystemException {
698                    return getService()
699                                       .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
700                            mimeTypes, includeMountFolders, queryDefinition);
701            }
702    
703            /**
704            * @deprecated As of 6.2.0, replaced by {@link
705            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
706            String[], boolean, QueryDefinition)}
707            */
708            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
709                    long groupId, long folderId, int status, boolean includeMountFolders)
710                    throws com.liferay.portal.kernel.exception.SystemException {
711                    return getService()
712                                       .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
713                            folderId, status, includeMountFolders);
714            }
715    
716            /**
717            * @deprecated As of 6.2.0, replaced by {@link
718            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
719            String[], boolean, QueryDefinition)}
720            */
721            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
722                    long groupId, long folderId, int status, java.lang.String[] mimeTypes,
723                    boolean includeMountFolders)
724                    throws com.liferay.portal.kernel.exception.SystemException {
725                    return getService()
726                                       .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
727                            folderId, status, mimeTypes, includeMountFolders);
728            }
729    
730            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
731                    long groupId, long folderId, java.lang.String[] mimeTypes,
732                    boolean includeMountFolders,
733                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
734                    throws com.liferay.portal.kernel.exception.SystemException {
735                    return getService()
736                                       .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
737                            folderId, mimeTypes, includeMountFolders, queryDefinition);
738            }
739    
740            public static int getFoldersCount(long groupId, long parentFolderId)
741                    throws com.liferay.portal.kernel.exception.SystemException {
742                    return getService().getFoldersCount(groupId, parentFolderId);
743            }
744    
745            public static int getFoldersCount(long groupId, long parentFolderId,
746                    boolean includeMountfolders)
747                    throws com.liferay.portal.kernel.exception.SystemException {
748                    return getService()
749                                       .getFoldersCount(groupId, parentFolderId, includeMountfolders);
750            }
751    
752            public static int getFoldersCount(long groupId, long parentFolderId,
753                    int status, boolean includeMountfolders)
754                    throws com.liferay.portal.kernel.exception.SystemException {
755                    return getService()
756                                       .getFoldersCount(groupId, parentFolderId, status,
757                            includeMountfolders);
758            }
759    
760            public static com.liferay.portlet.documentlibrary.model.DLFolder getMountFolder(
761                    long repositoryId)
762                    throws com.liferay.portal.kernel.exception.PortalException,
763                            com.liferay.portal.kernel.exception.SystemException {
764                    return getService().getMountFolder(repositoryId);
765            }
766    
767            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
768                    long groupId, long parentFolderId, int start, int end,
769                    com.liferay.portal.kernel.util.OrderByComparator obc)
770                    throws com.liferay.portal.kernel.exception.SystemException {
771                    return getService()
772                                       .getMountFolders(groupId, parentFolderId, start, end, obc);
773            }
774    
775            public static int getMountFoldersCount(long groupId, long parentFolderId)
776                    throws com.liferay.portal.kernel.exception.SystemException {
777                    return getService().getMountFoldersCount(groupId, parentFolderId);
778            }
779    
780            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getNoAssetFolders()
781                    throws com.liferay.portal.kernel.exception.SystemException {
782                    return getService().getNoAssetFolders();
783            }
784    
785            public static void getSubfolderIds(
786                    java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
787                    throws com.liferay.portal.kernel.exception.SystemException {
788                    getService().getSubfolderIds(folderIds, groupId, folderId);
789            }
790    
791            public static boolean hasFolderLock(long userId, long folderId)
792                    throws com.liferay.portal.kernel.exception.SystemException {
793                    return getService().hasFolderLock(userId, folderId);
794            }
795    
796            public static com.liferay.portal.model.Lock lockFolder(long userId,
797                    long folderId)
798                    throws com.liferay.portal.kernel.exception.PortalException,
799                            com.liferay.portal.kernel.exception.SystemException {
800                    return getService().lockFolder(userId, folderId);
801            }
802    
803            public static com.liferay.portal.model.Lock lockFolder(long userId,
804                    long folderId, java.lang.String owner, boolean inheritable,
805                    long expirationTime)
806                    throws com.liferay.portal.kernel.exception.PortalException,
807                            com.liferay.portal.kernel.exception.SystemException {
808                    return getService()
809                                       .lockFolder(userId, folderId, owner, inheritable,
810                            expirationTime);
811            }
812    
813            public static com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
814                    long userId, long folderId, long parentFolderId,
815                    com.liferay.portal.service.ServiceContext serviceContext)
816                    throws com.liferay.portal.kernel.exception.PortalException,
817                            com.liferay.portal.kernel.exception.SystemException {
818                    return getService()
819                                       .moveFolder(userId, folderId, parentFolderId, serviceContext);
820            }
821    
822            public static void rebuildTree(long companyId)
823                    throws com.liferay.portal.kernel.exception.SystemException {
824                    getService().rebuildTree(companyId);
825            }
826    
827            public static void unlockFolder(long groupId, long parentFolderId,
828                    java.lang.String name, java.lang.String lockUuid)
829                    throws com.liferay.portal.kernel.exception.PortalException,
830                            com.liferay.portal.kernel.exception.SystemException {
831                    getService().unlockFolder(groupId, parentFolderId, name, lockUuid);
832            }
833    
834            public static void unlockFolder(long folderId, java.lang.String lockUuid)
835                    throws com.liferay.portal.kernel.exception.PortalException,
836                            com.liferay.portal.kernel.exception.SystemException {
837                    getService().unlockFolder(folderId, lockUuid);
838            }
839    
840            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
841                    long folderId, long parentFolderId, java.lang.String name,
842                    java.lang.String description, long defaultFileEntryTypeId,
843                    java.util.List<java.lang.Long> fileEntryTypeIds,
844                    boolean overrideFileEntryTypes,
845                    com.liferay.portal.service.ServiceContext serviceContext)
846                    throws com.liferay.portal.kernel.exception.PortalException,
847                            com.liferay.portal.kernel.exception.SystemException {
848                    return getService()
849                                       .updateFolder(folderId, parentFolderId, name, description,
850                            defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
851                            serviceContext);
852            }
853    
854            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
855                    long folderId, java.lang.String name, java.lang.String description,
856                    long defaultFileEntryTypeId,
857                    java.util.List<java.lang.Long> fileEntryTypeIds,
858                    boolean overrideFileEntryTypes,
859                    com.liferay.portal.service.ServiceContext serviceContext)
860                    throws com.liferay.portal.kernel.exception.PortalException,
861                            com.liferay.portal.kernel.exception.SystemException {
862                    return getService()
863                                       .updateFolder(folderId, name, description,
864                            defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
865                            serviceContext);
866            }
867    
868            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
869                    long userId, long folderId, long parentFolderId, java.lang.String name,
870                    java.lang.String description, long defaultFileEntryTypeId,
871                    java.util.List<java.lang.Long> fileEntryTypeIds,
872                    boolean overrideFileEntryTypes,
873                    com.liferay.portal.service.ServiceContext serviceContext)
874                    throws com.liferay.portal.kernel.exception.PortalException,
875                            com.liferay.portal.kernel.exception.SystemException {
876                    return getService()
877                                       .updateFolderAndFileEntryTypes(userId, folderId,
878                            parentFolderId, name, description, defaultFileEntryTypeId,
879                            fileEntryTypeIds, overrideFileEntryTypes, serviceContext);
880            }
881    
882            /**
883            * @deprecated As of 6.2.0
884            */
885            public static void updateLastPostDate(long folderId,
886                    java.util.Date lastPostDate)
887                    throws com.liferay.portal.kernel.exception.PortalException,
888                            com.liferay.portal.kernel.exception.SystemException {
889                    getService().updateLastPostDate(folderId, lastPostDate);
890            }
891    
892            public static com.liferay.portlet.documentlibrary.model.DLFolder updateStatus(
893                    long userId, long folderId, int status,
894                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
895                    com.liferay.portal.service.ServiceContext serviceContext)
896                    throws com.liferay.portal.kernel.exception.PortalException,
897                            com.liferay.portal.kernel.exception.SystemException {
898                    return getService()
899                                       .updateStatus(userId, folderId, status, workflowContext,
900                            serviceContext);
901            }
902    
903            public static DLFolderLocalService getService() {
904                    if (_service == null) {
905                            _service = (DLFolderLocalService)PortalBeanLocatorUtil.locate(DLFolderLocalService.class.getName());
906    
907                            ReferenceRegistry.registerReference(DLFolderLocalServiceUtil.class,
908                                    "_service");
909                    }
910    
911                    return _service;
912            }
913    
914            /**
915             * @deprecated As of 6.2.0
916             */
917            public void setService(DLFolderLocalService service) {
918            }
919    
920            private static DLFolderLocalService _service;
921    }