001
014
015 package com.liferay.portlet.documentlibrary.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.search.IndexableType;
022 import com.liferay.portal.kernel.transaction.Isolation;
023 import com.liferay.portal.kernel.transaction.Propagation;
024 import com.liferay.portal.kernel.transaction.Transactional;
025 import com.liferay.portal.model.SystemEventConstants;
026 import com.liferay.portal.service.BaseLocalService;
027 import com.liferay.portal.service.PersistedModelLocalService;
028
029
041 @ProviderType
042 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
043 PortalException.class, SystemException.class})
044 public interface DLFolderLocalService extends BaseLocalService,
045 PersistedModelLocalService {
046
051 public void addDLFileEntryTypeDLFolder(long fileEntryTypeId,
052 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder);
053
054 public void addDLFileEntryTypeDLFolder(long fileEntryTypeId, long folderId);
055
056 public void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
057 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders);
058
059 public void addDLFileEntryTypeDLFolders(long fileEntryTypeId,
060 long[] folderIds);
061
062
068 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
069 public com.liferay.portlet.documentlibrary.model.DLFolder addDLFolder(
070 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder);
071
072 public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
073 long userId, long groupId, long repositoryId, boolean mountPoint,
074 long parentFolderId, java.lang.String name,
075 java.lang.String description, boolean hidden,
076 com.liferay.portal.service.ServiceContext serviceContext)
077 throws PortalException;
078
079 public void clearDLFileEntryTypeDLFolders(long fileEntryTypeId);
080
081
087 public com.liferay.portlet.documentlibrary.model.DLFolder createDLFolder(
088 long folderId);
089
090
093 @java.lang.Deprecated
094 public void deleteAll(long groupId) throws PortalException;
095
096 public void deleteAllByGroup(long groupId) throws PortalException;
097
098 public void deleteAllByRepository(long repositoryId)
099 throws PortalException;
100
101 public void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
102 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder);
103
104 public void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
105 long folderId);
106
107 public void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
108 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders);
109
110 public void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
111 long[] folderIds);
112
113
119 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
120 public com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
121 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder);
122
123
130 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
131 public com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
132 long folderId) throws PortalException;
133
134 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
135 @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE)
136 public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
137 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
138 throws PortalException;
139
140 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
141 @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE)
142 public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
143 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
144 boolean includeTrashedEntries) throws PortalException;
145
146 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
147 public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
148 long folderId) throws PortalException;
149
150 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
151 public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
152 long folderId, boolean includeTrashedEntries) throws PortalException;
153
154 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
155 public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
156 long userId, long folderId, boolean includeTrashedEntries)
157 throws PortalException;
158
159
162 @Override
163 public com.liferay.portal.model.PersistedModel deletePersistedModel(
164 com.liferay.portal.model.PersistedModel persistedModel)
165 throws PortalException;
166
167 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
168
169
175 public <T> java.util.List<T> dynamicQuery(
176 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
177
178
190 public <T> java.util.List<T> dynamicQuery(
191 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
192 int end);
193
194
207 public <T> java.util.List<T> dynamicQuery(
208 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
209 int end,
210 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
211
212
218 public long dynamicQueryCount(
219 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
220
221
228 public long dynamicQueryCount(
229 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
230 com.liferay.portal.kernel.dao.orm.Projection projection);
231
232 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233 public com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolder(
234 long folderId);
235
236
243 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
244 public com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolderByUuidAndGroupId(
245 java.lang.String uuid, long groupId);
246
247 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248 public com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
249 long folderId);
250
251 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
252 public com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
253 long groupId, long parentFolderId, java.lang.String name);
254
255 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
256 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
257
258 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
259 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
260 long companyId, int start, int end);
261
262 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
263 public int getCompanyFoldersCount(long companyId);
264
265 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
266 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
267 long fileEntryTypeId);
268
269 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
270 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
271 long fileEntryTypeId, int start, int end);
272
273 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
274 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
275 long fileEntryTypeId, int start, int end,
276 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> orderByComparator);
277
278 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279 public int getDLFileEntryTypeDLFoldersCount(long fileEntryTypeId);
280
281
287 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
288 public long[] getDLFileEntryTypePrimaryKeys(long folderId);
289
290
297 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298 public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder(
299 long folderId) throws PortalException;
300
301
309 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310 public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndGroupId(
311 java.lang.String uuid, long groupId) throws PortalException;
312
313
324 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
325 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
326 int start, int end);
327
328
335 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
336 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFoldersByUuidAndCompanyId(
337 java.lang.String uuid, long companyId);
338
339
349 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
350 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFoldersByUuidAndCompanyId(
351 java.lang.String uuid, long companyId, int start, int end,
352 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> orderByComparator);
353
354
359 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
360 public int getDLFoldersCount();
361
362 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
363 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
364 com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext);
365
366 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
367 public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
368 long groupId, long folderId,
369 com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition);
370
371 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
372 public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId,
373 com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition);
374
375 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
376 public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
377 long folderId) throws PortalException;
378
379 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
380 public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
381 long groupId, long parentFolderId, java.lang.String name)
382 throws PortalException;
383
384 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
385 public long getFolderId(long companyId, long folderId);
386
387
391 @java.lang.Deprecated
392 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
393 public java.util.List<java.lang.Long> getFolderIds(long groupId,
394 long parentFolderId);
395
396 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
397 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
398 long groupId, long parentFolderId);
399
400 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
401 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
402 long groupId, long parentFolderId, boolean includeMountfolders);
403
404 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
405 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
406 long groupId, long parentFolderId, boolean includeMountfolders,
407 int start, int end,
408 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc);
409
410 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
411 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
412 long groupId, long parentFolderId, int start, int end,
413 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc);
414
415 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
416 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
417 long groupId, long parentFolderId, int status,
418 boolean includeMountfolders, int start, int end,
419 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc);
420
421 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
422 public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
423 long groupId, long folderId, java.lang.String[] mimeTypes,
424 boolean includeMountFolders,
425 com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition);
426
427 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
428 public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
429 long folderId, java.lang.String[] mimeTypes,
430 boolean includeMountFolders,
431 com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition);
432
433 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
434 public int getFoldersCount(long groupId, long parentFolderId);
435
436 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
437 public int getFoldersCount(long groupId, long parentFolderId,
438 boolean includeMountfolders);
439
440 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
441 public int getFoldersCount(long groupId, long parentFolderId, int status,
442 boolean includeMountfolders);
443
444 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
445 public java.util.List<java.lang.Long> getGroupFolderIds(long groupId,
446 long parentFolderId);
447
448 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
449 public void getGroupSubfolderIds(java.util.List<java.lang.Long> folderIds,
450 long groupId, long folderId);
451
452 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
453 public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery();
454
455 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
456 public com.liferay.portlet.documentlibrary.model.DLFolder getMountFolder(
457 long repositoryId) throws PortalException;
458
459 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
460 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
461 long groupId, long parentFolderId, int start, int end,
462 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc);
463
464 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
465 public int getMountFoldersCount(long groupId, long parentFolderId);
466
467 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
468 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getNoAssetFolders();
469
470
475 public java.lang.String getOSGiServiceIdentifier();
476
477 @Override
478 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
479 public com.liferay.portal.model.PersistedModel getPersistedModel(
480 java.io.Serializable primaryKeyObj) throws PortalException;
481
482 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
483 public java.util.List<java.lang.Long> getRepositoryFolderIds(
484 long repositoryId, long parentFolderId);
485
486 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
487 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getRepositoryFolders(
488 long repositoryId, int start, int end);
489
490 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
491 public int getRepositoryFoldersCount(long repositoryId);
492
493 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
494 public void getRepositorySubfolderIds(
495 java.util.List<java.lang.Long> folderIds, long repositoryId,
496 long folderId);
497
498
502 @java.lang.Deprecated
503 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
504 public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
505 long groupId, long folderId);
506
507 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
508 public boolean hasDLFileEntryTypeDLFolder(long fileEntryTypeId,
509 long folderId);
510
511 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
512 public boolean hasDLFileEntryTypeDLFolders(long fileEntryTypeId);
513
514 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
515 public boolean hasFolderLock(long userId, long folderId);
516
517 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
518 public boolean hasInheritableLock(long folderId) throws PortalException;
519
520 public com.liferay.portal.kernel.lock.Lock lockFolder(long userId,
521 long folderId) throws PortalException;
522
523 public com.liferay.portal.kernel.lock.Lock lockFolder(long userId,
524 long folderId, java.lang.String owner, boolean inheritable,
525 long expirationTime) throws PortalException;
526
527 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
528 public com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
529 long userId, long folderId, long parentFolderId,
530 com.liferay.portal.service.ServiceContext serviceContext)
531 throws PortalException;
532
533 public void rebuildTree(long companyId) throws PortalException;
534
535 public void rebuildTree(long companyId, long parentFolderId,
536 java.lang.String parentTreePath, boolean reindex)
537 throws PortalException;
538
539 public void setDLFileEntryTypeDLFolders(long fileEntryTypeId,
540 long[] folderIds);
541
542 public void unlockFolder(long folderId, java.lang.String lockUuid)
543 throws PortalException;
544
545 public void unlockFolder(long groupId, long parentFolderId,
546 java.lang.String name, java.lang.String lockUuid)
547 throws PortalException;
548
549
555 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
556 public com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
557 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder);
558
559
563 @java.lang.Deprecated
564 public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
565 long folderId, java.lang.String name, java.lang.String description,
566 long defaultFileEntryTypeId,
567 java.util.List<java.lang.Long> fileEntryTypeIds,
568 boolean overrideFileEntryTypes,
569 com.liferay.portal.service.ServiceContext serviceContext)
570 throws PortalException;
571
572 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
573 public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
574 long folderId, java.lang.String name, java.lang.String description,
575 long defaultFileEntryTypeId,
576 java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
577 com.liferay.portal.service.ServiceContext serviceContext)
578 throws PortalException;
579
580
584 @java.lang.Deprecated
585 public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
586 long folderId, long parentFolderId, java.lang.String name,
587 java.lang.String description, long defaultFileEntryTypeId,
588 java.util.List<java.lang.Long> fileEntryTypeIds,
589 boolean overrideFileEntryTypes,
590 com.liferay.portal.service.ServiceContext serviceContext)
591 throws PortalException;
592
593 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
594 public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
595 long folderId, long parentFolderId, java.lang.String name,
596 java.lang.String description, long defaultFileEntryTypeId,
597 java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
598 com.liferay.portal.service.ServiceContext serviceContext)
599 throws PortalException;
600
601
606 @java.lang.Deprecated
607 public com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
608 long userId, long folderId, long parentFolderId, java.lang.String name,
609 java.lang.String description, long defaultFileEntryTypeId,
610 java.util.List<java.lang.Long> fileEntryTypeIds,
611 boolean overrideFileEntryTypes,
612 com.liferay.portal.service.ServiceContext serviceContext)
613 throws PortalException;
614
615 public com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
616 long userId, long folderId, long parentFolderId, java.lang.String name,
617 java.lang.String description, long defaultFileEntryTypeId,
618 java.util.List<java.lang.Long> fileEntryTypeIds, int restrictionType,
619 com.liferay.portal.service.ServiceContext serviceContext)
620 throws PortalException;
621
622 @com.liferay.portal.kernel.increment.BufferedIncrement(configuration = "DLFolderEntry", incrementClass = com.liferay.portal.kernel.increment.DateOverrideIncrement.class)
623 public void updateLastPostDate(long folderId, java.util.Date lastPostDate)
624 throws PortalException;
625
626 public com.liferay.portlet.documentlibrary.model.DLFolder updateStatus(
627 long userId, long folderId, int status,
628 java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
629 com.liferay.portal.service.ServiceContext serviceContext)
630 throws PortalException;
631
632 public boolean verifyInheritableLock(long folderId,
633 java.lang.String lockUuid) throws PortalException;
634 }