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 public static void deleteAll(long groupId)
509 throws com.liferay.portal.kernel.exception.PortalException,
510 com.liferay.portal.kernel.exception.SystemException {
511 getService().deleteAll(groupId);
512 }
513
514 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
515 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
516 throws com.liferay.portal.kernel.exception.PortalException,
517 com.liferay.portal.kernel.exception.SystemException {
518 return getService().deleteFolder(dlFolder);
519 }
520
521 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
522 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
523 boolean includeTrashedEntries)
524 throws com.liferay.portal.kernel.exception.PortalException,
525 com.liferay.portal.kernel.exception.SystemException {
526 return getService().deleteFolder(dlFolder, includeTrashedEntries);
527 }
528
529 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
530 long folderId)
531 throws com.liferay.portal.kernel.exception.PortalException,
532 com.liferay.portal.kernel.exception.SystemException {
533 return getService().deleteFolder(folderId);
534 }
535
536 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
537 long folderId, boolean includeTrashedEntries)
538 throws com.liferay.portal.kernel.exception.PortalException,
539 com.liferay.portal.kernel.exception.SystemException {
540 return getService().deleteFolder(folderId, includeTrashedEntries);
541 }
542
543 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
544 long userId, long folderId, boolean includeTrashedEntries)
545 throws com.liferay.portal.kernel.exception.PortalException,
546 com.liferay.portal.kernel.exception.SystemException {
547 return getService().deleteFolder(userId, folderId, includeTrashedEntries);
548 }
549
550 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
551 long folderId)
552 throws com.liferay.portal.kernel.exception.SystemException {
553 return getService().fetchFolder(folderId);
554 }
555
556 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
557 long groupId, long parentFolderId, java.lang.String name)
558 throws com.liferay.portal.kernel.exception.SystemException {
559 return getService().fetchFolder(groupId, parentFolderId, name);
560 }
561
562 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
563 long companyId, int start, int end)
564 throws com.liferay.portal.kernel.exception.SystemException {
565 return getService().getCompanyFolders(companyId, start, end);
566 }
567
568 public static int getCompanyFoldersCount(long companyId)
569 throws com.liferay.portal.kernel.exception.SystemException {
570 return getService().getCompanyFoldersCount(companyId);
571 }
572
573
577 public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
578 long groupId, long folderId, int status, int start, int end)
579 throws com.liferay.portal.kernel.exception.SystemException {
580 return getService()
581 .getFileEntriesAndFileShortcuts(groupId, folderId, status,
582 start, end);
583 }
584
585 public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
586 long groupId, long folderId,
587 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
588 throws com.liferay.portal.kernel.exception.SystemException {
589 return getService()
590 .getFileEntriesAndFileShortcuts(groupId, folderId,
591 queryDefinition);
592 }
593
594
599 public static int getFileEntriesAndFileShortcutsCount(long groupId,
600 long folderId, int status)
601 throws com.liferay.portal.kernel.exception.SystemException {
602 return getService()
603 .getFileEntriesAndFileShortcutsCount(groupId, folderId,
604 status);
605 }
606
607 public static int getFileEntriesAndFileShortcutsCount(long groupId,
608 long folderId,
609 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
610 throws com.liferay.portal.kernel.exception.SystemException {
611 return getService()
612 .getFileEntriesAndFileShortcutsCount(groupId, folderId,
613 queryDefinition);
614 }
615
616 public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
617 long folderId)
618 throws com.liferay.portal.kernel.exception.PortalException,
619 com.liferay.portal.kernel.exception.SystemException {
620 return getService().getFolder(folderId);
621 }
622
623 public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
624 long groupId, long parentFolderId, java.lang.String name)
625 throws com.liferay.portal.kernel.exception.PortalException,
626 com.liferay.portal.kernel.exception.SystemException {
627 return getService().getFolder(groupId, parentFolderId, name);
628 }
629
630 public static long getFolderId(long companyId, long folderId)
631 throws com.liferay.portal.kernel.exception.SystemException {
632 return getService().getFolderId(companyId, folderId);
633 }
634
635 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
636 long groupId, long parentFolderId)
637 throws com.liferay.portal.kernel.exception.SystemException {
638 return getService().getFolders(groupId, parentFolderId);
639 }
640
641 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
642 long groupId, long parentFolderId, boolean includeMountfolders)
643 throws com.liferay.portal.kernel.exception.SystemException {
644 return getService()
645 .getFolders(groupId, parentFolderId, includeMountfolders);
646 }
647
648 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
649 long groupId, long parentFolderId, boolean includeMountfolders,
650 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
651 throws com.liferay.portal.kernel.exception.SystemException {
652 return getService()
653 .getFolders(groupId, parentFolderId, includeMountfolders,
654 start, end, obc);
655 }
656
657 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
658 long groupId, long parentFolderId, int start, int end,
659 com.liferay.portal.kernel.util.OrderByComparator obc)
660 throws com.liferay.portal.kernel.exception.SystemException {
661 return getService().getFolders(groupId, parentFolderId, start, end, obc);
662 }
663
664
669 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
670 long groupId, long folderId, int status, boolean includeMountFolders,
671 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
672 throws com.liferay.portal.kernel.exception.SystemException {
673 return getService()
674 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
675 status, includeMountFolders, start, end, obc);
676 }
677
678
683 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
684 long groupId, long folderId, int status, java.lang.String[] mimeTypes,
685 boolean includeMountFolders, int start, int end,
686 com.liferay.portal.kernel.util.OrderByComparator obc)
687 throws com.liferay.portal.kernel.exception.SystemException {
688 return getService()
689 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
690 status, mimeTypes, includeMountFolders, start, end, obc);
691 }
692
693 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
694 long groupId, long folderId, java.lang.String[] mimeTypes,
695 boolean includeMountFolders,
696 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
697 throws com.liferay.portal.kernel.exception.SystemException {
698 return getService()
699 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
700 mimeTypes, includeMountFolders, queryDefinition);
701 }
702
703
708 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
709 long groupId, long folderId, int status, boolean includeMountFolders)
710 throws com.liferay.portal.kernel.exception.SystemException {
711 return getService()
712 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
713 folderId, status, includeMountFolders);
714 }
715
716
721 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
722 long groupId, long folderId, int status, java.lang.String[] mimeTypes,
723 boolean includeMountFolders)
724 throws com.liferay.portal.kernel.exception.SystemException {
725 return getService()
726 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
727 folderId, status, mimeTypes, includeMountFolders);
728 }
729
730 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
731 long groupId, long folderId, java.lang.String[] mimeTypes,
732 boolean includeMountFolders,
733 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
734 throws com.liferay.portal.kernel.exception.SystemException {
735 return getService()
736 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
737 folderId, mimeTypes, includeMountFolders, queryDefinition);
738 }
739
740 public static int getFoldersCount(long groupId, long parentFolderId)
741 throws com.liferay.portal.kernel.exception.SystemException {
742 return getService().getFoldersCount(groupId, parentFolderId);
743 }
744
745 public static int getFoldersCount(long groupId, long parentFolderId,
746 boolean includeMountfolders)
747 throws com.liferay.portal.kernel.exception.SystemException {
748 return getService()
749 .getFoldersCount(groupId, parentFolderId, includeMountfolders);
750 }
751
752 public static int getFoldersCount(long groupId, long parentFolderId,
753 int status, boolean includeMountfolders)
754 throws com.liferay.portal.kernel.exception.SystemException {
755 return getService()
756 .getFoldersCount(groupId, parentFolderId, status,
757 includeMountfolders);
758 }
759
760 public static com.liferay.portlet.documentlibrary.model.DLFolder getMountFolder(
761 long repositoryId)
762 throws com.liferay.portal.kernel.exception.PortalException,
763 com.liferay.portal.kernel.exception.SystemException {
764 return getService().getMountFolder(repositoryId);
765 }
766
767 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
768 long groupId, long parentFolderId, int start, int end,
769 com.liferay.portal.kernel.util.OrderByComparator obc)
770 throws com.liferay.portal.kernel.exception.SystemException {
771 return getService()
772 .getMountFolders(groupId, parentFolderId, start, end, obc);
773 }
774
775 public static int getMountFoldersCount(long groupId, long parentFolderId)
776 throws com.liferay.portal.kernel.exception.SystemException {
777 return getService().getMountFoldersCount(groupId, parentFolderId);
778 }
779
780 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getNoAssetFolders()
781 throws com.liferay.portal.kernel.exception.SystemException {
782 return getService().getNoAssetFolders();
783 }
784
785 public static void getSubfolderIds(
786 java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
787 throws com.liferay.portal.kernel.exception.SystemException {
788 getService().getSubfolderIds(folderIds, groupId, folderId);
789 }
790
791 public static boolean hasFolderLock(long userId, long folderId)
792 throws com.liferay.portal.kernel.exception.SystemException {
793 return getService().hasFolderLock(userId, folderId);
794 }
795
796 public static com.liferay.portal.model.Lock lockFolder(long userId,
797 long folderId)
798 throws com.liferay.portal.kernel.exception.PortalException,
799 com.liferay.portal.kernel.exception.SystemException {
800 return getService().lockFolder(userId, folderId);
801 }
802
803 public static com.liferay.portal.model.Lock lockFolder(long userId,
804 long folderId, java.lang.String owner, boolean inheritable,
805 long expirationTime)
806 throws com.liferay.portal.kernel.exception.PortalException,
807 com.liferay.portal.kernel.exception.SystemException {
808 return getService()
809 .lockFolder(userId, folderId, owner, inheritable,
810 expirationTime);
811 }
812
813 public static com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
814 long userId, long folderId, long parentFolderId,
815 com.liferay.portal.service.ServiceContext serviceContext)
816 throws com.liferay.portal.kernel.exception.PortalException,
817 com.liferay.portal.kernel.exception.SystemException {
818 return getService()
819 .moveFolder(userId, folderId, parentFolderId, serviceContext);
820 }
821
822 public static void rebuildTree(long companyId)
823 throws com.liferay.portal.kernel.exception.SystemException {
824 getService().rebuildTree(companyId);
825 }
826
827 public static void unlockFolder(long groupId, long parentFolderId,
828 java.lang.String name, java.lang.String lockUuid)
829 throws com.liferay.portal.kernel.exception.PortalException,
830 com.liferay.portal.kernel.exception.SystemException {
831 getService().unlockFolder(groupId, parentFolderId, name, lockUuid);
832 }
833
834 public static void unlockFolder(long folderId, java.lang.String lockUuid)
835 throws com.liferay.portal.kernel.exception.PortalException,
836 com.liferay.portal.kernel.exception.SystemException {
837 getService().unlockFolder(folderId, lockUuid);
838 }
839
840 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
841 long folderId, long parentFolderId, java.lang.String name,
842 java.lang.String description, long defaultFileEntryTypeId,
843 java.util.List<java.lang.Long> fileEntryTypeIds,
844 boolean overrideFileEntryTypes,
845 com.liferay.portal.service.ServiceContext serviceContext)
846 throws com.liferay.portal.kernel.exception.PortalException,
847 com.liferay.portal.kernel.exception.SystemException {
848 return getService()
849 .updateFolder(folderId, parentFolderId, name, description,
850 defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
851 serviceContext);
852 }
853
854 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
855 long folderId, java.lang.String name, java.lang.String description,
856 long defaultFileEntryTypeId,
857 java.util.List<java.lang.Long> fileEntryTypeIds,
858 boolean overrideFileEntryTypes,
859 com.liferay.portal.service.ServiceContext serviceContext)
860 throws com.liferay.portal.kernel.exception.PortalException,
861 com.liferay.portal.kernel.exception.SystemException {
862 return getService()
863 .updateFolder(folderId, name, description,
864 defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
865 serviceContext);
866 }
867
868 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
869 long userId, long folderId, long parentFolderId, java.lang.String name,
870 java.lang.String description, long defaultFileEntryTypeId,
871 java.util.List<java.lang.Long> fileEntryTypeIds,
872 boolean overrideFileEntryTypes,
873 com.liferay.portal.service.ServiceContext serviceContext)
874 throws com.liferay.portal.kernel.exception.PortalException,
875 com.liferay.portal.kernel.exception.SystemException {
876 return getService()
877 .updateFolderAndFileEntryTypes(userId, folderId,
878 parentFolderId, name, description, defaultFileEntryTypeId,
879 fileEntryTypeIds, overrideFileEntryTypes, serviceContext);
880 }
881
882
885 public static void updateLastPostDate(long folderId,
886 java.util.Date lastPostDate)
887 throws com.liferay.portal.kernel.exception.PortalException,
888 com.liferay.portal.kernel.exception.SystemException {
889 getService().updateLastPostDate(folderId, lastPostDate);
890 }
891
892 public static com.liferay.portlet.documentlibrary.model.DLFolder updateStatus(
893 long userId, long folderId, int status,
894 java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
895 com.liferay.portal.service.ServiceContext serviceContext)
896 throws com.liferay.portal.kernel.exception.PortalException,
897 com.liferay.portal.kernel.exception.SystemException {
898 return getService()
899 .updateStatus(userId, folderId, status, workflowContext,
900 serviceContext);
901 }
902
903 public static DLFolderLocalService getService() {
904 if (_service == null) {
905 _service = (DLFolderLocalService)PortalBeanLocatorUtil.locate(DLFolderLocalService.class.getName());
906
907 ReferenceRegistry.registerReference(DLFolderLocalServiceUtil.class,
908 "_service");
909 }
910
911 return _service;
912 }
913
914
917 public void setService(DLFolderLocalService service) {
918 }
919
920 private static DLFolderLocalService _service;
921 }