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 public static void deleteAll(long groupId)
118 throws com.liferay.portal.kernel.exception.PortalException {
119 getService().deleteAll(groupId);
120 }
121
122 public static void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
123 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) {
124 getService().deleteDLFileEntryTypeDLFolder(fileEntryTypeId, dlFolder);
125 }
126
127 public static void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
128 long folderId) {
129 getService().deleteDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
130 }
131
132 public static void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
133 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders) {
134 getService().deleteDLFileEntryTypeDLFolders(fileEntryTypeId, DLFolders);
135 }
136
137 public static void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
138 long[] folderIds) {
139 getService().deleteDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
140 }
141
142
148 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
149 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) {
150 return getService().deleteDLFolder(dlFolder);
151 }
152
153
160 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
161 long folderId)
162 throws com.liferay.portal.kernel.exception.PortalException {
163 return getService().deleteDLFolder(folderId);
164 }
165
166 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
167 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
168 throws com.liferay.portal.kernel.exception.PortalException {
169 return getService().deleteFolder(dlFolder);
170 }
171
172 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
173 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
174 boolean includeTrashedEntries)
175 throws com.liferay.portal.kernel.exception.PortalException {
176 return getService().deleteFolder(dlFolder, includeTrashedEntries);
177 }
178
179 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
180 long folderId)
181 throws com.liferay.portal.kernel.exception.PortalException {
182 return getService().deleteFolder(folderId);
183 }
184
185 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
186 long folderId, boolean includeTrashedEntries)
187 throws com.liferay.portal.kernel.exception.PortalException {
188 return getService().deleteFolder(folderId, includeTrashedEntries);
189 }
190
191 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
192 long userId, long folderId, boolean includeTrashedEntries)
193 throws com.liferay.portal.kernel.exception.PortalException {
194 return getService().deleteFolder(userId, folderId, includeTrashedEntries);
195 }
196
197
200 public static com.liferay.portal.model.PersistedModel deletePersistedModel(
201 com.liferay.portal.model.PersistedModel persistedModel)
202 throws com.liferay.portal.kernel.exception.PortalException {
203 return getService().deletePersistedModel(persistedModel);
204 }
205
206 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
207 return getService().dynamicQuery();
208 }
209
210
216 public static <T> java.util.List<T> dynamicQuery(
217 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
218 return getService().dynamicQuery(dynamicQuery);
219 }
220
221
233 public static <T> java.util.List<T> dynamicQuery(
234 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
235 int end) {
236 return getService().dynamicQuery(dynamicQuery, start, end);
237 }
238
239
252 public static <T> java.util.List<T> dynamicQuery(
253 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
254 int end,
255 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
256 return getService()
257 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
258 }
259
260
266 public static long dynamicQueryCount(
267 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
268 return getService().dynamicQueryCount(dynamicQuery);
269 }
270
271
278 public static long dynamicQueryCount(
279 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
280 com.liferay.portal.kernel.dao.orm.Projection projection) {
281 return getService().dynamicQueryCount(dynamicQuery, projection);
282 }
283
284 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolder(
285 long folderId) {
286 return getService().fetchDLFolder(folderId);
287 }
288
289
296 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolderByUuidAndGroupId(
297 java.lang.String uuid, long groupId) {
298 return getService().fetchDLFolderByUuidAndGroupId(uuid, groupId);
299 }
300
301 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
302 long folderId) {
303 return getService().fetchFolder(folderId);
304 }
305
306 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
307 long groupId, long parentFolderId, java.lang.String name) {
308 return getService().fetchFolder(groupId, parentFolderId, name);
309 }
310
311 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
312 return getService().getActionableDynamicQuery();
313 }
314
315
320 public static java.lang.String getBeanIdentifier() {
321 return getService().getBeanIdentifier();
322 }
323
324 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
325 long companyId, int start, int end) {
326 return getService().getCompanyFolders(companyId, start, end);
327 }
328
329 public static int getCompanyFoldersCount(long companyId) {
330 return getService().getCompanyFoldersCount(companyId);
331 }
332
333 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
334 long fileEntryTypeId) {
335 return getService().getDLFileEntryTypeDLFolders(fileEntryTypeId);
336 }
337
338 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
339 long fileEntryTypeId, int start, int end) {
340 return getService()
341 .getDLFileEntryTypeDLFolders(fileEntryTypeId, start, end);
342 }
343
344 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
345 long fileEntryTypeId, int start, int end,
346 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> orderByComparator) {
347 return getService()
348 .getDLFileEntryTypeDLFolders(fileEntryTypeId, start, end,
349 orderByComparator);
350 }
351
352 public static int getDLFileEntryTypeDLFoldersCount(long fileEntryTypeId) {
353 return getService().getDLFileEntryTypeDLFoldersCount(fileEntryTypeId);
354 }
355
356
362 public static long[] getDLFileEntryTypePrimaryKeys(long folderId) {
363 return getService().getDLFileEntryTypePrimaryKeys(folderId);
364 }
365
366
373 public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder(
374 long folderId)
375 throws com.liferay.portal.kernel.exception.PortalException {
376 return getService().getDLFolder(folderId);
377 }
378
379
387 public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndGroupId(
388 java.lang.String uuid, long groupId)
389 throws com.liferay.portal.kernel.exception.PortalException {
390 return getService().getDLFolderByUuidAndGroupId(uuid, groupId);
391 }
392
393
404 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
405 int start, int end) {
406 return getService().getDLFolders(start, end);
407 }
408
409 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFoldersByUuidAndCompanyId(
410 java.lang.String uuid, long companyId) {
411 return getService().getDLFoldersByUuidAndCompanyId(uuid, companyId);
412 }
413
414 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFoldersByUuidAndCompanyId(
415 java.lang.String uuid, long companyId, int start, int end,
416 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> orderByComparator) {
417 return getService()
418 .getDLFoldersByUuidAndCompanyId(uuid, companyId, start, end,
419 orderByComparator);
420 }
421
422
427 public static int getDLFoldersCount() {
428 return getService().getDLFoldersCount();
429 }
430
431 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
432 com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) {
433 return getService().getExportActionableDynamicQuery(portletDataContext);
434 }
435
436 public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
437 long groupId, long folderId,
438 com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
439 return getService()
440 .getFileEntriesAndFileShortcuts(groupId, folderId,
441 queryDefinition);
442 }
443
444
448 @Deprecated
449 public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
450 long groupId, long folderId, int status, int start, int end) {
451 return getService()
452 .getFileEntriesAndFileShortcuts(groupId, folderId, status,
453 start, end);
454 }
455
456 public static int getFileEntriesAndFileShortcutsCount(long groupId,
457 long folderId,
458 com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
459 return getService()
460 .getFileEntriesAndFileShortcutsCount(groupId, folderId,
461 queryDefinition);
462 }
463
464
469 @Deprecated
470 public static int getFileEntriesAndFileShortcutsCount(long groupId,
471 long folderId, int status) {
472 return getService()
473 .getFileEntriesAndFileShortcutsCount(groupId, folderId,
474 status);
475 }
476
477 public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
478 long folderId)
479 throws com.liferay.portal.kernel.exception.PortalException {
480 return getService().getFolder(folderId);
481 }
482
483 public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
484 long groupId, long parentFolderId, java.lang.String name)
485 throws com.liferay.portal.kernel.exception.PortalException {
486 return getService().getFolder(groupId, parentFolderId, name);
487 }
488
489 public static long getFolderId(long companyId, long folderId) {
490 return getService().getFolderId(companyId, folderId);
491 }
492
493 public static java.util.List<java.lang.Long> getFolderIds(long groupId,
494 long parentFolderId) {
495 return getService().getFolderIds(groupId, parentFolderId);
496 }
497
498 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
499 long groupId, long parentFolderId) {
500 return getService().getFolders(groupId, parentFolderId);
501 }
502
503 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
504 long groupId, long parentFolderId, boolean includeMountfolders) {
505 return getService()
506 .getFolders(groupId, parentFolderId, includeMountfolders);
507 }
508
509 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
510 long groupId, long parentFolderId, boolean includeMountfolders,
511 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, includeMountfolders,
515 start, end, obc);
516 }
517
518 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
519 long groupId, long parentFolderId, int start, int end,
520 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc) {
521 return getService().getFolders(groupId, parentFolderId, start, end, obc);
522 }
523
524 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
525 long groupId, long folderId, java.lang.String[] mimeTypes,
526 boolean includeMountFolders,
527 com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
528 return getService()
529 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
530 mimeTypes, includeMountFolders, queryDefinition);
531 }
532
533
538 @Deprecated
539 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
540 long groupId, long folderId, int status, boolean includeMountFolders,
541 int start, int end,
542 com.liferay.portal.kernel.util.OrderByComparator<?> obc) {
543 return getService()
544 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
545 status, includeMountFolders, start, end, obc);
546 }
547
548
553 @Deprecated
554 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
555 long groupId, long folderId, int status, java.lang.String[] mimeTypes,
556 boolean includeMountFolders, int start, int end,
557 com.liferay.portal.kernel.util.OrderByComparator<?> obc) {
558 return getService()
559 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
560 status, mimeTypes, includeMountFolders, start, end, obc);
561 }
562
563 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
564 long groupId, long folderId, java.lang.String[] mimeTypes,
565 boolean includeMountFolders,
566 com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
567 return getService()
568 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
569 folderId, mimeTypes, includeMountFolders, queryDefinition);
570 }
571
572
577 @Deprecated
578 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
579 long groupId, long folderId, int status, boolean includeMountFolders) {
580 return getService()
581 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
582 folderId, status, includeMountFolders);
583 }
584
585
590 @Deprecated
591 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
592 long groupId, long folderId, int status, java.lang.String[] mimeTypes,
593 boolean includeMountFolders) {
594 return getService()
595 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
596 folderId, status, mimeTypes, includeMountFolders);
597 }
598
599 public static int getFoldersCount(long groupId, long parentFolderId) {
600 return getService().getFoldersCount(groupId, parentFolderId);
601 }
602
603 public static int getFoldersCount(long groupId, long parentFolderId,
604 boolean includeMountfolders) {
605 return getService()
606 .getFoldersCount(groupId, parentFolderId, includeMountfolders);
607 }
608
609 public static int getFoldersCount(long groupId, long parentFolderId,
610 int status, boolean includeMountfolders) {
611 return getService()
612 .getFoldersCount(groupId, parentFolderId, status,
613 includeMountfolders);
614 }
615
616 public static com.liferay.portlet.documentlibrary.model.DLFolder getMountFolder(
617 long repositoryId)
618 throws com.liferay.portal.kernel.exception.PortalException {
619 return getService().getMountFolder(repositoryId);
620 }
621
622 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
623 long groupId, long parentFolderId, int start, int end,
624 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc) {
625 return getService()
626 .getMountFolders(groupId, parentFolderId, start, end, obc);
627 }
628
629 public static int getMountFoldersCount(long groupId, long parentFolderId) {
630 return getService().getMountFoldersCount(groupId, parentFolderId);
631 }
632
633 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getNoAssetFolders() {
634 return getService().getNoAssetFolders();
635 }
636
637 public static com.liferay.portal.model.PersistedModel getPersistedModel(
638 java.io.Serializable primaryKeyObj)
639 throws com.liferay.portal.kernel.exception.PortalException {
640 return getService().getPersistedModel(primaryKeyObj);
641 }
642
643 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getRepositoryFolders(
644 long repositoryId, int start, int end) {
645 return getService().getRepositoryFolders(repositoryId, start, end);
646 }
647
648 public static int getRepositoryFoldersCount(long repositoryId) {
649 return getService().getRepositoryFoldersCount(repositoryId);
650 }
651
652 public static void getSubfolderIds(
653 java.util.List<java.lang.Long> folderIds, long groupId, long folderId) {
654 getService().getSubfolderIds(folderIds, groupId, folderId);
655 }
656
657 public static boolean hasDLFileEntryTypeDLFolder(long fileEntryTypeId,
658 long folderId) {
659 return getService().hasDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
660 }
661
662 public static boolean hasDLFileEntryTypeDLFolders(long fileEntryTypeId) {
663 return getService().hasDLFileEntryTypeDLFolders(fileEntryTypeId);
664 }
665
666 public static boolean hasFolderLock(long userId, long folderId) {
667 return getService().hasFolderLock(userId, folderId);
668 }
669
670 public static com.liferay.portal.model.Lock lockFolder(long userId,
671 long folderId)
672 throws com.liferay.portal.kernel.exception.PortalException {
673 return getService().lockFolder(userId, folderId);
674 }
675
676 public static com.liferay.portal.model.Lock lockFolder(long userId,
677 long folderId, java.lang.String owner, boolean inheritable,
678 long expirationTime)
679 throws com.liferay.portal.kernel.exception.PortalException {
680 return getService()
681 .lockFolder(userId, folderId, owner, inheritable,
682 expirationTime);
683 }
684
685 public static com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
686 long userId, long folderId, long parentFolderId,
687 com.liferay.portal.service.ServiceContext serviceContext)
688 throws com.liferay.portal.kernel.exception.PortalException {
689 return getService()
690 .moveFolder(userId, folderId, parentFolderId, serviceContext);
691 }
692
693 public static void rebuildTree(long companyId)
694 throws com.liferay.portal.kernel.exception.PortalException {
695 getService().rebuildTree(companyId);
696 }
697
698 public static void rebuildTree(long companyId, long parentFolderId,
699 java.lang.String parentTreePath, boolean reindex)
700 throws com.liferay.portal.kernel.exception.PortalException {
701 getService()
702 .rebuildTree(companyId, parentFolderId, parentTreePath, reindex);
703 }
704
705
710 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
711 getService().setBeanIdentifier(beanIdentifier);
712 }
713
714 public static void setDLFileEntryTypeDLFolders(long fileEntryTypeId,
715 long[] folderIds) {
716 getService().setDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
717 }
718
719 public static void unlockFolder(long folderId, java.lang.String lockUuid)
720 throws com.liferay.portal.kernel.exception.PortalException {
721 getService().unlockFolder(folderId, lockUuid);
722 }
723
724 public static void unlockFolder(long groupId, long parentFolderId,
725 java.lang.String name, java.lang.String lockUuid)
726 throws com.liferay.portal.kernel.exception.PortalException {
727 getService().unlockFolder(groupId, parentFolderId, name, lockUuid);
728 }
729
730
736 public static com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
737 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) {
738 return getService().updateDLFolder(dlFolder);
739 }
740
741 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
742 long folderId, java.lang.String name, java.lang.String description,
743 long defaultFileEntryTypeId,
744 java.util.List<java.lang.Long> fileEntryTypeIds,
745 boolean overrideFileEntryTypes,
746 com.liferay.portal.service.ServiceContext serviceContext)
747 throws com.liferay.portal.kernel.exception.PortalException {
748 return getService()
749 .updateFolder(folderId, name, description,
750 defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
751 serviceContext);
752 }
753
754 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
755 long folderId, long parentFolderId, java.lang.String name,
756 java.lang.String description, long defaultFileEntryTypeId,
757 java.util.List<java.lang.Long> fileEntryTypeIds,
758 boolean overrideFileEntryTypes,
759 com.liferay.portal.service.ServiceContext serviceContext)
760 throws com.liferay.portal.kernel.exception.PortalException {
761 return getService()
762 .updateFolder(folderId, parentFolderId, name, description,
763 defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
764 serviceContext);
765 }
766
767 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
768 long userId, long folderId, long parentFolderId, java.lang.String name,
769 java.lang.String description, long defaultFileEntryTypeId,
770 java.util.List<java.lang.Long> fileEntryTypeIds,
771 boolean overrideFileEntryTypes,
772 com.liferay.portal.service.ServiceContext serviceContext)
773 throws com.liferay.portal.kernel.exception.PortalException {
774 return getService()
775 .updateFolderAndFileEntryTypes(userId, folderId,
776 parentFolderId, name, description, defaultFileEntryTypeId,
777 fileEntryTypeIds, overrideFileEntryTypes, serviceContext);
778 }
779
780 public static void updateLastPostDate(long folderId,
781 java.util.Date lastPostDate)
782 throws com.liferay.portal.kernel.exception.PortalException {
783 getService().updateLastPostDate(folderId, lastPostDate);
784 }
785
786 public static com.liferay.portlet.documentlibrary.model.DLFolder updateStatus(
787 long userId, long folderId, int status,
788 java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
789 com.liferay.portal.service.ServiceContext serviceContext)
790 throws com.liferay.portal.kernel.exception.PortalException {
791 return getService()
792 .updateStatus(userId, folderId, status, workflowContext,
793 serviceContext);
794 }
795
796 public static DLFolderLocalService getService() {
797 if (_service == null) {
798 _service = (DLFolderLocalService)PortalBeanLocatorUtil.locate(DLFolderLocalService.class.getName());
799
800 ReferenceRegistry.registerReference(DLFolderLocalServiceUtil.class,
801 "_service");
802 }
803
804 return _service;
805 }
806
807
810 @Deprecated
811 public void setService(DLFolderLocalService service) {
812 }
813
814 private static DLFolderLocalService _service;
815 }