001    /**
002     * Copyright (c) 2000-2012 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. 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.
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. 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.
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. 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.
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            * Returns the Spring bean ID for this bean.
255            *
256            * @return the Spring bean ID for this bean
257            */
258            public static java.lang.String getBeanIdentifier() {
259                    return getService().getBeanIdentifier();
260            }
261    
262            /**
263            * Sets the Spring bean ID for this bean.
264            *
265            * @param beanIdentifier the Spring bean ID for this bean
266            */
267            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
268                    getService().setBeanIdentifier(beanIdentifier);
269            }
270    
271            public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
272                    long userId, long groupId, long repositoryId, boolean mountPoint,
273                    long parentFolderId, java.lang.String name,
274                    java.lang.String description, boolean hidden,
275                    com.liferay.portal.service.ServiceContext serviceContext)
276                    throws com.liferay.portal.kernel.exception.PortalException,
277                            com.liferay.portal.kernel.exception.SystemException {
278                    return getService()
279                                       .addFolder(userId, groupId, repositoryId, mountPoint,
280                            parentFolderId, name, description, hidden, serviceContext);
281            }
282    
283            /**
284            * @deprecated As of 6.2, replaced by more general {@link #addFolder(long,
285            long, long, boolean, long, String, String, boolean,
286            ServiceContext)}
287            */
288            public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
289                    long userId, long groupId, long repositoryId, boolean mountPoint,
290                    long parentFolderId, java.lang.String name,
291                    java.lang.String description,
292                    com.liferay.portal.service.ServiceContext serviceContext)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException {
295                    return getService()
296                                       .addFolder(userId, groupId, repositoryId, mountPoint,
297                            parentFolderId, name, description, serviceContext);
298            }
299    
300            public static void deleteAll(long groupId)
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException {
303                    getService().deleteAll(groupId);
304            }
305    
306            public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
307                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
308                    throws com.liferay.portal.kernel.exception.PortalException,
309                            com.liferay.portal.kernel.exception.SystemException {
310                    return getService().deleteFolder(dlFolder);
311            }
312    
313            public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
314                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
315                    boolean includeTrashedEntries)
316                    throws com.liferay.portal.kernel.exception.PortalException,
317                            com.liferay.portal.kernel.exception.SystemException {
318                    return getService().deleteFolder(dlFolder, includeTrashedEntries);
319            }
320    
321            public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
322                    long folderId)
323                    throws com.liferay.portal.kernel.exception.PortalException,
324                            com.liferay.portal.kernel.exception.SystemException {
325                    return getService().deleteFolder(folderId);
326            }
327    
328            public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
329                    long folderId, boolean includeTrashedEntries)
330                    throws com.liferay.portal.kernel.exception.PortalException,
331                            com.liferay.portal.kernel.exception.SystemException {
332                    return getService().deleteFolder(folderId, includeTrashedEntries);
333            }
334    
335            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
336                    long groupId, long parentFolderId, java.lang.String name)
337                    throws com.liferay.portal.kernel.exception.SystemException {
338                    return getService().fetchFolder(groupId, parentFolderId, name);
339            }
340    
341            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
342                    long companyId, int start, int end)
343                    throws com.liferay.portal.kernel.exception.SystemException {
344                    return getService().getCompanyFolders(companyId, start, end);
345            }
346    
347            public static int getCompanyFoldersCount(long companyId)
348                    throws com.liferay.portal.kernel.exception.SystemException {
349                    return getService().getCompanyFoldersCount(companyId);
350            }
351    
352            /**
353            * @deprecated Replaced by {@link #getFileEntriesAndFileShortcuts(long,
354            long, QueryDefinition)}
355            */
356            public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
357                    long groupId, long folderId, int status, int start, int end)
358                    throws com.liferay.portal.kernel.exception.SystemException {
359                    return getService()
360                                       .getFileEntriesAndFileShortcuts(groupId, folderId, status,
361                            start, end);
362            }
363    
364            public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
365                    long groupId, long folderId,
366                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
367                    throws com.liferay.portal.kernel.exception.SystemException {
368                    return getService()
369                                       .getFileEntriesAndFileShortcuts(groupId, folderId,
370                            queryDefinition);
371            }
372    
373            /**
374            * @deprecated Replaced by {@link #getFileEntriesAndFileShortcutsCount(long,
375            long, QueryDefinition)}
376            */
377            public static int getFileEntriesAndFileShortcutsCount(long groupId,
378                    long folderId, int status)
379                    throws com.liferay.portal.kernel.exception.SystemException {
380                    return getService()
381                                       .getFileEntriesAndFileShortcutsCount(groupId, folderId,
382                            status);
383            }
384    
385            public static int getFileEntriesAndFileShortcutsCount(long groupId,
386                    long folderId,
387                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
388                    throws com.liferay.portal.kernel.exception.SystemException {
389                    return getService()
390                                       .getFileEntriesAndFileShortcutsCount(groupId, folderId,
391                            queryDefinition);
392            }
393    
394            public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
395                    long folderId)
396                    throws com.liferay.portal.kernel.exception.PortalException,
397                            com.liferay.portal.kernel.exception.SystemException {
398                    return getService().getFolder(folderId);
399            }
400    
401            public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
402                    long groupId, long parentFolderId, java.lang.String name)
403                    throws com.liferay.portal.kernel.exception.PortalException,
404                            com.liferay.portal.kernel.exception.SystemException {
405                    return getService().getFolder(groupId, parentFolderId, name);
406            }
407    
408            public static long getFolderId(long companyId, long folderId)
409                    throws com.liferay.portal.kernel.exception.SystemException {
410                    return getService().getFolderId(companyId, folderId);
411            }
412    
413            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
414                    long groupId, long parentFolderId)
415                    throws com.liferay.portal.kernel.exception.SystemException {
416                    return getService().getFolders(groupId, parentFolderId);
417            }
418    
419            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
420                    long groupId, long parentFolderId, boolean includeMountfolders)
421                    throws com.liferay.portal.kernel.exception.SystemException {
422                    return getService()
423                                       .getFolders(groupId, parentFolderId, includeMountfolders);
424            }
425    
426            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
427                    long groupId, long parentFolderId, boolean includeMountfolders,
428                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
429                    throws com.liferay.portal.kernel.exception.SystemException {
430                    return getService()
431                                       .getFolders(groupId, parentFolderId, includeMountfolders,
432                            start, end, obc);
433            }
434    
435            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
436                    long groupId, long parentFolderId, int start, int end,
437                    com.liferay.portal.kernel.util.OrderByComparator obc)
438                    throws com.liferay.portal.kernel.exception.SystemException {
439                    return getService().getFolders(groupId, parentFolderId, start, end, obc);
440            }
441    
442            /**
443            * @deprecated Replaced by {@link
444            #getFoldersAndFileEntriesAndFileShortcuts(long, long,
445            String[], boolean, QueryDefinition)}
446            */
447            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
448                    long groupId, long folderId, int status, boolean includeMountFolders,
449                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
450                    throws com.liferay.portal.kernel.exception.SystemException {
451                    return getService()
452                                       .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
453                            status, includeMountFolders, start, end, obc);
454            }
455    
456            /**
457            * @deprecated Replaced by {@link
458            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
459            String[], boolean, QueryDefinition)}
460            */
461            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
462                    long groupId, long folderId, int status, java.lang.String[] mimeTypes,
463                    boolean includeMountFolders, int start, int end,
464                    com.liferay.portal.kernel.util.OrderByComparator obc)
465                    throws com.liferay.portal.kernel.exception.SystemException {
466                    return getService()
467                                       .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
468                            status, mimeTypes, includeMountFolders, start, end, obc);
469            }
470    
471            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
472                    long groupId, long folderId, java.lang.String[] mimeTypes,
473                    boolean includeMountFolders,
474                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
475                    throws com.liferay.portal.kernel.exception.SystemException {
476                    return getService()
477                                       .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
478                            mimeTypes, includeMountFolders, queryDefinition);
479            }
480    
481            /**
482            * @deprecated Replaced by {@link
483            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
484            String[], boolean, QueryDefinition)}
485            */
486            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
487                    long groupId, long folderId, int status, boolean includeMountFolders)
488                    throws com.liferay.portal.kernel.exception.SystemException {
489                    return getService()
490                                       .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
491                            folderId, status, includeMountFolders);
492            }
493    
494            /**
495            * @deprecated Replaced by {@link
496            #getFoldersAndFileEntriesAndFileShortcutsCount(long, long,
497            String[], boolean, QueryDefinition)}
498            */
499            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
500                    long groupId, long folderId, int status, java.lang.String[] mimeTypes,
501                    boolean includeMountFolders)
502                    throws com.liferay.portal.kernel.exception.SystemException {
503                    return getService()
504                                       .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
505                            folderId, status, mimeTypes, includeMountFolders);
506            }
507    
508            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
509                    long groupId, long folderId, java.lang.String[] mimeTypes,
510                    boolean includeMountFolders,
511                    com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
512                    throws com.liferay.portal.kernel.exception.SystemException {
513                    return getService()
514                                       .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
515                            folderId, mimeTypes, includeMountFolders, queryDefinition);
516            }
517    
518            public static int getFoldersCount(long groupId, long parentFolderId)
519                    throws com.liferay.portal.kernel.exception.SystemException {
520                    return getService().getFoldersCount(groupId, parentFolderId);
521            }
522    
523            public static int getFoldersCount(long groupId, long parentFolderId,
524                    boolean includeMountfolders)
525                    throws com.liferay.portal.kernel.exception.SystemException {
526                    return getService()
527                                       .getFoldersCount(groupId, parentFolderId, includeMountfolders);
528            }
529    
530            public static com.liferay.portlet.documentlibrary.model.DLFolder getMountFolder(
531                    long repositoryId)
532                    throws com.liferay.portal.kernel.exception.PortalException,
533                            com.liferay.portal.kernel.exception.SystemException {
534                    return getService().getMountFolder(repositoryId);
535            }
536    
537            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
538                    long groupId, long parentFolderId, int start, int end,
539                    com.liferay.portal.kernel.util.OrderByComparator obc)
540                    throws com.liferay.portal.kernel.exception.SystemException {
541                    return getService()
542                                       .getMountFolders(groupId, parentFolderId, start, end, obc);
543            }
544    
545            public static int getMountFoldersCount(long groupId, long parentFolderId)
546                    throws com.liferay.portal.kernel.exception.SystemException {
547                    return getService().getMountFoldersCount(groupId, parentFolderId);
548            }
549    
550            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getNoAssetFolders()
551                    throws com.liferay.portal.kernel.exception.SystemException {
552                    return getService().getNoAssetFolders();
553            }
554    
555            public static void getSubfolderIds(
556                    java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
557                    throws com.liferay.portal.kernel.exception.SystemException {
558                    getService().getSubfolderIds(folderIds, groupId, folderId);
559            }
560    
561            public static com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
562                    long folderId, long parentFolderId,
563                    com.liferay.portal.service.ServiceContext serviceContext)
564                    throws com.liferay.portal.kernel.exception.PortalException,
565                            com.liferay.portal.kernel.exception.SystemException {
566                    return getService().moveFolder(folderId, parentFolderId, serviceContext);
567            }
568    
569            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
570                    long folderId, long parentFolderId, java.lang.String name,
571                    java.lang.String description, long defaultFileEntryTypeId,
572                    java.util.List<java.lang.Long> fileEntryTypeIds,
573                    boolean overrideFileEntryTypes,
574                    com.liferay.portal.service.ServiceContext serviceContext)
575                    throws com.liferay.portal.kernel.exception.PortalException,
576                            com.liferay.portal.kernel.exception.SystemException {
577                    return getService()
578                                       .updateFolder(folderId, parentFolderId, name, description,
579                            defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
580                            serviceContext);
581            }
582    
583            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
584                    long folderId, java.lang.String name, java.lang.String description,
585                    long defaultFileEntryTypeId,
586                    java.util.List<java.lang.Long> fileEntryTypeIds,
587                    boolean overrideFileEntryTypes,
588                    com.liferay.portal.service.ServiceContext serviceContext)
589                    throws com.liferay.portal.kernel.exception.PortalException,
590                            com.liferay.portal.kernel.exception.SystemException {
591                    return getService()
592                                       .updateFolder(folderId, name, description,
593                            defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
594                            serviceContext);
595            }
596    
597            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
598                    long userId, long folderId, long parentFolderId, java.lang.String name,
599                    java.lang.String description, long defaultFileEntryTypeId,
600                    java.util.List<java.lang.Long> fileEntryTypeIds,
601                    boolean overrideFileEntryTypes,
602                    com.liferay.portal.service.ServiceContext serviceContext)
603                    throws com.liferay.portal.kernel.exception.PortalException,
604                            com.liferay.portal.kernel.exception.SystemException {
605                    return getService()
606                                       .updateFolderAndFileEntryTypes(userId, folderId,
607                            parentFolderId, name, description, defaultFileEntryTypeId,
608                            fileEntryTypeIds, overrideFileEntryTypes, serviceContext);
609            }
610    
611            /**
612            * @deprecated
613            */
614            public static void updateLastPostDate(long folderId,
615                    java.util.Date lastPostDate)
616                    throws com.liferay.portal.kernel.exception.PortalException,
617                            com.liferay.portal.kernel.exception.SystemException {
618                    getService().updateLastPostDate(folderId, lastPostDate);
619            }
620    
621            public static com.liferay.portlet.documentlibrary.model.DLFolder updateStatus(
622                    long userId, long folderId, int status,
623                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
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                                       .updateStatus(userId, folderId, status, workflowContext,
629                            serviceContext);
630            }
631    
632            public static DLFolderLocalService getService() {
633                    if (_service == null) {
634                            _service = (DLFolderLocalService)PortalBeanLocatorUtil.locate(DLFolderLocalService.class.getName());
635    
636                            ReferenceRegistry.registerReference(DLFolderLocalServiceUtil.class,
637                                    "_service");
638                    }
639    
640                    return _service;
641            }
642    
643            /**
644             * @deprecated
645             */
646            public void setService(DLFolderLocalService service) {
647            }
648    
649            private static DLFolderLocalService _service;
650    }