001
014
015 package com.liferay.portlet.documentlibrary.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class DLFolderLocalServiceUtil {
034
039
040
047 public static com.liferay.portlet.documentlibrary.model.DLFolder addDLFolder(
048 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addDLFolder(dlFolder);
051 }
052
053
059 public static com.liferay.portlet.documentlibrary.model.DLFolder createDLFolder(
060 long folderId) {
061 return getService().createDLFolder(folderId);
062 }
063
064
072 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
073 long folderId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().deleteDLFolder(folderId);
077 }
078
079
086 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
087 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return getService().deleteDLFolder(dlFolder);
090 }
091
092 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093 return getService().dynamicQuery();
094 }
095
096
103 @SuppressWarnings("rawtypes")
104 public static java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().dynamicQuery(dynamicQuery);
108 }
109
110
123 @SuppressWarnings("rawtypes")
124 public static java.util.List dynamicQuery(
125 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126 int end) throws com.liferay.portal.kernel.exception.SystemException {
127 return getService().dynamicQuery(dynamicQuery, start, end);
128 }
129
130
144 @SuppressWarnings("rawtypes")
145 public static java.util.List dynamicQuery(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147 int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getService()
151 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
152 }
153
154
161 public static long dynamicQueryCount(
162 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().dynamicQueryCount(dynamicQuery);
165 }
166
167 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolder(
168 long folderId)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().fetchDLFolder(folderId);
171 }
172
173
181 public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder(
182 long folderId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getDLFolder(folderId);
186 }
187
188 public static com.liferay.portal.model.PersistedModel getPersistedModel(
189 java.io.Serializable primaryKeyObj)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException {
192 return getService().getPersistedModel(primaryKeyObj);
193 }
194
195
204 public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndGroupId(
205 java.lang.String uuid, long groupId)
206 throws com.liferay.portal.kernel.exception.PortalException,
207 com.liferay.portal.kernel.exception.SystemException {
208 return getService().getDLFolderByUuidAndGroupId(uuid, groupId);
209 }
210
211
223 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
224 int start, int end)
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getService().getDLFolders(start, end);
227 }
228
229
235 public static int getDLFoldersCount()
236 throws com.liferay.portal.kernel.exception.SystemException {
237 return getService().getDLFoldersCount();
238 }
239
240
247 public static com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
248 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
249 throws com.liferay.portal.kernel.exception.SystemException {
250 return getService().updateDLFolder(dlFolder);
251 }
252
253
261 public static com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
262 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
263 boolean merge)
264 throws com.liferay.portal.kernel.exception.SystemException {
265 return getService().updateDLFolder(dlFolder, merge);
266 }
267
268
271 public static void addDLFileEntryTypeDLFolder(long fileEntryTypeId,
272 long folderId)
273 throws com.liferay.portal.kernel.exception.SystemException {
274 getService().addDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
275 }
276
277
280 public static void addDLFileEntryTypeDLFolder(long fileEntryTypeId,
281 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
282 throws com.liferay.portal.kernel.exception.SystemException {
283 getService().addDLFileEntryTypeDLFolder(fileEntryTypeId, dlFolder);
284 }
285
286
289 public static void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
290 long[] folderIds)
291 throws com.liferay.portal.kernel.exception.SystemException {
292 getService().addDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
293 }
294
295
298 public static void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
299 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders)
300 throws com.liferay.portal.kernel.exception.SystemException {
301 getService().addDLFileEntryTypeDLFolders(fileEntryTypeId, DLFolders);
302 }
303
304
307 public static void clearDLFileEntryTypeDLFolders(long fileEntryTypeId)
308 throws com.liferay.portal.kernel.exception.SystemException {
309 getService().clearDLFileEntryTypeDLFolders(fileEntryTypeId);
310 }
311
312
315 public static void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
316 long folderId)
317 throws com.liferay.portal.kernel.exception.SystemException {
318 getService().deleteDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
319 }
320
321
324 public static void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
325 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
326 throws com.liferay.portal.kernel.exception.SystemException {
327 getService().deleteDLFileEntryTypeDLFolder(fileEntryTypeId, dlFolder);
328 }
329
330
333 public static void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
334 long[] folderIds)
335 throws com.liferay.portal.kernel.exception.SystemException {
336 getService().deleteDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
337 }
338
339
342 public static void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
343 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders)
344 throws com.liferay.portal.kernel.exception.SystemException {
345 getService().deleteDLFileEntryTypeDLFolders(fileEntryTypeId, DLFolders);
346 }
347
348
351 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
352 long fileEntryTypeId)
353 throws com.liferay.portal.kernel.exception.SystemException {
354 return getService().getDLFileEntryTypeDLFolders(fileEntryTypeId);
355 }
356
357
360 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
361 long fileEntryTypeId, int start, int end)
362 throws com.liferay.portal.kernel.exception.SystemException {
363 return getService()
364 .getDLFileEntryTypeDLFolders(fileEntryTypeId, start, end);
365 }
366
367
370 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
371 long fileEntryTypeId, int start, int end,
372 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
373 throws com.liferay.portal.kernel.exception.SystemException {
374 return getService()
375 .getDLFileEntryTypeDLFolders(fileEntryTypeId, start, end,
376 orderByComparator);
377 }
378
379
382 public static int getDLFileEntryTypeDLFoldersCount(long fileEntryTypeId)
383 throws com.liferay.portal.kernel.exception.SystemException {
384 return getService().getDLFileEntryTypeDLFoldersCount(fileEntryTypeId);
385 }
386
387
390 public static boolean hasDLFileEntryTypeDLFolder(long fileEntryTypeId,
391 long folderId)
392 throws com.liferay.portal.kernel.exception.SystemException {
393 return getService().hasDLFileEntryTypeDLFolder(fileEntryTypeId, folderId);
394 }
395
396
399 public static boolean hasDLFileEntryTypeDLFolders(long fileEntryTypeId)
400 throws com.liferay.portal.kernel.exception.SystemException {
401 return getService().hasDLFileEntryTypeDLFolders(fileEntryTypeId);
402 }
403
404
407 public static void setDLFileEntryTypeDLFolders(long fileEntryTypeId,
408 long[] folderIds)
409 throws com.liferay.portal.kernel.exception.SystemException {
410 getService().setDLFileEntryTypeDLFolders(fileEntryTypeId, folderIds);
411 }
412
413
418 public static java.lang.String getBeanIdentifier() {
419 return getService().getBeanIdentifier();
420 }
421
422
427 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
428 getService().setBeanIdentifier(beanIdentifier);
429 }
430
431 public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
432 long userId, long groupId, long repositoryId, boolean mountPoint,
433 long parentFolderId, java.lang.String name,
434 java.lang.String description,
435 com.liferay.portal.service.ServiceContext serviceContext)
436 throws com.liferay.portal.kernel.exception.PortalException,
437 com.liferay.portal.kernel.exception.SystemException {
438 return getService()
439 .addFolder(userId, groupId, repositoryId, mountPoint,
440 parentFolderId, name, description, serviceContext);
441 }
442
443 public static void deleteAll(long groupId)
444 throws com.liferay.portal.kernel.exception.PortalException,
445 com.liferay.portal.kernel.exception.SystemException {
446 getService().deleteAll(groupId);
447 }
448
449 public static void deleteFolder(long folderId)
450 throws com.liferay.portal.kernel.exception.PortalException,
451 com.liferay.portal.kernel.exception.SystemException {
452 getService().deleteFolder(folderId);
453 }
454
455 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
456 long companyId, int start, int end)
457 throws com.liferay.portal.kernel.exception.SystemException {
458 return getService().getCompanyFolders(companyId, start, end);
459 }
460
461 public static int getCompanyFoldersCount(long companyId)
462 throws com.liferay.portal.kernel.exception.SystemException {
463 return getService().getCompanyFoldersCount(companyId);
464 }
465
466 public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
467 long groupId, long folderId, int status, int start, int end)
468 throws com.liferay.portal.kernel.exception.SystemException {
469 return getService()
470 .getFileEntriesAndFileShortcuts(groupId, folderId, status,
471 start, end);
472 }
473
474 public static int getFileEntriesAndFileShortcutsCount(long groupId,
475 long folderId, int status)
476 throws com.liferay.portal.kernel.exception.SystemException {
477 return getService()
478 .getFileEntriesAndFileShortcutsCount(groupId, folderId,
479 status);
480 }
481
482 public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
483 long folderId)
484 throws com.liferay.portal.kernel.exception.PortalException,
485 com.liferay.portal.kernel.exception.SystemException {
486 return getService().getFolder(folderId);
487 }
488
489 public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
490 long groupId, long parentFolderId, java.lang.String name)
491 throws com.liferay.portal.kernel.exception.PortalException,
492 com.liferay.portal.kernel.exception.SystemException {
493 return getService().getFolder(groupId, parentFolderId, name);
494 }
495
496 public static long getFolderId(long companyId, long folderId)
497 throws com.liferay.portal.kernel.exception.SystemException {
498 return getService().getFolderId(companyId, folderId);
499 }
500
501 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
502 long groupId, long parentFolderId)
503 throws com.liferay.portal.kernel.exception.SystemException {
504 return getService().getFolders(groupId, parentFolderId);
505 }
506
507 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
508 long groupId, long parentFolderId, boolean includeMountfolders)
509 throws com.liferay.portal.kernel.exception.SystemException {
510 return getService()
511 .getFolders(groupId, parentFolderId, includeMountfolders);
512 }
513
514 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
515 long groupId, long parentFolderId, boolean includeMountfolders,
516 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
517 throws com.liferay.portal.kernel.exception.SystemException {
518 return getService()
519 .getFolders(groupId, parentFolderId, includeMountfolders,
520 start, end, obc);
521 }
522
523 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
524 long groupId, long parentFolderId, int start, int end,
525 com.liferay.portal.kernel.util.OrderByComparator obc)
526 throws com.liferay.portal.kernel.exception.SystemException {
527 return getService().getFolders(groupId, parentFolderId, start, end, obc);
528 }
529
530 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
531 long groupId, long folderId, int status, boolean includeMountFolders,
532 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
533 throws com.liferay.portal.kernel.exception.SystemException {
534 return getService()
535 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
536 status, includeMountFolders, start, end, obc);
537 }
538
539 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
540 long groupId, long folderId, int status, java.lang.String[] mimeTypes,
541 boolean includeMountFolders, int start, int end,
542 com.liferay.portal.kernel.util.OrderByComparator obc)
543 throws com.liferay.portal.kernel.exception.SystemException {
544 return getService()
545 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
546 status, mimeTypes, includeMountFolders, start, end, obc);
547 }
548
549 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
550 long groupId, long folderId, int status, boolean includeMountFolders)
551 throws com.liferay.portal.kernel.exception.SystemException {
552 return getService()
553 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
554 folderId, status, includeMountFolders);
555 }
556
557 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
558 long groupId, long folderId, int status, java.lang.String[] mimeTypes,
559 boolean includeMountFolders)
560 throws com.liferay.portal.kernel.exception.SystemException {
561 return getService()
562 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
563 folderId, status, mimeTypes, includeMountFolders);
564 }
565
566 public static int getFoldersCount(long groupId, long parentFolderId)
567 throws com.liferay.portal.kernel.exception.SystemException {
568 return getService().getFoldersCount(groupId, parentFolderId);
569 }
570
571 public static int getFoldersCount(long groupId, long parentFolderId,
572 boolean includeMountfolders)
573 throws com.liferay.portal.kernel.exception.SystemException {
574 return getService()
575 .getFoldersCount(groupId, parentFolderId, includeMountfolders);
576 }
577
578 public static int getFoldersFileEntriesCount(long groupId,
579 java.util.List<java.lang.Long> folderIds, int status)
580 throws com.liferay.portal.kernel.exception.SystemException {
581 return getService()
582 .getFoldersFileEntriesCount(groupId, folderIds, status);
583 }
584
585 public static com.liferay.portlet.documentlibrary.model.DLFolder getMountFolder(
586 long repositoryId)
587 throws com.liferay.portal.kernel.exception.PortalException,
588 com.liferay.portal.kernel.exception.SystemException {
589 return getService().getMountFolder(repositoryId);
590 }
591
592 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
593 long groupId, long parentFolderId, int start, int end,
594 com.liferay.portal.kernel.util.OrderByComparator obc)
595 throws com.liferay.portal.kernel.exception.SystemException {
596 return getService()
597 .getMountFolders(groupId, parentFolderId, start, end, obc);
598 }
599
600 public static int getMountFoldersCount(long groupId, long parentFolderId)
601 throws com.liferay.portal.kernel.exception.SystemException {
602 return getService().getMountFoldersCount(groupId, parentFolderId);
603 }
604
605 public static void getSubfolderIds(
606 java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
607 throws com.liferay.portal.kernel.exception.SystemException {
608 getService().getSubfolderIds(folderIds, groupId, folderId);
609 }
610
611 public static com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
612 long folderId, long parentFolderId,
613 com.liferay.portal.service.ServiceContext serviceContext)
614 throws com.liferay.portal.kernel.exception.PortalException,
615 com.liferay.portal.kernel.exception.SystemException {
616 return getService().moveFolder(folderId, parentFolderId, serviceContext);
617 }
618
619 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
620 long folderId, long parentFolderId, java.lang.String name,
621 java.lang.String description, long defaultFileEntryTypeId,
622 java.util.List<java.lang.Long> fileEntryTypeIds,
623 boolean overrideFileEntryTypes,
624 com.liferay.portal.service.ServiceContext serviceContext)
625 throws com.liferay.portal.kernel.exception.PortalException,
626 com.liferay.portal.kernel.exception.SystemException {
627 return getService()
628 .updateFolder(folderId, parentFolderId, name, description,
629 defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
630 serviceContext);
631 }
632
633 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
634 long folderId, java.lang.String name, java.lang.String description,
635 long defaultFileEntryTypeId,
636 java.util.List<java.lang.Long> fileEntryTypeIds,
637 boolean overrideFileEntryTypes,
638 com.liferay.portal.service.ServiceContext serviceContext)
639 throws com.liferay.portal.kernel.exception.PortalException,
640 com.liferay.portal.kernel.exception.SystemException {
641 return getService()
642 .updateFolder(folderId, name, description,
643 defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
644 serviceContext);
645 }
646
647 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
648 long folderId, long parentFolderId, java.lang.String name,
649 java.lang.String description, long defaultFileEntryTypeId,
650 java.util.List<java.lang.Long> fileEntryTypeIds,
651 boolean overrideFileEntryTypes,
652 com.liferay.portal.service.ServiceContext serviceContext)
653 throws com.liferay.portal.kernel.exception.PortalException,
654 com.liferay.portal.kernel.exception.SystemException {
655 return getService()
656 .updateFolderAndFileEntryTypes(folderId, parentFolderId,
657 name, description, defaultFileEntryTypeId, fileEntryTypeIds,
658 overrideFileEntryTypes, serviceContext);
659 }
660
661
664 public static void updateLastPostDate(long folderId,
665 java.util.Date lastPostDate)
666 throws com.liferay.portal.kernel.exception.PortalException,
667 com.liferay.portal.kernel.exception.SystemException {
668 getService().updateLastPostDate(folderId, lastPostDate);
669 }
670
671 public static DLFolderLocalService getService() {
672 if (_service == null) {
673 _service = (DLFolderLocalService)PortalBeanLocatorUtil.locate(DLFolderLocalService.class.getName());
674
675 ReferenceRegistry.registerReference(DLFolderLocalServiceUtil.class,
676 "_service");
677 }
678
679 return _service;
680 }
681
682
685 public void setService(DLFolderLocalService service) {
686 }
687
688 private static DLFolderLocalService _service;
689 }