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 com.liferay.portal.kernel.exception.PortalException;
078
079
084 @java.lang.Deprecated
085 public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
086 long userId, long groupId, long repositoryId, boolean mountPoint,
087 long parentFolderId, java.lang.String name,
088 java.lang.String description,
089 com.liferay.portal.service.ServiceContext serviceContext)
090 throws com.liferay.portal.kernel.exception.PortalException;
091
092 public void clearDLFileEntryTypeDLFolders(long fileEntryTypeId);
093
094
100 public com.liferay.portlet.documentlibrary.model.DLFolder createDLFolder(
101 long folderId);
102
103 public void deleteAll(long groupId)
104 throws com.liferay.portal.kernel.exception.PortalException;
105
106 public void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
107 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder);
108
109 public void deleteDLFileEntryTypeDLFolder(long fileEntryTypeId,
110 long folderId);
111
112 public void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
113 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> DLFolders);
114
115 public void deleteDLFileEntryTypeDLFolders(long fileEntryTypeId,
116 long[] folderIds);
117
118
124 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
125 public com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
126 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder);
127
128
135 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
136 public com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
137 long folderId)
138 throws com.liferay.portal.kernel.exception.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 throws com.liferay.portal.kernel.exception.PortalException;
145
146 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
147 @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE)
148 public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
149 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
150 boolean includeTrashedEntries)
151 throws com.liferay.portal.kernel.exception.PortalException;
152
153 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
154 public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
155 long folderId)
156 throws com.liferay.portal.kernel.exception.PortalException;
157
158 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
159 public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
160 long folderId, boolean includeTrashedEntries)
161 throws com.liferay.portal.kernel.exception.PortalException;
162
163 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
164 public com.liferay.portlet.documentlibrary.model.DLFolder deleteFolder(
165 long userId, long folderId, boolean includeTrashedEntries)
166 throws com.liferay.portal.kernel.exception.PortalException;
167
168
171 @Override
172 public com.liferay.portal.model.PersistedModel deletePersistedModel(
173 com.liferay.portal.model.PersistedModel persistedModel)
174 throws com.liferay.portal.kernel.exception.PortalException;
175
176 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
177
178
184 public <T> java.util.List<T> dynamicQuery(
185 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
186
187
199 public <T> java.util.List<T> dynamicQuery(
200 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
201 int end);
202
203
216 public <T> java.util.List<T> dynamicQuery(
217 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
218 int end,
219 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
220
221
227 public long dynamicQueryCount(
228 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
229
230
237 public long dynamicQueryCount(
238 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
239 com.liferay.portal.kernel.dao.orm.Projection projection);
240
241 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
242 public com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolder(
243 long folderId);
244
245
252 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253 public com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolderByUuidAndGroupId(
254 java.lang.String uuid, long groupId);
255
256 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257 public com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
258 long folderId);
259
260 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
261 public com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
262 long groupId, long parentFolderId, java.lang.String name);
263
264 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
265 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
266
267
272 public java.lang.String getBeanIdentifier();
273
274 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
275 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
276 long companyId, int start, int end);
277
278 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279 public int getCompanyFoldersCount(long companyId);
280
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
283 long fileEntryTypeId);
284
285 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
287 long fileEntryTypeId, int start, int end);
288
289 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFileEntryTypeDLFolders(
291 long fileEntryTypeId, int start, int end,
292 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> orderByComparator);
293
294 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
295 public int getDLFileEntryTypeDLFoldersCount(long fileEntryTypeId);
296
297
303 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
304 public long[] getDLFileEntryTypePrimaryKeys(long folderId);
305
306
313 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314 public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder(
315 long folderId)
316 throws com.liferay.portal.kernel.exception.PortalException;
317
318
326 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
327 public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndGroupId(
328 java.lang.String uuid, long groupId)
329 throws com.liferay.portal.kernel.exception.PortalException;
330
331
342 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
343 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
344 int start, int end);
345
346 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
347 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFoldersByUuidAndCompanyId(
348 java.lang.String uuid, long companyId);
349
350 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
351 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFoldersByUuidAndCompanyId(
352 java.lang.String uuid, long companyId, int start, int end,
353 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> orderByComparator);
354
355
360 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
361 public int getDLFoldersCount();
362
363 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
364 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
365 com.liferay.portal.kernel.lar.PortletDataContext portletDataContext);
366
367 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
368 public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
369 long groupId, long folderId,
370 com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition);
371
372
376 @java.lang.Deprecated
377 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
378 public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
379 long groupId, long folderId, int status, int start, int end);
380
381 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
382 public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId,
383 com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition);
384
385
390 @java.lang.Deprecated
391 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
392 public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId,
393 int status);
394
395 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
396 public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
397 long folderId)
398 throws com.liferay.portal.kernel.exception.PortalException;
399
400 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
401 public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
402 long groupId, long parentFolderId, java.lang.String name)
403 throws com.liferay.portal.kernel.exception.PortalException;
404
405 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
406 public long getFolderId(long companyId, long folderId);
407
408 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
409 public java.util.List<java.lang.Long> getFolderIds(long groupId,
410 long parentFolderId);
411
412 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
413 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
414 long groupId, long parentFolderId);
415
416 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
417 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
418 long groupId, long parentFolderId, boolean includeMountfolders);
419
420 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
421 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
422 long groupId, long parentFolderId, boolean includeMountfolders,
423 int start, int end,
424 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc);
425
426 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
427 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
428 long groupId, long parentFolderId, int start, int end,
429 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc);
430
431 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
432 public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
433 long groupId, long folderId, java.lang.String[] mimeTypes,
434 boolean includeMountFolders,
435 com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition);
436
437
442 @java.lang.Deprecated
443 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
444 public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
445 long groupId, long folderId, int status, boolean includeMountFolders,
446 int start, int end,
447 com.liferay.portal.kernel.util.OrderByComparator<?> obc);
448
449
454 @java.lang.Deprecated
455 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
456 public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
457 long groupId, long folderId, int status, java.lang.String[] mimeTypes,
458 boolean includeMountFolders, int start, int end,
459 com.liferay.portal.kernel.util.OrderByComparator<?> obc);
460
461 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
462 public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
463 long folderId, java.lang.String[] mimeTypes,
464 boolean includeMountFolders,
465 com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition);
466
467
472 @java.lang.Deprecated
473 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
474 public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
475 long folderId, int status, boolean includeMountFolders);
476
477
482 @java.lang.Deprecated
483 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
484 public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
485 long folderId, int status, java.lang.String[] mimeTypes,
486 boolean includeMountFolders);
487
488 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
489 public int getFoldersCount(long groupId, long parentFolderId);
490
491 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
492 public int getFoldersCount(long groupId, long parentFolderId,
493 boolean includeMountfolders);
494
495 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
496 public int getFoldersCount(long groupId, long parentFolderId, int status,
497 boolean includeMountfolders);
498
499 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
500 public com.liferay.portlet.documentlibrary.model.DLFolder getMountFolder(
501 long repositoryId)
502 throws com.liferay.portal.kernel.exception.PortalException;
503
504 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
505 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
506 long groupId, long parentFolderId, int start, int end,
507 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFolder> obc);
508
509 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
510 public int getMountFoldersCount(long groupId, long parentFolderId);
511
512 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
513 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getNoAssetFolders();
514
515 @Override
516 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
517 public com.liferay.portal.model.PersistedModel getPersistedModel(
518 java.io.Serializable primaryKeyObj)
519 throws com.liferay.portal.kernel.exception.PortalException;
520
521 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
522 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getRepositoryFolders(
523 long repositoryId, int start, int end);
524
525 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
526 public int getRepositoryFoldersCount(long repositoryId);
527
528 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
529 public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
530 long groupId, long folderId);
531
532 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
533 public boolean hasDLFileEntryTypeDLFolder(long fileEntryTypeId,
534 long folderId);
535
536 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
537 public boolean hasDLFileEntryTypeDLFolders(long fileEntryTypeId);
538
539 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
540 public boolean hasFolderLock(long userId, long folderId);
541
542 public com.liferay.portal.model.Lock lockFolder(long userId, long folderId)
543 throws com.liferay.portal.kernel.exception.PortalException;
544
545 public com.liferay.portal.model.Lock lockFolder(long userId, long folderId,
546 java.lang.String owner, boolean inheritable, long expirationTime)
547 throws com.liferay.portal.kernel.exception.PortalException;
548
549 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
550 public com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
551 long userId, long folderId, long parentFolderId,
552 com.liferay.portal.service.ServiceContext serviceContext)
553 throws com.liferay.portal.kernel.exception.PortalException;
554
555 public void rebuildTree(long companyId)
556 throws com.liferay.portal.kernel.exception.PortalException;
557
558 public void rebuildTree(long companyId, long parentFolderId,
559 java.lang.String parentTreePath, boolean reindex)
560 throws com.liferay.portal.kernel.exception.PortalException;
561
562
567 public void setBeanIdentifier(java.lang.String beanIdentifier);
568
569 public void setDLFileEntryTypeDLFolders(long fileEntryTypeId,
570 long[] folderIds);
571
572 public void unlockFolder(long folderId, java.lang.String lockUuid)
573 throws com.liferay.portal.kernel.exception.PortalException;
574
575 public void unlockFolder(long groupId, long parentFolderId,
576 java.lang.String name, java.lang.String lockUuid)
577 throws com.liferay.portal.kernel.exception.PortalException;
578
579
585 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
586 public com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
587 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder);
588
589 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
590 public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
591 long folderId, java.lang.String name, java.lang.String description,
592 long defaultFileEntryTypeId,
593 java.util.List<java.lang.Long> fileEntryTypeIds,
594 boolean overrideFileEntryTypes,
595 com.liferay.portal.service.ServiceContext serviceContext)
596 throws com.liferay.portal.kernel.exception.PortalException;
597
598 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
599 public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
600 long folderId, long parentFolderId, java.lang.String name,
601 java.lang.String description, long defaultFileEntryTypeId,
602 java.util.List<java.lang.Long> fileEntryTypeIds,
603 boolean overrideFileEntryTypes,
604 com.liferay.portal.service.ServiceContext serviceContext)
605 throws com.liferay.portal.kernel.exception.PortalException;
606
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 com.liferay.portal.kernel.exception.PortalException;
614
615 @com.liferay.portal.kernel.increment.BufferedIncrement(configuration = "DLFolderEntry", incrementClass = com.liferay.portal.kernel.increment.DateOverrideIncrement.class)
616 public void updateLastPostDate(long folderId, java.util.Date lastPostDate)
617 throws com.liferay.portal.kernel.exception.PortalException;
618
619 public com.liferay.portlet.documentlibrary.model.DLFolder updateStatus(
620 long userId, long folderId, int status,
621 java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
622 com.liferay.portal.service.ServiceContext serviceContext)
623 throws com.liferay.portal.kernel.exception.PortalException;
624 }