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 public static void addDLFileEntryTypeDLFolder(long fileEntryTypeId,
044 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) {
045 getService().addDLFileEntryTypeDLFolder(fileEntryTypeId, dlFolder);
046 }
047
048 public static void addDLFileEntryTypeDLFolder(long fileEntryTypeId,
049 long folderId) {
050 getService().addDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
051 }
052
053 public static void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
054 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders) {
055 getService().addDLFileEntryTypeDLFolders(fileEntryTypeId, DLFolders);
056 }
057
058 public static void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
059 long[] folderIds) {
060 getService().addDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
061 }
062
063
069 public static com.liferay.portlet.documentlibrary.model.DLFolder addDLFolder(
070 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) {
071 return getService().addDLFolder(dlFolder);
072 }
073
074 public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
075 long userId, long groupId, long repositoryId, boolean mountPoint,
076 long parentFolderId, java.lang.String name,
077 java.lang.String description, boolean hidden,
078 com.liferay.portal.service.ServiceContext serviceContext)
079 throws com.liferay.portal.kernel.exception.PortalException {
080 return getService()
081 .addFolder(userId, groupId, repositoryId, mountPoint,
082 parentFolderId, name, description, hidden, serviceContext);
083 }
084
085
090 @Deprecated
091 public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
092 long userId, long groupId, long repositoryId, boolean mountPoint,
093 long parentFolderId, java.lang.String name,
094 java.lang.String description,
095 com.liferay.portal.service.ServiceContext serviceContext)
096 throws com.liferay.portal.kernel.exception.PortalException {
097 return getService()
098 .addFolder(userId, groupId, repositoryId, mountPoint,
099 parentFolderId, name, description, serviceContext);
100 }
101
102 public static void clearDLFileEntryTypeDLFolders(long fileEntryTypeId) {
103 getService().clearDLFileEntryTypeDLFolders(fileEntryTypeId);
104 }
105
106
112 public static com.liferay.portlet.documentlibrary.model.DLFolder createDLFolder(
113 long folderId) {
114 return getService().createDLFolder(folderId);
115 }
116
117
120 @Deprecated
121 public static void deleteAll(long groupId)
122 throws com.liferay.portal.kernel.exception.PortalException {
123 getService().deleteAll(groupId);
124 }
125
126 public static void deleteAllByGroup(long groupId)
127 throws com.liferay.portal.kernel.exception.PortalException {
128 getService().deleteAllByGroup(groupId);
129 }
130
131 public static void deleteAllByRepository(long repositoryId)
132 throws com.liferay.portal.kernel.exception.PortalException {
133 getService().deleteAllByRepository(repositoryId);
134 }
135
136 public static void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
137 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) {
138 getService().deleteDLFileEntryTypeDLFolder(fileEntryTypeId, dlFolder);
139 }
140
141 public static void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
142 long folderId) {
143 getService().deleteDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
144 }
145
146 public static void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
147 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders) {
148 getService().deleteDLFileEntryTypeDLFolders(fileEntryTypeId, DLFolders);
149 }
150
151 public static void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
152 long[] folderIds) {
153 getService().deleteDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
154 }
155
156
162 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
163 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) {
164 return getService().deleteDLFolder(dlFolder);
165 }
166
167
174 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
175 long folderId)
176 throws com.liferay.portal.kernel.exception.PortalException {
177 return getService().deleteDLFolder(folderId);
178 }
179
180 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
181 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
182 throws com.liferay.portal.kernel.exception.PortalException {
183 return getService().deleteFolder(dlFolder);
184 }
185
186 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
187 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
188 boolean includeTrashedEntries)
189 throws com.liferay.portal.kernel.exception.PortalException {
190 return getService().deleteFolder(dlFolder, includeTrashedEntries);
191 }
192
193 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
194 long folderId)
195 throws com.liferay.portal.kernel.exception.PortalException {
196 return getService().deleteFolder(folderId);
197 }
198
199 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
200 long folderId, boolean includeTrashedEntries)
201 throws com.liferay.portal.kernel.exception.PortalException {
202 return getService().deleteFolder(folderId, includeTrashedEntries);
203 }
204
205 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
206 long userId, long folderId, boolean includeTrashedEntries)
207 throws com.liferay.portal.kernel.exception.PortalException {
208 return getService().deleteFolder(userId, folderId, includeTrashedEntries);
209 }
210
211
214 public static com.liferay.portal.model.PersistedModel deletePersistedModel(
215 com.liferay.portal.model.PersistedModel persistedModel)
216 throws com.liferay.portal.kernel.exception.PortalException {
217 return getService().deletePersistedModel(persistedModel);
218 }
219
220 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
221 return getService().dynamicQuery();
222 }
223
224
230 public static <T> java.util.List<T> dynamicQuery(
231 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
232 return getService().dynamicQuery(dynamicQuery);
233 }
234
235
247 public static <T> java.util.List<T> dynamicQuery(
248 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
249 int end) {
250 return getService().dynamicQuery(dynamicQuery, start, end);
251 }
252
253
266 public static <T> java.util.List<T> dynamicQuery(
267 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
268 int end,
269 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
270 return getService()
271 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
272 }
273
274
280 public static long dynamicQueryCount(
281 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
282 return getService().dynamicQueryCount(dynamicQuery);
283 }
284
285
292 public static long dynamicQueryCount(
293 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
294 com.liferay.portal.kernel.dao.orm.Projection projection) {
295 return getService().dynamicQueryCount(dynamicQuery, projection);
296 }
297
298 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolder(
299 long folderId) {
300 return getService().fetchDLFolder(folderId);
301 }
302
303
310 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolderByUuidAndGroupId(
311 java.lang.String uuid, long groupId) {
312 return getService().fetchDLFolderByUuidAndGroupId(uuid, groupId);
313 }
314
315 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
316 long folderId) {
317 return getService().fetchFolder(folderId);
318 }
319
320 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
321 long groupId, long parentFolderId, java.lang.String name) {
322 return getService().fetchFolder(groupId, parentFolderId, name);
323 }
324
325 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
326 return getService().getActionableDynamicQuery();
327 }
328
329 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
330 long companyId, int start, int end) {
331 return getService().getCompanyFolders(companyId, start, end);
332 }
333
334 public static int getCompanyFoldersCount(long companyId) {
335 return getService().getCompanyFoldersCount(companyId);
336 }
337
338 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
339 long fileEntryTypeId) {
340 return getService().getDLFileEntryTypeDLFolders(fileEntryTypeId);
341 }
342
343 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
344 long fileEntryTypeId, int start, int end) {
345 return getService()
346 .getDLFileEntryTypeDLFolders(fileEntryTypeId, start, end);
347 }
348
349 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
350 long fileEntryTypeId, int start, int end,
351 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> orderByComparator) {
352 return getService()
353 .getDLFileEntryTypeDLFolders(fileEntryTypeId, start, end,
354 orderByComparator);
355 }
356
357 public static int getDLFileEntryTypeDLFoldersCount(long fileEntryTypeId) {
358 return getService().getDLFileEntryTypeDLFoldersCount(fileEntryTypeId);
359 }
360
361
367 public static long[] getDLFileEntryTypePrimaryKeys(long folderId) {
368 return getService().getDLFileEntryTypePrimaryKeys(folderId);
369 }
370
371
378 public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder(
379 long folderId)
380 throws com.liferay.portal.kernel.exception.PortalException {
381 return getService().getDLFolder(folderId);
382 }
383
384
392 public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndGroupId(
393 java.lang.String uuid, long groupId)
394 throws com.liferay.portal.kernel.exception.PortalException {
395 return getService().getDLFolderByUuidAndGroupId(uuid, groupId);
396 }
397
398
409 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
410 int start, int end) {
411 return getService().getDLFolders(start, end);
412 }
413
414
421 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFoldersByUuidAndCompanyId(
422 java.lang.String uuid, long companyId) {
423 return getService().getDLFoldersByUuidAndCompanyId(uuid, companyId);
424 }
425
426
436 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFoldersByUuidAndCompanyId(
437 java.lang.String uuid, long companyId, int start, int end,
438 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> orderByComparator) {
439 return getService()
440 .getDLFoldersByUuidAndCompanyId(uuid, companyId, start, end,
441 orderByComparator);
442 }
443
444
449 public static int getDLFoldersCount() {
450 return getService().getDLFoldersCount();
451 }
452
453 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
454 com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
455 return getService().getExportActionableDynamicQuery(portletDataContext);
456 }
457
458 public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
459 long groupId, long folderId,
460 com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
461 return getService()
462 .getFileEntriesAndFileShortcuts(groupId, folderId,
463 queryDefinition);
464 }
465
466
470 @Deprecated
471 public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
472 long groupId, long folderId, int status, int start, int end) {
473 return getService()
474 .getFileEntriesAndFileShortcuts(groupId, folderId, status,
475 start, end);
476 }
477
478 public static int getFileEntriesAndFileShortcutsCount(long groupId,
479 long folderId,
480 com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
481 return getService()
482 .getFileEntriesAndFileShortcutsCount(groupId, folderId,
483 queryDefinition);
484 }
485
486
491 @Deprecated
492 public static int getFileEntriesAndFileShortcutsCount(long groupId,
493 long folderId, int status) {
494 return getService()
495 .getFileEntriesAndFileShortcutsCount(groupId, folderId,
496 status);
497 }
498
499 public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
500 long folderId)
501 throws com.liferay.portal.kernel.exception.PortalException {
502 return getService().getFolder(folderId);
503 }
504
505 public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
506 long groupId, long parentFolderId, java.lang.String name)
507 throws com.liferay.portal.kernel.exception.PortalException {
508 return getService().getFolder(groupId, parentFolderId, name);
509 }
510
511 public static long getFolderId(long companyId, long folderId) {
512 return getService().getFolderId(companyId, folderId);
513 }
514
515
519 @Deprecated
520 public static java.util.List<java.lang.Long> getFolderIds(long groupId,
521 long parentFolderId) {
522 return getService().getFolderIds(groupId, parentFolderId);
523 }
524
525 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
526 long groupId, long parentFolderId) {
527 return getService().getFolders(groupId, parentFolderId);
528 }
529
530 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
531 long groupId, long parentFolderId, boolean includeMountfolders) {
532 return getService()
533 .getFolders(groupId, parentFolderId, includeMountfolders);
534 }
535
536 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
537 long groupId, long parentFolderId, boolean includeMountfolders,
538 int start, int end,
539 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc) {
540 return getService()
541 .getFolders(groupId, parentFolderId, includeMountfolders,
542 start, end, obc);
543 }
544
545 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
546 long groupId, long parentFolderId, int start, int end,
547 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc) {
548 return getService().getFolders(groupId, parentFolderId, start, end, obc);
549 }
550
551 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
552 long groupId, long parentFolderId, int status,
553 boolean includeMountfolders, int start, int end,
554 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc) {
555 return getService()
556 .getFolders(groupId, parentFolderId, status,
557 includeMountfolders, start, end, obc);
558 }
559
560 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
561 long groupId, long folderId, java.lang.String[] mimeTypes,
562 boolean includeMountFolders,
563 com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
564 return getService()
565 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
566 mimeTypes, includeMountFolders, queryDefinition);
567 }
568
569
574 @Deprecated
575 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
576 long groupId, long folderId, int status, boolean includeMountFolders,
577 int start, int end,
578 com.liferay.portal.kernel.util.OrderByComparator<?> obc) {
579 return getService()
580 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
581 status, includeMountFolders, start, end, obc);
582 }
583
584
589 @Deprecated
590 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
591 long groupId, long folderId, int status, java.lang.String[] mimeTypes,
592 boolean includeMountFolders, int start, int end,
593 com.liferay.portal.kernel.util.OrderByComparator<?> obc) {
594 return getService()
595 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
596 status, mimeTypes, includeMountFolders, start, end, obc);
597 }
598
599 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
600 long groupId, long folderId, java.lang.String[] mimeTypes,
601 boolean includeMountFolders,
602 com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
603 return getService()
604 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
605 folderId, mimeTypes, includeMountFolders, queryDefinition);
606 }
607
608
613 @Deprecated
614 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
615 long groupId, long folderId, int status, boolean includeMountFolders) {
616 return getService()
617 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
618 folderId, status, includeMountFolders);
619 }
620
621
626 @Deprecated
627 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
628 long groupId, long folderId, int status, java.lang.String[] mimeTypes,
629 boolean includeMountFolders) {
630 return getService()
631 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
632 folderId, status, mimeTypes, includeMountFolders);
633 }
634
635 public static int getFoldersCount(long groupId, long parentFolderId) {
636 return getService().getFoldersCount(groupId, parentFolderId);
637 }
638
639 public static int getFoldersCount(long groupId, long parentFolderId,
640 boolean includeMountfolders) {
641 return getService()
642 .getFoldersCount(groupId, parentFolderId, includeMountfolders);
643 }
644
645 public static int getFoldersCount(long groupId, long parentFolderId,
646 int status, boolean includeMountfolders) {
647 return getService()
648 .getFoldersCount(groupId, parentFolderId, status,
649 includeMountfolders);
650 }
651
652 public static java.util.List<java.lang.Long> getGroupFolderIds(
653 long groupId, long parentFolderId) {
654 return getService().getGroupFolderIds(groupId, parentFolderId);
655 }
656
657 public static void getGroupSubfolderIds(
658 java.util.List<java.lang.Long> folderIds, long groupId, long folderId) {
659 getService().getGroupSubfolderIds(folderIds, groupId, folderId);
660 }
661
662 public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
663 return getService().getIndexableActionableDynamicQuery();
664 }
665
666 public static com.liferay.portlet.documentlibrary.model.DLFolder getMountFolder(
667 long repositoryId)
668 throws com.liferay.portal.kernel.exception.PortalException {
669 return getService().getMountFolder(repositoryId);
670 }
671
672 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
673 long groupId, long parentFolderId, int start, int end,
674 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc) {
675 return getService()
676 .getMountFolders(groupId, parentFolderId, start, end, obc);
677 }
678
679 public static int getMountFoldersCount(long groupId, long parentFolderId) {
680 return getService().getMountFoldersCount(groupId, parentFolderId);
681 }
682
683 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getNoAssetFolders() {
684 return getService().getNoAssetFolders();
685 }
686
687
692 public static java.lang.String getOSGiServiceIdentifier() {
693 return getService().getOSGiServiceIdentifier();
694 }
695
696 public static com.liferay.portal.model.PersistedModel getPersistedModel(
697 java.io.Serializable primaryKeyObj)
698 throws com.liferay.portal.kernel.exception.PortalException {
699 return getService().getPersistedModel(primaryKeyObj);
700 }
701
702 public static java.util.List<java.lang.Long> getRepositoryFolderIds(
703 long repositoryId, long parentFolderId) {
704 return getService().getRepositoryFolderIds(repositoryId, parentFolderId);
705 }
706
707 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getRepositoryFolders(
708 long repositoryId, int start, int end) {
709 return getService().getRepositoryFolders(repositoryId, start, end);
710 }
711
712 public static int getRepositoryFoldersCount(long repositoryId) {
713 return getService().getRepositoryFoldersCount(repositoryId);
714 }
715
716 public static void getRepositorySubfolderIds(
717 java.util.List<java.lang.Long> folderIds, long repositoryId,
718 long folderId) {
719 getService().getRepositorySubfolderIds(folderIds, repositoryId, folderId);
720 }
721
722
726 @Deprecated
727 public static void getSubfolderIds(
728 java.util.List<java.lang.Long> folderIds, long groupId, long folderId) {
729 getService().getSubfolderIds(folderIds, groupId, folderId);
730 }
731
732 public static boolean hasDLFileEntryTypeDLFolder(long fileEntryTypeId,
733 long folderId) {
734 return getService().hasDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
735 }
736
737 public static boolean hasDLFileEntryTypeDLFolders(long fileEntryTypeId) {
738 return getService().hasDLFileEntryTypeDLFolders(fileEntryTypeId);
739 }
740
741 public static boolean hasFolderLock(long userId, long folderId) {
742 return getService().hasFolderLock(userId, folderId);
743 }
744
745 public static boolean hasInheritableLock(long folderId)
746 throws com.liferay.portal.kernel.exception.PortalException {
747 return getService().hasInheritableLock(folderId);
748 }
749
750 public static com.liferay.portal.kernel.lock.Lock lockFolder(long userId,
751 long folderId)
752 throws com.liferay.portal.kernel.exception.PortalException {
753 return getService().lockFolder(userId, folderId);
754 }
755
756 public static com.liferay.portal.kernel.lock.Lock lockFolder(long userId,
757 long folderId, java.lang.String owner, boolean inheritable,
758 long expirationTime)
759 throws com.liferay.portal.kernel.exception.PortalException {
760 return getService()
761 .lockFolder(userId, folderId, owner, inheritable,
762 expirationTime);
763 }
764
765 public static com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
766 long userId, long folderId, long parentFolderId,
767 com.liferay.portal.service.ServiceContext serviceContext)
768 throws com.liferay.portal.kernel.exception.PortalException {
769 return getService()
770 .moveFolder(userId, folderId, parentFolderId, serviceContext);
771 }
772
773 public static void rebuildTree(long companyId)
774 throws com.liferay.portal.kernel.exception.PortalException {
775 getService().rebuildTree(companyId);
776 }
777
778 public static void rebuildTree(long companyId, long parentFolderId,
779 java.lang.String parentTreePath, boolean reindex)
780 throws com.liferay.portal.kernel.exception.PortalException {
781 getService()
782 .rebuildTree(companyId, parentFolderId, parentTreePath, reindex);
783 }
784
785 public static void setDLFileEntryTypeDLFolders(long fileEntryTypeId,
786 long[] folderIds) {
787 getService().setDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
788 }
789
790 public static void unlockFolder(long folderId, java.lang.String lockUuid)
791 throws com.liferay.portal.kernel.exception.PortalException {
792 getService().unlockFolder(folderId, lockUuid);
793 }
794
795 public static void unlockFolder(long groupId, long parentFolderId,
796 java.lang.String name, java.lang.String lockUuid)
797 throws com.liferay.portal.kernel.exception.PortalException {
798 getService().unlockFolder(groupId, parentFolderId, name, lockUuid);
799 }
800
801
807 public static com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
808 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) {
809 return getService().updateDLFolder(dlFolder);
810 }
811
812
816 @Deprecated
817 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
818 long folderId, java.lang.String name, java.lang.String description,
819 long defaultFileEntryTypeId,
820 java.util.List<java.lang.Long> fileEntryTypeIds,
821 boolean overrideFileEntryTypes,
822 com.liferay.portal.service.ServiceContext serviceContext)
823 throws com.liferay.portal.kernel.exception.PortalException {
824 return getService()
825 .updateFolder(folderId, name, description,
826 defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
827 serviceContext);
828 }
829
830 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
831 long folderId, java.lang.String name, java.lang.String description,
832 long defaultFileEntryTypeId,
833 java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
834 com.liferay.portal.service.ServiceContext serviceContext)
835 throws com.liferay.portal.kernel.exception.PortalException {
836 return getService()
837 .updateFolder(folderId, name, description,
838 defaultFileEntryTypeId, fileEntryTypeIds, restrictionType,
839 serviceContext);
840 }
841
842
846 @Deprecated
847 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
848 long folderId, long parentFolderId, java.lang.String name,
849 java.lang.String description, long defaultFileEntryTypeId,
850 java.util.List<java.lang.Long> fileEntryTypeIds,
851 boolean overrideFileEntryTypes,
852 com.liferay.portal.service.ServiceContext serviceContext)
853 throws com.liferay.portal.kernel.exception.PortalException {
854 return getService()
855 .updateFolder(folderId, parentFolderId, name, description,
856 defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
857 serviceContext);
858 }
859
860 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
861 long folderId, long parentFolderId, java.lang.String name,
862 java.lang.String description, long defaultFileEntryTypeId,
863 java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
864 com.liferay.portal.service.ServiceContext serviceContext)
865 throws com.liferay.portal.kernel.exception.PortalException {
866 return getService()
867 .updateFolder(folderId, parentFolderId, name, description,
868 defaultFileEntryTypeId, fileEntryTypeIds, restrictionType,
869 serviceContext);
870 }
871
872
877 @Deprecated
878 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
879 long userId, long folderId, long parentFolderId, java.lang.String name,
880 java.lang.String description, 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 return getService()
886 .updateFolderAndFileEntryTypes(userId, folderId,
887 parentFolderId, name, description, defaultFileEntryTypeId,
888 fileEntryTypeIds, overrideFileEntryTypes, serviceContext);
889 }
890
891 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
892 long userId, long folderId, long parentFolderId, java.lang.String name,
893 java.lang.String description, long defaultFileEntryTypeId,
894 java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
895 com.liferay.portal.service.ServiceContext serviceContext)
896 throws com.liferay.portal.kernel.exception.PortalException {
897 return getService()
898 .updateFolderAndFileEntryTypes(userId, folderId,
899 parentFolderId, name, description, defaultFileEntryTypeId,
900 fileEntryTypeIds, restrictionType, serviceContext);
901 }
902
903 public static void updateLastPostDate(long folderId,
904 java.util.Date lastPostDate)
905 throws com.liferay.portal.kernel.exception.PortalException {
906 getService().updateLastPostDate(folderId, lastPostDate);
907 }
908
909 public static com.liferay.portlet.documentlibrary.model.DLFolder updateStatus(
910 long userId, long folderId, int status,
911 java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
912 com.liferay.portal.service.ServiceContext serviceContext)
913 throws com.liferay.portal.kernel.exception.PortalException {
914 return getService()
915 .updateStatus(userId, folderId, status, workflowContext,
916 serviceContext);
917 }
918
919 public static boolean verifyInheritableLock(long folderId,
920 java.lang.String lockUuid)
921 throws com.liferay.portal.kernel.exception.PortalException {
922 return getService().verifyInheritableLock(folderId, lockUuid);
923 }
924
925 public static DLFolderLocalService getService() {
926 if (_service == null) {
927 _service = (DLFolderLocalService)PortalBeanLocatorUtil.locate(DLFolderLocalService.class.getName());
928
929 ReferenceRegistry.registerReference(DLFolderLocalServiceUtil.class,
930 "_service");
931 }
932
933 return _service;
934 }
935
936 private static DLFolderLocalService _service;
937 }