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 DLFileEntryLocalService extends BaseLocalService,
045 PersistedModelLocalService {
046
051
052
059 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
060 public com.liferay.portlet.documentlibrary.model.DLFileEntry addDLFileEntry(
061 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
062 throws com.liferay.portal.kernel.exception.SystemException;
063
064
070 public com.liferay.portlet.documentlibrary.model.DLFileEntry createDLFileEntry(
071 long fileEntryId);
072
073
081 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
082 public com.liferay.portlet.documentlibrary.model.DLFileEntry deleteDLFileEntry(
083 long fileEntryId)
084 throws com.liferay.portal.kernel.exception.PortalException,
085 com.liferay.portal.kernel.exception.SystemException;
086
087
094 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
095 public com.liferay.portlet.documentlibrary.model.DLFileEntry deleteDLFileEntry(
096 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
100
101
108 @SuppressWarnings("rawtypes")
109 public java.util.List dynamicQuery(
110 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
111 throws com.liferay.portal.kernel.exception.SystemException;
112
113
126 @SuppressWarnings("rawtypes")
127 public java.util.List dynamicQuery(
128 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129 int end) throws com.liferay.portal.kernel.exception.SystemException;
130
131
145 @SuppressWarnings("rawtypes")
146 public java.util.List dynamicQuery(
147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148 int end,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.kernel.exception.SystemException;
151
152
159 public long dynamicQueryCount(
160 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
161 throws com.liferay.portal.kernel.exception.SystemException;
162
163
171 public long dynamicQueryCount(
172 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
173 com.liferay.portal.kernel.dao.orm.Projection projection)
174 throws com.liferay.portal.kernel.exception.SystemException;
175
176 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177 public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchDLFileEntry(
178 long fileEntryId)
179 throws com.liferay.portal.kernel.exception.SystemException;
180
181
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchDLFileEntryByUuidAndCompanyId(
191 java.lang.String uuid, long companyId)
192 throws com.liferay.portal.kernel.exception.SystemException;
193
194
202 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203 public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchDLFileEntryByUuidAndGroupId(
204 java.lang.String uuid, long groupId)
205 throws com.liferay.portal.kernel.exception.SystemException;
206
207
215 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216 public com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntry(
217 long fileEntryId)
218 throws com.liferay.portal.kernel.exception.PortalException,
219 com.liferay.portal.kernel.exception.SystemException;
220
221 @Override
222 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223 public com.liferay.portal.model.PersistedModel getPersistedModel(
224 java.io.Serializable primaryKeyObj)
225 throws com.liferay.portal.kernel.exception.PortalException,
226 com.liferay.portal.kernel.exception.SystemException;
227
228
237 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238 public com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntryByUuidAndCompanyId(
239 java.lang.String uuid, long companyId)
240 throws com.liferay.portal.kernel.exception.PortalException,
241 com.liferay.portal.kernel.exception.SystemException;
242
243
252 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253 public com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntryByUuidAndGroupId(
254 java.lang.String uuid, long groupId)
255 throws com.liferay.portal.kernel.exception.PortalException,
256 com.liferay.portal.kernel.exception.SystemException;
257
258
270 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
271 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntries(
272 int start, int end)
273 throws com.liferay.portal.kernel.exception.SystemException;
274
275
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public int getDLFileEntriesCount()
283 throws com.liferay.portal.kernel.exception.SystemException;
284
285
292 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
293 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
294 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
295 throws com.liferay.portal.kernel.exception.SystemException;
296
297
302 public java.lang.String getBeanIdentifier();
303
304
309 public void setBeanIdentifier(java.lang.String beanIdentifier);
310
311 public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
312 long userId, long groupId, long repositoryId, long folderId,
313 java.lang.String sourceFileName, java.lang.String mimeType,
314 java.lang.String title, java.lang.String description,
315 java.lang.String changeLog, long fileEntryTypeId,
316 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
317 java.io.File file, java.io.InputStream is, long size,
318 com.liferay.portal.service.ServiceContext serviceContext)
319 throws com.liferay.portal.kernel.exception.PortalException,
320 com.liferay.portal.kernel.exception.SystemException;
321
322 public com.liferay.portlet.documentlibrary.model.DLFileVersion cancelCheckOut(
323 long userId, long fileEntryId)
324 throws com.liferay.portal.kernel.exception.PortalException,
325 com.liferay.portal.kernel.exception.SystemException;
326
327 public void checkInFileEntry(long userId, long fileEntryId,
328 boolean majorVersion, java.lang.String changeLog,
329 com.liferay.portal.service.ServiceContext serviceContext)
330 throws com.liferay.portal.kernel.exception.PortalException,
331 com.liferay.portal.kernel.exception.SystemException;
332
333
337 public void checkInFileEntry(long userId, long fileEntryId,
338 java.lang.String lockUuid)
339 throws com.liferay.portal.kernel.exception.PortalException,
340 com.liferay.portal.kernel.exception.SystemException;
341
342 public void checkInFileEntry(long userId, long fileEntryId,
343 java.lang.String lockUuid,
344 com.liferay.portal.service.ServiceContext serviceContext)
345 throws com.liferay.portal.kernel.exception.PortalException,
346 com.liferay.portal.kernel.exception.SystemException;
347
348
352 public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
353 long userId, long fileEntryId)
354 throws com.liferay.portal.kernel.exception.PortalException,
355 com.liferay.portal.kernel.exception.SystemException;
356
357 public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
358 long userId, long fileEntryId,
359 com.liferay.portal.service.ServiceContext serviceContext)
360 throws com.liferay.portal.kernel.exception.PortalException,
361 com.liferay.portal.kernel.exception.SystemException;
362
363
367 public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
368 long userId, long fileEntryId, java.lang.String owner,
369 long expirationTime)
370 throws com.liferay.portal.kernel.exception.PortalException,
371 com.liferay.portal.kernel.exception.SystemException;
372
373 public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
374 long userId, long fileEntryId, java.lang.String owner,
375 long expirationTime,
376 com.liferay.portal.service.ServiceContext serviceContext)
377 throws com.liferay.portal.kernel.exception.PortalException,
378 com.liferay.portal.kernel.exception.SystemException;
379
380 public void convertExtraSettings(java.lang.String[] keys)
381 throws com.liferay.portal.kernel.exception.PortalException,
382 com.liferay.portal.kernel.exception.SystemException;
383
384 public void copyFileEntryMetadata(long companyId, long fileEntryTypeId,
385 long fileEntryId, long fromFileVersionId, long toFileVersionId,
386 com.liferay.portal.service.ServiceContext serviceContext)
387 throws com.liferay.portal.kernel.exception.PortalException,
388 com.liferay.portal.kernel.exception.SystemException;
389
390 public void deleteFileEntries(long groupId, long folderId)
391 throws com.liferay.portal.kernel.exception.PortalException,
392 com.liferay.portal.kernel.exception.SystemException;
393
394 public void deleteFileEntries(long groupId, long folderId,
395 boolean includeTrashedEntries)
396 throws com.liferay.portal.kernel.exception.PortalException,
397 com.liferay.portal.kernel.exception.SystemException;
398
399 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
400 @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE)
401 public com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
402 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
403 throws com.liferay.portal.kernel.exception.PortalException,
404 com.liferay.portal.kernel.exception.SystemException;
405
406 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
407 public com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
408 long fileEntryId)
409 throws com.liferay.portal.kernel.exception.PortalException,
410 com.liferay.portal.kernel.exception.SystemException;
411
412 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
413 public com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
414 long userId, long fileEntryId)
415 throws com.liferay.portal.kernel.exception.PortalException,
416 com.liferay.portal.kernel.exception.SystemException;
417
418 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
419 public com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileVersion(
420 long userId, long fileEntryId, java.lang.String version)
421 throws com.liferay.portal.kernel.exception.PortalException,
422 com.liferay.portal.kernel.exception.SystemException;
423
424 public void deleteRepositoryFileEntries(long repositoryId, long folderId)
425 throws com.liferay.portal.kernel.exception.PortalException,
426 com.liferay.portal.kernel.exception.SystemException;
427
428 public void deleteRepositoryFileEntries(long repositoryId, long folderId,
429 boolean includeTrashedEntries)
430 throws com.liferay.portal.kernel.exception.PortalException,
431 com.liferay.portal.kernel.exception.SystemException;
432
433 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
434 public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntry(
435 long groupId, long folderId, java.lang.String title)
436 throws com.liferay.portal.kernel.exception.SystemException;
437
438 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
439 public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByAnyImageId(
440 long imageId)
441 throws com.liferay.portal.kernel.exception.SystemException;
442
443 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
444 public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByName(
445 long groupId, long folderId, java.lang.String name)
446 throws com.liferay.portal.kernel.exception.SystemException;
447
448 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
449 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDDMStructureFileEntries(
450 long groupId, long[] ddmStructureIds)
451 throws com.liferay.portal.kernel.exception.SystemException;
452
453 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
454 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDDMStructureFileEntries(
455 long[] ddmStructureIds)
456 throws com.liferay.portal.kernel.exception.SystemException;
457
458 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
459 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getExtraSettingsFileEntries(
460 int start, int end)
461 throws com.liferay.portal.kernel.exception.SystemException;
462
463 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
464 public int getExtraSettingsFileEntriesCount()
465 throws com.liferay.portal.kernel.exception.SystemException;
466
467 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
468 public java.io.File getFile(long userId, long fileEntryId,
469 java.lang.String version, boolean incrementCounter)
470 throws com.liferay.portal.kernel.exception.PortalException,
471 com.liferay.portal.kernel.exception.SystemException;
472
473 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
474 public java.io.File getFile(long userId, long fileEntryId,
475 java.lang.String version, boolean incrementCounter, int increment)
476 throws com.liferay.portal.kernel.exception.PortalException,
477 com.liferay.portal.kernel.exception.SystemException;
478
479 public java.io.InputStream getFileAsStream(long userId, long fileEntryId,
480 java.lang.String version)
481 throws com.liferay.portal.kernel.exception.PortalException,
482 com.liferay.portal.kernel.exception.SystemException;
483
484 public java.io.InputStream getFileAsStream(long userId, long fileEntryId,
485 java.lang.String version, boolean incrementCounter)
486 throws com.liferay.portal.kernel.exception.PortalException,
487 com.liferay.portal.kernel.exception.SystemException;
488
489 public java.io.InputStream getFileAsStream(long userId, long fileEntryId,
490 java.lang.String version, boolean incrementCounter, int increment)
491 throws com.liferay.portal.kernel.exception.PortalException,
492 com.liferay.portal.kernel.exception.SystemException;
493
494 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
495 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
496 int start, int end)
497 throws com.liferay.portal.kernel.exception.SystemException;
498
499 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
500 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
501 long groupId, long folderId)
502 throws com.liferay.portal.kernel.exception.SystemException;
503
504 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
505 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
506 long groupId, long folderId, int status, int start, int end,
507 com.liferay.portal.kernel.util.OrderByComparator obc)
508 throws com.liferay.portal.kernel.exception.SystemException;
509
510 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
511 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
512 long groupId, long folderId, int start, int end,
513 com.liferay.portal.kernel.util.OrderByComparator obc)
514 throws com.liferay.portal.kernel.exception.SystemException;
515
516 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
517 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
518 long groupId, long userId, java.util.List<java.lang.Long> folderIds,
519 java.lang.String[] mimeTypes,
520 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
521 throws java.lang.Exception;
522
523 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
524 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
525 long groupId, long userId,
526 java.util.List<java.lang.Long> repositoryIds,
527 java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
528 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
529 throws java.lang.Exception;
530
531 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
532 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
533 long folderId, java.lang.String name)
534 throws com.liferay.portal.kernel.exception.SystemException;
535
536 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
537 public int getFileEntriesCount()
538 throws com.liferay.portal.kernel.exception.SystemException;
539
540 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
541 public int getFileEntriesCount(long groupId,
542 com.liferay.portal.kernel.util.DateRange dateRange, long repositoryId,
543 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
544 throws com.liferay.portal.kernel.exception.SystemException;
545
546 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
547 public int getFileEntriesCount(long groupId, long folderId)
548 throws com.liferay.portal.kernel.exception.SystemException;
549
550 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
551 public int getFileEntriesCount(long groupId, long folderId, int status)
552 throws com.liferay.portal.kernel.exception.SystemException;
553
554 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
555 public int getFileEntriesCount(long groupId, long userId,
556 java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
557 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
558 throws java.lang.Exception;
559
560 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
561 public int getFileEntriesCount(long groupId, long userId,
562 java.util.List<java.lang.Long> repositoryIds,
563 java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
564 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
565 throws java.lang.Exception;
566
567 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
568 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
569 long fileEntryId)
570 throws com.liferay.portal.kernel.exception.PortalException,
571 com.liferay.portal.kernel.exception.SystemException;
572
573 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
574 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
575 long groupId, long folderId, java.lang.String title)
576 throws com.liferay.portal.kernel.exception.PortalException,
577 com.liferay.portal.kernel.exception.SystemException;
578
579 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
580 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByName(
581 long groupId, long folderId, java.lang.String name)
582 throws com.liferay.portal.kernel.exception.PortalException,
583 com.liferay.portal.kernel.exception.SystemException;
584
585 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
586 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
587 java.lang.String uuid, long groupId)
588 throws com.liferay.portal.kernel.exception.PortalException,
589 com.liferay.portal.kernel.exception.SystemException;
590
591 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
592 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
593 long groupId, int start, int end)
594 throws com.liferay.portal.kernel.exception.SystemException;
595
596 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
597 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
598 long groupId, int start, int end,
599 com.liferay.portal.kernel.util.OrderByComparator obc)
600 throws com.liferay.portal.kernel.exception.SystemException;
601
602 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
603 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
604 long groupId, long userId, int start, int end)
605 throws com.liferay.portal.kernel.exception.SystemException;
606
607 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
608 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
609 long groupId, long userId, int start, int end,
610 com.liferay.portal.kernel.util.OrderByComparator obc)
611 throws com.liferay.portal.kernel.exception.SystemException;
612
613 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
614 public int getGroupFileEntriesCount(long groupId)
615 throws com.liferay.portal.kernel.exception.SystemException;
616
617 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
618 public int getGroupFileEntriesCount(long groupId, long userId)
619 throws com.liferay.portal.kernel.exception.SystemException;
620
621 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
622 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getMisversionedFileEntries()
623 throws com.liferay.portal.kernel.exception.SystemException;
624
625 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
626 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries()
627 throws com.liferay.portal.kernel.exception.SystemException;
628
629 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
630 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getOrphanedFileEntries()
631 throws com.liferay.portal.kernel.exception.SystemException;
632
633 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
634 public boolean hasExtraSettings()
635 throws com.liferay.portal.kernel.exception.SystemException;
636
637 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
638 public boolean hasFileEntryLock(long userId, long fileEntryId)
639 throws com.liferay.portal.kernel.exception.PortalException,
640 com.liferay.portal.kernel.exception.SystemException;
641
642 @com.liferay.portal.kernel.increment.BufferedIncrement(configuration = "DLFileEntry", incrementClass = com.liferay.portal.kernel.increment.NumberIncrement.class)
643 public void incrementViewCounter(
644 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
645 int increment)
646 throws com.liferay.portal.kernel.exception.SystemException;
647
648 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
649 public boolean isFileEntryCheckedOut(long fileEntryId)
650 throws com.liferay.portal.kernel.exception.PortalException,
651 com.liferay.portal.kernel.exception.SystemException;
652
653 public com.liferay.portal.model.Lock lockFileEntry(long userId,
654 long fileEntryId)
655 throws com.liferay.portal.kernel.exception.PortalException,
656 com.liferay.portal.kernel.exception.SystemException;
657
658 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
659 public com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
660 long userId, long fileEntryId, long newFolderId,
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 rebuildTree(long companyId)
666 throws com.liferay.portal.kernel.exception.SystemException;
667
668 public void revertFileEntry(long userId, long fileEntryId,
669 java.lang.String version,
670 com.liferay.portal.service.ServiceContext serviceContext)
671 throws com.liferay.portal.kernel.exception.PortalException,
672 com.liferay.portal.kernel.exception.SystemException;
673
674 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
675 public com.liferay.portal.kernel.search.Hits search(long groupId,
676 long userId, long creatorUserId, int status, int start, int end)
677 throws com.liferay.portal.kernel.exception.PortalException,
678 com.liferay.portal.kernel.exception.SystemException;
679
680 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
681 public com.liferay.portal.kernel.search.Hits search(long groupId,
682 long userId, long creatorUserId, long folderId,
683 java.lang.String[] mimeTypes, int status, int start, int end)
684 throws com.liferay.portal.kernel.exception.PortalException,
685 com.liferay.portal.kernel.exception.SystemException;
686
687 public void unlockFileEntry(long fileEntryId)
688 throws com.liferay.portal.kernel.exception.SystemException;
689
690 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
691 long userId, long fileEntryId, java.lang.String sourceFileName,
692 java.lang.String mimeType, java.lang.String title,
693 java.lang.String description, java.lang.String changeLog,
694 boolean majorVersion, long fileEntryTypeId,
695 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
696 java.io.File file, java.io.InputStream is, long size,
697 com.liferay.portal.service.ServiceContext serviceContext)
698 throws com.liferay.portal.kernel.exception.PortalException,
699 com.liferay.portal.kernel.exception.SystemException;
700
701 public void updateSmallImage(long smallImageId, long largeImageId)
702 throws com.liferay.portal.kernel.exception.PortalException,
703 com.liferay.portal.kernel.exception.SystemException;
704
705 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateStatus(
706 long userId, long fileVersionId, int status,
707 java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
708 com.liferay.portal.service.ServiceContext serviceContext)
709 throws com.liferay.portal.kernel.exception.PortalException,
710 com.liferay.portal.kernel.exception.SystemException;
711
712 public boolean verifyFileEntryCheckOut(long fileEntryId,
713 java.lang.String lockUuid)
714 throws com.liferay.portal.kernel.exception.PortalException,
715 com.liferay.portal.kernel.exception.SystemException;
716
717 public boolean verifyFileEntryLock(long fileEntryId,
718 java.lang.String lockUuid)
719 throws com.liferay.portal.kernel.exception.PortalException,
720 com.liferay.portal.kernel.exception.SystemException;
721
722 public void validateFile(long groupId, long folderId, long fileEntryId,
723 java.lang.String title, java.lang.String extension)
724 throws com.liferay.portal.kernel.exception.PortalException,
725 com.liferay.portal.kernel.exception.SystemException;
726 }