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