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
058 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
059 public com.liferay.portlet.documentlibrary.model.DLFileEntry addDLFileEntry(
060 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry);
061
062 public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
063 long userId, long groupId, long repositoryId, long folderId,
064 java.lang.String sourceFileName, java.lang.String mimeType,
065 java.lang.String title, java.lang.String description,
066 java.lang.String changeLog, long fileEntryTypeId,
067 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
068 java.io.File file, java.io.InputStream is, long size,
069 com.liferay.portal.service.ServiceContext serviceContext)
070 throws com.liferay.portal.kernel.exception.PortalException;
071
072 public com.liferay.portlet.documentlibrary.model.DLFileVersion cancelCheckOut(
073 long userId, long fileEntryId)
074 throws com.liferay.portal.kernel.exception.PortalException;
075
076
080 @java.lang.Deprecated
081 public void checkInFileEntry(long userId, long fileEntryId,
082 java.lang.String lockUuid)
083 throws com.liferay.portal.kernel.exception.PortalException;
084
085 public void checkInFileEntry(long userId, long fileEntryId,
086 java.lang.String lockUuid,
087 com.liferay.portal.service.ServiceContext serviceContext)
088 throws com.liferay.portal.kernel.exception.PortalException;
089
090 public void checkInFileEntry(long userId, long fileEntryId,
091 boolean majorVersion, java.lang.String changeLog,
092 com.liferay.portal.service.ServiceContext serviceContext)
093 throws com.liferay.portal.kernel.exception.PortalException;
094
095
099 @java.lang.Deprecated
100 public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
101 long userId, long fileEntryId)
102 throws com.liferay.portal.kernel.exception.PortalException;
103
104
108 @java.lang.Deprecated
109 public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
110 long userId, long fileEntryId, java.lang.String owner,
111 long expirationTime)
112 throws com.liferay.portal.kernel.exception.PortalException;
113
114 public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
115 long userId, long fileEntryId, java.lang.String owner,
116 long expirationTime,
117 com.liferay.portal.service.ServiceContext serviceContext)
118 throws com.liferay.portal.kernel.exception.PortalException;
119
120 public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
121 long userId, long fileEntryId,
122 com.liferay.portal.service.ServiceContext serviceContext)
123 throws com.liferay.portal.kernel.exception.PortalException;
124
125 public void convertExtraSettings(java.lang.String[] keys)
126 throws com.liferay.portal.kernel.exception.PortalException;
127
128 public void copyFileEntryMetadata(long companyId, long fileEntryTypeId,
129 long fileEntryId, long fromFileVersionId, long toFileVersionId,
130 com.liferay.portal.service.ServiceContext serviceContext)
131 throws com.liferay.portal.kernel.exception.PortalException;
132
133
139 public com.liferay.portlet.documentlibrary.model.DLFileEntry createDLFileEntry(
140 long fileEntryId);
141
142
148 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
149 public com.liferay.portlet.documentlibrary.model.DLFileEntry deleteDLFileEntry(
150 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry);
151
152
159 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
160 public com.liferay.portlet.documentlibrary.model.DLFileEntry deleteDLFileEntry(
161 long fileEntryId)
162 throws com.liferay.portal.kernel.exception.PortalException;
163
164 public void deleteFileEntries(long groupId, long folderId)
165 throws com.liferay.portal.kernel.exception.PortalException;
166
167 public void deleteFileEntries(long groupId, long folderId,
168 boolean includeTrashedEntries)
169 throws com.liferay.portal.kernel.exception.PortalException;
170
171 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
172 @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE)
173 public com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
174 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
175 throws com.liferay.portal.kernel.exception.PortalException;
176
177 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
178 public com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
179 long fileEntryId)
180 throws com.liferay.portal.kernel.exception.PortalException;
181
182 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
183 public com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
184 long userId, long fileEntryId)
185 throws com.liferay.portal.kernel.exception.PortalException;
186
187 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
188 public com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileVersion(
189 long userId, long fileEntryId, java.lang.String version)
190 throws com.liferay.portal.kernel.exception.PortalException;
191
192
195 @Override
196 public com.liferay.portal.model.PersistedModel deletePersistedModel(
197 com.liferay.portal.model.PersistedModel persistedModel)
198 throws com.liferay.portal.kernel.exception.PortalException;
199
200 public void deleteRepositoryFileEntries(long repositoryId, long folderId)
201 throws com.liferay.portal.kernel.exception.PortalException;
202
203 public void deleteRepositoryFileEntries(long repositoryId, long folderId,
204 boolean includeTrashedEntries)
205 throws com.liferay.portal.kernel.exception.PortalException;
206
207 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
208
209
215 public <T> java.util.List<T> dynamicQuery(
216 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
217
218
230 public <T> java.util.List<T> dynamicQuery(
231 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
232 int end);
233
234
247 public <T> java.util.List<T> dynamicQuery(
248 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
249 int end,
250 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
251
252
258 public long dynamicQueryCount(
259 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
260
261
268 public long dynamicQueryCount(
269 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
270 com.liferay.portal.kernel.dao.orm.Projection projection);
271
272 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
273 public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchDLFileEntry(
274 long fileEntryId);
275
276
283 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
284 public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchDLFileEntryByUuidAndGroupId(
285 java.lang.String uuid, long groupId);
286
287 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
288 public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntry(
289 long groupId, long folderId, java.lang.String title);
290
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByAnyImageId(
293 long imageId);
294
295 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
296 public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByFileName(
297 long groupId, long folderId, java.lang.String fileName);
298
299 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300 public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByName(
301 long groupId, long folderId, java.lang.String name);
302
303 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
304 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
305
306
311 public java.lang.String getBeanIdentifier();
312
313 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDDMStructureFileEntries(
315 long[] ddmStructureIds);
316
317
328 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
329 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntries(
330 int start, int end);
331
332
339 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
340 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntriesByUuidAndCompanyId(
341 java.lang.String uuid, long companyId);
342
343
353 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
354 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntriesByUuidAndCompanyId(
355 java.lang.String uuid, long companyId, int start, int end,
356 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> orderByComparator);
357
358
363 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
364 public int getDLFileEntriesCount();
365
366
373 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
374 public com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntry(
375 long fileEntryId)
376 throws com.liferay.portal.kernel.exception.PortalException;
377
378
386 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
387 public com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntryByUuidAndGroupId(
388 java.lang.String uuid, long groupId)
389 throws com.liferay.portal.kernel.exception.PortalException;
390
391 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
392 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
393 com.liferay.portal.kernel.lar.PortletDataContext portletDataContext);
394
395 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
396 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getExtraSettingsFileEntries(
397 int start, int end);
398
399 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
400 public int getExtraSettingsFileEntriesCount();
401
402 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
403 public java.io.File getFile(long fileEntryId, java.lang.String version,
404 boolean incrementCounter)
405 throws com.liferay.portal.kernel.exception.PortalException;
406
407 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
408 public java.io.File getFile(long fileEntryId, java.lang.String version,
409 boolean incrementCounter, int increment)
410 throws com.liferay.portal.kernel.exception.PortalException;
411
412
416 @java.lang.Deprecated
417 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
418 public java.io.File getFile(long userId, long fileEntryId,
419 java.lang.String version, boolean incrementCounter)
420 throws com.liferay.portal.kernel.exception.PortalException;
421
422
426 @java.lang.Deprecated
427 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
428 public java.io.File getFile(long userId, long fileEntryId,
429 java.lang.String version, boolean incrementCounter, int increment)
430 throws com.liferay.portal.kernel.exception.PortalException;
431
432 public java.io.InputStream getFileAsStream(long fileEntryId,
433 java.lang.String version)
434 throws com.liferay.portal.kernel.exception.PortalException;
435
436 public java.io.InputStream getFileAsStream(long fileEntryId,
437 java.lang.String version, boolean incrementCounter)
438 throws com.liferay.portal.kernel.exception.PortalException;
439
440 public java.io.InputStream getFileAsStream(long fileEntryId,
441 java.lang.String version, boolean incrementCounter, int increment)
442 throws com.liferay.portal.kernel.exception.PortalException;
443
444
448 @java.lang.Deprecated
449 public java.io.InputStream getFileAsStream(long userId, long fileEntryId,
450 java.lang.String version)
451 throws com.liferay.portal.kernel.exception.PortalException;
452
453
457 @java.lang.Deprecated
458 public java.io.InputStream getFileAsStream(long userId, long fileEntryId,
459 java.lang.String version, boolean incrementCounter)
460 throws com.liferay.portal.kernel.exception.PortalException;
461
462
466 @java.lang.Deprecated
467 public java.io.InputStream getFileAsStream(long userId, long fileEntryId,
468 java.lang.String version, boolean incrementCounter, int increment)
469 throws com.liferay.portal.kernel.exception.PortalException;
470
471 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
472 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
473 long folderId, java.lang.String name);
474
475 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
476 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
477 long groupId, long folderId);
478
479 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
480 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
481 long groupId, long folderId, int start, int end,
482 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc);
483
484 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
485 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
486 long groupId, long folderId, int status, int start, int end,
487 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc);
488
489 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
490 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
491 long groupId, long userId, java.util.List<java.lang.Long> folderIds,
492 java.lang.String[] mimeTypes,
493 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
494 throws java.lang.Exception;
495
496 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
497 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
498 long groupId, long userId,
499 java.util.List<java.lang.Long> repositoryIds,
500 java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
501 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
502 throws java.lang.Exception;
503
504 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
505 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
506 int start, int end);
507
508 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
509 public int getFileEntriesCount();
510
511 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
512 public int getFileEntriesCount(long groupId,
513 com.liferay.portal.kernel.util.DateRange dateRange, long repositoryId,
514 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition);
515
516 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
517 public int getFileEntriesCount(long groupId, long folderId);
518
519 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
520 public int getFileEntriesCount(long groupId, long folderId, int status);
521
522 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
523 public int getFileEntriesCount(long groupId, long userId,
524 java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
525 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
526 throws java.lang.Exception;
527
528 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
529 public int getFileEntriesCount(long groupId, long userId,
530 java.util.List<java.lang.Long> repositoryIds,
531 java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
532 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
533 throws java.lang.Exception;
534
535 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
536 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
537 long fileEntryId)
538 throws com.liferay.portal.kernel.exception.PortalException;
539
540 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
541 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
542 long groupId, long folderId, java.lang.String title)
543 throws com.liferay.portal.kernel.exception.PortalException;
544
545 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
546 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByName(
547 long groupId, long folderId, java.lang.String name)
548 throws com.liferay.portal.kernel.exception.PortalException;
549
550 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
551 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
552 java.lang.String uuid, long groupId)
553 throws com.liferay.portal.kernel.exception.PortalException;
554
555 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
556 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
557 long groupId, int start, int end);
558
559 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
560 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
561 long groupId, int start, int end,
562 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc);
563
564 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
565 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
566 long groupId, long userId, long repositoryId, long rootFolderId,
567 int start, int end,
568 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc);
569
570 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
571 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
572 long groupId, long userId, long rootFolderId, int start, int end,
573 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc);
574
575 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
576 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
577 long groupId, long userId, int start, int end);
578
579 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
580 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
581 long groupId, long userId, int start, int end,
582 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc);
583
584 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
585 public int getGroupFileEntriesCount(long groupId);
586
587 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
588 public int getGroupFileEntriesCount(long groupId, long userId);
589
590 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
591 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getMisversionedFileEntries();
592
593 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
594 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries();
595
596 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
597 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getOrphanedFileEntries();
598
599 @Override
600 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
601 public com.liferay.portal.model.PersistedModel getPersistedModel(
602 java.io.Serializable primaryKeyObj)
603 throws com.liferay.portal.kernel.exception.PortalException;
604
605 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
606 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getRepositoryFileEntries(
607 long repositoryId, int start, int end);
608
609 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
610 public int getRepositoryFileEntriesCount(long repositoryId);
611
612 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
613 public boolean hasExtraSettings();
614
615 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
616 public boolean hasFileEntryLock(long userId, long fileEntryId)
617 throws com.liferay.portal.kernel.exception.PortalException;
618
619 @com.liferay.portal.kernel.increment.BufferedIncrement(configuration = "DLFileEntry", incrementClass = com.liferay.portal.kernel.increment.NumberIncrement.class)
620 public void incrementViewCounter(
621 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
622 int increment);
623
624 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
625 public boolean isFileEntryCheckedOut(long fileEntryId)
626 throws com.liferay.portal.kernel.exception.PortalException;
627
628 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
629 public boolean isKeepFileVersionLabel(long fileEntryId,
630 com.liferay.portal.service.ServiceContext serviceContext)
631 throws com.liferay.portal.kernel.exception.PortalException;
632
633 public com.liferay.portal.model.Lock lockFileEntry(long userId,
634 long fileEntryId)
635 throws com.liferay.portal.kernel.exception.PortalException;
636
637 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
638 public com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
639 long userId, long fileEntryId, long newFolderId,
640 com.liferay.portal.service.ServiceContext serviceContext)
641 throws com.liferay.portal.kernel.exception.PortalException;
642
643 public void rebuildTree(long companyId)
644 throws com.liferay.portal.kernel.exception.PortalException;
645
646 public void revertFileEntry(long userId, long fileEntryId,
647 java.lang.String version,
648 com.liferay.portal.service.ServiceContext serviceContext)
649 throws com.liferay.portal.kernel.exception.PortalException;
650
651 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
652 public com.liferay.portal.kernel.search.Hits search(long groupId,
653 long userId, long creatorUserId, long folderId,
654 java.lang.String[] mimeTypes, int status, int start, int end)
655 throws com.liferay.portal.kernel.exception.PortalException;
656
657 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
658 public com.liferay.portal.kernel.search.Hits search(long groupId,
659 long userId, long creatorUserId, int status, int start, int end)
660 throws com.liferay.portal.kernel.exception.PortalException;
661
662
667 public void setBeanIdentifier(java.lang.String beanIdentifier);
668
669 public void setTreePaths(long folderId, java.lang.String treePath,
670 boolean reindex)
671 throws com.liferay.portal.kernel.exception.PortalException;
672
673 public void unlockFileEntry(long fileEntryId);
674
675
681 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
682 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
683 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry);
684
685 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
686 long userId, long fileEntryId, java.lang.String sourceFileName,
687 java.lang.String mimeType, java.lang.String title,
688 java.lang.String description, java.lang.String changeLog,
689 boolean majorVersion, long fileEntryTypeId,
690 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
691 java.io.File file, java.io.InputStream is, long size,
692 com.liferay.portal.service.ServiceContext serviceContext)
693 throws com.liferay.portal.kernel.exception.PortalException;
694
695 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntryType(
696 long userId, long fileEntryId, long fileEntryTypeId,
697 com.liferay.portal.service.ServiceContext serviceContext)
698 throws com.liferay.portal.kernel.exception.PortalException;
699
700 public void updateSmallImage(long smallImageId, long largeImageId)
701 throws com.liferay.portal.kernel.exception.PortalException;
702
703 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateStatus(
704 long userId, long fileVersionId, int status,
705 com.liferay.portal.service.ServiceContext serviceContext,
706 java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
707 throws com.liferay.portal.kernel.exception.PortalException;
708
709 public void validateFile(long groupId, long folderId, long fileEntryId,
710 java.lang.String fileName, java.lang.String title)
711 throws com.liferay.portal.kernel.exception.PortalException;
712
713 public boolean verifyFileEntryCheckOut(long fileEntryId,
714 java.lang.String lockUuid)
715 throws com.liferay.portal.kernel.exception.PortalException;
716
717 public boolean verifyFileEntryLock(long fileEntryId,
718 java.lang.String lockUuid)
719 throws com.liferay.portal.kernel.exception.PortalException;
720 }