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 com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * The utility for the document library folder local service. This utility wraps {@link com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl} and is the primary access point for service operations in application layer code running on the local server.
022     *
023     * <p>
024     * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
025     * </p>
026     *
027     * @author Brian Wing Shun Chan
028     * @see DLFolderLocalService
029     * @see com.liferay.portlet.documentlibrary.service.base.DLFolderLocalServiceBaseImpl
030     * @see com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl
031     * @generated
032     */
033    public class DLFolderLocalServiceUtil {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * 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.
038             */
039    
040            /**
041            * Adds the document library folder to the database. Also notifies the appropriate model listeners.
042            *
043            * @param dlFolder the document library folder
044            * @return the document library folder that was added
045            * @throws SystemException if a system exception occurred
046            */
047            public static com.liferay.portlet.documentlibrary.model.DLFolder addDLFolder(
048                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
049                    throws com.liferay.portal.kernel.exception.SystemException {
050                    return getService().addDLFolder(dlFolder);
051            }
052    
053            /**
054            * Creates a new document library folder with the primary key. Does not add the document library folder to the database.
055            *
056            * @param folderId the primary key for the new document library folder
057            * @return the new document library folder
058            */
059            public static com.liferay.portlet.documentlibrary.model.DLFolder createDLFolder(
060                    long folderId) {
061                    return getService().createDLFolder(folderId);
062            }
063    
064            /**
065            * Deletes the document library folder with the primary key from the database. Also notifies the appropriate model listeners.
066            *
067            * @param folderId the primary key of the document library folder
068            * @return the document library folder that was removed
069            * @throws PortalException if a document library folder with the primary key could not be found
070            * @throws SystemException if a system exception occurred
071            */
072            public static com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
073                    long folderId)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    return getService().deleteDLFolder(folderId);
077            }
078    
079            /**
080            * Deletes the document library folder from the database. Also notifies the appropriate model listeners.
081            *
082            * @param dlFolder the document library folder
083            * @return the document library folder that was removed
084            * @throws SystemException if a system exception occurred
085            */
086            public static com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
087                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
088                    throws com.liferay.portal.kernel.exception.SystemException {
089                    return getService().deleteDLFolder(dlFolder);
090            }
091    
092            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093                    return getService().dynamicQuery();
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns the matching rows.
098            *
099            * @param dynamicQuery the dynamic query
100            * @return the matching rows
101            * @throws SystemException if a system exception occurred
102            */
103            @SuppressWarnings("rawtypes")
104            public static java.util.List dynamicQuery(
105                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106                    throws com.liferay.portal.kernel.exception.SystemException {
107                    return getService().dynamicQuery(dynamicQuery);
108            }
109    
110            /**
111            * Performs a dynamic query on the database and returns a range of the matching rows.
112            *
113            * <p>
114            * 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.
115            * </p>
116            *
117            * @param dynamicQuery the dynamic query
118            * @param start the lower bound of the range of model instances
119            * @param end the upper bound of the range of model instances (not inclusive)
120            * @return the range of matching rows
121            * @throws SystemException if a system exception occurred
122            */
123            @SuppressWarnings("rawtypes")
124            public static java.util.List dynamicQuery(
125                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126                    int end) throws com.liferay.portal.kernel.exception.SystemException {
127                    return getService().dynamicQuery(dynamicQuery, start, end);
128            }
129    
130            /**
131            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
132            *
133            * <p>
134            * 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.
135            * </p>
136            *
137            * @param dynamicQuery the dynamic query
138            * @param start the lower bound of the range of model instances
139            * @param end the upper bound of the range of model instances (not inclusive)
140            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
141            * @return the ordered range of matching rows
142            * @throws SystemException if a system exception occurred
143            */
144            @SuppressWarnings("rawtypes")
145            public static java.util.List dynamicQuery(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147                    int end,
148                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return getService()
151                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
152            }
153    
154            /**
155            * Returns the number of rows that match the dynamic query.
156            *
157            * @param dynamicQuery the dynamic query
158            * @return the number of rows that match the dynamic query
159            * @throws SystemException if a system exception occurred
160            */
161            public static long dynamicQueryCount(
162                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163                    throws com.liferay.portal.kernel.exception.SystemException {
164                    return getService().dynamicQueryCount(dynamicQuery);
165            }
166    
167            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolder(
168                    long folderId)
169                    throws com.liferay.portal.kernel.exception.SystemException {
170                    return getService().fetchDLFolder(folderId);
171            }
172    
173            /**
174            * Returns the document library folder with the primary key.
175            *
176            * @param folderId the primary key of the document library folder
177            * @return the document library folder
178            * @throws PortalException if a document library folder with the primary key could not be found
179            * @throws SystemException if a system exception occurred
180            */
181            public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder(
182                    long folderId)
183                    throws com.liferay.portal.kernel.exception.PortalException,
184                            com.liferay.portal.kernel.exception.SystemException {
185                    return getService().getDLFolder(folderId);
186            }
187    
188            public static com.liferay.portal.model.PersistedModel getPersistedModel(
189                    java.io.Serializable primaryKeyObj)
190                    throws com.liferay.portal.kernel.exception.PortalException,
191                            com.liferay.portal.kernel.exception.SystemException {
192                    return getService().getPersistedModel(primaryKeyObj);
193            }
194    
195            /**
196            * Returns the document library folder with the UUID in the group.
197            *
198            * @param uuid the UUID of document library folder
199            * @param groupId the group id of the document library folder
200            * @return the document library folder
201            * @throws PortalException if a document library folder with the UUID in the group could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndGroupId(
205                    java.lang.String uuid, long groupId)
206                    throws com.liferay.portal.kernel.exception.PortalException,
207                            com.liferay.portal.kernel.exception.SystemException {
208                    return getService().getDLFolderByUuidAndGroupId(uuid, groupId);
209            }
210    
211            /**
212            * Returns a range of all the document library folders.
213            *
214            * <p>
215            * 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.
216            * </p>
217            *
218            * @param start the lower bound of the range of document library folders
219            * @param end the upper bound of the range of document library folders (not inclusive)
220            * @return the range of document library folders
221            * @throws SystemException if a system exception occurred
222            */
223            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
224                    int start, int end)
225                    throws com.liferay.portal.kernel.exception.SystemException {
226                    return getService().getDLFolders(start, end);
227            }
228    
229            /**
230            * Returns the number of document library folders.
231            *
232            * @return the number of document library folders
233            * @throws SystemException if a system exception occurred
234            */
235            public static int getDLFoldersCount()
236                    throws com.liferay.portal.kernel.exception.SystemException {
237                    return getService().getDLFoldersCount();
238            }
239    
240            /**
241            * Updates the document library folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
242            *
243            * @param dlFolder the document library folder
244            * @return the document library folder that was updated
245            * @throws SystemException if a system exception occurred
246            */
247            public static com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
248                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
249                    throws com.liferay.portal.kernel.exception.SystemException {
250                    return getService().updateDLFolder(dlFolder);
251            }
252    
253            /**
254            * Updates the document library folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
255            *
256            * @param dlFolder the document library folder
257            * @param merge whether to merge the document library folder with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
258            * @return the document library folder that was updated
259            * @throws SystemException if a system exception occurred
260            */
261            public static com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
262                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
263                    boolean merge)
264                    throws com.liferay.portal.kernel.exception.SystemException {
265                    return getService().updateDLFolder(dlFolder, merge);
266            }
267    
268            /**
269            * @throws SystemException if a system exception occurred
270            */
271            public static void addDLFileEntryTypeDLFolder(long fileEntryTypeId,
272                    long folderId)
273                    throws com.liferay.portal.kernel.exception.SystemException {
274                    getService().addDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
275            }
276    
277            /**
278            * @throws SystemException if a system exception occurred
279            */
280            public static void addDLFileEntryTypeDLFolder(long fileEntryTypeId,
281                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
282                    throws com.liferay.portal.kernel.exception.SystemException {
283                    getService().addDLFileEntryTypeDLFolder(fileEntryTypeId, dlFolder);
284            }
285    
286            /**
287            * @throws SystemException if a system exception occurred
288            */
289            public static void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
290                    long[] folderIds)
291                    throws com.liferay.portal.kernel.exception.SystemException {
292                    getService().addDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
293            }
294    
295            /**
296            * @throws SystemException if a system exception occurred
297            */
298            public static void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
299                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders)
300                    throws com.liferay.portal.kernel.exception.SystemException {
301                    getService().addDLFileEntryTypeDLFolders(fileEntryTypeId, DLFolders);
302            }
303    
304            /**
305            * @throws SystemException if a system exception occurred
306            */
307            public static void clearDLFileEntryTypeDLFolders(long fileEntryTypeId)
308                    throws com.liferay.portal.kernel.exception.SystemException {
309                    getService().clearDLFileEntryTypeDLFolders(fileEntryTypeId);
310            }
311    
312            /**
313            * @throws SystemException if a system exception occurred
314            */
315            public static void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
316                    long folderId)
317                    throws com.liferay.portal.kernel.exception.SystemException {
318                    getService().deleteDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
319            }
320    
321            /**
322            * @throws SystemException if a system exception occurred
323            */
324            public static void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
325                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
326                    throws com.liferay.portal.kernel.exception.SystemException {
327                    getService().deleteDLFileEntryTypeDLFolder(fileEntryTypeId, dlFolder);
328            }
329    
330            /**
331            * @throws SystemException if a system exception occurred
332            */
333            public static void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
334                    long[] folderIds)
335                    throws com.liferay.portal.kernel.exception.SystemException {
336                    getService().deleteDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
337            }
338    
339            /**
340            * @throws SystemException if a system exception occurred
341            */
342            public static void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
343                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders)
344                    throws com.liferay.portal.kernel.exception.SystemException {
345                    getService().deleteDLFileEntryTypeDLFolders(fileEntryTypeId, DLFolders);
346            }
347    
348            /**
349            * @throws SystemException if a system exception occurred
350            */
351            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
352                    long fileEntryTypeId)
353                    throws com.liferay.portal.kernel.exception.SystemException {
354                    return getService().getDLFileEntryTypeDLFolders(fileEntryTypeId);
355            }
356    
357            /**
358            * @throws SystemException if a system exception occurred
359            */
360            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
361                    long fileEntryTypeId, int start, int end)
362                    throws com.liferay.portal.kernel.exception.SystemException {
363                    return getService()
364                                       .getDLFileEntryTypeDLFolders(fileEntryTypeId, start, end);
365            }
366    
367            /**
368            * @throws SystemException if a system exception occurred
369            */
370            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
371                    long fileEntryTypeId, int start, int end,
372                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
373                    throws com.liferay.portal.kernel.exception.SystemException {
374                    return getService()
375                                       .getDLFileEntryTypeDLFolders(fileEntryTypeId, start, end,
376                            orderByComparator);
377            }
378    
379            /**
380            * @throws SystemException if a system exception occurred
381            */
382            public static int getDLFileEntryTypeDLFoldersCount(long fileEntryTypeId)
383                    throws com.liferay.portal.kernel.exception.SystemException {
384                    return getService().getDLFileEntryTypeDLFoldersCount(fileEntryTypeId);
385            }
386    
387            /**
388            * @throws SystemException if a system exception occurred
389            */
390            public static boolean hasDLFileEntryTypeDLFolder(long fileEntryTypeId,
391                    long folderId)
392                    throws com.liferay.portal.kernel.exception.SystemException {
393                    return getService().hasDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
394            }
395    
396            /**
397            * @throws SystemException if a system exception occurred
398            */
399            public static boolean hasDLFileEntryTypeDLFolders(long fileEntryTypeId)
400                    throws com.liferay.portal.kernel.exception.SystemException {
401                    return getService().hasDLFileEntryTypeDLFolders(fileEntryTypeId);
402            }
403    
404            /**
405            * @throws SystemException if a system exception occurred
406            */
407            public static void setDLFileEntryTypeDLFolders(long fileEntryTypeId,
408                    long[] folderIds)
409                    throws com.liferay.portal.kernel.exception.SystemException {
410                    getService().setDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
411            }
412    
413            /**
414            * Returns the Spring bean ID for this bean.
415            *
416            * @return the Spring bean ID for this bean
417            */
418            public static java.lang.String getBeanIdentifier() {
419                    return getService().getBeanIdentifier();
420            }
421    
422            /**
423            * Sets the Spring bean ID for this bean.
424            *
425            * @param beanIdentifier the Spring bean ID for this bean
426            */
427            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
428                    getService().setBeanIdentifier(beanIdentifier);
429            }
430    
431            public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
432                    long userId, long groupId, long repositoryId, boolean mountPoint,
433                    long parentFolderId, java.lang.String name,
434                    java.lang.String description,
435                    com.liferay.portal.service.ServiceContext serviceContext)
436                    throws com.liferay.portal.kernel.exception.PortalException,
437                            com.liferay.portal.kernel.exception.SystemException {
438                    return getService()
439                                       .addFolder(userId, groupId, repositoryId, mountPoint,
440                            parentFolderId, name, description, serviceContext);
441            }
442    
443            public static void deleteAll(long groupId)
444                    throws com.liferay.portal.kernel.exception.PortalException,
445                            com.liferay.portal.kernel.exception.SystemException {
446                    getService().deleteAll(groupId);
447            }
448    
449            public static void deleteFolder(long folderId)
450                    throws com.liferay.portal.kernel.exception.PortalException,
451                            com.liferay.portal.kernel.exception.SystemException {
452                    getService().deleteFolder(folderId);
453            }
454    
455            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
456                    long companyId, int start, int end)
457                    throws com.liferay.portal.kernel.exception.SystemException {
458                    return getService().getCompanyFolders(companyId, start, end);
459            }
460    
461            public static int getCompanyFoldersCount(long companyId)
462                    throws com.liferay.portal.kernel.exception.SystemException {
463                    return getService().getCompanyFoldersCount(companyId);
464            }
465    
466            public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
467                    long groupId, long folderId, int status, int start, int end)
468                    throws com.liferay.portal.kernel.exception.SystemException {
469                    return getService()
470                                       .getFileEntriesAndFileShortcuts(groupId, folderId, status,
471                            start, end);
472            }
473    
474            public static int getFileEntriesAndFileShortcutsCount(long groupId,
475                    long folderId, int status)
476                    throws com.liferay.portal.kernel.exception.SystemException {
477                    return getService()
478                                       .getFileEntriesAndFileShortcutsCount(groupId, folderId,
479                            status);
480            }
481    
482            public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
483                    long folderId)
484                    throws com.liferay.portal.kernel.exception.PortalException,
485                            com.liferay.portal.kernel.exception.SystemException {
486                    return getService().getFolder(folderId);
487            }
488    
489            public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
490                    long groupId, long parentFolderId, java.lang.String name)
491                    throws com.liferay.portal.kernel.exception.PortalException,
492                            com.liferay.portal.kernel.exception.SystemException {
493                    return getService().getFolder(groupId, parentFolderId, name);
494            }
495    
496            public static long getFolderId(long companyId, long folderId)
497                    throws com.liferay.portal.kernel.exception.SystemException {
498                    return getService().getFolderId(companyId, folderId);
499            }
500    
501            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
502                    long groupId, long parentFolderId)
503                    throws com.liferay.portal.kernel.exception.SystemException {
504                    return getService().getFolders(groupId, parentFolderId);
505            }
506    
507            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
508                    long groupId, long parentFolderId, boolean includeMountfolders)
509                    throws com.liferay.portal.kernel.exception.SystemException {
510                    return getService()
511                                       .getFolders(groupId, parentFolderId, includeMountfolders);
512            }
513    
514            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
515                    long groupId, long parentFolderId, boolean includeMountfolders,
516                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
517                    throws com.liferay.portal.kernel.exception.SystemException {
518                    return getService()
519                                       .getFolders(groupId, parentFolderId, includeMountfolders,
520                            start, end, obc);
521            }
522    
523            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
524                    long groupId, long parentFolderId, int start, int end,
525                    com.liferay.portal.kernel.util.OrderByComparator obc)
526                    throws com.liferay.portal.kernel.exception.SystemException {
527                    return getService().getFolders(groupId, parentFolderId, start, end, obc);
528            }
529    
530            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
531                    long groupId, long folderId, int status, boolean includeMountFolders,
532                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
533                    throws com.liferay.portal.kernel.exception.SystemException {
534                    return getService()
535                                       .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
536                            status, includeMountFolders, start, end, obc);
537            }
538    
539            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
540                    long groupId, long folderId, int status, java.lang.String[] mimeTypes,
541                    boolean includeMountFolders, int start, int end,
542                    com.liferay.portal.kernel.util.OrderByComparator obc)
543                    throws com.liferay.portal.kernel.exception.SystemException {
544                    return getService()
545                                       .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
546                            status, mimeTypes, includeMountFolders, start, end, obc);
547            }
548    
549            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
550                    long groupId, long folderId, int status, boolean includeMountFolders)
551                    throws com.liferay.portal.kernel.exception.SystemException {
552                    return getService()
553                                       .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
554                            folderId, status, includeMountFolders);
555            }
556    
557            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
558                    long groupId, long folderId, int status, java.lang.String[] mimeTypes,
559                    boolean includeMountFolders)
560                    throws com.liferay.portal.kernel.exception.SystemException {
561                    return getService()
562                                       .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
563                            folderId, status, mimeTypes, includeMountFolders);
564            }
565    
566            public static int getFoldersCount(long groupId, long parentFolderId)
567                    throws com.liferay.portal.kernel.exception.SystemException {
568                    return getService().getFoldersCount(groupId, parentFolderId);
569            }
570    
571            public static int getFoldersCount(long groupId, long parentFolderId,
572                    boolean includeMountfolders)
573                    throws com.liferay.portal.kernel.exception.SystemException {
574                    return getService()
575                                       .getFoldersCount(groupId, parentFolderId, includeMountfolders);
576            }
577    
578            public static int getFoldersFileEntriesCount(long groupId,
579                    java.util.List<java.lang.Long> folderIds, int status)
580                    throws com.liferay.portal.kernel.exception.SystemException {
581                    return getService()
582                                       .getFoldersFileEntriesCount(groupId, folderIds, status);
583            }
584    
585            public static com.liferay.portlet.documentlibrary.model.DLFolder getMountFolder(
586                    long repositoryId)
587                    throws com.liferay.portal.kernel.exception.PortalException,
588                            com.liferay.portal.kernel.exception.SystemException {
589                    return getService().getMountFolder(repositoryId);
590            }
591    
592            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
593                    long groupId, long parentFolderId, int start, int end,
594                    com.liferay.portal.kernel.util.OrderByComparator obc)
595                    throws com.liferay.portal.kernel.exception.SystemException {
596                    return getService()
597                                       .getMountFolders(groupId, parentFolderId, start, end, obc);
598            }
599    
600            public static int getMountFoldersCount(long groupId, long parentFolderId)
601                    throws com.liferay.portal.kernel.exception.SystemException {
602                    return getService().getMountFoldersCount(groupId, parentFolderId);
603            }
604    
605            public static void getSubfolderIds(
606                    java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
607                    throws com.liferay.portal.kernel.exception.SystemException {
608                    getService().getSubfolderIds(folderIds, groupId, folderId);
609            }
610    
611            public static com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
612                    long folderId, long parentFolderId,
613                    com.liferay.portal.service.ServiceContext serviceContext)
614                    throws com.liferay.portal.kernel.exception.PortalException,
615                            com.liferay.portal.kernel.exception.SystemException {
616                    return getService().moveFolder(folderId, parentFolderId, serviceContext);
617            }
618    
619            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
620                    long folderId, long parentFolderId, java.lang.String name,
621                    java.lang.String description, long defaultFileEntryTypeId,
622                    java.util.List<java.lang.Long> fileEntryTypeIds,
623                    boolean overrideFileEntryTypes,
624                    com.liferay.portal.service.ServiceContext serviceContext)
625                    throws com.liferay.portal.kernel.exception.PortalException,
626                            com.liferay.portal.kernel.exception.SystemException {
627                    return getService()
628                                       .updateFolder(folderId, parentFolderId, name, description,
629                            defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
630                            serviceContext);
631            }
632    
633            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
634                    long folderId, java.lang.String name, java.lang.String description,
635                    long defaultFileEntryTypeId,
636                    java.util.List<java.lang.Long> fileEntryTypeIds,
637                    boolean overrideFileEntryTypes,
638                    com.liferay.portal.service.ServiceContext serviceContext)
639                    throws com.liferay.portal.kernel.exception.PortalException,
640                            com.liferay.portal.kernel.exception.SystemException {
641                    return getService()
642                                       .updateFolder(folderId, name, description,
643                            defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
644                            serviceContext);
645            }
646    
647            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
648                    long folderId, long parentFolderId, java.lang.String name,
649                    java.lang.String description, long defaultFileEntryTypeId,
650                    java.util.List<java.lang.Long> fileEntryTypeIds,
651                    boolean overrideFileEntryTypes,
652                    com.liferay.portal.service.ServiceContext serviceContext)
653                    throws com.liferay.portal.kernel.exception.PortalException,
654                            com.liferay.portal.kernel.exception.SystemException {
655                    return getService()
656                                       .updateFolderAndFileEntryTypes(folderId, parentFolderId,
657                            name, description, defaultFileEntryTypeId, fileEntryTypeIds,
658                            overrideFileEntryTypes, serviceContext);
659            }
660    
661            /**
662            * @deprecated
663            */
664            public static void updateLastPostDate(long folderId,
665                    java.util.Date lastPostDate)
666                    throws com.liferay.portal.kernel.exception.PortalException,
667                            com.liferay.portal.kernel.exception.SystemException {
668                    getService().updateLastPostDate(folderId, lastPostDate);
669            }
670    
671            public static DLFolderLocalService getService() {
672                    if (_service == null) {
673                            _service = (DLFolderLocalService)PortalBeanLocatorUtil.locate(DLFolderLocalService.class.getName());
674    
675                            ReferenceRegistry.registerReference(DLFolderLocalServiceUtil.class,
676                                    "_service");
677                    }
678    
679                    return _service;
680            }
681    
682            /**
683             * @deprecated
684             */
685            public void setService(DLFolderLocalService service) {
686            }
687    
688            private static DLFolderLocalService _service;
689    }