001
014
015 package com.liferay.portlet.documentlibrary.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class DLFolderLocalServiceUtil {
038
043
044
051 public static com.liferay.portlet.documentlibrary.model.DLFolder addDLFolder(
052 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
053 throws com.liferay.portal.kernel.exception.SystemException {
054 return getService().addDLFolder(dlFolder);
055 }
056
057
063 public static com.liferay.portlet.documentlibrary.model.DLFolder createDLFolder(
064 long folderId) {
065 return getService().createDLFolder(folderId);
066 }
067
068
076 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
077 long folderId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 return getService().deleteDLFolder(folderId);
081 }
082
083
090 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
091 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
092 throws com.liferay.portal.kernel.exception.SystemException {
093 return getService().deleteDLFolder(dlFolder);
094 }
095
096 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
097 return getService().dynamicQuery();
098 }
099
100
107 @SuppressWarnings("rawtypes")
108 public static java.util.List dynamicQuery(
109 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().dynamicQuery(dynamicQuery);
112 }
113
114
127 @SuppressWarnings("rawtypes")
128 public static java.util.List dynamicQuery(
129 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130 int end) throws com.liferay.portal.kernel.exception.SystemException {
131 return getService().dynamicQuery(dynamicQuery, start, end);
132 }
133
134
148 @SuppressWarnings("rawtypes")
149 public static java.util.List dynamicQuery(
150 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151 int end,
152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService()
155 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
156 }
157
158
165 public static long dynamicQueryCount(
166 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getService().dynamicQueryCount(dynamicQuery);
169 }
170
171
179 public static long dynamicQueryCount(
180 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
181 com.liferay.portal.kernel.dao.orm.Projection projection)
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return getService().dynamicQueryCount(dynamicQuery, projection);
184 }
185
186 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolder(
187 long folderId)
188 throws com.liferay.portal.kernel.exception.SystemException {
189 return getService().fetchDLFolder(folderId);
190 }
191
192
200 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolderByUuidAndCompanyId(
201 java.lang.String uuid, long companyId)
202 throws com.liferay.portal.kernel.exception.SystemException {
203 return getService().fetchDLFolderByUuidAndCompanyId(uuid, companyId);
204 }
205
206
214 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolderByUuidAndGroupId(
215 java.lang.String uuid, long groupId)
216 throws com.liferay.portal.kernel.exception.SystemException {
217 return getService().fetchDLFolderByUuidAndGroupId(uuid, groupId);
218 }
219
220
228 public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder(
229 long folderId)
230 throws com.liferay.portal.kernel.exception.PortalException,
231 com.liferay.portal.kernel.exception.SystemException {
232 return getService().getDLFolder(folderId);
233 }
234
235 public static com.liferay.portal.model.PersistedModel getPersistedModel(
236 java.io.Serializable primaryKeyObj)
237 throws com.liferay.portal.kernel.exception.PortalException,
238 com.liferay.portal.kernel.exception.SystemException {
239 return getService().getPersistedModel(primaryKeyObj);
240 }
241
242
251 public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndCompanyId(
252 java.lang.String uuid, long companyId)
253 throws com.liferay.portal.kernel.exception.PortalException,
254 com.liferay.portal.kernel.exception.SystemException {
255 return getService().getDLFolderByUuidAndCompanyId(uuid, companyId);
256 }
257
258
267 public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndGroupId(
268 java.lang.String uuid, long groupId)
269 throws com.liferay.portal.kernel.exception.PortalException,
270 com.liferay.portal.kernel.exception.SystemException {
271 return getService().getDLFolderByUuidAndGroupId(uuid, groupId);
272 }
273
274
286 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
287 int start, int end)
288 throws com.liferay.portal.kernel.exception.SystemException {
289 return getService().getDLFolders(start, end);
290 }
291
292
298 public static int getDLFoldersCount()
299 throws com.liferay.portal.kernel.exception.SystemException {
300 return getService().getDLFoldersCount();
301 }
302
303
310 public static com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
311 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
312 throws com.liferay.portal.kernel.exception.SystemException {
313 return getService().updateDLFolder(dlFolder);
314 }
315
316
319 public static void addDLFileEntryTypeDLFolder(long fileEntryTypeId,
320 long folderId)
321 throws com.liferay.portal.kernel.exception.SystemException {
322 getService().addDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
323 }
324
325
328 public static void addDLFileEntryTypeDLFolder(long fileEntryTypeId,
329 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
330 throws com.liferay.portal.kernel.exception.SystemException {
331 getService().addDLFileEntryTypeDLFolder(fileEntryTypeId, dlFolder);
332 }
333
334
337 public static void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
338 long[] folderIds)
339 throws com.liferay.portal.kernel.exception.SystemException {
340 getService().addDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
341 }
342
343
346 public static void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
347 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders)
348 throws com.liferay.portal.kernel.exception.SystemException {
349 getService().addDLFileEntryTypeDLFolders(fileEntryTypeId, DLFolders);
350 }
351
352
355 public static void clearDLFileEntryTypeDLFolders(long fileEntryTypeId)
356 throws com.liferay.portal.kernel.exception.SystemException {
357 getService().clearDLFileEntryTypeDLFolders(fileEntryTypeId);
358 }
359
360
363 public static void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
364 long folderId)
365 throws com.liferay.portal.kernel.exception.SystemException {
366 getService().deleteDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
367 }
368
369
372 public static void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
373 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
374 throws com.liferay.portal.kernel.exception.SystemException {
375 getService().deleteDLFileEntryTypeDLFolder(fileEntryTypeId, dlFolder);
376 }
377
378
381 public static void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
382 long[] folderIds)
383 throws com.liferay.portal.kernel.exception.SystemException {
384 getService().deleteDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
385 }
386
387
390 public static void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
391 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders)
392 throws com.liferay.portal.kernel.exception.SystemException {
393 getService().deleteDLFileEntryTypeDLFolders(fileEntryTypeId, DLFolders);
394 }
395
396
399 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
400 long fileEntryTypeId)
401 throws com.liferay.portal.kernel.exception.SystemException {
402 return getService().getDLFileEntryTypeDLFolders(fileEntryTypeId);
403 }
404
405
408 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
409 long fileEntryTypeId, int start, int end)
410 throws com.liferay.portal.kernel.exception.SystemException {
411 return getService()
412 .getDLFileEntryTypeDLFolders(fileEntryTypeId, start, end);
413 }
414
415
418 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
419 long fileEntryTypeId, int start, int end,
420 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
421 throws com.liferay.portal.kernel.exception.SystemException {
422 return getService()
423 .getDLFileEntryTypeDLFolders(fileEntryTypeId, start, end,
424 orderByComparator);
425 }
426
427
430 public static int getDLFileEntryTypeDLFoldersCount(long fileEntryTypeId)
431 throws com.liferay.portal.kernel.exception.SystemException {
432 return getService().getDLFileEntryTypeDLFoldersCount(fileEntryTypeId);
433 }
434
435
438 public static boolean hasDLFileEntryTypeDLFolder(long fileEntryTypeId,
439 long folderId)
440 throws com.liferay.portal.kernel.exception.SystemException {
441 return getService().hasDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
442 }
443
444
447 public static boolean hasDLFileEntryTypeDLFolders(long fileEntryTypeId)
448 throws com.liferay.portal.kernel.exception.SystemException {
449 return getService().hasDLFileEntryTypeDLFolders(fileEntryTypeId);
450 }
451
452
455 public static void setDLFileEntryTypeDLFolders(long fileEntryTypeId,
456 long[] folderIds)
457 throws com.liferay.portal.kernel.exception.SystemException {
458 getService().setDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
459 }
460
461
466 public static java.lang.String getBeanIdentifier() {
467 return getService().getBeanIdentifier();
468 }
469
470
475 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
476 getService().setBeanIdentifier(beanIdentifier);
477 }
478
479 public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
480 long userId, long groupId, long repositoryId, boolean mountPoint,
481 long parentFolderId, java.lang.String name,
482 java.lang.String description, boolean hidden,
483 com.liferay.portal.service.ServiceContext serviceContext)
484 throws com.liferay.portal.kernel.exception.PortalException,
485 com.liferay.portal.kernel.exception.SystemException {
486 return getService()
487 .addFolder(userId, groupId, repositoryId, mountPoint,
488 parentFolderId, name, description, hidden, serviceContext);
489 }
490
491
496 public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
497 long userId, long groupId, long repositoryId, boolean mountPoint,
498 long parentFolderId, java.lang.String name,
499 java.lang.String description,
500 com.liferay.portal.service.ServiceContext serviceContext)
501 throws com.liferay.portal.kernel.exception.PortalException,
502 com.liferay.portal.kernel.exception.SystemException {
503 return getService()
504 .addFolder(userId, groupId, repositoryId, mountPoint,
505 parentFolderId, name, description, serviceContext);
506 }
507
508
511 public static void deleteAll(long groupId)
512 throws com.liferay.portal.kernel.exception.PortalException,
513 com.liferay.portal.kernel.exception.SystemException {
514 getService().deleteAll(groupId);
515 }
516
517 public static void deleteAllByGroup(long groupId)
518 throws com.liferay.portal.kernel.exception.PortalException,
519 com.liferay.portal.kernel.exception.SystemException {
520 getService().deleteAllByGroup(groupId);
521 }
522
523 public static void deleteAllByRepository(long repositoryId)
524 throws com.liferay.portal.kernel.exception.PortalException,
525 com.liferay.portal.kernel.exception.SystemException {
526 getService().deleteAllByRepository(repositoryId);
527 }
528
529 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
530 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
531 throws com.liferay.portal.kernel.exception.PortalException,
532 com.liferay.portal.kernel.exception.SystemException {
533 return getService().deleteFolder(dlFolder);
534 }
535
536 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
537 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
538 boolean includeTrashedEntries)
539 throws com.liferay.portal.kernel.exception.PortalException,
540 com.liferay.portal.kernel.exception.SystemException {
541 return getService().deleteFolder(dlFolder, includeTrashedEntries);
542 }
543
544 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
545 long folderId)
546 throws com.liferay.portal.kernel.exception.PortalException,
547 com.liferay.portal.kernel.exception.SystemException {
548 return getService().deleteFolder(folderId);
549 }
550
551 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
552 long folderId, boolean includeTrashedEntries)
553 throws com.liferay.portal.kernel.exception.PortalException,
554 com.liferay.portal.kernel.exception.SystemException {
555 return getService().deleteFolder(folderId, includeTrashedEntries);
556 }
557
558 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
559 long userId, long folderId, boolean includeTrashedEntries)
560 throws com.liferay.portal.kernel.exception.PortalException,
561 com.liferay.portal.kernel.exception.SystemException {
562 return getService().deleteFolder(userId, folderId, includeTrashedEntries);
563 }
564
565 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
566 long folderId)
567 throws com.liferay.portal.kernel.exception.SystemException {
568 return getService().fetchFolder(folderId);
569 }
570
571 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
572 long groupId, long parentFolderId, java.lang.String name)
573 throws com.liferay.portal.kernel.exception.SystemException {
574 return getService().fetchFolder(groupId, parentFolderId, name);
575 }
576
577 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
578 long companyId, int start, int end)
579 throws com.liferay.portal.kernel.exception.SystemException {
580 return getService().getCompanyFolders(companyId, start, end);
581 }
582
583 public static int getCompanyFoldersCount(long companyId)
584 throws com.liferay.portal.kernel.exception.SystemException {
585 return getService().getCompanyFoldersCount(companyId);
586 }
587
588
592 public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
593 long groupId, long folderId, int status, int start, int end)
594 throws com.liferay.portal.kernel.exception.SystemException {
595 return getService()
596 .getFileEntriesAndFileShortcuts(groupId, folderId, status,
597 start, end);
598 }
599
600 public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
601 long groupId, long folderId,
602 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
603 throws com.liferay.portal.kernel.exception.SystemException {
604 return getService()
605 .getFileEntriesAndFileShortcuts(groupId, folderId,
606 queryDefinition);
607 }
608
609
614 public static int getFileEntriesAndFileShortcutsCount(long groupId,
615 long folderId, int status)
616 throws com.liferay.portal.kernel.exception.SystemException {
617 return getService()
618 .getFileEntriesAndFileShortcutsCount(groupId, folderId,
619 status);
620 }
621
622 public static int getFileEntriesAndFileShortcutsCount(long groupId,
623 long folderId,
624 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
625 throws com.liferay.portal.kernel.exception.SystemException {
626 return getService()
627 .getFileEntriesAndFileShortcutsCount(groupId, folderId,
628 queryDefinition);
629 }
630
631 public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
632 long folderId)
633 throws com.liferay.portal.kernel.exception.PortalException,
634 com.liferay.portal.kernel.exception.SystemException {
635 return getService().getFolder(folderId);
636 }
637
638 public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
639 long groupId, long parentFolderId, java.lang.String name)
640 throws com.liferay.portal.kernel.exception.PortalException,
641 com.liferay.portal.kernel.exception.SystemException {
642 return getService().getFolder(groupId, parentFolderId, name);
643 }
644
645 public static long getFolderId(long companyId, long folderId)
646 throws com.liferay.portal.kernel.exception.SystemException {
647 return getService().getFolderId(companyId, folderId);
648 }
649
650 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
651 long groupId, long parentFolderId)
652 throws com.liferay.portal.kernel.exception.SystemException {
653 return getService().getFolders(groupId, parentFolderId);
654 }
655
656 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
657 long groupId, long parentFolderId, boolean includeMountfolders)
658 throws com.liferay.portal.kernel.exception.SystemException {
659 return getService()
660 .getFolders(groupId, parentFolderId, includeMountfolders);
661 }
662
663 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
664 long groupId, long parentFolderId, boolean includeMountfolders,
665 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
666 throws com.liferay.portal.kernel.exception.SystemException {
667 return getService()
668 .getFolders(groupId, parentFolderId, includeMountfolders,
669 start, end, obc);
670 }
671
672 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
673 long groupId, long parentFolderId, int start, int end,
674 com.liferay.portal.kernel.util.OrderByComparator obc)
675 throws com.liferay.portal.kernel.exception.SystemException {
676 return getService().getFolders(groupId, parentFolderId, start, end, obc);
677 }
678
679
684 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
685 long groupId, long folderId, int status, boolean includeMountFolders,
686 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
687 throws com.liferay.portal.kernel.exception.SystemException {
688 return getService()
689 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
690 status, includeMountFolders, start, end, obc);
691 }
692
693
698 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
699 long groupId, long folderId, int status, java.lang.String[] mimeTypes,
700 boolean includeMountFolders, int start, int end,
701 com.liferay.portal.kernel.util.OrderByComparator obc)
702 throws com.liferay.portal.kernel.exception.SystemException {
703 return getService()
704 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
705 status, mimeTypes, includeMountFolders, start, end, obc);
706 }
707
708 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
709 long groupId, long folderId, java.lang.String[] mimeTypes,
710 boolean includeMountFolders,
711 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
712 throws com.liferay.portal.kernel.exception.SystemException {
713 return getService()
714 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
715 mimeTypes, includeMountFolders, queryDefinition);
716 }
717
718
723 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
724 long groupId, long folderId, int status, boolean includeMountFolders)
725 throws com.liferay.portal.kernel.exception.SystemException {
726 return getService()
727 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
728 folderId, status, includeMountFolders);
729 }
730
731
736 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
737 long groupId, long folderId, int status, java.lang.String[] mimeTypes,
738 boolean includeMountFolders)
739 throws com.liferay.portal.kernel.exception.SystemException {
740 return getService()
741 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
742 folderId, status, mimeTypes, includeMountFolders);
743 }
744
745 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
746 long groupId, long folderId, java.lang.String[] mimeTypes,
747 boolean includeMountFolders,
748 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
749 throws com.liferay.portal.kernel.exception.SystemException {
750 return getService()
751 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
752 folderId, mimeTypes, includeMountFolders, queryDefinition);
753 }
754
755 public static int getFoldersCount(long groupId, long parentFolderId)
756 throws com.liferay.portal.kernel.exception.SystemException {
757 return getService().getFoldersCount(groupId, parentFolderId);
758 }
759
760 public static int getFoldersCount(long groupId, long parentFolderId,
761 boolean includeMountfolders)
762 throws com.liferay.portal.kernel.exception.SystemException {
763 return getService()
764 .getFoldersCount(groupId, parentFolderId, includeMountfolders);
765 }
766
767 public static int getFoldersCount(long groupId, long parentFolderId,
768 int status, boolean includeMountfolders)
769 throws com.liferay.portal.kernel.exception.SystemException {
770 return getService()
771 .getFoldersCount(groupId, parentFolderId, status,
772 includeMountfolders);
773 }
774
775 public static com.liferay.portlet.documentlibrary.model.DLFolder getMountFolder(
776 long repositoryId)
777 throws com.liferay.portal.kernel.exception.PortalException,
778 com.liferay.portal.kernel.exception.SystemException {
779 return getService().getMountFolder(repositoryId);
780 }
781
782 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
783 long groupId, long parentFolderId, int start, int end,
784 com.liferay.portal.kernel.util.OrderByComparator obc)
785 throws com.liferay.portal.kernel.exception.SystemException {
786 return getService()
787 .getMountFolders(groupId, parentFolderId, start, end, obc);
788 }
789
790 public static int getMountFoldersCount(long groupId, long parentFolderId)
791 throws com.liferay.portal.kernel.exception.SystemException {
792 return getService().getMountFoldersCount(groupId, parentFolderId);
793 }
794
795 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getNoAssetFolders()
796 throws com.liferay.portal.kernel.exception.SystemException {
797 return getService().getNoAssetFolders();
798 }
799
800 public static void getSubfolderIds(
801 java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
802 throws com.liferay.portal.kernel.exception.SystemException {
803 getService().getSubfolderIds(folderIds, groupId, folderId);
804 }
805
806 public static boolean hasFolderLock(long userId, long folderId)
807 throws com.liferay.portal.kernel.exception.SystemException {
808 return getService().hasFolderLock(userId, folderId);
809 }
810
811 public static com.liferay.portal.model.Lock lockFolder(long userId,
812 long folderId)
813 throws com.liferay.portal.kernel.exception.PortalException,
814 com.liferay.portal.kernel.exception.SystemException {
815 return getService().lockFolder(userId, folderId);
816 }
817
818 public static com.liferay.portal.model.Lock lockFolder(long userId,
819 long folderId, java.lang.String owner, boolean inheritable,
820 long expirationTime)
821 throws com.liferay.portal.kernel.exception.PortalException,
822 com.liferay.portal.kernel.exception.SystemException {
823 return getService()
824 .lockFolder(userId, folderId, owner, inheritable,
825 expirationTime);
826 }
827
828 public static com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
829 long userId, long folderId, long parentFolderId,
830 com.liferay.portal.service.ServiceContext serviceContext)
831 throws com.liferay.portal.kernel.exception.PortalException,
832 com.liferay.portal.kernel.exception.SystemException {
833 return getService()
834 .moveFolder(userId, folderId, parentFolderId, serviceContext);
835 }
836
837 public static void rebuildTree(long companyId)
838 throws com.liferay.portal.kernel.exception.PortalException,
839 com.liferay.portal.kernel.exception.SystemException {
840 getService().rebuildTree(companyId);
841 }
842
843 public static void rebuildTree(long companyId, long parentFolderId,
844 java.lang.String parentTreePath, boolean reindex)
845 throws com.liferay.portal.kernel.exception.PortalException,
846 com.liferay.portal.kernel.exception.SystemException {
847 getService()
848 .rebuildTree(companyId, parentFolderId, parentTreePath, reindex);
849 }
850
851 public static void unlockFolder(long groupId, long parentFolderId,
852 java.lang.String name, java.lang.String lockUuid)
853 throws com.liferay.portal.kernel.exception.PortalException,
854 com.liferay.portal.kernel.exception.SystemException {
855 getService().unlockFolder(groupId, parentFolderId, name, lockUuid);
856 }
857
858 public static void unlockFolder(long folderId, java.lang.String lockUuid)
859 throws com.liferay.portal.kernel.exception.PortalException,
860 com.liferay.portal.kernel.exception.SystemException {
861 getService().unlockFolder(folderId, lockUuid);
862 }
863
864 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
865 long folderId, long parentFolderId, java.lang.String name,
866 java.lang.String description, long defaultFileEntryTypeId,
867 java.util.List<java.lang.Long> fileEntryTypeIds,
868 boolean overrideFileEntryTypes,
869 com.liferay.portal.service.ServiceContext serviceContext)
870 throws com.liferay.portal.kernel.exception.PortalException,
871 com.liferay.portal.kernel.exception.SystemException {
872 return getService()
873 .updateFolder(folderId, parentFolderId, name, description,
874 defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
875 serviceContext);
876 }
877
878 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
879 long folderId, java.lang.String name, java.lang.String description,
880 long defaultFileEntryTypeId,
881 java.util.List<java.lang.Long> fileEntryTypeIds,
882 boolean overrideFileEntryTypes,
883 com.liferay.portal.service.ServiceContext serviceContext)
884 throws com.liferay.portal.kernel.exception.PortalException,
885 com.liferay.portal.kernel.exception.SystemException {
886 return getService()
887 .updateFolder(folderId, name, description,
888 defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
889 serviceContext);
890 }
891
892 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
893 long userId, long folderId, long parentFolderId, java.lang.String name,
894 java.lang.String description, long defaultFileEntryTypeId,
895 java.util.List<java.lang.Long> fileEntryTypeIds,
896 boolean overrideFileEntryTypes,
897 com.liferay.portal.service.ServiceContext serviceContext)
898 throws com.liferay.portal.kernel.exception.PortalException,
899 com.liferay.portal.kernel.exception.SystemException {
900 return getService()
901 .updateFolderAndFileEntryTypes(userId, folderId,
902 parentFolderId, name, description, defaultFileEntryTypeId,
903 fileEntryTypeIds, overrideFileEntryTypes, serviceContext);
904 }
905
906 public static void updateLastPostDate(long folderId,
907 java.util.Date lastPostDate)
908 throws com.liferay.portal.kernel.exception.PortalException,
909 com.liferay.portal.kernel.exception.SystemException {
910 getService().updateLastPostDate(folderId, lastPostDate);
911 }
912
913 public static com.liferay.portlet.documentlibrary.model.DLFolder updateStatus(
914 long userId, long folderId, int status,
915 java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
916 com.liferay.portal.service.ServiceContext serviceContext)
917 throws com.liferay.portal.kernel.exception.PortalException,
918 com.liferay.portal.kernel.exception.SystemException {
919 return getService()
920 .updateStatus(userId, folderId, status, workflowContext,
921 serviceContext);
922 }
923
924 public static DLFolderLocalService getService() {
925 if (_service == null) {
926 _service = (DLFolderLocalService)PortalBeanLocatorUtil.locate(DLFolderLocalService.class.getName());
927
928 ReferenceRegistry.registerReference(DLFolderLocalServiceUtil.class,
929 "_service");
930 }
931
932 return _service;
933 }
934
935
938 public void setService(DLFolderLocalService service) {
939 }
940
941 private static DLFolderLocalService _service;
942 }