001
014
015 package com.liferay.portlet.documentlibrary.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022 import com.liferay.portal.service.BaseLocalService;
023 import com.liferay.portal.service.PersistedModelLocalService;
024
025
037 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
038 PortalException.class, SystemException.class})
039 public interface DLFolderLocalService extends BaseLocalService,
040 PersistedModelLocalService {
041
046
047
054 public com.liferay.portlet.documentlibrary.model.DLFolder addDLFolder(
055 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058
064 public com.liferay.portlet.documentlibrary.model.DLFolder createDLFolder(
065 long folderId);
066
067
075 public com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
076 long folderId)
077 throws com.liferay.portal.kernel.exception.PortalException,
078 com.liferay.portal.kernel.exception.SystemException;
079
080
087 public com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
088 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
089 throws com.liferay.portal.kernel.exception.SystemException;
090
091 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
092
093
100 @SuppressWarnings("rawtypes")
101 public java.util.List dynamicQuery(
102 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
103 throws com.liferay.portal.kernel.exception.SystemException;
104
105
118 @SuppressWarnings("rawtypes")
119 public java.util.List dynamicQuery(
120 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
121 int end) throws com.liferay.portal.kernel.exception.SystemException;
122
123
137 @SuppressWarnings("rawtypes")
138 public java.util.List dynamicQuery(
139 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
140 int end,
141 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142 throws com.liferay.portal.kernel.exception.SystemException;
143
144
151 public long dynamicQueryCount(
152 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
153 throws com.liferay.portal.kernel.exception.SystemException;
154
155
163 public long dynamicQueryCount(
164 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
165 com.liferay.portal.kernel.dao.orm.Projection projection)
166 throws com.liferay.portal.kernel.exception.SystemException;
167
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolder(
170 long folderId)
171 throws com.liferay.portal.kernel.exception.SystemException;
172
173
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolderByUuidAndCompanyId(
183 java.lang.String uuid, long companyId)
184 throws com.liferay.portal.kernel.exception.SystemException;
185
186
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolderByUuidAndGroupId(
196 java.lang.String uuid, long groupId)
197 throws com.liferay.portal.kernel.exception.SystemException;
198
199
207 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208 public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder(
209 long folderId)
210 throws com.liferay.portal.kernel.exception.PortalException,
211 com.liferay.portal.kernel.exception.SystemException;
212
213 @Override
214 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215 public com.liferay.portal.model.PersistedModel getPersistedModel(
216 java.io.Serializable primaryKeyObj)
217 throws com.liferay.portal.kernel.exception.PortalException,
218 com.liferay.portal.kernel.exception.SystemException;
219
220
229 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
230 public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndCompanyId(
231 java.lang.String uuid, long companyId)
232 throws com.liferay.portal.kernel.exception.PortalException,
233 com.liferay.portal.kernel.exception.SystemException;
234
235
244 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245 public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndGroupId(
246 java.lang.String uuid, long groupId)
247 throws com.liferay.portal.kernel.exception.PortalException,
248 com.liferay.portal.kernel.exception.SystemException;
249
250
262 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
263 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
264 int start, int end)
265 throws com.liferay.portal.kernel.exception.SystemException;
266
267
273 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
274 public int getDLFoldersCount()
275 throws com.liferay.portal.kernel.exception.SystemException;
276
277
284 public com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
285 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
286 throws com.liferay.portal.kernel.exception.SystemException;
287
288
291 public void addDLFileEntryTypeDLFolder(long fileEntryTypeId, long folderId)
292 throws com.liferay.portal.kernel.exception.SystemException;
293
294
297 public void addDLFileEntryTypeDLFolder(long fileEntryTypeId,
298 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
299 throws com.liferay.portal.kernel.exception.SystemException;
300
301
304 public void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
305 long[] folderIds)
306 throws com.liferay.portal.kernel.exception.SystemException;
307
308
311 public void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
312 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders)
313 throws com.liferay.portal.kernel.exception.SystemException;
314
315
318 public void clearDLFileEntryTypeDLFolders(long fileEntryTypeId)
319 throws com.liferay.portal.kernel.exception.SystemException;
320
321
324 public void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
325 long folderId)
326 throws com.liferay.portal.kernel.exception.SystemException;
327
328
331 public void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
332 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
333 throws com.liferay.portal.kernel.exception.SystemException;
334
335
338 public void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
339 long[] folderIds)
340 throws com.liferay.portal.kernel.exception.SystemException;
341
342
345 public void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
346 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders)
347 throws com.liferay.portal.kernel.exception.SystemException;
348
349
352 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
353 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
354 long fileEntryTypeId)
355 throws com.liferay.portal.kernel.exception.SystemException;
356
357
360 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
361 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
362 long fileEntryTypeId, int start, int end)
363 throws com.liferay.portal.kernel.exception.SystemException;
364
365
368 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
369 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
370 long fileEntryTypeId, int start, int end,
371 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
372 throws com.liferay.portal.kernel.exception.SystemException;
373
374
377 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
378 public int getDLFileEntryTypeDLFoldersCount(long fileEntryTypeId)
379 throws com.liferay.portal.kernel.exception.SystemException;
380
381
384 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
385 public boolean hasDLFileEntryTypeDLFolder(long fileEntryTypeId,
386 long folderId)
387 throws com.liferay.portal.kernel.exception.SystemException;
388
389
392 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
393 public boolean hasDLFileEntryTypeDLFolders(long fileEntryTypeId)
394 throws com.liferay.portal.kernel.exception.SystemException;
395
396
399 public void setDLFileEntryTypeDLFolders(long fileEntryTypeId,
400 long[] folderIds)
401 throws com.liferay.portal.kernel.exception.SystemException;
402
403
408 public java.lang.String getBeanIdentifier();
409
410
415 public void setBeanIdentifier(java.lang.String beanIdentifier);
416
417 public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
418 long userId, long groupId, long repositoryId, boolean mountPoint,
419 long parentFolderId, java.lang.String name,
420 java.lang.String description, boolean hidden,
421 com.liferay.portal.service.ServiceContext serviceContext)
422 throws com.liferay.portal.kernel.exception.PortalException,
423 com.liferay.portal.kernel.exception.SystemException;
424
425
430 public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
431 long userId, long groupId, long repositoryId, boolean mountPoint,
432 long parentFolderId, java.lang.String name,
433 java.lang.String description,
434 com.liferay.portal.service.ServiceContext serviceContext)
435 throws com.liferay.portal.kernel.exception.PortalException,
436 com.liferay.portal.kernel.exception.SystemException;
437
438 public void deleteAll(long groupId)
439 throws com.liferay.portal.kernel.exception.PortalException,
440 com.liferay.portal.kernel.exception.SystemException;
441
442 public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
443 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
444 throws com.liferay.portal.kernel.exception.PortalException,
445 com.liferay.portal.kernel.exception.SystemException;
446
447 public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
448 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
449 boolean includeTrashedEntries)
450 throws com.liferay.portal.kernel.exception.PortalException,
451 com.liferay.portal.kernel.exception.SystemException;
452
453 public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
454 long folderId)
455 throws com.liferay.portal.kernel.exception.PortalException,
456 com.liferay.portal.kernel.exception.SystemException;
457
458 public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
459 long folderId, boolean includeTrashedEntries)
460 throws com.liferay.portal.kernel.exception.PortalException,
461 com.liferay.portal.kernel.exception.SystemException;
462
463 public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
464 long userId, long folderId, boolean includeTrashedEntries)
465 throws com.liferay.portal.kernel.exception.PortalException,
466 com.liferay.portal.kernel.exception.SystemException;
467
468 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
469 public com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
470 long folderId)
471 throws com.liferay.portal.kernel.exception.SystemException;
472
473 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
474 public com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
475 long groupId, long parentFolderId, java.lang.String name)
476 throws com.liferay.portal.kernel.exception.SystemException;
477
478 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
479 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
480 long companyId, int start, int end)
481 throws com.liferay.portal.kernel.exception.SystemException;
482
483 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
484 public int getCompanyFoldersCount(long companyId)
485 throws com.liferay.portal.kernel.exception.SystemException;
486
487
491 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
492 public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
493 long groupId, long folderId, int status, int start, int end)
494 throws com.liferay.portal.kernel.exception.SystemException;
495
496 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
497 public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
498 long groupId, long folderId,
499 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
500 throws com.liferay.portal.kernel.exception.SystemException;
501
502
507 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
508 public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId,
509 int status) throws com.liferay.portal.kernel.exception.SystemException;
510
511 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
512 public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId,
513 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
514 throws com.liferay.portal.kernel.exception.SystemException;
515
516 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
517 public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
518 long folderId)
519 throws com.liferay.portal.kernel.exception.PortalException,
520 com.liferay.portal.kernel.exception.SystemException;
521
522 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
523 public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
524 long groupId, long parentFolderId, java.lang.String name)
525 throws com.liferay.portal.kernel.exception.PortalException,
526 com.liferay.portal.kernel.exception.SystemException;
527
528 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
529 public long getFolderId(long companyId, long folderId)
530 throws com.liferay.portal.kernel.exception.SystemException;
531
532 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
533 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
534 long groupId, long parentFolderId)
535 throws com.liferay.portal.kernel.exception.SystemException;
536
537 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
538 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
539 long groupId, long parentFolderId, boolean includeMountfolders)
540 throws com.liferay.portal.kernel.exception.SystemException;
541
542 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
543 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
544 long groupId, long parentFolderId, boolean includeMountfolders,
545 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
546 throws com.liferay.portal.kernel.exception.SystemException;
547
548 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
549 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
550 long groupId, long parentFolderId, int start, int end,
551 com.liferay.portal.kernel.util.OrderByComparator obc)
552 throws com.liferay.portal.kernel.exception.SystemException;
553
554
559 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
560 public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
561 long groupId, long folderId, int status, boolean includeMountFolders,
562 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
563 throws com.liferay.portal.kernel.exception.SystemException;
564
565
570 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
571 public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
572 long groupId, long folderId, int status, java.lang.String[] mimeTypes,
573 boolean includeMountFolders, int start, int end,
574 com.liferay.portal.kernel.util.OrderByComparator obc)
575 throws com.liferay.portal.kernel.exception.SystemException;
576
577 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
578 public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
579 long groupId, long folderId, java.lang.String[] mimeTypes,
580 boolean includeMountFolders,
581 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
582 throws com.liferay.portal.kernel.exception.SystemException;
583
584
589 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
590 public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
591 long folderId, int status, boolean includeMountFolders)
592 throws com.liferay.portal.kernel.exception.SystemException;
593
594
599 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
600 public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
601 long folderId, int status, java.lang.String[] mimeTypes,
602 boolean includeMountFolders)
603 throws com.liferay.portal.kernel.exception.SystemException;
604
605 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
606 public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
607 long folderId, java.lang.String[] mimeTypes,
608 boolean includeMountFolders,
609 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
610 throws com.liferay.portal.kernel.exception.SystemException;
611
612 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
613 public int getFoldersCount(long groupId, long parentFolderId)
614 throws com.liferay.portal.kernel.exception.SystemException;
615
616 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
617 public int getFoldersCount(long groupId, long parentFolderId,
618 boolean includeMountfolders)
619 throws com.liferay.portal.kernel.exception.SystemException;
620
621 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
622 public com.liferay.portlet.documentlibrary.model.DLFolder getMountFolder(
623 long repositoryId)
624 throws com.liferay.portal.kernel.exception.PortalException,
625 com.liferay.portal.kernel.exception.SystemException;
626
627 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
628 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
629 long groupId, long parentFolderId, int start, int end,
630 com.liferay.portal.kernel.util.OrderByComparator obc)
631 throws com.liferay.portal.kernel.exception.SystemException;
632
633 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
634 public int getMountFoldersCount(long groupId, long parentFolderId)
635 throws com.liferay.portal.kernel.exception.SystemException;
636
637 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
638 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getNoAssetFolders()
639 throws com.liferay.portal.kernel.exception.SystemException;
640
641 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
642 public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
643 long groupId, long folderId)
644 throws com.liferay.portal.kernel.exception.SystemException;
645
646 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
647 public boolean hasFolderLock(long userId, long folderId)
648 throws com.liferay.portal.kernel.exception.SystemException;
649
650 public com.liferay.portal.model.Lock lockFolder(long userId, long folderId)
651 throws com.liferay.portal.kernel.exception.PortalException,
652 com.liferay.portal.kernel.exception.SystemException;
653
654 public com.liferay.portal.model.Lock lockFolder(long userId, long folderId,
655 java.lang.String owner, boolean inheritable, long expirationTime)
656 throws com.liferay.portal.kernel.exception.PortalException,
657 com.liferay.portal.kernel.exception.SystemException;
658
659 public com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
660 long userId, long folderId, long parentFolderId,
661 com.liferay.portal.service.ServiceContext serviceContext)
662 throws com.liferay.portal.kernel.exception.PortalException,
663 com.liferay.portal.kernel.exception.SystemException;
664
665 public void unlockFolder(long groupId, long parentFolderId,
666 java.lang.String name, java.lang.String lockUuid)
667 throws com.liferay.portal.kernel.exception.PortalException,
668 com.liferay.portal.kernel.exception.SystemException;
669
670 public void unlockFolder(long folderId, java.lang.String lockUuid)
671 throws com.liferay.portal.kernel.exception.PortalException,
672 com.liferay.portal.kernel.exception.SystemException;
673
674 public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
675 long folderId, long parentFolderId, java.lang.String name,
676 java.lang.String description, long defaultFileEntryTypeId,
677 java.util.List<java.lang.Long> fileEntryTypeIds,
678 boolean overrideFileEntryTypes,
679 com.liferay.portal.service.ServiceContext serviceContext)
680 throws com.liferay.portal.kernel.exception.PortalException,
681 com.liferay.portal.kernel.exception.SystemException;
682
683 public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
684 long folderId, java.lang.String name, java.lang.String description,
685 long defaultFileEntryTypeId,
686 java.util.List<java.lang.Long> fileEntryTypeIds,
687 boolean overrideFileEntryTypes,
688 com.liferay.portal.service.ServiceContext serviceContext)
689 throws com.liferay.portal.kernel.exception.PortalException,
690 com.liferay.portal.kernel.exception.SystemException;
691
692 public com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
693 long userId, long folderId, long parentFolderId, java.lang.String name,
694 java.lang.String description, long defaultFileEntryTypeId,
695 java.util.List<java.lang.Long> fileEntryTypeIds,
696 boolean overrideFileEntryTypes,
697 com.liferay.portal.service.ServiceContext serviceContext)
698 throws com.liferay.portal.kernel.exception.PortalException,
699 com.liferay.portal.kernel.exception.SystemException;
700
701
704 public void updateLastPostDate(long folderId, java.util.Date lastPostDate)
705 throws com.liferay.portal.kernel.exception.PortalException,
706 com.liferay.portal.kernel.exception.SystemException;
707
708 public com.liferay.portlet.documentlibrary.model.DLFolder updateStatus(
709 long userId, long folderId, int status,
710 java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
711 com.liferay.portal.service.ServiceContext serviceContext)
712 throws com.liferay.portal.kernel.exception.PortalException,
713 com.liferay.portal.kernel.exception.SystemException;
714 }