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
334 public static java.lang.String getBeanIdentifier() {
335 return getService().getBeanIdentifier();
336 }
337
338 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
339 long companyId, int start, int end) {
340 return getService().getCompanyFolders(companyId, start, end);
341 }
342
343 public static int getCompanyFoldersCount(long companyId) {
344 return getService().getCompanyFoldersCount(companyId);
345 }
346
347 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
348 long fileEntryTypeId) {
349 return getService().getDLFileEntryTypeDLFolders(fileEntryTypeId);
350 }
351
352 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
353 long fileEntryTypeId, int start, int end) {
354 return getService()
355 .getDLFileEntryTypeDLFolders(fileEntryTypeId, start, end);
356 }
357
358 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
359 long fileEntryTypeId, int start, int end,
360 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> orderByComparator) {
361 return getService()
362 .getDLFileEntryTypeDLFolders(fileEntryTypeId, start, end,
363 orderByComparator);
364 }
365
366 public static int getDLFileEntryTypeDLFoldersCount(long fileEntryTypeId) {
367 return getService().getDLFileEntryTypeDLFoldersCount(fileEntryTypeId);
368 }
369
370
376 public static long[] getDLFileEntryTypePrimaryKeys(long folderId) {
377 return getService().getDLFileEntryTypePrimaryKeys(folderId);
378 }
379
380
387 public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder(
388 long folderId)
389 throws com.liferay.portal.kernel.exception.PortalException {
390 return getService().getDLFolder(folderId);
391 }
392
393
401 public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndGroupId(
402 java.lang.String uuid, long groupId)
403 throws com.liferay.portal.kernel.exception.PortalException {
404 return getService().getDLFolderByUuidAndGroupId(uuid, groupId);
405 }
406
407
418 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
419 int start, int end) {
420 return getService().getDLFolders(start, end);
421 }
422
423
430 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFoldersByUuidAndCompanyId(
431 java.lang.String uuid, long companyId) {
432 return getService().getDLFoldersByUuidAndCompanyId(uuid, companyId);
433 }
434
435
445 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFoldersByUuidAndCompanyId(
446 java.lang.String uuid, long companyId, int start, int end,
447 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> orderByComparator) {
448 return getService()
449 .getDLFoldersByUuidAndCompanyId(uuid, companyId, start, end,
450 orderByComparator);
451 }
452
453
458 public static int getDLFoldersCount() {
459 return getService().getDLFoldersCount();
460 }
461
462 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
463 com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
464 return getService().getExportActionableDynamicQuery(portletDataContext);
465 }
466
467 public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
468 long groupId, long folderId,
469 com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
470 return getService()
471 .getFileEntriesAndFileShortcuts(groupId, folderId,
472 queryDefinition);
473 }
474
475
479 @Deprecated
480 public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
481 long groupId, long folderId, int status, int start, int end) {
482 return getService()
483 .getFileEntriesAndFileShortcuts(groupId, folderId, status,
484 start, end);
485 }
486
487 public static int getFileEntriesAndFileShortcutsCount(long groupId,
488 long folderId,
489 com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
490 return getService()
491 .getFileEntriesAndFileShortcutsCount(groupId, folderId,
492 queryDefinition);
493 }
494
495
500 @Deprecated
501 public static int getFileEntriesAndFileShortcutsCount(long groupId,
502 long folderId, int status) {
503 return getService()
504 .getFileEntriesAndFileShortcutsCount(groupId, folderId,
505 status);
506 }
507
508 public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
509 long folderId)
510 throws com.liferay.portal.kernel.exception.PortalException {
511 return getService().getFolder(folderId);
512 }
513
514 public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
515 long groupId, long parentFolderId, java.lang.String name)
516 throws com.liferay.portal.kernel.exception.PortalException {
517 return getService().getFolder(groupId, parentFolderId, name);
518 }
519
520 public static long getFolderId(long companyId, long folderId) {
521 return getService().getFolderId(companyId, folderId);
522 }
523
524
528 @Deprecated
529 public static java.util.List<java.lang.Long> getFolderIds(long groupId,
530 long parentFolderId) {
531 return getService().getFolderIds(groupId, parentFolderId);
532 }
533
534 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
535 long groupId, long parentFolderId) {
536 return getService().getFolders(groupId, parentFolderId);
537 }
538
539 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
540 long groupId, long parentFolderId, boolean includeMountfolders) {
541 return getService()
542 .getFolders(groupId, parentFolderId, includeMountfolders);
543 }
544
545 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
546 long groupId, long parentFolderId, boolean includeMountfolders,
547 int start, int end,
548 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc) {
549 return getService()
550 .getFolders(groupId, parentFolderId, includeMountfolders,
551 start, end, obc);
552 }
553
554 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
555 long groupId, long parentFolderId, int start, int end,
556 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc) {
557 return getService().getFolders(groupId, parentFolderId, start, end, obc);
558 }
559
560 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
561 long groupId, long parentFolderId, int status,
562 boolean includeMountfolders, int start, int end,
563 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc) {
564 return getService()
565 .getFolders(groupId, parentFolderId, status,
566 includeMountfolders, start, end, obc);
567 }
568
569 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
570 long groupId, long folderId, java.lang.String[] mimeTypes,
571 boolean includeMountFolders,
572 com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
573 return getService()
574 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
575 mimeTypes, includeMountFolders, queryDefinition);
576 }
577
578
583 @Deprecated
584 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
585 long groupId, long folderId, int status, boolean includeMountFolders,
586 int start, int end,
587 com.liferay.portal.kernel.util.OrderByComparator<?> obc) {
588 return getService()
589 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
590 status, includeMountFolders, start, end, obc);
591 }
592
593
598 @Deprecated
599 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
600 long groupId, long folderId, int status, java.lang.String[] mimeTypes,
601 boolean includeMountFolders, int start, int end,
602 com.liferay.portal.kernel.util.OrderByComparator<?> obc) {
603 return getService()
604 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
605 status, mimeTypes, includeMountFolders, start, end, obc);
606 }
607
608 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
609 long groupId, long folderId, java.lang.String[] mimeTypes,
610 boolean includeMountFolders,
611 com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
612 return getService()
613 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
614 folderId, mimeTypes, includeMountFolders, queryDefinition);
615 }
616
617
622 @Deprecated
623 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
624 long groupId, long folderId, int status, boolean includeMountFolders) {
625 return getService()
626 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
627 folderId, status, includeMountFolders);
628 }
629
630
635 @Deprecated
636 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
637 long groupId, long folderId, int status, java.lang.String[] mimeTypes,
638 boolean includeMountFolders) {
639 return getService()
640 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
641 folderId, status, mimeTypes, includeMountFolders);
642 }
643
644 public static int getFoldersCount(long groupId, long parentFolderId) {
645 return getService().getFoldersCount(groupId, parentFolderId);
646 }
647
648 public static int getFoldersCount(long groupId, long parentFolderId,
649 boolean includeMountfolders) {
650 return getService()
651 .getFoldersCount(groupId, parentFolderId, includeMountfolders);
652 }
653
654 public static int getFoldersCount(long groupId, long parentFolderId,
655 int status, boolean includeMountfolders) {
656 return getService()
657 .getFoldersCount(groupId, parentFolderId, status,
658 includeMountfolders);
659 }
660
661 public static java.util.List<java.lang.Long> getGroupFolderIds(
662 long groupId, long parentFolderId) {
663 return getService().getGroupFolderIds(groupId, parentFolderId);
664 }
665
666 public static void getGroupSubfolderIds(
667 java.util.List<java.lang.Long> folderIds, long groupId, long folderId) {
668 getService().getGroupSubfolderIds(folderIds, groupId, folderId);
669 }
670
671 public static com.liferay.portlet.documentlibrary.model.DLFolder getMountFolder(
672 long repositoryId)
673 throws com.liferay.portal.kernel.exception.PortalException {
674 return getService().getMountFolder(repositoryId);
675 }
676
677 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
678 long groupId, long parentFolderId, int start, int end,
679 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc) {
680 return getService()
681 .getMountFolders(groupId, parentFolderId, start, end, obc);
682 }
683
684 public static int getMountFoldersCount(long groupId, long parentFolderId) {
685 return getService().getMountFoldersCount(groupId, parentFolderId);
686 }
687
688 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getNoAssetFolders() {
689 return getService().getNoAssetFolders();
690 }
691
692 public static com.liferay.portal.model.PersistedModel getPersistedModel(
693 java.io.Serializable primaryKeyObj)
694 throws com.liferay.portal.kernel.exception.PortalException {
695 return getService().getPersistedModel(primaryKeyObj);
696 }
697
698 public static java.util.List<java.lang.Long> getRepositoryFolderIds(
699 long repositoryId, long parentFolderId) {
700 return getService().getRepositoryFolderIds(repositoryId, parentFolderId);
701 }
702
703 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getRepositoryFolders(
704 long repositoryId, int start, int end) {
705 return getService().getRepositoryFolders(repositoryId, start, end);
706 }
707
708 public static int getRepositoryFoldersCount(long repositoryId) {
709 return getService().getRepositoryFoldersCount(repositoryId);
710 }
711
712 public static void getRepositorySubfolderIds(
713 java.util.List<java.lang.Long> folderIds, long repositoryId,
714 long folderId) {
715 getService().getRepositorySubfolderIds(folderIds, repositoryId, folderId);
716 }
717
718
722 @Deprecated
723 public static void getSubfolderIds(
724 java.util.List<java.lang.Long> folderIds, long groupId, long folderId) {
725 getService().getSubfolderIds(folderIds, groupId, folderId);
726 }
727
728 public static boolean hasDLFileEntryTypeDLFolder(long fileEntryTypeId,
729 long folderId) {
730 return getService().hasDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
731 }
732
733 public static boolean hasDLFileEntryTypeDLFolders(long fileEntryTypeId) {
734 return getService().hasDLFileEntryTypeDLFolders(fileEntryTypeId);
735 }
736
737 public static boolean hasFolderLock(long userId, long folderId) {
738 return getService().hasFolderLock(userId, folderId);
739 }
740
741 public static com.liferay.portal.kernel.lock.Lock lockFolder(long userId,
742 long folderId)
743 throws com.liferay.portal.kernel.exception.PortalException {
744 return getService().lockFolder(userId, folderId);
745 }
746
747 public static com.liferay.portal.kernel.lock.Lock lockFolder(long userId,
748 long folderId, java.lang.String owner, boolean inheritable,
749 long expirationTime)
750 throws com.liferay.portal.kernel.exception.PortalException {
751 return getService()
752 .lockFolder(userId, folderId, owner, inheritable,
753 expirationTime);
754 }
755
756 public static com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
757 long userId, long folderId, long parentFolderId,
758 com.liferay.portal.service.ServiceContext serviceContext)
759 throws com.liferay.portal.kernel.exception.PortalException {
760 return getService()
761 .moveFolder(userId, folderId, parentFolderId, serviceContext);
762 }
763
764 public static void rebuildTree(long companyId)
765 throws com.liferay.portal.kernel.exception.PortalException {
766 getService().rebuildTree(companyId);
767 }
768
769 public static void rebuildTree(long companyId, long parentFolderId,
770 java.lang.String parentTreePath, boolean reindex)
771 throws com.liferay.portal.kernel.exception.PortalException {
772 getService()
773 .rebuildTree(companyId, parentFolderId, parentTreePath, reindex);
774 }
775
776
781 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
782 getService().setBeanIdentifier(beanIdentifier);
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 DLFolderLocalService getService() {
920 if (_service == null) {
921 _service = (DLFolderLocalService)PortalBeanLocatorUtil.locate(DLFolderLocalService.class.getName());
922
923 ReferenceRegistry.registerReference(DLFolderLocalServiceUtil.class,
924 "_service");
925 }
926
927 return _service;
928 }
929
930
933 @Deprecated
934 public void setService(DLFolderLocalService service) {
935 }
936
937 private static DLFolderLocalService _service;
938 }