001
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
033 public class DLFolderLocalServiceUtil {
034
039
040
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
059 public static com.liferay.portlet.documentlibrary.model.DLFolder createDLFolder(
060 long folderId) {
061 return getService().createDLFolder(folderId);
062 }
063
064
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
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
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
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
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
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
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
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
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
235 public static int getDLFoldersCount()
236 throws com.liferay.portal.kernel.exception.SystemException {
237 return getService().getDLFoldersCount();
238 }
239
240
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
256 public static void addDLFileEntryTypeDLFolder(long fileEntryTypeId,
257 long folderId)
258 throws com.liferay.portal.kernel.exception.SystemException {
259 getService().addDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
260 }
261
262
265 public static void addDLFileEntryTypeDLFolder(long fileEntryTypeId,
266 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
267 throws com.liferay.portal.kernel.exception.SystemException {
268 getService().addDLFileEntryTypeDLFolder(fileEntryTypeId, dlFolder);
269 }
270
271
274 public static void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
275 long[] folderIds)
276 throws com.liferay.portal.kernel.exception.SystemException {
277 getService().addDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
278 }
279
280
283 public static void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
284 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders)
285 throws com.liferay.portal.kernel.exception.SystemException {
286 getService().addDLFileEntryTypeDLFolders(fileEntryTypeId, DLFolders);
287 }
288
289
292 public static void clearDLFileEntryTypeDLFolders(long fileEntryTypeId)
293 throws com.liferay.portal.kernel.exception.SystemException {
294 getService().clearDLFileEntryTypeDLFolders(fileEntryTypeId);
295 }
296
297
300 public static void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
301 long folderId)
302 throws com.liferay.portal.kernel.exception.SystemException {
303 getService().deleteDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
304 }
305
306
309 public static void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
310 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
311 throws com.liferay.portal.kernel.exception.SystemException {
312 getService().deleteDLFileEntryTypeDLFolder(fileEntryTypeId, dlFolder);
313 }
314
315
318 public static void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
319 long[] folderIds)
320 throws com.liferay.portal.kernel.exception.SystemException {
321 getService().deleteDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
322 }
323
324
327 public static void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
328 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders)
329 throws com.liferay.portal.kernel.exception.SystemException {
330 getService().deleteDLFileEntryTypeDLFolders(fileEntryTypeId, DLFolders);
331 }
332
333
336 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
337 long fileEntryTypeId)
338 throws com.liferay.portal.kernel.exception.SystemException {
339 return getService().getDLFileEntryTypeDLFolders(fileEntryTypeId);
340 }
341
342
345 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
346 long fileEntryTypeId, int start, int end)
347 throws com.liferay.portal.kernel.exception.SystemException {
348 return getService()
349 .getDLFileEntryTypeDLFolders(fileEntryTypeId, start, end);
350 }
351
352
355 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
356 long fileEntryTypeId, int start, int end,
357 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
358 throws com.liferay.portal.kernel.exception.SystemException {
359 return getService()
360 .getDLFileEntryTypeDLFolders(fileEntryTypeId, start, end,
361 orderByComparator);
362 }
363
364
367 public static int getDLFileEntryTypeDLFoldersCount(long fileEntryTypeId)
368 throws com.liferay.portal.kernel.exception.SystemException {
369 return getService().getDLFileEntryTypeDLFoldersCount(fileEntryTypeId);
370 }
371
372
375 public static boolean hasDLFileEntryTypeDLFolder(long fileEntryTypeId,
376 long folderId)
377 throws com.liferay.portal.kernel.exception.SystemException {
378 return getService().hasDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
379 }
380
381
384 public static boolean hasDLFileEntryTypeDLFolders(long fileEntryTypeId)
385 throws com.liferay.portal.kernel.exception.SystemException {
386 return getService().hasDLFileEntryTypeDLFolders(fileEntryTypeId);
387 }
388
389
392 public static void setDLFileEntryTypeDLFolders(long fileEntryTypeId,
393 long[] folderIds)
394 throws com.liferay.portal.kernel.exception.SystemException {
395 getService().setDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
396 }
397
398
403 public static java.lang.String getBeanIdentifier() {
404 return getService().getBeanIdentifier();
405 }
406
407
412 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
413 getService().setBeanIdentifier(beanIdentifier);
414 }
415
416 public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
417 long userId, long groupId, long repositoryId, boolean mountPoint,
418 long parentFolderId, java.lang.String name,
419 java.lang.String description, boolean hidden,
420 com.liferay.portal.service.ServiceContext serviceContext)
421 throws com.liferay.portal.kernel.exception.PortalException,
422 com.liferay.portal.kernel.exception.SystemException {
423 return getService()
424 .addFolder(userId, groupId, repositoryId, mountPoint,
425 parentFolderId, name, description, hidden, serviceContext);
426 }
427
428
433 public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
434 long userId, long groupId, long repositoryId, boolean mountPoint,
435 long parentFolderId, java.lang.String name,
436 java.lang.String description,
437 com.liferay.portal.service.ServiceContext serviceContext)
438 throws com.liferay.portal.kernel.exception.PortalException,
439 com.liferay.portal.kernel.exception.SystemException {
440 return getService()
441 .addFolder(userId, groupId, repositoryId, mountPoint,
442 parentFolderId, name, description, serviceContext);
443 }
444
445 public static void deleteAll(long groupId)
446 throws com.liferay.portal.kernel.exception.PortalException,
447 com.liferay.portal.kernel.exception.SystemException {
448 getService().deleteAll(groupId);
449 }
450
451 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
452 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
453 throws com.liferay.portal.kernel.exception.PortalException,
454 com.liferay.portal.kernel.exception.SystemException {
455 return getService().deleteFolder(dlFolder);
456 }
457
458 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
459 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
460 boolean includeTrashedEntries)
461 throws com.liferay.portal.kernel.exception.PortalException,
462 com.liferay.portal.kernel.exception.SystemException {
463 return getService().deleteFolder(dlFolder, includeTrashedEntries);
464 }
465
466 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
467 long folderId)
468 throws com.liferay.portal.kernel.exception.PortalException,
469 com.liferay.portal.kernel.exception.SystemException {
470 return getService().deleteFolder(folderId);
471 }
472
473 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
474 long folderId, boolean includeTrashedEntries)
475 throws com.liferay.portal.kernel.exception.PortalException,
476 com.liferay.portal.kernel.exception.SystemException {
477 return getService().deleteFolder(folderId, includeTrashedEntries);
478 }
479
480 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
481 long userId, long folderId, boolean includeTrashedEntries)
482 throws com.liferay.portal.kernel.exception.PortalException,
483 com.liferay.portal.kernel.exception.SystemException {
484 return getService().deleteFolder(userId, folderId, includeTrashedEntries);
485 }
486
487 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
488 long groupId, long parentFolderId, java.lang.String name)
489 throws com.liferay.portal.kernel.exception.SystemException {
490 return getService().fetchFolder(groupId, parentFolderId, name);
491 }
492
493 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
494 long companyId, int start, int end)
495 throws com.liferay.portal.kernel.exception.SystemException {
496 return getService().getCompanyFolders(companyId, start, end);
497 }
498
499 public static int getCompanyFoldersCount(long companyId)
500 throws com.liferay.portal.kernel.exception.SystemException {
501 return getService().getCompanyFoldersCount(companyId);
502 }
503
504
508 public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
509 long groupId, long folderId, int status, int start, int end)
510 throws com.liferay.portal.kernel.exception.SystemException {
511 return getService()
512 .getFileEntriesAndFileShortcuts(groupId, folderId, status,
513 start, end);
514 }
515
516 public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
517 long groupId, long folderId,
518 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
519 throws com.liferay.portal.kernel.exception.SystemException {
520 return getService()
521 .getFileEntriesAndFileShortcuts(groupId, folderId,
522 queryDefinition);
523 }
524
525
530 public static int getFileEntriesAndFileShortcutsCount(long groupId,
531 long folderId, int status)
532 throws com.liferay.portal.kernel.exception.SystemException {
533 return getService()
534 .getFileEntriesAndFileShortcutsCount(groupId, folderId,
535 status);
536 }
537
538 public static int getFileEntriesAndFileShortcutsCount(long groupId,
539 long folderId,
540 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
541 throws com.liferay.portal.kernel.exception.SystemException {
542 return getService()
543 .getFileEntriesAndFileShortcutsCount(groupId, folderId,
544 queryDefinition);
545 }
546
547 public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
548 long folderId)
549 throws com.liferay.portal.kernel.exception.PortalException,
550 com.liferay.portal.kernel.exception.SystemException {
551 return getService().getFolder(folderId);
552 }
553
554 public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
555 long groupId, long parentFolderId, java.lang.String name)
556 throws com.liferay.portal.kernel.exception.PortalException,
557 com.liferay.portal.kernel.exception.SystemException {
558 return getService().getFolder(groupId, parentFolderId, name);
559 }
560
561 public static long getFolderId(long companyId, long folderId)
562 throws com.liferay.portal.kernel.exception.SystemException {
563 return getService().getFolderId(companyId, folderId);
564 }
565
566 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
567 long groupId, long parentFolderId)
568 throws com.liferay.portal.kernel.exception.SystemException {
569 return getService().getFolders(groupId, parentFolderId);
570 }
571
572 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
573 long groupId, long parentFolderId, boolean includeMountfolders)
574 throws com.liferay.portal.kernel.exception.SystemException {
575 return getService()
576 .getFolders(groupId, parentFolderId, includeMountfolders);
577 }
578
579 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
580 long groupId, long parentFolderId, boolean includeMountfolders,
581 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
582 throws com.liferay.portal.kernel.exception.SystemException {
583 return getService()
584 .getFolders(groupId, parentFolderId, includeMountfolders,
585 start, end, obc);
586 }
587
588 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
589 long groupId, long parentFolderId, int start, int end,
590 com.liferay.portal.kernel.util.OrderByComparator obc)
591 throws com.liferay.portal.kernel.exception.SystemException {
592 return getService().getFolders(groupId, parentFolderId, start, end, obc);
593 }
594
595
600 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
601 long groupId, long folderId, int status, boolean includeMountFolders,
602 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
603 throws com.liferay.portal.kernel.exception.SystemException {
604 return getService()
605 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
606 status, includeMountFolders, start, end, obc);
607 }
608
609
614 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
615 long groupId, long folderId, int status, java.lang.String[] mimeTypes,
616 boolean includeMountFolders, int start, int end,
617 com.liferay.portal.kernel.util.OrderByComparator obc)
618 throws com.liferay.portal.kernel.exception.SystemException {
619 return getService()
620 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
621 status, mimeTypes, includeMountFolders, start, end, obc);
622 }
623
624 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
625 long groupId, long folderId, java.lang.String[] mimeTypes,
626 boolean includeMountFolders,
627 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
628 throws com.liferay.portal.kernel.exception.SystemException {
629 return getService()
630 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
631 mimeTypes, includeMountFolders, queryDefinition);
632 }
633
634
639 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
640 long groupId, long folderId, int status, boolean includeMountFolders)
641 throws com.liferay.portal.kernel.exception.SystemException {
642 return getService()
643 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
644 folderId, status, includeMountFolders);
645 }
646
647
652 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
653 long groupId, long folderId, int status, java.lang.String[] mimeTypes,
654 boolean includeMountFolders)
655 throws com.liferay.portal.kernel.exception.SystemException {
656 return getService()
657 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
658 folderId, status, mimeTypes, includeMountFolders);
659 }
660
661 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
662 long groupId, long folderId, java.lang.String[] mimeTypes,
663 boolean includeMountFolders,
664 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
665 throws com.liferay.portal.kernel.exception.SystemException {
666 return getService()
667 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
668 folderId, mimeTypes, includeMountFolders, queryDefinition);
669 }
670
671 public static int getFoldersCount(long groupId, long parentFolderId)
672 throws com.liferay.portal.kernel.exception.SystemException {
673 return getService().getFoldersCount(groupId, parentFolderId);
674 }
675
676 public static int getFoldersCount(long groupId, long parentFolderId,
677 boolean includeMountfolders)
678 throws com.liferay.portal.kernel.exception.SystemException {
679 return getService()
680 .getFoldersCount(groupId, parentFolderId, includeMountfolders);
681 }
682
683 public static com.liferay.portlet.documentlibrary.model.DLFolder getMountFolder(
684 long repositoryId)
685 throws com.liferay.portal.kernel.exception.PortalException,
686 com.liferay.portal.kernel.exception.SystemException {
687 return getService().getMountFolder(repositoryId);
688 }
689
690 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
691 long groupId, long parentFolderId, int start, int end,
692 com.liferay.portal.kernel.util.OrderByComparator obc)
693 throws com.liferay.portal.kernel.exception.SystemException {
694 return getService()
695 .getMountFolders(groupId, parentFolderId, start, end, obc);
696 }
697
698 public static int getMountFoldersCount(long groupId, long parentFolderId)
699 throws com.liferay.portal.kernel.exception.SystemException {
700 return getService().getMountFoldersCount(groupId, parentFolderId);
701 }
702
703 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getNoAssetFolders()
704 throws com.liferay.portal.kernel.exception.SystemException {
705 return getService().getNoAssetFolders();
706 }
707
708 public static void getSubfolderIds(
709 java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
710 throws com.liferay.portal.kernel.exception.SystemException {
711 getService().getSubfolderIds(folderIds, groupId, folderId);
712 }
713
714 public static boolean hasFolderLock(long userId, long folderId)
715 throws com.liferay.portal.kernel.exception.SystemException {
716 return getService().hasFolderLock(userId, folderId);
717 }
718
719 public static com.liferay.portal.model.Lock lockFolder(long userId,
720 long folderId)
721 throws com.liferay.portal.kernel.exception.PortalException,
722 com.liferay.portal.kernel.exception.SystemException {
723 return getService().lockFolder(userId, folderId);
724 }
725
726 public static com.liferay.portal.model.Lock lockFolder(long userId,
727 long folderId, java.lang.String owner, boolean inheritable,
728 long expirationTime)
729 throws com.liferay.portal.kernel.exception.PortalException,
730 com.liferay.portal.kernel.exception.SystemException {
731 return getService()
732 .lockFolder(userId, folderId, owner, inheritable,
733 expirationTime);
734 }
735
736 public static com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
737 long userId, long folderId, long parentFolderId,
738 com.liferay.portal.service.ServiceContext serviceContext)
739 throws com.liferay.portal.kernel.exception.PortalException,
740 com.liferay.portal.kernel.exception.SystemException {
741 return getService()
742 .moveFolder(userId, folderId, parentFolderId, serviceContext);
743 }
744
745 public static void unlockFolder(long groupId, long parentFolderId,
746 java.lang.String name, java.lang.String lockUuid)
747 throws com.liferay.portal.kernel.exception.PortalException,
748 com.liferay.portal.kernel.exception.SystemException {
749 getService().unlockFolder(groupId, parentFolderId, name, lockUuid);
750 }
751
752 public static void unlockFolder(long folderId, java.lang.String lockUuid)
753 throws com.liferay.portal.kernel.exception.PortalException,
754 com.liferay.portal.kernel.exception.SystemException {
755 getService().unlockFolder(folderId, lockUuid);
756 }
757
758 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
759 long folderId, long parentFolderId, java.lang.String name,
760 java.lang.String description, long defaultFileEntryTypeId,
761 java.util.List<java.lang.Long> fileEntryTypeIds,
762 boolean overrideFileEntryTypes,
763 com.liferay.portal.service.ServiceContext serviceContext)
764 throws com.liferay.portal.kernel.exception.PortalException,
765 com.liferay.portal.kernel.exception.SystemException {
766 return getService()
767 .updateFolder(folderId, parentFolderId, name, description,
768 defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
769 serviceContext);
770 }
771
772 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
773 long folderId, java.lang.String name, java.lang.String description,
774 long defaultFileEntryTypeId,
775 java.util.List<java.lang.Long> fileEntryTypeIds,
776 boolean overrideFileEntryTypes,
777 com.liferay.portal.service.ServiceContext serviceContext)
778 throws com.liferay.portal.kernel.exception.PortalException,
779 com.liferay.portal.kernel.exception.SystemException {
780 return getService()
781 .updateFolder(folderId, name, description,
782 defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
783 serviceContext);
784 }
785
786 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
787 long userId, long folderId, long parentFolderId, java.lang.String name,
788 java.lang.String description, long defaultFileEntryTypeId,
789 java.util.List<java.lang.Long> fileEntryTypeIds,
790 boolean overrideFileEntryTypes,
791 com.liferay.portal.service.ServiceContext serviceContext)
792 throws com.liferay.portal.kernel.exception.PortalException,
793 com.liferay.portal.kernel.exception.SystemException {
794 return getService()
795 .updateFolderAndFileEntryTypes(userId, folderId,
796 parentFolderId, name, description, defaultFileEntryTypeId,
797 fileEntryTypeIds, overrideFileEntryTypes, serviceContext);
798 }
799
800
803 public static void updateLastPostDate(long folderId,
804 java.util.Date lastPostDate)
805 throws com.liferay.portal.kernel.exception.PortalException,
806 com.liferay.portal.kernel.exception.SystemException {
807 getService().updateLastPostDate(folderId, lastPostDate);
808 }
809
810 public static com.liferay.portlet.documentlibrary.model.DLFolder updateStatus(
811 long userId, long folderId, int status,
812 java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
813 com.liferay.portal.service.ServiceContext serviceContext)
814 throws com.liferay.portal.kernel.exception.PortalException,
815 com.liferay.portal.kernel.exception.SystemException {
816 return getService()
817 .updateStatus(userId, folderId, status, workflowContext,
818 serviceContext);
819 }
820
821 public static DLFolderLocalService getService() {
822 if (_service == null) {
823 _service = (DLFolderLocalService)PortalBeanLocatorUtil.locate(DLFolderLocalService.class.getName());
824
825 ReferenceRegistry.registerReference(DLFolderLocalServiceUtil.class,
826 "_service");
827 }
828
829 return _service;
830 }
831
832
835 public void setService(DLFolderLocalService service) {
836 }
837
838 private static DLFolderLocalService _service;
839 }