001
014
015 package com.liferay.portlet.documentlibrary.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
044
051 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addDLFileEntry(
052 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
053 throws com.liferay.portal.kernel.exception.SystemException {
054 return getService().addDLFileEntry(dlFileEntry);
055 }
056
057
063 public static com.liferay.portlet.documentlibrary.model.DLFileEntry createDLFileEntry(
064 long fileEntryId) {
065 return getService().createDLFileEntry(fileEntryId);
066 }
067
068
076 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteDLFileEntry(
077 long fileEntryId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 return getService().deleteDLFileEntry(fileEntryId);
081 }
082
083
090 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteDLFileEntry(
091 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
092 throws com.liferay.portal.kernel.exception.SystemException {
093 return getService().deleteDLFileEntry(dlFileEntry);
094 }
095
096 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
097 return getService().dynamicQuery();
098 }
099
100
107 @SuppressWarnings("rawtypes")
108 public static java.util.List dynamicQuery(
109 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().dynamicQuery(dynamicQuery);
112 }
113
114
127 @SuppressWarnings("rawtypes")
128 public static java.util.List dynamicQuery(
129 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130 int end) throws com.liferay.portal.kernel.exception.SystemException {
131 return getService().dynamicQuery(dynamicQuery, start, end);
132 }
133
134
148 @SuppressWarnings("rawtypes")
149 public static java.util.List dynamicQuery(
150 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151 int end,
152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService()
155 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
156 }
157
158
165 public static long dynamicQueryCount(
166 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getService().dynamicQueryCount(dynamicQuery);
169 }
170
171
179 public static long dynamicQueryCount(
180 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
181 com.liferay.portal.kernel.dao.orm.Projection projection)
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return getService().dynamicQueryCount(dynamicQuery, projection);
184 }
185
186 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchDLFileEntry(
187 long fileEntryId)
188 throws com.liferay.portal.kernel.exception.SystemException {
189 return getService().fetchDLFileEntry(fileEntryId);
190 }
191
192
200 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchDLFileEntryByUuidAndCompanyId(
201 java.lang.String uuid, long companyId)
202 throws com.liferay.portal.kernel.exception.SystemException {
203 return getService().fetchDLFileEntryByUuidAndCompanyId(uuid, companyId);
204 }
205
206
214 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchDLFileEntryByUuidAndGroupId(
215 java.lang.String uuid, long groupId)
216 throws com.liferay.portal.kernel.exception.SystemException {
217 return getService().fetchDLFileEntryByUuidAndGroupId(uuid, groupId);
218 }
219
220
228 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntry(
229 long fileEntryId)
230 throws com.liferay.portal.kernel.exception.PortalException,
231 com.liferay.portal.kernel.exception.SystemException {
232 return getService().getDLFileEntry(fileEntryId);
233 }
234
235 public static com.liferay.portal.model.PersistedModel getPersistedModel(
236 java.io.Serializable primaryKeyObj)
237 throws com.liferay.portal.kernel.exception.PortalException,
238 com.liferay.portal.kernel.exception.SystemException {
239 return getService().getPersistedModel(primaryKeyObj);
240 }
241
242
251 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntryByUuidAndCompanyId(
252 java.lang.String uuid, long companyId)
253 throws com.liferay.portal.kernel.exception.PortalException,
254 com.liferay.portal.kernel.exception.SystemException {
255 return getService().getDLFileEntryByUuidAndCompanyId(uuid, companyId);
256 }
257
258
267 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntryByUuidAndGroupId(
268 java.lang.String uuid, long groupId)
269 throws com.liferay.portal.kernel.exception.PortalException,
270 com.liferay.portal.kernel.exception.SystemException {
271 return getService().getDLFileEntryByUuidAndGroupId(uuid, groupId);
272 }
273
274
286 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntries(
287 int start, int end)
288 throws com.liferay.portal.kernel.exception.SystemException {
289 return getService().getDLFileEntries(start, end);
290 }
291
292
298 public static int getDLFileEntriesCount()
299 throws com.liferay.portal.kernel.exception.SystemException {
300 return getService().getDLFileEntriesCount();
301 }
302
303
310 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
311 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
312 throws com.liferay.portal.kernel.exception.SystemException {
313 return getService().updateDLFileEntry(dlFileEntry);
314 }
315
316
321 public static java.lang.String getBeanIdentifier() {
322 return getService().getBeanIdentifier();
323 }
324
325
330 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
331 getService().setBeanIdentifier(beanIdentifier);
332 }
333
334 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
335 long userId, long groupId, long repositoryId, long folderId,
336 java.lang.String sourceFileName, java.lang.String mimeType,
337 java.lang.String title, java.lang.String description,
338 java.lang.String changeLog, long fileEntryTypeId,
339 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
340 java.io.File file, java.io.InputStream is, long size,
341 com.liferay.portal.service.ServiceContext serviceContext)
342 throws com.liferay.portal.kernel.exception.PortalException,
343 com.liferay.portal.kernel.exception.SystemException {
344 return getService()
345 .addFileEntry(userId, groupId, repositoryId, folderId,
346 sourceFileName, mimeType, title, description, changeLog,
347 fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
348 }
349
350 public static com.liferay.portlet.documentlibrary.model.DLFileVersion cancelCheckOut(
351 long userId, long fileEntryId)
352 throws com.liferay.portal.kernel.exception.PortalException,
353 com.liferay.portal.kernel.exception.SystemException {
354 return getService().cancelCheckOut(userId, fileEntryId);
355 }
356
357 public static void checkInFileEntry(long userId, long fileEntryId,
358 boolean majorVersion, java.lang.String changeLog,
359 com.liferay.portal.service.ServiceContext serviceContext)
360 throws com.liferay.portal.kernel.exception.PortalException,
361 com.liferay.portal.kernel.exception.SystemException {
362 getService()
363 .checkInFileEntry(userId, fileEntryId, majorVersion, changeLog,
364 serviceContext);
365 }
366
367
371 public static void checkInFileEntry(long userId, long fileEntryId,
372 java.lang.String lockUuid)
373 throws com.liferay.portal.kernel.exception.PortalException,
374 com.liferay.portal.kernel.exception.SystemException {
375 getService().checkInFileEntry(userId, fileEntryId, lockUuid);
376 }
377
378 public static void checkInFileEntry(long userId, long fileEntryId,
379 java.lang.String lockUuid,
380 com.liferay.portal.service.ServiceContext serviceContext)
381 throws com.liferay.portal.kernel.exception.PortalException,
382 com.liferay.portal.kernel.exception.SystemException {
383 getService()
384 .checkInFileEntry(userId, fileEntryId, lockUuid, serviceContext);
385 }
386
387
391 public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
392 long userId, long fileEntryId)
393 throws com.liferay.portal.kernel.exception.PortalException,
394 com.liferay.portal.kernel.exception.SystemException {
395 return getService().checkOutFileEntry(userId, fileEntryId);
396 }
397
398 public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
399 long userId, long fileEntryId,
400 com.liferay.portal.service.ServiceContext serviceContext)
401 throws com.liferay.portal.kernel.exception.PortalException,
402 com.liferay.portal.kernel.exception.SystemException {
403 return getService()
404 .checkOutFileEntry(userId, fileEntryId, serviceContext);
405 }
406
407
411 public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
412 long userId, long fileEntryId, java.lang.String owner,
413 long expirationTime)
414 throws com.liferay.portal.kernel.exception.PortalException,
415 com.liferay.portal.kernel.exception.SystemException {
416 return getService()
417 .checkOutFileEntry(userId, fileEntryId, owner, expirationTime);
418 }
419
420 public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
421 long userId, long fileEntryId, java.lang.String owner,
422 long expirationTime,
423 com.liferay.portal.service.ServiceContext serviceContext)
424 throws com.liferay.portal.kernel.exception.PortalException,
425 com.liferay.portal.kernel.exception.SystemException {
426 return getService()
427 .checkOutFileEntry(userId, fileEntryId, owner,
428 expirationTime, serviceContext);
429 }
430
431 public static void convertExtraSettings(java.lang.String[] keys)
432 throws com.liferay.portal.kernel.exception.PortalException,
433 com.liferay.portal.kernel.exception.SystemException {
434 getService().convertExtraSettings(keys);
435 }
436
437 public static void copyFileEntryMetadata(long companyId,
438 long fileEntryTypeId, long fileEntryId, long fromFileVersionId,
439 long toFileVersionId,
440 com.liferay.portal.service.ServiceContext serviceContext)
441 throws com.liferay.portal.kernel.exception.PortalException,
442 com.liferay.portal.kernel.exception.SystemException {
443 getService()
444 .copyFileEntryMetadata(companyId, fileEntryTypeId, fileEntryId,
445 fromFileVersionId, toFileVersionId, serviceContext);
446 }
447
448 public static void deleteFileEntries(long groupId, long folderId)
449 throws com.liferay.portal.kernel.exception.PortalException,
450 com.liferay.portal.kernel.exception.SystemException {
451 getService().deleteFileEntries(groupId, folderId);
452 }
453
454 public static void deleteFileEntries(long groupId, long folderId,
455 boolean includeTrashedEntries)
456 throws com.liferay.portal.kernel.exception.PortalException,
457 com.liferay.portal.kernel.exception.SystemException {
458 getService().deleteFileEntries(groupId, folderId, includeTrashedEntries);
459 }
460
461 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
462 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
463 throws com.liferay.portal.kernel.exception.PortalException,
464 com.liferay.portal.kernel.exception.SystemException {
465 return getService().deleteFileEntry(dlFileEntry);
466 }
467
468 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
469 long fileEntryId)
470 throws com.liferay.portal.kernel.exception.PortalException,
471 com.liferay.portal.kernel.exception.SystemException {
472 return getService().deleteFileEntry(fileEntryId);
473 }
474
475 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
476 long userId, long fileEntryId)
477 throws com.liferay.portal.kernel.exception.PortalException,
478 com.liferay.portal.kernel.exception.SystemException {
479 return getService().deleteFileEntry(userId, fileEntryId);
480 }
481
482 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileVersion(
483 long userId, long fileEntryId, java.lang.String version)
484 throws com.liferay.portal.kernel.exception.PortalException,
485 com.liferay.portal.kernel.exception.SystemException {
486 return getService().deleteFileVersion(userId, fileEntryId, version);
487 }
488
489 public static void deleteRepositoryFileEntries(long repositoryId,
490 long folderId)
491 throws com.liferay.portal.kernel.exception.PortalException,
492 com.liferay.portal.kernel.exception.SystemException {
493 getService().deleteRepositoryFileEntries(repositoryId, folderId);
494 }
495
496 public static void deleteRepositoryFileEntries(long repositoryId,
497 long folderId, boolean includeTrashedEntries)
498 throws com.liferay.portal.kernel.exception.PortalException,
499 com.liferay.portal.kernel.exception.SystemException {
500 getService()
501 .deleteRepositoryFileEntries(repositoryId, folderId,
502 includeTrashedEntries);
503 }
504
505 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntry(
506 long groupId, long folderId, java.lang.String title)
507 throws com.liferay.portal.kernel.exception.SystemException {
508 return getService().fetchFileEntry(groupId, folderId, title);
509 }
510
511 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByAnyImageId(
512 long imageId)
513 throws com.liferay.portal.kernel.exception.SystemException {
514 return getService().fetchFileEntryByAnyImageId(imageId);
515 }
516
517 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByName(
518 long groupId, long folderId, java.lang.String name)
519 throws com.liferay.portal.kernel.exception.SystemException {
520 return getService().fetchFileEntryByName(groupId, folderId, name);
521 }
522
523 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDDMStructureFileEntries(
524 long groupId, long[] ddmStructureIds)
525 throws com.liferay.portal.kernel.exception.SystemException {
526 return getService().getDDMStructureFileEntries(groupId, ddmStructureIds);
527 }
528
529 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDDMStructureFileEntries(
530 long[] ddmStructureIds)
531 throws com.liferay.portal.kernel.exception.SystemException {
532 return getService().getDDMStructureFileEntries(ddmStructureIds);
533 }
534
535 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getExtraSettingsFileEntries(
536 int start, int end)
537 throws com.liferay.portal.kernel.exception.SystemException {
538 return getService().getExtraSettingsFileEntries(start, end);
539 }
540
541 public static int getExtraSettingsFileEntriesCount()
542 throws com.liferay.portal.kernel.exception.SystemException {
543 return getService().getExtraSettingsFileEntriesCount();
544 }
545
546 public static java.io.File getFile(long userId, long fileEntryId,
547 java.lang.String version, boolean incrementCounter)
548 throws com.liferay.portal.kernel.exception.PortalException,
549 com.liferay.portal.kernel.exception.SystemException {
550 return getService()
551 .getFile(userId, fileEntryId, version, incrementCounter);
552 }
553
554 public static java.io.File getFile(long userId, long fileEntryId,
555 java.lang.String version, boolean incrementCounter, int increment)
556 throws com.liferay.portal.kernel.exception.PortalException,
557 com.liferay.portal.kernel.exception.SystemException {
558 return getService()
559 .getFile(userId, fileEntryId, version, incrementCounter,
560 increment);
561 }
562
563
567 public static java.io.InputStream getFileAsStream(long userId,
568 long fileEntryId, java.lang.String version)
569 throws com.liferay.portal.kernel.exception.PortalException,
570 com.liferay.portal.kernel.exception.SystemException {
571 return getService().getFileAsStream(userId, fileEntryId, version);
572 }
573
574
578 public static java.io.InputStream getFileAsStream(long userId,
579 long fileEntryId, java.lang.String version, boolean incrementCounter)
580 throws com.liferay.portal.kernel.exception.PortalException,
581 com.liferay.portal.kernel.exception.SystemException {
582 return getService()
583 .getFileAsStream(userId, fileEntryId, version,
584 incrementCounter);
585 }
586
587
591 public static java.io.InputStream getFileAsStream(long userId,
592 long fileEntryId, java.lang.String version, boolean incrementCounter,
593 int increment)
594 throws com.liferay.portal.kernel.exception.PortalException,
595 com.liferay.portal.kernel.exception.SystemException {
596 return getService()
597 .getFileAsStream(userId, fileEntryId, version,
598 incrementCounter, increment);
599 }
600
601 public static java.io.InputStream getFileAsStream(long fileEntryId,
602 java.lang.String version)
603 throws com.liferay.portal.kernel.exception.PortalException,
604 com.liferay.portal.kernel.exception.SystemException {
605 return getService().getFileAsStream(fileEntryId, version);
606 }
607
608 public static java.io.InputStream getFileAsStream(long fileEntryId,
609 java.lang.String version, boolean incrementCounter)
610 throws com.liferay.portal.kernel.exception.PortalException,
611 com.liferay.portal.kernel.exception.SystemException {
612 return getService()
613 .getFileAsStream(fileEntryId, version, incrementCounter);
614 }
615
616 public static java.io.InputStream getFileAsStream(long fileEntryId,
617 java.lang.String version, boolean incrementCounter, int increment)
618 throws com.liferay.portal.kernel.exception.PortalException,
619 com.liferay.portal.kernel.exception.SystemException {
620 return getService()
621 .getFileAsStream(fileEntryId, version, incrementCounter,
622 increment);
623 }
624
625 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
626 int start, int end)
627 throws com.liferay.portal.kernel.exception.SystemException {
628 return getService().getFileEntries(start, end);
629 }
630
631 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
632 long groupId, long folderId)
633 throws com.liferay.portal.kernel.exception.SystemException {
634 return getService().getFileEntries(groupId, folderId);
635 }
636
637 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
638 long groupId, long folderId, int status, int start, int end,
639 com.liferay.portal.kernel.util.OrderByComparator obc)
640 throws com.liferay.portal.kernel.exception.SystemException {
641 return getService()
642 .getFileEntries(groupId, folderId, status, start, end, obc);
643 }
644
645 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
646 long groupId, long folderId, int start, int end,
647 com.liferay.portal.kernel.util.OrderByComparator obc)
648 throws com.liferay.portal.kernel.exception.SystemException {
649 return getService().getFileEntries(groupId, folderId, start, end, obc);
650 }
651
652 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
653 long groupId, long userId, java.util.List<java.lang.Long> folderIds,
654 java.lang.String[] mimeTypes,
655 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
656 throws java.lang.Exception {
657 return getService()
658 .getFileEntries(groupId, userId, folderIds, mimeTypes,
659 queryDefinition);
660 }
661
662 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
663 long groupId, long userId,
664 java.util.List<java.lang.Long> repositoryIds,
665 java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
666 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
667 throws java.lang.Exception {
668 return getService()
669 .getFileEntries(groupId, userId, repositoryIds, folderIds,
670 mimeTypes, queryDefinition);
671 }
672
673 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
674 long folderId, java.lang.String name)
675 throws com.liferay.portal.kernel.exception.SystemException {
676 return getService().getFileEntries(folderId, name);
677 }
678
679 public static int getFileEntriesCount()
680 throws com.liferay.portal.kernel.exception.SystemException {
681 return getService().getFileEntriesCount();
682 }
683
684 public static int getFileEntriesCount(long groupId,
685 com.liferay.portal.kernel.util.DateRange dateRange, long repositoryId,
686 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
687 throws com.liferay.portal.kernel.exception.SystemException {
688 return getService()
689 .getFileEntriesCount(groupId, dateRange, repositoryId,
690 queryDefinition);
691 }
692
693 public static int getFileEntriesCount(long groupId, long folderId)
694 throws com.liferay.portal.kernel.exception.SystemException {
695 return getService().getFileEntriesCount(groupId, folderId);
696 }
697
698 public static int getFileEntriesCount(long groupId, long folderId,
699 int status) throws com.liferay.portal.kernel.exception.SystemException {
700 return getService().getFileEntriesCount(groupId, folderId, status);
701 }
702
703 public static int getFileEntriesCount(long groupId, long userId,
704 java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
705 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
706 throws java.lang.Exception {
707 return getService()
708 .getFileEntriesCount(groupId, userId, folderIds, mimeTypes,
709 queryDefinition);
710 }
711
712 public static int getFileEntriesCount(long groupId, long userId,
713 java.util.List<java.lang.Long> repositoryIds,
714 java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
715 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
716 throws java.lang.Exception {
717 return getService()
718 .getFileEntriesCount(groupId, userId, repositoryIds,
719 folderIds, mimeTypes, queryDefinition);
720 }
721
722 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
723 long fileEntryId)
724 throws com.liferay.portal.kernel.exception.PortalException,
725 com.liferay.portal.kernel.exception.SystemException {
726 return getService().getFileEntry(fileEntryId);
727 }
728
729 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
730 long groupId, long folderId, java.lang.String title)
731 throws com.liferay.portal.kernel.exception.PortalException,
732 com.liferay.portal.kernel.exception.SystemException {
733 return getService().getFileEntry(groupId, folderId, title);
734 }
735
736 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByName(
737 long groupId, long folderId, java.lang.String name)
738 throws com.liferay.portal.kernel.exception.PortalException,
739 com.liferay.portal.kernel.exception.SystemException {
740 return getService().getFileEntryByName(groupId, folderId, name);
741 }
742
743 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
744 java.lang.String uuid, long groupId)
745 throws com.liferay.portal.kernel.exception.PortalException,
746 com.liferay.portal.kernel.exception.SystemException {
747 return getService().getFileEntryByUuidAndGroupId(uuid, groupId);
748 }
749
750 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
751 long groupId, int start, int end)
752 throws com.liferay.portal.kernel.exception.SystemException {
753 return getService().getGroupFileEntries(groupId, start, end);
754 }
755
756 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
757 long groupId, int start, int end,
758 com.liferay.portal.kernel.util.OrderByComparator obc)
759 throws com.liferay.portal.kernel.exception.SystemException {
760 return getService().getGroupFileEntries(groupId, start, end, obc);
761 }
762
763 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
764 long groupId, long userId, int start, int end)
765 throws com.liferay.portal.kernel.exception.SystemException {
766 return getService().getGroupFileEntries(groupId, userId, start, end);
767 }
768
769 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
770 long groupId, long userId, int start, int end,
771 com.liferay.portal.kernel.util.OrderByComparator obc)
772 throws com.liferay.portal.kernel.exception.SystemException {
773 return getService().getGroupFileEntries(groupId, userId, start, end, obc);
774 }
775
776 public static int getGroupFileEntriesCount(long groupId)
777 throws com.liferay.portal.kernel.exception.SystemException {
778 return getService().getGroupFileEntriesCount(groupId);
779 }
780
781 public static int getGroupFileEntriesCount(long groupId, long userId)
782 throws com.liferay.portal.kernel.exception.SystemException {
783 return getService().getGroupFileEntriesCount(groupId, userId);
784 }
785
786 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getMisversionedFileEntries()
787 throws com.liferay.portal.kernel.exception.SystemException {
788 return getService().getMisversionedFileEntries();
789 }
790
791 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries()
792 throws com.liferay.portal.kernel.exception.SystemException {
793 return getService().getNoAssetFileEntries();
794 }
795
796 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getOrphanedFileEntries()
797 throws com.liferay.portal.kernel.exception.SystemException {
798 return getService().getOrphanedFileEntries();
799 }
800
801 public static java.lang.String getUniqueTitle(long groupId, long folderId,
802 long fileEntryId, java.lang.String title, java.lang.String extension)
803 throws com.liferay.portal.kernel.exception.PortalException,
804 com.liferay.portal.kernel.exception.SystemException {
805 return getService()
806 .getUniqueTitle(groupId, folderId, fileEntryId, title,
807 extension);
808 }
809
810 public static boolean hasExtraSettings()
811 throws com.liferay.portal.kernel.exception.SystemException {
812 return getService().hasExtraSettings();
813 }
814
815 public static boolean hasFileEntryLock(long userId, long fileEntryId)
816 throws com.liferay.portal.kernel.exception.PortalException,
817 com.liferay.portal.kernel.exception.SystemException {
818 return getService().hasFileEntryLock(userId, fileEntryId);
819 }
820
821 public static void incrementViewCounter(
822 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
823 int increment)
824 throws com.liferay.portal.kernel.exception.SystemException {
825 getService().incrementViewCounter(dlFileEntry, increment);
826 }
827
828 public static boolean isFileEntryCheckedOut(long fileEntryId)
829 throws com.liferay.portal.kernel.exception.PortalException,
830 com.liferay.portal.kernel.exception.SystemException {
831 return getService().isFileEntryCheckedOut(fileEntryId);
832 }
833
834 public static com.liferay.portal.model.Lock lockFileEntry(long userId,
835 long fileEntryId)
836 throws com.liferay.portal.kernel.exception.PortalException,
837 com.liferay.portal.kernel.exception.SystemException {
838 return getService().lockFileEntry(userId, fileEntryId);
839 }
840
841 public static com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
842 long userId, long fileEntryId, long newFolderId,
843 com.liferay.portal.service.ServiceContext serviceContext)
844 throws com.liferay.portal.kernel.exception.PortalException,
845 com.liferay.portal.kernel.exception.SystemException {
846 return getService()
847 .moveFileEntry(userId, fileEntryId, newFolderId,
848 serviceContext);
849 }
850
851 public static void rebuildTree(long companyId)
852 throws com.liferay.portal.kernel.exception.PortalException,
853 com.liferay.portal.kernel.exception.SystemException {
854 getService().rebuildTree(companyId);
855 }
856
857 public static void revertFileEntry(long userId, long fileEntryId,
858 java.lang.String version,
859 com.liferay.portal.service.ServiceContext serviceContext)
860 throws com.liferay.portal.kernel.exception.PortalException,
861 com.liferay.portal.kernel.exception.SystemException {
862 getService()
863 .revertFileEntry(userId, fileEntryId, version, serviceContext);
864 }
865
866 public static com.liferay.portal.kernel.search.Hits search(long groupId,
867 long userId, long creatorUserId, int status, int start, int end)
868 throws com.liferay.portal.kernel.exception.PortalException,
869 com.liferay.portal.kernel.exception.SystemException {
870 return getService()
871 .search(groupId, userId, creatorUserId, status, start, end);
872 }
873
874 public static com.liferay.portal.kernel.search.Hits search(long groupId,
875 long userId, long creatorUserId, long folderId,
876 java.lang.String[] mimeTypes, int status, int start, int end)
877 throws com.liferay.portal.kernel.exception.PortalException,
878 com.liferay.portal.kernel.exception.SystemException {
879 return getService()
880 .search(groupId, userId, creatorUserId, folderId, mimeTypes,
881 status, start, end);
882 }
883
884 public static void setTreePaths(long folderId, java.lang.String treePath,
885 boolean reindex)
886 throws com.liferay.portal.kernel.exception.PortalException,
887 com.liferay.portal.kernel.exception.SystemException {
888 getService().setTreePaths(folderId, treePath, reindex);
889 }
890
891 public static void unlockFileEntry(long fileEntryId)
892 throws com.liferay.portal.kernel.exception.SystemException {
893 getService().unlockFileEntry(fileEntryId);
894 }
895
896 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
897 long userId, long fileEntryId, java.lang.String sourceFileName,
898 java.lang.String mimeType, java.lang.String title,
899 java.lang.String description, java.lang.String changeLog,
900 boolean majorVersion, long fileEntryTypeId,
901 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
902 java.io.File file, java.io.InputStream is, long size,
903 com.liferay.portal.service.ServiceContext serviceContext)
904 throws com.liferay.portal.kernel.exception.PortalException,
905 com.liferay.portal.kernel.exception.SystemException {
906 return getService()
907 .updateFileEntry(userId, fileEntryId, sourceFileName,
908 mimeType, title, description, changeLog, majorVersion,
909 fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
910 }
911
912 public static void updateSmallImage(long smallImageId, long largeImageId)
913 throws com.liferay.portal.kernel.exception.PortalException,
914 com.liferay.portal.kernel.exception.SystemException {
915 getService().updateSmallImage(smallImageId, largeImageId);
916 }
917
918 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateStatus(
919 long userId, long fileVersionId, int status,
920 java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
921 com.liferay.portal.service.ServiceContext serviceContext)
922 throws com.liferay.portal.kernel.exception.PortalException,
923 com.liferay.portal.kernel.exception.SystemException {
924 return getService()
925 .updateStatus(userId, fileVersionId, status,
926 workflowContext, serviceContext);
927 }
928
929 public static boolean verifyFileEntryCheckOut(long fileEntryId,
930 java.lang.String lockUuid)
931 throws com.liferay.portal.kernel.exception.PortalException,
932 com.liferay.portal.kernel.exception.SystemException {
933 return getService().verifyFileEntryCheckOut(fileEntryId, lockUuid);
934 }
935
936 public static boolean verifyFileEntryLock(long fileEntryId,
937 java.lang.String lockUuid)
938 throws com.liferay.portal.kernel.exception.PortalException,
939 com.liferay.portal.kernel.exception.SystemException {
940 return getService().verifyFileEntryLock(fileEntryId, lockUuid);
941 }
942
943 public static void validateFile(long groupId, long folderId,
944 long fileEntryId, java.lang.String title, java.lang.String extension)
945 throws com.liferay.portal.kernel.exception.PortalException,
946 com.liferay.portal.kernel.exception.SystemException {
947 getService()
948 .validateFile(groupId, folderId, fileEntryId, title, extension);
949 }
950
951 public static DLFileEntryLocalService getService() {
952 if (_service == null) {
953 _service = (DLFileEntryLocalService)PortalBeanLocatorUtil.locate(DLFileEntryLocalService.class.getName());
954
955 ReferenceRegistry.registerReference(DLFileEntryLocalServiceUtil.class,
956 "_service");
957 }
958
959 return _service;
960 }
961
962
965 public void setService(DLFileEntryLocalService service) {
966 }
967
968 private static DLFileEntryLocalService _service;
969 }