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
034 public class DLFolderLocalServiceUtil {
035
040
041
048 public static com.liferay.portlet.documentlibrary.model.DLFolder addDLFolder(
049 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addDLFolder(dlFolder);
052 }
053
054
060 public static com.liferay.portlet.documentlibrary.model.DLFolder createDLFolder(
061 long folderId) {
062 return getService().createDLFolder(folderId);
063 }
064
065
073 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
074 long folderId)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 return getService().deleteDLFolder(folderId);
078 }
079
080
087 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
088 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
089 throws com.liferay.portal.kernel.exception.SystemException {
090 return getService().deleteDLFolder(dlFolder);
091 }
092
093 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
094 return getService().dynamicQuery();
095 }
096
097
104 @SuppressWarnings("rawtypes")
105 public static java.util.List dynamicQuery(
106 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().dynamicQuery(dynamicQuery);
109 }
110
111
124 @SuppressWarnings("rawtypes")
125 public static java.util.List dynamicQuery(
126 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
127 int end) throws com.liferay.portal.kernel.exception.SystemException {
128 return getService().dynamicQuery(dynamicQuery, start, end);
129 }
130
131
145 @SuppressWarnings("rawtypes")
146 public static java.util.List dynamicQuery(
147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148 int end,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.kernel.exception.SystemException {
151 return getService()
152 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
153 }
154
155
162 public static long dynamicQueryCount(
163 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return getService().dynamicQueryCount(dynamicQuery);
166 }
167
168
176 public static long dynamicQueryCount(
177 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
178 com.liferay.portal.kernel.dao.orm.Projection projection)
179 throws com.liferay.portal.kernel.exception.SystemException {
180 return getService().dynamicQueryCount(dynamicQuery, projection);
181 }
182
183 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolder(
184 long folderId)
185 throws com.liferay.portal.kernel.exception.SystemException {
186 return getService().fetchDLFolder(folderId);
187 }
188
189
197 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolderByUuidAndCompanyId(
198 java.lang.String uuid, long companyId)
199 throws com.liferay.portal.kernel.exception.SystemException {
200 return getService().fetchDLFolderByUuidAndCompanyId(uuid, companyId);
201 }
202
203
211 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolderByUuidAndGroupId(
212 java.lang.String uuid, long groupId)
213 throws com.liferay.portal.kernel.exception.SystemException {
214 return getService().fetchDLFolderByUuidAndGroupId(uuid, groupId);
215 }
216
217
225 public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder(
226 long folderId)
227 throws com.liferay.portal.kernel.exception.PortalException,
228 com.liferay.portal.kernel.exception.SystemException {
229 return getService().getDLFolder(folderId);
230 }
231
232 public static com.liferay.portal.model.PersistedModel getPersistedModel(
233 java.io.Serializable primaryKeyObj)
234 throws com.liferay.portal.kernel.exception.PortalException,
235 com.liferay.portal.kernel.exception.SystemException {
236 return getService().getPersistedModel(primaryKeyObj);
237 }
238
239
248 public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndCompanyId(
249 java.lang.String uuid, long companyId)
250 throws com.liferay.portal.kernel.exception.PortalException,
251 com.liferay.portal.kernel.exception.SystemException {
252 return getService().getDLFolderByUuidAndCompanyId(uuid, companyId);
253 }
254
255
264 public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndGroupId(
265 java.lang.String uuid, long groupId)
266 throws com.liferay.portal.kernel.exception.PortalException,
267 com.liferay.portal.kernel.exception.SystemException {
268 return getService().getDLFolderByUuidAndGroupId(uuid, groupId);
269 }
270
271
283 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
284 int start, int end)
285 throws com.liferay.portal.kernel.exception.SystemException {
286 return getService().getDLFolders(start, end);
287 }
288
289
295 public static int getDLFoldersCount()
296 throws com.liferay.portal.kernel.exception.SystemException {
297 return getService().getDLFoldersCount();
298 }
299
300
307 public static com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
308 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
309 throws com.liferay.portal.kernel.exception.SystemException {
310 return getService().updateDLFolder(dlFolder);
311 }
312
313
316 public static void addDLFileEntryTypeDLFolder(long fileEntryTypeId,
317 long folderId)
318 throws com.liferay.portal.kernel.exception.SystemException {
319 getService().addDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
320 }
321
322
325 public static void addDLFileEntryTypeDLFolder(long fileEntryTypeId,
326 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
327 throws com.liferay.portal.kernel.exception.SystemException {
328 getService().addDLFileEntryTypeDLFolder(fileEntryTypeId, dlFolder);
329 }
330
331
334 public static void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
335 long[] folderIds)
336 throws com.liferay.portal.kernel.exception.SystemException {
337 getService().addDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
338 }
339
340
343 public static void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
344 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders)
345 throws com.liferay.portal.kernel.exception.SystemException {
346 getService().addDLFileEntryTypeDLFolders(fileEntryTypeId, DLFolders);
347 }
348
349
352 public static void clearDLFileEntryTypeDLFolders(long fileEntryTypeId)
353 throws com.liferay.portal.kernel.exception.SystemException {
354 getService().clearDLFileEntryTypeDLFolders(fileEntryTypeId);
355 }
356
357
360 public static void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
361 long folderId)
362 throws com.liferay.portal.kernel.exception.SystemException {
363 getService().deleteDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
364 }
365
366
369 public static void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
370 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
371 throws com.liferay.portal.kernel.exception.SystemException {
372 getService().deleteDLFileEntryTypeDLFolder(fileEntryTypeId, dlFolder);
373 }
374
375
378 public static void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
379 long[] folderIds)
380 throws com.liferay.portal.kernel.exception.SystemException {
381 getService().deleteDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
382 }
383
384
387 public static void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
388 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders)
389 throws com.liferay.portal.kernel.exception.SystemException {
390 getService().deleteDLFileEntryTypeDLFolders(fileEntryTypeId, DLFolders);
391 }
392
393
396 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
397 long fileEntryTypeId)
398 throws com.liferay.portal.kernel.exception.SystemException {
399 return getService().getDLFileEntryTypeDLFolders(fileEntryTypeId);
400 }
401
402
405 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
406 long fileEntryTypeId, int start, int end)
407 throws com.liferay.portal.kernel.exception.SystemException {
408 return getService()
409 .getDLFileEntryTypeDLFolders(fileEntryTypeId, start, end);
410 }
411
412
415 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
416 long fileEntryTypeId, int start, int end,
417 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
418 throws com.liferay.portal.kernel.exception.SystemException {
419 return getService()
420 .getDLFileEntryTypeDLFolders(fileEntryTypeId, start, end,
421 orderByComparator);
422 }
423
424
427 public static int getDLFileEntryTypeDLFoldersCount(long fileEntryTypeId)
428 throws com.liferay.portal.kernel.exception.SystemException {
429 return getService().getDLFileEntryTypeDLFoldersCount(fileEntryTypeId);
430 }
431
432
435 public static boolean hasDLFileEntryTypeDLFolder(long fileEntryTypeId,
436 long folderId)
437 throws com.liferay.portal.kernel.exception.SystemException {
438 return getService().hasDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
439 }
440
441
444 public static boolean hasDLFileEntryTypeDLFolders(long fileEntryTypeId)
445 throws com.liferay.portal.kernel.exception.SystemException {
446 return getService().hasDLFileEntryTypeDLFolders(fileEntryTypeId);
447 }
448
449
452 public static void setDLFileEntryTypeDLFolders(long fileEntryTypeId,
453 long[] folderIds)
454 throws com.liferay.portal.kernel.exception.SystemException {
455 getService().setDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
456 }
457
458
463 public static java.lang.String getBeanIdentifier() {
464 return getService().getBeanIdentifier();
465 }
466
467
472 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
473 getService().setBeanIdentifier(beanIdentifier);
474 }
475
476 public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
477 long userId, long groupId, long repositoryId, boolean mountPoint,
478 long parentFolderId, java.lang.String name,
479 java.lang.String description, boolean hidden,
480 com.liferay.portal.service.ServiceContext serviceContext)
481 throws com.liferay.portal.kernel.exception.PortalException,
482 com.liferay.portal.kernel.exception.SystemException {
483 return getService()
484 .addFolder(userId, groupId, repositoryId, mountPoint,
485 parentFolderId, name, description, hidden, serviceContext);
486 }
487
488
493 public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
494 long userId, long groupId, long repositoryId, boolean mountPoint,
495 long parentFolderId, java.lang.String name,
496 java.lang.String description,
497 com.liferay.portal.service.ServiceContext serviceContext)
498 throws com.liferay.portal.kernel.exception.PortalException,
499 com.liferay.portal.kernel.exception.SystemException {
500 return getService()
501 .addFolder(userId, groupId, repositoryId, mountPoint,
502 parentFolderId, name, description, serviceContext);
503 }
504
505 public static void deleteAll(long groupId)
506 throws com.liferay.portal.kernel.exception.PortalException,
507 com.liferay.portal.kernel.exception.SystemException {
508 getService().deleteAll(groupId);
509 }
510
511 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
512 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
513 throws com.liferay.portal.kernel.exception.PortalException,
514 com.liferay.portal.kernel.exception.SystemException {
515 return getService().deleteFolder(dlFolder);
516 }
517
518 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
519 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
520 boolean includeTrashedEntries)
521 throws com.liferay.portal.kernel.exception.PortalException,
522 com.liferay.portal.kernel.exception.SystemException {
523 return getService().deleteFolder(dlFolder, includeTrashedEntries);
524 }
525
526 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
527 long folderId)
528 throws com.liferay.portal.kernel.exception.PortalException,
529 com.liferay.portal.kernel.exception.SystemException {
530 return getService().deleteFolder(folderId);
531 }
532
533 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
534 long folderId, boolean includeTrashedEntries)
535 throws com.liferay.portal.kernel.exception.PortalException,
536 com.liferay.portal.kernel.exception.SystemException {
537 return getService().deleteFolder(folderId, includeTrashedEntries);
538 }
539
540 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
541 long userId, long folderId, boolean includeTrashedEntries)
542 throws com.liferay.portal.kernel.exception.PortalException,
543 com.liferay.portal.kernel.exception.SystemException {
544 return getService().deleteFolder(userId, folderId, includeTrashedEntries);
545 }
546
547 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
548 long folderId)
549 throws com.liferay.portal.kernel.exception.SystemException {
550 return getService().fetchFolder(folderId);
551 }
552
553 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
554 long groupId, long parentFolderId, java.lang.String name)
555 throws com.liferay.portal.kernel.exception.SystemException {
556 return getService().fetchFolder(groupId, parentFolderId, name);
557 }
558
559 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
560 long companyId, int start, int end)
561 throws com.liferay.portal.kernel.exception.SystemException {
562 return getService().getCompanyFolders(companyId, start, end);
563 }
564
565 public static int getCompanyFoldersCount(long companyId)
566 throws com.liferay.portal.kernel.exception.SystemException {
567 return getService().getCompanyFoldersCount(companyId);
568 }
569
570
574 public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
575 long groupId, long folderId, int status, int start, int end)
576 throws com.liferay.portal.kernel.exception.SystemException {
577 return getService()
578 .getFileEntriesAndFileShortcuts(groupId, folderId, status,
579 start, end);
580 }
581
582 public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
583 long groupId, long folderId,
584 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
585 throws com.liferay.portal.kernel.exception.SystemException {
586 return getService()
587 .getFileEntriesAndFileShortcuts(groupId, folderId,
588 queryDefinition);
589 }
590
591
596 public static int getFileEntriesAndFileShortcutsCount(long groupId,
597 long folderId, int status)
598 throws com.liferay.portal.kernel.exception.SystemException {
599 return getService()
600 .getFileEntriesAndFileShortcutsCount(groupId, folderId,
601 status);
602 }
603
604 public static int getFileEntriesAndFileShortcutsCount(long groupId,
605 long folderId,
606 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
607 throws com.liferay.portal.kernel.exception.SystemException {
608 return getService()
609 .getFileEntriesAndFileShortcutsCount(groupId, folderId,
610 queryDefinition);
611 }
612
613 public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
614 long folderId)
615 throws com.liferay.portal.kernel.exception.PortalException,
616 com.liferay.portal.kernel.exception.SystemException {
617 return getService().getFolder(folderId);
618 }
619
620 public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
621 long groupId, long parentFolderId, java.lang.String name)
622 throws com.liferay.portal.kernel.exception.PortalException,
623 com.liferay.portal.kernel.exception.SystemException {
624 return getService().getFolder(groupId, parentFolderId, name);
625 }
626
627 public static long getFolderId(long companyId, long folderId)
628 throws com.liferay.portal.kernel.exception.SystemException {
629 return getService().getFolderId(companyId, folderId);
630 }
631
632 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
633 long groupId, long parentFolderId)
634 throws com.liferay.portal.kernel.exception.SystemException {
635 return getService().getFolders(groupId, parentFolderId);
636 }
637
638 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
639 long groupId, long parentFolderId, boolean includeMountfolders)
640 throws com.liferay.portal.kernel.exception.SystemException {
641 return getService()
642 .getFolders(groupId, parentFolderId, includeMountfolders);
643 }
644
645 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
646 long groupId, long parentFolderId, boolean includeMountfolders,
647 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
648 throws com.liferay.portal.kernel.exception.SystemException {
649 return getService()
650 .getFolders(groupId, parentFolderId, includeMountfolders,
651 start, end, obc);
652 }
653
654 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
655 long groupId, long parentFolderId, int start, int end,
656 com.liferay.portal.kernel.util.OrderByComparator obc)
657 throws com.liferay.portal.kernel.exception.SystemException {
658 return getService().getFolders(groupId, parentFolderId, start, end, obc);
659 }
660
661
666 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
667 long groupId, long folderId, int status, boolean includeMountFolders,
668 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
669 throws com.liferay.portal.kernel.exception.SystemException {
670 return getService()
671 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
672 status, includeMountFolders, start, end, obc);
673 }
674
675
680 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
681 long groupId, long folderId, int status, java.lang.String[] mimeTypes,
682 boolean includeMountFolders, int start, int end,
683 com.liferay.portal.kernel.util.OrderByComparator obc)
684 throws com.liferay.portal.kernel.exception.SystemException {
685 return getService()
686 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
687 status, mimeTypes, includeMountFolders, start, end, obc);
688 }
689
690 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
691 long groupId, long folderId, java.lang.String[] mimeTypes,
692 boolean includeMountFolders,
693 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
694 throws com.liferay.portal.kernel.exception.SystemException {
695 return getService()
696 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
697 mimeTypes, includeMountFolders, queryDefinition);
698 }
699
700
705 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
706 long groupId, long folderId, int status, boolean includeMountFolders)
707 throws com.liferay.portal.kernel.exception.SystemException {
708 return getService()
709 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
710 folderId, status, includeMountFolders);
711 }
712
713
718 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
719 long groupId, long folderId, int status, java.lang.String[] mimeTypes,
720 boolean includeMountFolders)
721 throws com.liferay.portal.kernel.exception.SystemException {
722 return getService()
723 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
724 folderId, status, mimeTypes, includeMountFolders);
725 }
726
727 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
728 long groupId, long folderId, java.lang.String[] mimeTypes,
729 boolean includeMountFolders,
730 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
731 throws com.liferay.portal.kernel.exception.SystemException {
732 return getService()
733 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
734 folderId, mimeTypes, includeMountFolders, queryDefinition);
735 }
736
737 public static int getFoldersCount(long groupId, long parentFolderId)
738 throws com.liferay.portal.kernel.exception.SystemException {
739 return getService().getFoldersCount(groupId, parentFolderId);
740 }
741
742 public static int getFoldersCount(long groupId, long parentFolderId,
743 boolean includeMountfolders)
744 throws com.liferay.portal.kernel.exception.SystemException {
745 return getService()
746 .getFoldersCount(groupId, parentFolderId, includeMountfolders);
747 }
748
749 public static com.liferay.portlet.documentlibrary.model.DLFolder getMountFolder(
750 long repositoryId)
751 throws com.liferay.portal.kernel.exception.PortalException,
752 com.liferay.portal.kernel.exception.SystemException {
753 return getService().getMountFolder(repositoryId);
754 }
755
756 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
757 long groupId, long parentFolderId, int start, int end,
758 com.liferay.portal.kernel.util.OrderByComparator obc)
759 throws com.liferay.portal.kernel.exception.SystemException {
760 return getService()
761 .getMountFolders(groupId, parentFolderId, start, end, obc);
762 }
763
764 public static int getMountFoldersCount(long groupId, long parentFolderId)
765 throws com.liferay.portal.kernel.exception.SystemException {
766 return getService().getMountFoldersCount(groupId, parentFolderId);
767 }
768
769 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getNoAssetFolders()
770 throws com.liferay.portal.kernel.exception.SystemException {
771 return getService().getNoAssetFolders();
772 }
773
774 public static void getSubfolderIds(
775 java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
776 throws com.liferay.portal.kernel.exception.SystemException {
777 getService().getSubfolderIds(folderIds, groupId, folderId);
778 }
779
780 public static boolean hasFolderLock(long userId, long folderId)
781 throws com.liferay.portal.kernel.exception.SystemException {
782 return getService().hasFolderLock(userId, folderId);
783 }
784
785 public static com.liferay.portal.model.Lock lockFolder(long userId,
786 long folderId)
787 throws com.liferay.portal.kernel.exception.PortalException,
788 com.liferay.portal.kernel.exception.SystemException {
789 return getService().lockFolder(userId, folderId);
790 }
791
792 public static com.liferay.portal.model.Lock lockFolder(long userId,
793 long folderId, java.lang.String owner, boolean inheritable,
794 long expirationTime)
795 throws com.liferay.portal.kernel.exception.PortalException,
796 com.liferay.portal.kernel.exception.SystemException {
797 return getService()
798 .lockFolder(userId, folderId, owner, inheritable,
799 expirationTime);
800 }
801
802 public static com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
803 long userId, long folderId, long parentFolderId,
804 com.liferay.portal.service.ServiceContext serviceContext)
805 throws com.liferay.portal.kernel.exception.PortalException,
806 com.liferay.portal.kernel.exception.SystemException {
807 return getService()
808 .moveFolder(userId, folderId, parentFolderId, serviceContext);
809 }
810
811 public static void rebuildTree(long companyId)
812 throws com.liferay.portal.kernel.exception.PortalException,
813 com.liferay.portal.kernel.exception.SystemException {
814 getService().rebuildTree(companyId);
815 }
816
817 public static void unlockFolder(long groupId, long parentFolderId,
818 java.lang.String name, java.lang.String lockUuid)
819 throws com.liferay.portal.kernel.exception.PortalException,
820 com.liferay.portal.kernel.exception.SystemException {
821 getService().unlockFolder(groupId, parentFolderId, name, lockUuid);
822 }
823
824 public static void unlockFolder(long folderId, java.lang.String lockUuid)
825 throws com.liferay.portal.kernel.exception.PortalException,
826 com.liferay.portal.kernel.exception.SystemException {
827 getService().unlockFolder(folderId, lockUuid);
828 }
829
830 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
831 long folderId, long parentFolderId, java.lang.String name,
832 java.lang.String description, long defaultFileEntryTypeId,
833 java.util.List<java.lang.Long> fileEntryTypeIds,
834 boolean overrideFileEntryTypes,
835 com.liferay.portal.service.ServiceContext serviceContext)
836 throws com.liferay.portal.kernel.exception.PortalException,
837 com.liferay.portal.kernel.exception.SystemException {
838 return getService()
839 .updateFolder(folderId, parentFolderId, name, description,
840 defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
841 serviceContext);
842 }
843
844 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
845 long folderId, java.lang.String name, java.lang.String description,
846 long defaultFileEntryTypeId,
847 java.util.List<java.lang.Long> fileEntryTypeIds,
848 boolean overrideFileEntryTypes,
849 com.liferay.portal.service.ServiceContext serviceContext)
850 throws com.liferay.portal.kernel.exception.PortalException,
851 com.liferay.portal.kernel.exception.SystemException {
852 return getService()
853 .updateFolder(folderId, name, description,
854 defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
855 serviceContext);
856 }
857
858 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
859 long userId, long folderId, long parentFolderId, java.lang.String name,
860 java.lang.String description, long defaultFileEntryTypeId,
861 java.util.List<java.lang.Long> fileEntryTypeIds,
862 boolean overrideFileEntryTypes,
863 com.liferay.portal.service.ServiceContext serviceContext)
864 throws com.liferay.portal.kernel.exception.PortalException,
865 com.liferay.portal.kernel.exception.SystemException {
866 return getService()
867 .updateFolderAndFileEntryTypes(userId, folderId,
868 parentFolderId, name, description, defaultFileEntryTypeId,
869 fileEntryTypeIds, overrideFileEntryTypes, serviceContext);
870 }
871
872
875 public static void updateLastPostDate(long folderId,
876 java.util.Date lastPostDate)
877 throws com.liferay.portal.kernel.exception.PortalException,
878 com.liferay.portal.kernel.exception.SystemException {
879 getService().updateLastPostDate(folderId, lastPostDate);
880 }
881
882 public static com.liferay.portlet.documentlibrary.model.DLFolder updateStatus(
883 long userId, long folderId, int status,
884 java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
885 com.liferay.portal.service.ServiceContext serviceContext)
886 throws com.liferay.portal.kernel.exception.PortalException,
887 com.liferay.portal.kernel.exception.SystemException {
888 return getService()
889 .updateStatus(userId, folderId, status, workflowContext,
890 serviceContext);
891 }
892
893 public static DLFolderLocalService getService() {
894 if (_service == null) {
895 _service = (DLFolderLocalService)PortalBeanLocatorUtil.locate(DLFolderLocalService.class.getName());
896
897 ReferenceRegistry.registerReference(DLFolderLocalServiceUtil.class,
898 "_service");
899 }
900
901 return _service;
902 }
903
904
907 public void setService(DLFolderLocalService service) {
908 }
909
910 private static DLFolderLocalService _service;
911 }