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 com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntry(
490 long groupId, long folderId, java.lang.String title)
491 throws com.liferay.portal.kernel.exception.SystemException {
492 return getService().fetchFileEntry(groupId, folderId, title);
493 }
494
495 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByAnyImageId(
496 long imageId)
497 throws com.liferay.portal.kernel.exception.SystemException {
498 return getService().fetchFileEntryByAnyImageId(imageId);
499 }
500
501 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByName(
502 long groupId, long folderId, java.lang.String name)
503 throws com.liferay.portal.kernel.exception.SystemException {
504 return getService().fetchFileEntryByName(groupId, folderId, name);
505 }
506
507 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDDMStructureFileEntries(
508 long groupId, long[] ddmStructureIds)
509 throws com.liferay.portal.kernel.exception.SystemException {
510 return getService().getDDMStructureFileEntries(groupId, ddmStructureIds);
511 }
512
513 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDDMStructureFileEntries(
514 long[] ddmStructureIds)
515 throws com.liferay.portal.kernel.exception.SystemException {
516 return getService().getDDMStructureFileEntries(ddmStructureIds);
517 }
518
519 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getExtraSettingsFileEntries(
520 int start, int end)
521 throws com.liferay.portal.kernel.exception.SystemException {
522 return getService().getExtraSettingsFileEntries(start, end);
523 }
524
525 public static int getExtraSettingsFileEntriesCount()
526 throws com.liferay.portal.kernel.exception.SystemException {
527 return getService().getExtraSettingsFileEntriesCount();
528 }
529
530 public static java.io.File getFile(long userId, long fileEntryId,
531 java.lang.String version, boolean incrementCounter)
532 throws com.liferay.portal.kernel.exception.PortalException,
533 com.liferay.portal.kernel.exception.SystemException {
534 return getService()
535 .getFile(userId, fileEntryId, version, incrementCounter);
536 }
537
538 public static java.io.File getFile(long userId, long fileEntryId,
539 java.lang.String version, boolean incrementCounter, int increment)
540 throws com.liferay.portal.kernel.exception.PortalException,
541 com.liferay.portal.kernel.exception.SystemException {
542 return getService()
543 .getFile(userId, fileEntryId, version, incrementCounter,
544 increment);
545 }
546
547 public static java.io.InputStream getFileAsStream(long userId,
548 long fileEntryId, java.lang.String version)
549 throws com.liferay.portal.kernel.exception.PortalException,
550 com.liferay.portal.kernel.exception.SystemException {
551 return getService().getFileAsStream(userId, fileEntryId, version);
552 }
553
554 public static java.io.InputStream getFileAsStream(long userId,
555 long fileEntryId, java.lang.String version, boolean incrementCounter)
556 throws com.liferay.portal.kernel.exception.PortalException,
557 com.liferay.portal.kernel.exception.SystemException {
558 return getService()
559 .getFileAsStream(userId, fileEntryId, version,
560 incrementCounter);
561 }
562
563 public static java.io.InputStream getFileAsStream(long userId,
564 long fileEntryId, java.lang.String version, boolean incrementCounter,
565 int increment)
566 throws com.liferay.portal.kernel.exception.PortalException,
567 com.liferay.portal.kernel.exception.SystemException {
568 return getService()
569 .getFileAsStream(userId, fileEntryId, version,
570 incrementCounter, increment);
571 }
572
573 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
574 int start, int end)
575 throws com.liferay.portal.kernel.exception.SystemException {
576 return getService().getFileEntries(start, end);
577 }
578
579 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
580 long groupId, long folderId)
581 throws com.liferay.portal.kernel.exception.SystemException {
582 return getService().getFileEntries(groupId, folderId);
583 }
584
585 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
586 long groupId, long folderId, int status, int start, int end,
587 com.liferay.portal.kernel.util.OrderByComparator obc)
588 throws com.liferay.portal.kernel.exception.SystemException {
589 return getService()
590 .getFileEntries(groupId, folderId, status, start, end, obc);
591 }
592
593 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
594 long groupId, long folderId, int start, int end,
595 com.liferay.portal.kernel.util.OrderByComparator obc)
596 throws com.liferay.portal.kernel.exception.SystemException {
597 return getService().getFileEntries(groupId, folderId, start, end, obc);
598 }
599
600 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
601 long groupId, long userId, java.util.List<java.lang.Long> folderIds,
602 java.lang.String[] mimeTypes,
603 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
604 throws java.lang.Exception {
605 return getService()
606 .getFileEntries(groupId, userId, folderIds, mimeTypes,
607 queryDefinition);
608 }
609
610 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
611 long folderId, java.lang.String name)
612 throws com.liferay.portal.kernel.exception.SystemException {
613 return getService().getFileEntries(folderId, name);
614 }
615
616 public static int getFileEntriesCount()
617 throws com.liferay.portal.kernel.exception.SystemException {
618 return getService().getFileEntriesCount();
619 }
620
621 public static int getFileEntriesCount(long groupId,
622 com.liferay.portal.kernel.util.DateRange dateRange, long repositoryId,
623 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
624 throws com.liferay.portal.kernel.exception.SystemException {
625 return getService()
626 .getFileEntriesCount(groupId, dateRange, repositoryId,
627 queryDefinition);
628 }
629
630 public static int getFileEntriesCount(long groupId, long folderId)
631 throws com.liferay.portal.kernel.exception.SystemException {
632 return getService().getFileEntriesCount(groupId, folderId);
633 }
634
635 public static int getFileEntriesCount(long groupId, long folderId,
636 int status) throws com.liferay.portal.kernel.exception.SystemException {
637 return getService().getFileEntriesCount(groupId, folderId, status);
638 }
639
640 public static int getFileEntriesCount(long groupId, long userId,
641 java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
642 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
643 throws java.lang.Exception {
644 return getService()
645 .getFileEntriesCount(groupId, userId, folderIds, mimeTypes,
646 queryDefinition);
647 }
648
649 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
650 long fileEntryId)
651 throws com.liferay.portal.kernel.exception.PortalException,
652 com.liferay.portal.kernel.exception.SystemException {
653 return getService().getFileEntry(fileEntryId);
654 }
655
656 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
657 long groupId, long folderId, java.lang.String title)
658 throws com.liferay.portal.kernel.exception.PortalException,
659 com.liferay.portal.kernel.exception.SystemException {
660 return getService().getFileEntry(groupId, folderId, title);
661 }
662
663 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByName(
664 long groupId, long folderId, java.lang.String name)
665 throws com.liferay.portal.kernel.exception.PortalException,
666 com.liferay.portal.kernel.exception.SystemException {
667 return getService().getFileEntryByName(groupId, folderId, name);
668 }
669
670 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
671 java.lang.String uuid, long groupId)
672 throws com.liferay.portal.kernel.exception.PortalException,
673 com.liferay.portal.kernel.exception.SystemException {
674 return getService().getFileEntryByUuidAndGroupId(uuid, groupId);
675 }
676
677 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
678 long groupId, int start, int end)
679 throws com.liferay.portal.kernel.exception.SystemException {
680 return getService().getGroupFileEntries(groupId, start, end);
681 }
682
683 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
684 long groupId, int start, int end,
685 com.liferay.portal.kernel.util.OrderByComparator obc)
686 throws com.liferay.portal.kernel.exception.SystemException {
687 return getService().getGroupFileEntries(groupId, start, end, obc);
688 }
689
690 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
691 long groupId, long userId, int start, int end)
692 throws com.liferay.portal.kernel.exception.SystemException {
693 return getService().getGroupFileEntries(groupId, userId, start, end);
694 }
695
696 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
697 long groupId, long userId, int start, int end,
698 com.liferay.portal.kernel.util.OrderByComparator obc)
699 throws com.liferay.portal.kernel.exception.SystemException {
700 return getService().getGroupFileEntries(groupId, userId, start, end, obc);
701 }
702
703 public static int getGroupFileEntriesCount(long groupId)
704 throws com.liferay.portal.kernel.exception.SystemException {
705 return getService().getGroupFileEntriesCount(groupId);
706 }
707
708 public static int getGroupFileEntriesCount(long groupId, long userId)
709 throws com.liferay.portal.kernel.exception.SystemException {
710 return getService().getGroupFileEntriesCount(groupId, userId);
711 }
712
713 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getMisversionedFileEntries()
714 throws com.liferay.portal.kernel.exception.SystemException {
715 return getService().getMisversionedFileEntries();
716 }
717
718 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries()
719 throws com.liferay.portal.kernel.exception.SystemException {
720 return getService().getNoAssetFileEntries();
721 }
722
723 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getOrphanedFileEntries()
724 throws com.liferay.portal.kernel.exception.SystemException {
725 return getService().getOrphanedFileEntries();
726 }
727
728 public static boolean hasExtraSettings()
729 throws com.liferay.portal.kernel.exception.SystemException {
730 return getService().hasExtraSettings();
731 }
732
733 public static boolean hasFileEntryLock(long userId, long fileEntryId)
734 throws com.liferay.portal.kernel.exception.PortalException,
735 com.liferay.portal.kernel.exception.SystemException {
736 return getService().hasFileEntryLock(userId, fileEntryId);
737 }
738
739 public static void incrementViewCounter(
740 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
741 int increment)
742 throws com.liferay.portal.kernel.exception.SystemException {
743 getService().incrementViewCounter(dlFileEntry, increment);
744 }
745
746 public static boolean isFileEntryCheckedOut(long fileEntryId)
747 throws com.liferay.portal.kernel.exception.PortalException,
748 com.liferay.portal.kernel.exception.SystemException {
749 return getService().isFileEntryCheckedOut(fileEntryId);
750 }
751
752 public static com.liferay.portal.model.Lock lockFileEntry(long userId,
753 long fileEntryId)
754 throws com.liferay.portal.kernel.exception.PortalException,
755 com.liferay.portal.kernel.exception.SystemException {
756 return getService().lockFileEntry(userId, fileEntryId);
757 }
758
759 public static com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
760 long userId, long fileEntryId, long newFolderId,
761 com.liferay.portal.service.ServiceContext serviceContext)
762 throws com.liferay.portal.kernel.exception.PortalException,
763 com.liferay.portal.kernel.exception.SystemException {
764 return getService()
765 .moveFileEntry(userId, fileEntryId, newFolderId,
766 serviceContext);
767 }
768
769 public static void rebuildTree(long companyId)
770 throws com.liferay.portal.kernel.exception.SystemException {
771 getService().rebuildTree(companyId);
772 }
773
774 public static void revertFileEntry(long userId, long fileEntryId,
775 java.lang.String version,
776 com.liferay.portal.service.ServiceContext serviceContext)
777 throws com.liferay.portal.kernel.exception.PortalException,
778 com.liferay.portal.kernel.exception.SystemException {
779 getService()
780 .revertFileEntry(userId, fileEntryId, version, serviceContext);
781 }
782
783 public static com.liferay.portal.kernel.search.Hits search(long groupId,
784 long userId, long creatorUserId, int status, int start, int end)
785 throws com.liferay.portal.kernel.exception.PortalException,
786 com.liferay.portal.kernel.exception.SystemException {
787 return getService()
788 .search(groupId, userId, creatorUserId, status, start, end);
789 }
790
791 public static com.liferay.portal.kernel.search.Hits search(long groupId,
792 long userId, long creatorUserId, long folderId,
793 java.lang.String[] mimeTypes, int status, int start, int end)
794 throws com.liferay.portal.kernel.exception.PortalException,
795 com.liferay.portal.kernel.exception.SystemException {
796 return getService()
797 .search(groupId, userId, creatorUserId, folderId, mimeTypes,
798 status, start, end);
799 }
800
801 public static void unlockFileEntry(long fileEntryId)
802 throws com.liferay.portal.kernel.exception.SystemException {
803 getService().unlockFileEntry(fileEntryId);
804 }
805
806 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
807 long userId, long fileEntryId, java.lang.String sourceFileName,
808 java.lang.String mimeType, java.lang.String title,
809 java.lang.String description, java.lang.String changeLog,
810 boolean majorVersion, long fileEntryTypeId,
811 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
812 java.io.File file, java.io.InputStream is, long size,
813 com.liferay.portal.service.ServiceContext serviceContext)
814 throws com.liferay.portal.kernel.exception.PortalException,
815 com.liferay.portal.kernel.exception.SystemException {
816 return getService()
817 .updateFileEntry(userId, fileEntryId, sourceFileName,
818 mimeType, title, description, changeLog, majorVersion,
819 fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
820 }
821
822 public static void updateSmallImage(long smallImageId, long largeImageId)
823 throws com.liferay.portal.kernel.exception.PortalException,
824 com.liferay.portal.kernel.exception.SystemException {
825 getService().updateSmallImage(smallImageId, largeImageId);
826 }
827
828 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateStatus(
829 long userId, long fileVersionId, int status,
830 java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
831 com.liferay.portal.service.ServiceContext serviceContext)
832 throws com.liferay.portal.kernel.exception.PortalException,
833 com.liferay.portal.kernel.exception.SystemException {
834 return getService()
835 .updateStatus(userId, fileVersionId, status,
836 workflowContext, serviceContext);
837 }
838
839 public static boolean verifyFileEntryCheckOut(long fileEntryId,
840 java.lang.String lockUuid)
841 throws com.liferay.portal.kernel.exception.PortalException,
842 com.liferay.portal.kernel.exception.SystemException {
843 return getService().verifyFileEntryCheckOut(fileEntryId, lockUuid);
844 }
845
846 public static boolean verifyFileEntryLock(long fileEntryId,
847 java.lang.String lockUuid)
848 throws com.liferay.portal.kernel.exception.PortalException,
849 com.liferay.portal.kernel.exception.SystemException {
850 return getService().verifyFileEntryLock(fileEntryId, lockUuid);
851 }
852
853 public static void validateFile(long groupId, long folderId,
854 long fileEntryId, java.lang.String title, java.lang.String extension)
855 throws com.liferay.portal.kernel.exception.PortalException,
856 com.liferay.portal.kernel.exception.SystemException {
857 getService()
858 .validateFile(groupId, folderId, fileEntryId, title, extension);
859 }
860
861 public static DLFileEntryLocalService getService() {
862 if (_service == null) {
863 _service = (DLFileEntryLocalService)PortalBeanLocatorUtil.locate(DLFileEntryLocalService.class.getName());
864
865 ReferenceRegistry.registerReference(DLFileEntryLocalServiceUtil.class,
866 "_service");
867 }
868
869 return _service;
870 }
871
872
875 public void setService(DLFileEntryLocalService service) {
876 }
877
878 private static DLFileEntryLocalService _service;
879 }