001
014
015 package com.liferay.document.library.kernel.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class DLFileEntryLocalServiceUtil {
038
043 public static boolean hasExtraSettings() {
044 return getService().hasExtraSettings();
045 }
046
047 public static boolean hasFileEntryLock(long userId, long fileEntryId)
048 throws com.liferay.portal.kernel.exception.PortalException {
049 return getService().hasFileEntryLock(userId, fileEntryId);
050 }
051
052 public static boolean isFileEntryCheckedOut(long fileEntryId)
053 throws com.liferay.portal.kernel.exception.PortalException {
054 return getService().isFileEntryCheckedOut(fileEntryId);
055 }
056
057 public static boolean isKeepFileVersionLabel(long fileEntryId,
058 boolean majorVersion,
059 com.liferay.portal.kernel.service.ServiceContext serviceContext)
060 throws com.liferay.portal.kernel.exception.PortalException {
061 return getService()
062 .isKeepFileVersionLabel(fileEntryId, majorVersion,
063 serviceContext);
064 }
065
066
070 @Deprecated
071 public static boolean isKeepFileVersionLabel(long fileEntryId,
072 com.liferay.portal.kernel.service.ServiceContext serviceContext)
073 throws com.liferay.portal.kernel.exception.PortalException {
074 return getService().isKeepFileVersionLabel(fileEntryId, serviceContext);
075 }
076
077 public static boolean verifyFileEntryCheckOut(long fileEntryId,
078 java.lang.String lockUuid)
079 throws com.liferay.portal.kernel.exception.PortalException {
080 return getService().verifyFileEntryCheckOut(fileEntryId, lockUuid);
081 }
082
083 public static boolean verifyFileEntryLock(long fileEntryId,
084 java.lang.String lockUuid)
085 throws com.liferay.portal.kernel.exception.PortalException {
086 return getService().verifyFileEntryLock(fileEntryId, lockUuid);
087 }
088
089
095 public static com.liferay.document.library.kernel.model.DLFileEntry addDLFileEntry(
096 com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry) {
097 return getService().addDLFileEntry(dlFileEntry);
098 }
099
100 public static com.liferay.document.library.kernel.model.DLFileEntry addFileEntry(
101 long userId, long groupId, long repositoryId, long folderId,
102 java.lang.String sourceFileName, java.lang.String mimeType,
103 java.lang.String title, java.lang.String description,
104 java.lang.String changeLog, long fileEntryTypeId,
105 java.util.Map<java.lang.String, com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap,
106 java.io.File file, java.io.InputStream is, long size,
107 com.liferay.portal.kernel.service.ServiceContext serviceContext)
108 throws com.liferay.portal.kernel.exception.PortalException {
109 return getService()
110 .addFileEntry(userId, groupId, repositoryId, folderId,
111 sourceFileName, mimeType, title, description, changeLog,
112 fileEntryTypeId, ddmFormValuesMap, file, is, size, serviceContext);
113 }
114
115 public static com.liferay.document.library.kernel.model.DLFileEntry checkOutFileEntry(
116 long userId, long fileEntryId,
117 com.liferay.portal.kernel.service.ServiceContext serviceContext)
118 throws com.liferay.portal.kernel.exception.PortalException {
119 return getService()
120 .checkOutFileEntry(userId, fileEntryId, serviceContext);
121 }
122
123 public static com.liferay.document.library.kernel.model.DLFileEntry checkOutFileEntry(
124 long userId, long fileEntryId, java.lang.String owner,
125 long expirationTime,
126 com.liferay.portal.kernel.service.ServiceContext serviceContext)
127 throws com.liferay.portal.kernel.exception.PortalException {
128 return getService()
129 .checkOutFileEntry(userId, fileEntryId, owner,
130 expirationTime, serviceContext);
131 }
132
133 public static com.liferay.document.library.kernel.model.DLFileEntry copyFileEntry(
134 long userId, long groupId, long repositoryId, long fileEntryId,
135 long destFolderId,
136 com.liferay.portal.kernel.service.ServiceContext serviceContext)
137 throws com.liferay.portal.kernel.exception.PortalException {
138 return getService()
139 .copyFileEntry(userId, groupId, repositoryId, fileEntryId,
140 destFolderId, serviceContext);
141 }
142
143
149 public static com.liferay.document.library.kernel.model.DLFileEntry createDLFileEntry(
150 long fileEntryId) {
151 return getService().createDLFileEntry(fileEntryId);
152 }
153
154
160 public static com.liferay.document.library.kernel.model.DLFileEntry deleteDLFileEntry(
161 com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry) {
162 return getService().deleteDLFileEntry(dlFileEntry);
163 }
164
165
172 public static com.liferay.document.library.kernel.model.DLFileEntry deleteDLFileEntry(
173 long fileEntryId)
174 throws com.liferay.portal.kernel.exception.PortalException {
175 return getService().deleteDLFileEntry(fileEntryId);
176 }
177
178 public static com.liferay.document.library.kernel.model.DLFileEntry deleteFileEntry(
179 com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry)
180 throws com.liferay.portal.kernel.exception.PortalException {
181 return getService().deleteFileEntry(dlFileEntry);
182 }
183
184 public static com.liferay.document.library.kernel.model.DLFileEntry deleteFileEntry(
185 long fileEntryId)
186 throws com.liferay.portal.kernel.exception.PortalException {
187 return getService().deleteFileEntry(fileEntryId);
188 }
189
190 public static com.liferay.document.library.kernel.model.DLFileEntry deleteFileEntry(
191 long userId, long fileEntryId)
192 throws com.liferay.portal.kernel.exception.PortalException {
193 return getService().deleteFileEntry(userId, fileEntryId);
194 }
195
196 public static com.liferay.document.library.kernel.model.DLFileEntry deleteFileVersion(
197 long userId, long fileEntryId, java.lang.String version)
198 throws com.liferay.portal.kernel.exception.PortalException {
199 return getService().deleteFileVersion(userId, fileEntryId, version);
200 }
201
202 public static com.liferay.document.library.kernel.model.DLFileEntry fetchDLFileEntry(
203 long fileEntryId) {
204 return getService().fetchDLFileEntry(fileEntryId);
205 }
206
207
214 public static com.liferay.document.library.kernel.model.DLFileEntry fetchDLFileEntryByUuidAndGroupId(
215 java.lang.String uuid, long groupId) {
216 return getService().fetchDLFileEntryByUuidAndGroupId(uuid, groupId);
217 }
218
219 public static com.liferay.document.library.kernel.model.DLFileEntry fetchFileEntry(
220 long groupId, long folderId, java.lang.String title) {
221 return getService().fetchFileEntry(groupId, folderId, title);
222 }
223
224 public static com.liferay.document.library.kernel.model.DLFileEntry fetchFileEntryByAnyImageId(
225 long imageId) {
226 return getService().fetchFileEntryByAnyImageId(imageId);
227 }
228
229 public static com.liferay.document.library.kernel.model.DLFileEntry fetchFileEntryByFileName(
230 long groupId, long folderId, java.lang.String fileName) {
231 return getService().fetchFileEntryByFileName(groupId, folderId, fileName);
232 }
233
234 public static com.liferay.document.library.kernel.model.DLFileEntry fetchFileEntryByName(
235 long groupId, long folderId, java.lang.String name) {
236 return getService().fetchFileEntryByName(groupId, folderId, name);
237 }
238
239
246 public static com.liferay.document.library.kernel.model.DLFileEntry getDLFileEntry(
247 long fileEntryId)
248 throws com.liferay.portal.kernel.exception.PortalException {
249 return getService().getDLFileEntry(fileEntryId);
250 }
251
252
260 public static com.liferay.document.library.kernel.model.DLFileEntry getDLFileEntryByUuidAndGroupId(
261 java.lang.String uuid, long groupId)
262 throws com.liferay.portal.kernel.exception.PortalException {
263 return getService().getDLFileEntryByUuidAndGroupId(uuid, groupId);
264 }
265
266 public static com.liferay.document.library.kernel.model.DLFileEntry getFileEntry(
267 long fileEntryId)
268 throws com.liferay.portal.kernel.exception.PortalException {
269 return getService().getFileEntry(fileEntryId);
270 }
271
272 public static com.liferay.document.library.kernel.model.DLFileEntry getFileEntry(
273 long groupId, long folderId, java.lang.String title)
274 throws com.liferay.portal.kernel.exception.PortalException {
275 return getService().getFileEntry(groupId, folderId, title);
276 }
277
278 public static com.liferay.document.library.kernel.model.DLFileEntry getFileEntryByName(
279 long groupId, long folderId, java.lang.String name)
280 throws com.liferay.portal.kernel.exception.PortalException {
281 return getService().getFileEntryByName(groupId, folderId, name);
282 }
283
284 public static com.liferay.document.library.kernel.model.DLFileEntry getFileEntryByUuidAndGroupId(
285 java.lang.String uuid, long groupId)
286 throws com.liferay.portal.kernel.exception.PortalException {
287 return getService().getFileEntryByUuidAndGroupId(uuid, groupId);
288 }
289
290 public static com.liferay.document.library.kernel.model.DLFileEntry moveFileEntry(
291 long userId, long fileEntryId, long newFolderId,
292 com.liferay.portal.kernel.service.ServiceContext serviceContext)
293 throws com.liferay.portal.kernel.exception.PortalException {
294 return getService()
295 .moveFileEntry(userId, fileEntryId, newFolderId,
296 serviceContext);
297 }
298
299
305 public static com.liferay.document.library.kernel.model.DLFileEntry updateDLFileEntry(
306 com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry) {
307 return getService().updateDLFileEntry(dlFileEntry);
308 }
309
310 public static com.liferay.document.library.kernel.model.DLFileEntry updateFileEntry(
311 long userId, long fileEntryId, java.lang.String sourceFileName,
312 java.lang.String mimeType, java.lang.String title,
313 java.lang.String description, java.lang.String changeLog,
314 boolean majorVersion, long fileEntryTypeId,
315 java.util.Map<java.lang.String, com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap,
316 java.io.File file, java.io.InputStream is, long size,
317 com.liferay.portal.kernel.service.ServiceContext serviceContext)
318 throws com.liferay.portal.kernel.exception.PortalException {
319 return getService()
320 .updateFileEntry(userId, fileEntryId, sourceFileName,
321 mimeType, title, description, changeLog, majorVersion,
322 fileEntryTypeId, ddmFormValuesMap, file, is, size, serviceContext);
323 }
324
325 public static com.liferay.document.library.kernel.model.DLFileEntry updateFileEntryType(
326 long userId, long fileEntryId, long fileEntryTypeId,
327 com.liferay.portal.kernel.service.ServiceContext serviceContext)
328 throws com.liferay.portal.kernel.exception.PortalException {
329 return getService()
330 .updateFileEntryType(userId, fileEntryId, fileEntryTypeId,
331 serviceContext);
332 }
333
334 public static com.liferay.document.library.kernel.model.DLFileEntry updateStatus(
335 long userId, long fileVersionId, int status,
336 com.liferay.portal.kernel.service.ServiceContext serviceContext,
337 java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
338 throws com.liferay.portal.kernel.exception.PortalException {
339 return getService()
340 .updateStatus(userId, fileVersionId, status, serviceContext,
341 workflowContext);
342 }
343
344 public static com.liferay.document.library.kernel.model.DLFileVersion cancelCheckOut(
345 long userId, long fileEntryId)
346 throws com.liferay.portal.kernel.exception.PortalException {
347 return getService().cancelCheckOut(userId, fileEntryId);
348 }
349
350 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
351 return getService().getActionableDynamicQuery();
352 }
353
354 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
355 return getService().dynamicQuery();
356 }
357
358 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
359 com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) {
360 return getService().getExportActionableDynamicQuery(portletDataContext);
361 }
362
363 public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
364 return getService().getIndexableActionableDynamicQuery();
365 }
366
367 public static com.liferay.portal.kernel.lock.Lock lockFileEntry(
368 long userId, long fileEntryId)
369 throws com.liferay.portal.kernel.exception.PortalException {
370 return getService().lockFileEntry(userId, fileEntryId);
371 }
372
373
376 public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
377 com.liferay.portal.kernel.model.PersistedModel persistedModel)
378 throws com.liferay.portal.kernel.exception.PortalException {
379 return getService().deletePersistedModel(persistedModel);
380 }
381
382 public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
383 java.io.Serializable primaryKeyObj)
384 throws com.liferay.portal.kernel.exception.PortalException {
385 return getService().getPersistedModel(primaryKeyObj);
386 }
387
388 public static com.liferay.portal.kernel.search.Hits search(long groupId,
389 long userId, long creatorUserId, int status, int start, int end)
390 throws com.liferay.portal.kernel.exception.PortalException {
391 return getService()
392 .search(groupId, userId, creatorUserId, status, start, end);
393 }
394
395 public static com.liferay.portal.kernel.search.Hits search(long groupId,
396 long userId, long creatorUserId, long folderId,
397 java.lang.String[] mimeTypes, int status, int start, int end)
398 throws com.liferay.portal.kernel.exception.PortalException {
399 return getService()
400 .search(groupId, userId, creatorUserId, folderId, mimeTypes,
401 status, start, end);
402 }
403
404
409 public static int getDLFileEntriesCount() {
410 return getService().getDLFileEntriesCount();
411 }
412
413 public static int getExtraSettingsFileEntriesCount() {
414 return getService().getExtraSettingsFileEntriesCount();
415 }
416
417 public static int getFileEntriesCount() {
418 return getService().getFileEntriesCount();
419 }
420
421
424 @Deprecated
425 public static int getFileEntriesCount(long groupId,
426 com.liferay.portal.kernel.util.DateRange dateRange, long repositoryId,
427 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.document.library.kernel.model.DLFileEntry> queryDefinition) {
428 return getService()
429 .getFileEntriesCount(groupId, dateRange, repositoryId,
430 queryDefinition);
431 }
432
433 public static int getFileEntriesCount(long groupId, long folderId) {
434 return getService().getFileEntriesCount(groupId, folderId);
435 }
436
437 public static int getFileEntriesCount(long groupId, long folderId,
438 int status) {
439 return getService().getFileEntriesCount(groupId, folderId, status);
440 }
441
442 public static int getFileEntriesCount(long groupId, long userId,
443 java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
444 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.document.library.kernel.model.DLFileEntry> queryDefinition)
445 throws java.lang.Exception {
446 return getService()
447 .getFileEntriesCount(groupId, userId, folderIds, mimeTypes,
448 queryDefinition);
449 }
450
451 public static int getFileEntriesCount(long groupId, long userId,
452 java.util.List<java.lang.Long> repositoryIds,
453 java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
454 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.document.library.kernel.model.DLFileEntry> queryDefinition)
455 throws java.lang.Exception {
456 return getService()
457 .getFileEntriesCount(groupId, userId, repositoryIds,
458 folderIds, mimeTypes, queryDefinition);
459 }
460
461 public static int getGroupFileEntriesCount(long groupId) {
462 return getService().getGroupFileEntriesCount(groupId);
463 }
464
465 public static int getGroupFileEntriesCount(long groupId, long userId) {
466 return getService().getGroupFileEntriesCount(groupId, userId);
467 }
468
469 public static int getRepositoryFileEntriesCount(long repositoryId) {
470 return getService().getRepositoryFileEntriesCount(repositoryId);
471 }
472
473 public static java.io.File getFile(long fileEntryId,
474 java.lang.String version, boolean incrementCounter)
475 throws com.liferay.portal.kernel.exception.PortalException {
476 return getService().getFile(fileEntryId, version, incrementCounter);
477 }
478
479 public static java.io.File getFile(long fileEntryId,
480 java.lang.String version, boolean incrementCounter, int increment)
481 throws com.liferay.portal.kernel.exception.PortalException {
482 return getService()
483 .getFile(fileEntryId, version, incrementCounter, increment);
484 }
485
486
490 @Deprecated
491 public static java.io.File getFile(long userId, long fileEntryId,
492 java.lang.String version, boolean incrementCounter)
493 throws com.liferay.portal.kernel.exception.PortalException {
494 return getService()
495 .getFile(userId, fileEntryId, version, incrementCounter);
496 }
497
498
502 @Deprecated
503 public static java.io.File getFile(long userId, long fileEntryId,
504 java.lang.String version, boolean incrementCounter, int increment)
505 throws com.liferay.portal.kernel.exception.PortalException {
506 return getService()
507 .getFile(userId, fileEntryId, version, incrementCounter,
508 increment);
509 }
510
511 public static java.io.InputStream getFileAsStream(long fileEntryId,
512 java.lang.String version)
513 throws com.liferay.portal.kernel.exception.PortalException {
514 return getService().getFileAsStream(fileEntryId, version);
515 }
516
517 public static java.io.InputStream getFileAsStream(long fileEntryId,
518 java.lang.String version, boolean incrementCounter)
519 throws com.liferay.portal.kernel.exception.PortalException {
520 return getService()
521 .getFileAsStream(fileEntryId, version, incrementCounter);
522 }
523
524 public static java.io.InputStream getFileAsStream(long fileEntryId,
525 java.lang.String version, boolean incrementCounter, int increment)
526 throws com.liferay.portal.kernel.exception.PortalException {
527 return getService()
528 .getFileAsStream(fileEntryId, version, incrementCounter,
529 increment);
530 }
531
532
536 @Deprecated
537 public static java.io.InputStream getFileAsStream(long userId,
538 long fileEntryId, java.lang.String version)
539 throws com.liferay.portal.kernel.exception.PortalException {
540 return getService().getFileAsStream(userId, fileEntryId, version);
541 }
542
543
547 @Deprecated
548 public static java.io.InputStream getFileAsStream(long userId,
549 long fileEntryId, java.lang.String version, boolean incrementCounter)
550 throws com.liferay.portal.kernel.exception.PortalException {
551 return getService()
552 .getFileAsStream(userId, fileEntryId, version,
553 incrementCounter);
554 }
555
556
560 @Deprecated
561 public static java.io.InputStream getFileAsStream(long userId,
562 long fileEntryId, java.lang.String version, boolean incrementCounter,
563 int increment)
564 throws com.liferay.portal.kernel.exception.PortalException {
565 return getService()
566 .getFileAsStream(userId, fileEntryId, version,
567 incrementCounter, increment);
568 }
569
570
575 public static java.lang.String getOSGiServiceIdentifier() {
576 return getService().getOSGiServiceIdentifier();
577 }
578
579 public static java.lang.String getUniqueTitle(long groupId, long folderId,
580 long fileEntryId, java.lang.String title, java.lang.String extension)
581 throws com.liferay.portal.kernel.exception.PortalException {
582 return getService()
583 .getUniqueTitle(groupId, folderId, fileEntryId, title,
584 extension);
585 }
586
587
593 public static <T> java.util.List<T> dynamicQuery(
594 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
595 return getService().dynamicQuery(dynamicQuery);
596 }
597
598
610 public static <T> java.util.List<T> dynamicQuery(
611 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
612 int end) {
613 return getService().dynamicQuery(dynamicQuery, start, end);
614 }
615
616
629 public static <T> java.util.List<T> dynamicQuery(
630 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
631 int end,
632 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
633 return getService()
634 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
635 }
636
637 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getDDMStructureFileEntries(
638 long groupId, long[] ddmStructureIds) {
639 return getService().getDDMStructureFileEntries(groupId, ddmStructureIds);
640 }
641
642 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getDDMStructureFileEntries(
643 long[] ddmStructureIds) {
644 return getService().getDDMStructureFileEntries(ddmStructureIds);
645 }
646
647
658 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getDLFileEntries(
659 int start, int end) {
660 return getService().getDLFileEntries(start, end);
661 }
662
663
670 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getDLFileEntriesByUuidAndCompanyId(
671 java.lang.String uuid, long companyId) {
672 return getService().getDLFileEntriesByUuidAndCompanyId(uuid, companyId);
673 }
674
675
685 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getDLFileEntriesByUuidAndCompanyId(
686 java.lang.String uuid, long companyId, int start, int end,
687 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> orderByComparator) {
688 return getService()
689 .getDLFileEntriesByUuidAndCompanyId(uuid, companyId, start,
690 end, orderByComparator);
691 }
692
693 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getExtraSettingsFileEntries(
694 int start, int end) {
695 return getService().getExtraSettingsFileEntries(start, end);
696 }
697
698 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(
699 int start, int end) {
700 return getService().getFileEntries(start, end);
701 }
702
703 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(
704 long folderId, java.lang.String name) {
705 return getService().getFileEntries(folderId, name);
706 }
707
708 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(
709 long groupId, long folderId) {
710 return getService().getFileEntries(groupId, folderId);
711 }
712
713 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(
714 long groupId, long folderId, int start, int end,
715 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc) {
716 return getService().getFileEntries(groupId, folderId, start, end, obc);
717 }
718
719 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(
720 long groupId, long folderId, int status, int start, int end,
721 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc) {
722 return getService()
723 .getFileEntries(groupId, folderId, status, start, end, obc);
724 }
725
726 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(
727 long groupId, long userId, java.util.List<java.lang.Long> folderIds,
728 java.lang.String[] mimeTypes,
729 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.document.library.kernel.model.DLFileEntry> queryDefinition)
730 throws java.lang.Exception {
731 return getService()
732 .getFileEntries(groupId, userId, folderIds, mimeTypes,
733 queryDefinition);
734 }
735
736 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(
737 long groupId, long userId,
738 java.util.List<java.lang.Long> repositoryIds,
739 java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
740 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.document.library.kernel.model.DLFileEntry> queryDefinition)
741 throws java.lang.Exception {
742 return getService()
743 .getFileEntries(groupId, userId, repositoryIds, folderIds,
744 mimeTypes, queryDefinition);
745 }
746
747 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(
748 long groupId, int start, int end) {
749 return getService().getGroupFileEntries(groupId, start, end);
750 }
751
752 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(
753 long groupId, int start, int end,
754 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc) {
755 return getService().getGroupFileEntries(groupId, start, end, obc);
756 }
757
758 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(
759 long groupId, long userId, int start, int end) {
760 return getService().getGroupFileEntries(groupId, userId, start, end);
761 }
762
763 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(
764 long groupId, long userId, int start, int end,
765 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc) {
766 return getService().getGroupFileEntries(groupId, userId, start, end, obc);
767 }
768
769 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(
770 long groupId, long userId, long repositoryId, long rootFolderId,
771 int start, int end,
772 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc) {
773 return getService()
774 .getGroupFileEntries(groupId, userId, repositoryId,
775 rootFolderId, start, end, obc);
776 }
777
778 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(
779 long groupId, long userId, long rootFolderId, int start, int end,
780 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc) {
781 return getService()
782 .getGroupFileEntries(groupId, userId, rootFolderId, start,
783 end, obc);
784 }
785
786 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getMisversionedFileEntries() {
787 return getService().getMisversionedFileEntries();
788 }
789
790 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getNoAssetFileEntries() {
791 return getService().getNoAssetFileEntries();
792 }
793
794 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getOrphanedFileEntries() {
795 return getService().getOrphanedFileEntries();
796 }
797
798 public static java.util.List<com.liferay.document.library.kernel.model.DLFileEntry> getRepositoryFileEntries(
799 long repositoryId, int start, int end) {
800 return getService().getRepositoryFileEntries(repositoryId, start, end);
801 }
802
803
809 public static long dynamicQueryCount(
810 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
811 return getService().dynamicQueryCount(dynamicQuery);
812 }
813
814
821 public static long dynamicQueryCount(
822 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
823 com.liferay.portal.kernel.dao.orm.Projection projection) {
824 return getService().dynamicQueryCount(dynamicQuery, projection);
825 }
826
827 public static void checkInFileEntry(long userId, long fileEntryId,
828 boolean majorVersion, java.lang.String changeLog,
829 com.liferay.portal.kernel.service.ServiceContext serviceContext)
830 throws com.liferay.portal.kernel.exception.PortalException {
831 getService()
832 .checkInFileEntry(userId, fileEntryId, majorVersion, changeLog,
833 serviceContext);
834 }
835
836 public static void checkInFileEntry(long userId, long fileEntryId,
837 java.lang.String lockUuid,
838 com.liferay.portal.kernel.service.ServiceContext serviceContext)
839 throws com.liferay.portal.kernel.exception.PortalException {
840 getService()
841 .checkInFileEntry(userId, fileEntryId, lockUuid, serviceContext);
842 }
843
844 public static void convertExtraSettings(java.lang.String[] keys)
845 throws com.liferay.portal.kernel.exception.PortalException {
846 getService().convertExtraSettings(keys);
847 }
848
849 public static void copyFileEntryMetadata(long companyId,
850 long fileEntryTypeId, long fileEntryId, long fromFileVersionId,
851 long toFileVersionId,
852 com.liferay.portal.kernel.service.ServiceContext serviceContext)
853 throws com.liferay.portal.kernel.exception.PortalException {
854 getService()
855 .copyFileEntryMetadata(companyId, fileEntryTypeId, fileEntryId,
856 fromFileVersionId, toFileVersionId, serviceContext);
857 }
858
859 public static void deleteFileEntries(long groupId, long folderId)
860 throws com.liferay.portal.kernel.exception.PortalException {
861 getService().deleteFileEntries(groupId, folderId);
862 }
863
864 public static void deleteFileEntries(long groupId, long folderId,
865 boolean includeTrashedEntries)
866 throws com.liferay.portal.kernel.exception.PortalException {
867 getService().deleteFileEntries(groupId, folderId, includeTrashedEntries);
868 }
869
870 public static void deleteRepositoryFileEntries(long repositoryId,
871 long folderId)
872 throws com.liferay.portal.kernel.exception.PortalException {
873 getService().deleteRepositoryFileEntries(repositoryId, folderId);
874 }
875
876 public static void deleteRepositoryFileEntries(long repositoryId,
877 long folderId, boolean includeTrashedEntries)
878 throws com.liferay.portal.kernel.exception.PortalException {
879 getService()
880 .deleteRepositoryFileEntries(repositoryId, folderId,
881 includeTrashedEntries);
882 }
883
884 public static void incrementViewCounter(
885 com.liferay.document.library.kernel.model.DLFileEntry dlFileEntry,
886 int increment) {
887 getService().incrementViewCounter(dlFileEntry, increment);
888 }
889
890 public static void rebuildTree(long companyId)
891 throws com.liferay.portal.kernel.exception.PortalException {
892 getService().rebuildTree(companyId);
893 }
894
895 public static void revertFileEntry(long userId, long fileEntryId,
896 java.lang.String version,
897 com.liferay.portal.kernel.service.ServiceContext serviceContext)
898 throws com.liferay.portal.kernel.exception.PortalException {
899 getService()
900 .revertFileEntry(userId, fileEntryId, version, serviceContext);
901 }
902
903 public static void setTreePaths(long folderId, java.lang.String treePath,
904 boolean reindex)
905 throws com.liferay.portal.kernel.exception.PortalException {
906 getService().setTreePaths(folderId, treePath, reindex);
907 }
908
909 public static void unlockFileEntry(long fileEntryId) {
910 getService().unlockFileEntry(fileEntryId);
911 }
912
913 public static void updateSmallImage(long smallImageId, long largeImageId)
914 throws com.liferay.portal.kernel.exception.PortalException {
915 getService().updateSmallImage(smallImageId, largeImageId);
916 }
917
918 public static void validateFile(long groupId, long folderId,
919 long fileEntryId, java.lang.String fileName, java.lang.String title)
920 throws com.liferay.portal.kernel.exception.PortalException {
921 getService()
922 .validateFile(groupId, folderId, fileEntryId, fileName, title);
923 }
924
925 public static DLFileEntryLocalService getService() {
926 if (_service == null) {
927 _service = (DLFileEntryLocalService)PortalBeanLocatorUtil.locate(DLFileEntryLocalService.class.getName());
928
929 ReferenceRegistry.registerReference(DLFileEntryLocalServiceUtil.class,
930 "_service");
931 }
932
933 return _service;
934 }
935
936 private static DLFileEntryLocalService _service;
937 }