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 public static void clearDLFileEntryTypeDLFolders(long fileEntryTypeId) {
086 getService().clearDLFileEntryTypeDLFolders(fileEntryTypeId);
087 }
088
089
095 public static com.liferay.portlet.documentlibrary.model.DLFolder createDLFolder(
096 long folderId) {
097 return getService().createDLFolder(folderId);
098 }
099
100
103 @Deprecated
104 public static void deleteAll(long groupId)
105 throws com.liferay.portal.kernel.exception.PortalException {
106 getService().deleteAll(groupId);
107 }
108
109 public static void deleteAllByGroup(long groupId)
110 throws com.liferay.portal.kernel.exception.PortalException {
111 getService().deleteAllByGroup(groupId);
112 }
113
114 public static void deleteAllByRepository(long repositoryId)
115 throws com.liferay.portal.kernel.exception.PortalException {
116 getService().deleteAllByRepository(repositoryId);
117 }
118
119 public static void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
120 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) {
121 getService().deleteDLFileEntryTypeDLFolder(fileEntryTypeId, dlFolder);
122 }
123
124 public static void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
125 long folderId) {
126 getService().deleteDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
127 }
128
129 public static void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
130 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders) {
131 getService().deleteDLFileEntryTypeDLFolders(fileEntryTypeId, DLFolders);
132 }
133
134 public static void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
135 long[] folderIds) {
136 getService().deleteDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
137 }
138
139
145 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
146 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) {
147 return getService().deleteDLFolder(dlFolder);
148 }
149
150
157 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
158 long folderId)
159 throws com.liferay.portal.kernel.exception.PortalException {
160 return getService().deleteDLFolder(folderId);
161 }
162
163 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
164 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
165 throws com.liferay.portal.kernel.exception.PortalException {
166 return getService().deleteFolder(dlFolder);
167 }
168
169 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
170 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
171 boolean includeTrashedEntries)
172 throws com.liferay.portal.kernel.exception.PortalException {
173 return getService().deleteFolder(dlFolder, includeTrashedEntries);
174 }
175
176 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
177 long folderId)
178 throws com.liferay.portal.kernel.exception.PortalException {
179 return getService().deleteFolder(folderId);
180 }
181
182 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
183 long folderId, boolean includeTrashedEntries)
184 throws com.liferay.portal.kernel.exception.PortalException {
185 return getService().deleteFolder(folderId, includeTrashedEntries);
186 }
187
188 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
189 long userId, long folderId, boolean includeTrashedEntries)
190 throws com.liferay.portal.kernel.exception.PortalException {
191 return getService().deleteFolder(userId, folderId, includeTrashedEntries);
192 }
193
194
197 public static com.liferay.portal.model.PersistedModel deletePersistedModel(
198 com.liferay.portal.model.PersistedModel persistedModel)
199 throws com.liferay.portal.kernel.exception.PortalException {
200 return getService().deletePersistedModel(persistedModel);
201 }
202
203 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
204 return getService().dynamicQuery();
205 }
206
207
213 public static <T> java.util.List<T> dynamicQuery(
214 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
215 return getService().dynamicQuery(dynamicQuery);
216 }
217
218
230 public static <T> java.util.List<T> dynamicQuery(
231 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
232 int end) {
233 return getService().dynamicQuery(dynamicQuery, start, end);
234 }
235
236
249 public static <T> java.util.List<T> dynamicQuery(
250 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
251 int end,
252 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
253 return getService()
254 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
255 }
256
257
263 public static long dynamicQueryCount(
264 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
265 return getService().dynamicQueryCount(dynamicQuery);
266 }
267
268
275 public static long dynamicQueryCount(
276 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
277 com.liferay.portal.kernel.dao.orm.Projection projection) {
278 return getService().dynamicQueryCount(dynamicQuery, projection);
279 }
280
281 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolder(
282 long folderId) {
283 return getService().fetchDLFolder(folderId);
284 }
285
286
293 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolderByUuidAndGroupId(
294 java.lang.String uuid, long groupId) {
295 return getService().fetchDLFolderByUuidAndGroupId(uuid, groupId);
296 }
297
298 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
299 long folderId) {
300 return getService().fetchFolder(folderId);
301 }
302
303 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
304 long groupId, long parentFolderId, java.lang.String name) {
305 return getService().fetchFolder(groupId, parentFolderId, name);
306 }
307
308 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
309 return getService().getActionableDynamicQuery();
310 }
311
312 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
313 long companyId, int start, int end) {
314 return getService().getCompanyFolders(companyId, start, end);
315 }
316
317 public static int getCompanyFoldersCount(long companyId) {
318 return getService().getCompanyFoldersCount(companyId);
319 }
320
321 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
322 long fileEntryTypeId) {
323 return getService().getDLFileEntryTypeDLFolders(fileEntryTypeId);
324 }
325
326 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
327 long fileEntryTypeId, int start, int end) {
328 return getService()
329 .getDLFileEntryTypeDLFolders(fileEntryTypeId, start, end);
330 }
331
332 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
333 long fileEntryTypeId, int start, int end,
334 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> orderByComparator) {
335 return getService()
336 .getDLFileEntryTypeDLFolders(fileEntryTypeId, start, end,
337 orderByComparator);
338 }
339
340 public static int getDLFileEntryTypeDLFoldersCount(long fileEntryTypeId) {
341 return getService().getDLFileEntryTypeDLFoldersCount(fileEntryTypeId);
342 }
343
344
350 public static long[] getDLFileEntryTypePrimaryKeys(long folderId) {
351 return getService().getDLFileEntryTypePrimaryKeys(folderId);
352 }
353
354
361 public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder(
362 long folderId)
363 throws com.liferay.portal.kernel.exception.PortalException {
364 return getService().getDLFolder(folderId);
365 }
366
367
375 public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndGroupId(
376 java.lang.String uuid, long groupId)
377 throws com.liferay.portal.kernel.exception.PortalException {
378 return getService().getDLFolderByUuidAndGroupId(uuid, groupId);
379 }
380
381
392 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
393 int start, int end) {
394 return getService().getDLFolders(start, end);
395 }
396
397
404 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFoldersByUuidAndCompanyId(
405 java.lang.String uuid, long companyId) {
406 return getService().getDLFoldersByUuidAndCompanyId(uuid, companyId);
407 }
408
409
419 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFoldersByUuidAndCompanyId(
420 java.lang.String uuid, long companyId, int start, int end,
421 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> orderByComparator) {
422 return getService()
423 .getDLFoldersByUuidAndCompanyId(uuid, companyId, start, end,
424 orderByComparator);
425 }
426
427
432 public static int getDLFoldersCount() {
433 return getService().getDLFoldersCount();
434 }
435
436 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
437 com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
438 return getService().getExportActionableDynamicQuery(portletDataContext);
439 }
440
441 public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
442 long groupId, long folderId,
443 com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
444 return getService()
445 .getFileEntriesAndFileShortcuts(groupId, folderId,
446 queryDefinition);
447 }
448
449 public static int getFileEntriesAndFileShortcutsCount(long groupId,
450 long folderId,
451 com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
452 return getService()
453 .getFileEntriesAndFileShortcutsCount(groupId, folderId,
454 queryDefinition);
455 }
456
457 public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
458 long folderId)
459 throws com.liferay.portal.kernel.exception.PortalException {
460 return getService().getFolder(folderId);
461 }
462
463 public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
464 long groupId, long parentFolderId, java.lang.String name)
465 throws com.liferay.portal.kernel.exception.PortalException {
466 return getService().getFolder(groupId, parentFolderId, name);
467 }
468
469 public static long getFolderId(long companyId, long folderId) {
470 return getService().getFolderId(companyId, folderId);
471 }
472
473
477 @Deprecated
478 public static java.util.List<java.lang.Long> getFolderIds(long groupId,
479 long parentFolderId) {
480 return getService().getFolderIds(groupId, parentFolderId);
481 }
482
483 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
484 long groupId, long parentFolderId) {
485 return getService().getFolders(groupId, parentFolderId);
486 }
487
488 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
489 long groupId, long parentFolderId, boolean includeMountfolders) {
490 return getService()
491 .getFolders(groupId, parentFolderId, includeMountfolders);
492 }
493
494 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
495 long groupId, long parentFolderId, boolean includeMountfolders,
496 int start, int end,
497 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc) {
498 return getService()
499 .getFolders(groupId, parentFolderId, includeMountfolders,
500 start, end, obc);
501 }
502
503 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
504 long groupId, long parentFolderId, int start, int end,
505 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc) {
506 return getService().getFolders(groupId, parentFolderId, start, end, obc);
507 }
508
509 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
510 long groupId, long parentFolderId, int status,
511 boolean includeMountfolders, int start, int end,
512 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc) {
513 return getService()
514 .getFolders(groupId, parentFolderId, status,
515 includeMountfolders, start, end, obc);
516 }
517
518 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
519 long groupId, long folderId, java.lang.String[] mimeTypes,
520 boolean includeMountFolders,
521 com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
522 return getService()
523 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
524 mimeTypes, includeMountFolders, queryDefinition);
525 }
526
527 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
528 long groupId, long folderId, java.lang.String[] mimeTypes,
529 boolean includeMountFolders,
530 com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
531 return getService()
532 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
533 folderId, mimeTypes, includeMountFolders, queryDefinition);
534 }
535
536 public static int getFoldersCount(long groupId, long parentFolderId) {
537 return getService().getFoldersCount(groupId, parentFolderId);
538 }
539
540 public static int getFoldersCount(long groupId, long parentFolderId,
541 boolean includeMountfolders) {
542 return getService()
543 .getFoldersCount(groupId, parentFolderId, includeMountfolders);
544 }
545
546 public static int getFoldersCount(long groupId, long parentFolderId,
547 int status, boolean includeMountfolders) {
548 return getService()
549 .getFoldersCount(groupId, parentFolderId, status,
550 includeMountfolders);
551 }
552
553 public static java.util.List<java.lang.Long> getGroupFolderIds(
554 long groupId, long parentFolderId) {
555 return getService().getGroupFolderIds(groupId, parentFolderId);
556 }
557
558 public static void getGroupSubfolderIds(
559 java.util.List<java.lang.Long> folderIds, long groupId, long folderId) {
560 getService().getGroupSubfolderIds(folderIds, groupId, folderId);
561 }
562
563 public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
564 return getService().getIndexableActionableDynamicQuery();
565 }
566
567 public static com.liferay.portlet.documentlibrary.model.DLFolder getMountFolder(
568 long repositoryId)
569 throws com.liferay.portal.kernel.exception.PortalException {
570 return getService().getMountFolder(repositoryId);
571 }
572
573 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
574 long groupId, long parentFolderId, int start, int end,
575 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc) {
576 return getService()
577 .getMountFolders(groupId, parentFolderId, start, end, obc);
578 }
579
580 public static int getMountFoldersCount(long groupId, long parentFolderId) {
581 return getService().getMountFoldersCount(groupId, parentFolderId);
582 }
583
584 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getNoAssetFolders() {
585 return getService().getNoAssetFolders();
586 }
587
588
593 public static java.lang.String getOSGiServiceIdentifier() {
594 return getService().getOSGiServiceIdentifier();
595 }
596
597 public static com.liferay.portal.model.PersistedModel getPersistedModel(
598 java.io.Serializable primaryKeyObj)
599 throws com.liferay.portal.kernel.exception.PortalException {
600 return getService().getPersistedModel(primaryKeyObj);
601 }
602
603 public static java.util.List<java.lang.Long> getRepositoryFolderIds(
604 long repositoryId, long parentFolderId) {
605 return getService().getRepositoryFolderIds(repositoryId, parentFolderId);
606 }
607
608 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getRepositoryFolders(
609 long repositoryId, int start, int end) {
610 return getService().getRepositoryFolders(repositoryId, start, end);
611 }
612
613 public static int getRepositoryFoldersCount(long repositoryId) {
614 return getService().getRepositoryFoldersCount(repositoryId);
615 }
616
617 public static void getRepositorySubfolderIds(
618 java.util.List<java.lang.Long> folderIds, long repositoryId,
619 long folderId) {
620 getService().getRepositorySubfolderIds(folderIds, repositoryId, folderId);
621 }
622
623
627 @Deprecated
628 public static void getSubfolderIds(
629 java.util.List<java.lang.Long> folderIds, long groupId, long folderId) {
630 getService().getSubfolderIds(folderIds, groupId, folderId);
631 }
632
633 public static boolean hasDLFileEntryTypeDLFolder(long fileEntryTypeId,
634 long folderId) {
635 return getService().hasDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
636 }
637
638 public static boolean hasDLFileEntryTypeDLFolders(long fileEntryTypeId) {
639 return getService().hasDLFileEntryTypeDLFolders(fileEntryTypeId);
640 }
641
642 public static boolean hasFolderLock(long userId, long folderId) {
643 return getService().hasFolderLock(userId, folderId);
644 }
645
646 public static boolean hasInheritableLock(long folderId)
647 throws com.liferay.portal.kernel.exception.PortalException {
648 return getService().hasInheritableLock(folderId);
649 }
650
651 public static com.liferay.portal.kernel.lock.Lock lockFolder(long userId,
652 long folderId)
653 throws com.liferay.portal.kernel.exception.PortalException {
654 return getService().lockFolder(userId, folderId);
655 }
656
657 public static com.liferay.portal.kernel.lock.Lock lockFolder(long userId,
658 long folderId, java.lang.String owner, boolean inheritable,
659 long expirationTime)
660 throws com.liferay.portal.kernel.exception.PortalException {
661 return getService()
662 .lockFolder(userId, folderId, owner, inheritable,
663 expirationTime);
664 }
665
666 public static com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
667 long userId, long folderId, long parentFolderId,
668 com.liferay.portal.service.ServiceContext serviceContext)
669 throws com.liferay.portal.kernel.exception.PortalException {
670 return getService()
671 .moveFolder(userId, folderId, parentFolderId, serviceContext);
672 }
673
674 public static void rebuildTree(long companyId)
675 throws com.liferay.portal.kernel.exception.PortalException {
676 getService().rebuildTree(companyId);
677 }
678
679 public static void rebuildTree(long companyId, long parentFolderId,
680 java.lang.String parentTreePath, boolean reindex)
681 throws com.liferay.portal.kernel.exception.PortalException {
682 getService()
683 .rebuildTree(companyId, parentFolderId, parentTreePath, reindex);
684 }
685
686 public static void setDLFileEntryTypeDLFolders(long fileEntryTypeId,
687 long[] folderIds) {
688 getService().setDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
689 }
690
691 public static void unlockFolder(long folderId, java.lang.String lockUuid)
692 throws com.liferay.portal.kernel.exception.PortalException {
693 getService().unlockFolder(folderId, lockUuid);
694 }
695
696 public static void unlockFolder(long groupId, long parentFolderId,
697 java.lang.String name, java.lang.String lockUuid)
698 throws com.liferay.portal.kernel.exception.PortalException {
699 getService().unlockFolder(groupId, parentFolderId, name, lockUuid);
700 }
701
702
708 public static com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
709 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) {
710 return getService().updateDLFolder(dlFolder);
711 }
712
713
717 @Deprecated
718 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
719 long folderId, java.lang.String name, java.lang.String description,
720 long defaultFileEntryTypeId,
721 java.util.List<java.lang.Long> fileEntryTypeIds,
722 boolean overrideFileEntryTypes,
723 com.liferay.portal.service.ServiceContext serviceContext)
724 throws com.liferay.portal.kernel.exception.PortalException {
725 return getService()
726 .updateFolder(folderId, name, description,
727 defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
728 serviceContext);
729 }
730
731 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
732 long folderId, java.lang.String name, java.lang.String description,
733 long defaultFileEntryTypeId,
734 java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
735 com.liferay.portal.service.ServiceContext serviceContext)
736 throws com.liferay.portal.kernel.exception.PortalException {
737 return getService()
738 .updateFolder(folderId, name, description,
739 defaultFileEntryTypeId, fileEntryTypeIds, restrictionType,
740 serviceContext);
741 }
742
743
747 @Deprecated
748 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
749 long folderId, long parentFolderId, java.lang.String name,
750 java.lang.String description, long defaultFileEntryTypeId,
751 java.util.List<java.lang.Long> fileEntryTypeIds,
752 boolean overrideFileEntryTypes,
753 com.liferay.portal.service.ServiceContext serviceContext)
754 throws com.liferay.portal.kernel.exception.PortalException {
755 return getService()
756 .updateFolder(folderId, parentFolderId, name, description,
757 defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
758 serviceContext);
759 }
760
761 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
762 long folderId, long parentFolderId, java.lang.String name,
763 java.lang.String description, long defaultFileEntryTypeId,
764 java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
765 com.liferay.portal.service.ServiceContext serviceContext)
766 throws com.liferay.portal.kernel.exception.PortalException {
767 return getService()
768 .updateFolder(folderId, parentFolderId, name, description,
769 defaultFileEntryTypeId, fileEntryTypeIds, restrictionType,
770 serviceContext);
771 }
772
773
778 @Deprecated
779 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
780 long userId, long folderId, long parentFolderId, java.lang.String name,
781 java.lang.String description, long defaultFileEntryTypeId,
782 java.util.List<java.lang.Long> fileEntryTypeIds,
783 boolean overrideFileEntryTypes,
784 com.liferay.portal.service.ServiceContext serviceContext)
785 throws com.liferay.portal.kernel.exception.PortalException {
786 return getService()
787 .updateFolderAndFileEntryTypes(userId, folderId,
788 parentFolderId, name, description, defaultFileEntryTypeId,
789 fileEntryTypeIds, overrideFileEntryTypes, serviceContext);
790 }
791
792 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
793 long userId, long folderId, long parentFolderId, java.lang.String name,
794 java.lang.String description, long defaultFileEntryTypeId,
795 java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
796 com.liferay.portal.service.ServiceContext serviceContext)
797 throws com.liferay.portal.kernel.exception.PortalException {
798 return getService()
799 .updateFolderAndFileEntryTypes(userId, folderId,
800 parentFolderId, name, description, defaultFileEntryTypeId,
801 fileEntryTypeIds, restrictionType, serviceContext);
802 }
803
804 public static void updateLastPostDate(long folderId,
805 java.util.Date lastPostDate)
806 throws com.liferay.portal.kernel.exception.PortalException {
807 getService().updateLastPostDate(folderId, lastPostDate);
808 }
809
810 public static com.liferay.portlet.documentlibrary.model.DLFolder updateStatus(
811 long userId, long folderId, int status,
812 java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
813 com.liferay.portal.service.ServiceContext serviceContext)
814 throws com.liferay.portal.kernel.exception.PortalException {
815 return getService()
816 .updateStatus(userId, folderId, status, workflowContext,
817 serviceContext);
818 }
819
820 public static boolean verifyInheritableLock(long folderId,
821 java.lang.String lockUuid)
822 throws com.liferay.portal.kernel.exception.PortalException {
823 return getService().verifyInheritableLock(folderId, lockUuid);
824 }
825
826 public static DLFolderLocalService getService() {
827 if (_service == null) {
828 _service = (DLFolderLocalService)PortalBeanLocatorUtil.locate(DLFolderLocalService.class.getName());
829
830 ReferenceRegistry.registerReference(DLFolderLocalServiceUtil.class,
831 "_service");
832 }
833
834 return _service;
835 }
836
837 private static DLFolderLocalService _service;
838 }