001
014
015 package com.liferay.portlet.documentlibrary.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
034 public class DLFileEntryLocalServiceUtil {
035
040
041
048 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addDLFileEntry(
049 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addDLFileEntry(dlFileEntry);
052 }
053
054
060 public static com.liferay.portlet.documentlibrary.model.DLFileEntry createDLFileEntry(
061 long fileEntryId) {
062 return getService().createDLFileEntry(fileEntryId);
063 }
064
065
073 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteDLFileEntry(
074 long fileEntryId)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 return getService().deleteDLFileEntry(fileEntryId);
078 }
079
080
087 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteDLFileEntry(
088 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
089 throws com.liferay.portal.kernel.exception.SystemException {
090 return getService().deleteDLFileEntry(dlFileEntry);
091 }
092
093 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
094 return getService().dynamicQuery();
095 }
096
097
104 @SuppressWarnings("rawtypes")
105 public static java.util.List dynamicQuery(
106 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().dynamicQuery(dynamicQuery);
109 }
110
111
124 @SuppressWarnings("rawtypes")
125 public static java.util.List dynamicQuery(
126 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
127 int end) throws com.liferay.portal.kernel.exception.SystemException {
128 return getService().dynamicQuery(dynamicQuery, start, end);
129 }
130
131
145 @SuppressWarnings("rawtypes")
146 public static java.util.List dynamicQuery(
147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148 int end,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.kernel.exception.SystemException {
151 return getService()
152 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
153 }
154
155
162 public static long dynamicQueryCount(
163 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return getService().dynamicQueryCount(dynamicQuery);
166 }
167
168
176 public static long dynamicQueryCount(
177 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
178 com.liferay.portal.kernel.dao.orm.Projection projection)
179 throws com.liferay.portal.kernel.exception.SystemException {
180 return getService().dynamicQueryCount(dynamicQuery, projection);
181 }
182
183 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchDLFileEntry(
184 long fileEntryId)
185 throws com.liferay.portal.kernel.exception.SystemException {
186 return getService().fetchDLFileEntry(fileEntryId);
187 }
188
189
197 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchDLFileEntryByUuidAndCompanyId(
198 java.lang.String uuid, long companyId)
199 throws com.liferay.portal.kernel.exception.SystemException {
200 return getService().fetchDLFileEntryByUuidAndCompanyId(uuid, companyId);
201 }
202
203
211 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchDLFileEntryByUuidAndGroupId(
212 java.lang.String uuid, long groupId)
213 throws com.liferay.portal.kernel.exception.SystemException {
214 return getService().fetchDLFileEntryByUuidAndGroupId(uuid, groupId);
215 }
216
217
225 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntry(
226 long fileEntryId)
227 throws com.liferay.portal.kernel.exception.PortalException,
228 com.liferay.portal.kernel.exception.SystemException {
229 return getService().getDLFileEntry(fileEntryId);
230 }
231
232 public static com.liferay.portal.model.PersistedModel getPersistedModel(
233 java.io.Serializable primaryKeyObj)
234 throws com.liferay.portal.kernel.exception.PortalException,
235 com.liferay.portal.kernel.exception.SystemException {
236 return getService().getPersistedModel(primaryKeyObj);
237 }
238
239
248 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntryByUuidAndCompanyId(
249 java.lang.String uuid, long companyId)
250 throws com.liferay.portal.kernel.exception.PortalException,
251 com.liferay.portal.kernel.exception.SystemException {
252 return getService().getDLFileEntryByUuidAndCompanyId(uuid, companyId);
253 }
254
255
264 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntryByUuidAndGroupId(
265 java.lang.String uuid, long groupId)
266 throws com.liferay.portal.kernel.exception.PortalException,
267 com.liferay.portal.kernel.exception.SystemException {
268 return getService().getDLFileEntryByUuidAndGroupId(uuid, groupId);
269 }
270
271
283 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntries(
284 int start, int end)
285 throws com.liferay.portal.kernel.exception.SystemException {
286 return getService().getDLFileEntries(start, end);
287 }
288
289
295 public static int getDLFileEntriesCount()
296 throws com.liferay.portal.kernel.exception.SystemException {
297 return getService().getDLFileEntriesCount();
298 }
299
300
307 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
308 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
309 throws com.liferay.portal.kernel.exception.SystemException {
310 return getService().updateDLFileEntry(dlFileEntry);
311 }
312
313
318 public static java.lang.String getBeanIdentifier() {
319 return getService().getBeanIdentifier();
320 }
321
322
327 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
328 getService().setBeanIdentifier(beanIdentifier);
329 }
330
331 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
332 long userId, long groupId, long repositoryId, long folderId,
333 java.lang.String sourceFileName, java.lang.String mimeType,
334 java.lang.String title, java.lang.String description,
335 java.lang.String changeLog, long fileEntryTypeId,
336 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
337 java.io.File file, java.io.InputStream is, long size,
338 com.liferay.portal.service.ServiceContext serviceContext)
339 throws com.liferay.portal.kernel.exception.PortalException,
340 com.liferay.portal.kernel.exception.SystemException {
341 return getService()
342 .addFileEntry(userId, groupId, repositoryId, folderId,
343 sourceFileName, mimeType, title, description, changeLog,
344 fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
345 }
346
347 public static com.liferay.portlet.documentlibrary.model.DLFileVersion cancelCheckOut(
348 long userId, long fileEntryId)
349 throws com.liferay.portal.kernel.exception.PortalException,
350 com.liferay.portal.kernel.exception.SystemException {
351 return getService().cancelCheckOut(userId, fileEntryId);
352 }
353
354 public static void checkInFileEntry(long userId, long fileEntryId,
355 boolean majorVersion, java.lang.String changeLog,
356 com.liferay.portal.service.ServiceContext serviceContext)
357 throws com.liferay.portal.kernel.exception.PortalException,
358 com.liferay.portal.kernel.exception.SystemException {
359 getService()
360 .checkInFileEntry(userId, fileEntryId, majorVersion, changeLog,
361 serviceContext);
362 }
363
364
368 public static void checkInFileEntry(long userId, long fileEntryId,
369 java.lang.String lockUuid)
370 throws com.liferay.portal.kernel.exception.PortalException,
371 com.liferay.portal.kernel.exception.SystemException {
372 getService().checkInFileEntry(userId, fileEntryId, lockUuid);
373 }
374
375 public static void checkInFileEntry(long userId, long fileEntryId,
376 java.lang.String lockUuid,
377 com.liferay.portal.service.ServiceContext serviceContext)
378 throws com.liferay.portal.kernel.exception.PortalException,
379 com.liferay.portal.kernel.exception.SystemException {
380 getService()
381 .checkInFileEntry(userId, fileEntryId, lockUuid, serviceContext);
382 }
383
384
388 public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
389 long userId, long fileEntryId)
390 throws com.liferay.portal.kernel.exception.PortalException,
391 com.liferay.portal.kernel.exception.SystemException {
392 return getService().checkOutFileEntry(userId, fileEntryId);
393 }
394
395 public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
396 long userId, long fileEntryId,
397 com.liferay.portal.service.ServiceContext serviceContext)
398 throws com.liferay.portal.kernel.exception.PortalException,
399 com.liferay.portal.kernel.exception.SystemException {
400 return getService()
401 .checkOutFileEntry(userId, fileEntryId, serviceContext);
402 }
403
404
408 public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
409 long userId, long fileEntryId, java.lang.String owner,
410 long expirationTime)
411 throws com.liferay.portal.kernel.exception.PortalException,
412 com.liferay.portal.kernel.exception.SystemException {
413 return getService()
414 .checkOutFileEntry(userId, fileEntryId, owner, expirationTime);
415 }
416
417 public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
418 long userId, long fileEntryId, java.lang.String owner,
419 long expirationTime,
420 com.liferay.portal.service.ServiceContext serviceContext)
421 throws com.liferay.portal.kernel.exception.PortalException,
422 com.liferay.portal.kernel.exception.SystemException {
423 return getService()
424 .checkOutFileEntry(userId, fileEntryId, owner,
425 expirationTime, serviceContext);
426 }
427
428 public static void convertExtraSettings(java.lang.String[] keys)
429 throws com.liferay.portal.kernel.exception.PortalException,
430 com.liferay.portal.kernel.exception.SystemException {
431 getService().convertExtraSettings(keys);
432 }
433
434 public static void copyFileEntryMetadata(long companyId,
435 long fileEntryTypeId, long fileEntryId, long fromFileVersionId,
436 long toFileVersionId,
437 com.liferay.portal.service.ServiceContext serviceContext)
438 throws com.liferay.portal.kernel.exception.PortalException,
439 com.liferay.portal.kernel.exception.SystemException {
440 getService()
441 .copyFileEntryMetadata(companyId, fileEntryTypeId, fileEntryId,
442 fromFileVersionId, toFileVersionId, serviceContext);
443 }
444
445 public static void deleteFileEntries(long groupId, long folderId)
446 throws com.liferay.portal.kernel.exception.PortalException,
447 com.liferay.portal.kernel.exception.SystemException {
448 getService().deleteFileEntries(groupId, folderId);
449 }
450
451 public static void deleteFileEntries(long groupId, long folderId,
452 boolean includeTrashedEntries)
453 throws com.liferay.portal.kernel.exception.PortalException,
454 com.liferay.portal.kernel.exception.SystemException {
455 getService().deleteFileEntries(groupId, folderId, includeTrashedEntries);
456 }
457
458 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
459 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
460 throws com.liferay.portal.kernel.exception.PortalException,
461 com.liferay.portal.kernel.exception.SystemException {
462 return getService().deleteFileEntry(dlFileEntry);
463 }
464
465 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
466 long fileEntryId)
467 throws com.liferay.portal.kernel.exception.PortalException,
468 com.liferay.portal.kernel.exception.SystemException {
469 return getService().deleteFileEntry(fileEntryId);
470 }
471
472 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
473 long userId, long fileEntryId)
474 throws com.liferay.portal.kernel.exception.PortalException,
475 com.liferay.portal.kernel.exception.SystemException {
476 return getService().deleteFileEntry(userId, fileEntryId);
477 }
478
479 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileVersion(
480 long userId, long fileEntryId, java.lang.String version)
481 throws com.liferay.portal.kernel.exception.PortalException,
482 com.liferay.portal.kernel.exception.SystemException {
483 return getService().deleteFileVersion(userId, fileEntryId, version);
484 }
485
486 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntry(
487 long groupId, long folderId, java.lang.String title)
488 throws com.liferay.portal.kernel.exception.SystemException {
489 return getService().fetchFileEntry(groupId, folderId, title);
490 }
491
492 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByAnyImageId(
493 long imageId)
494 throws com.liferay.portal.kernel.exception.SystemException {
495 return getService().fetchFileEntryByAnyImageId(imageId);
496 }
497
498 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByName(
499 long groupId, long folderId, java.lang.String name)
500 throws com.liferay.portal.kernel.exception.SystemException {
501 return getService().fetchFileEntryByName(groupId, folderId, name);
502 }
503
504 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDDMStructureFileEntries(
505 long[] ddmStructureIds)
506 throws com.liferay.portal.kernel.exception.SystemException {
507 return getService().getDDMStructureFileEntries(ddmStructureIds);
508 }
509
510 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getExtraSettingsFileEntries(
511 int start, int end)
512 throws com.liferay.portal.kernel.exception.SystemException {
513 return getService().getExtraSettingsFileEntries(start, end);
514 }
515
516 public static java.io.File getFile(long userId, long fileEntryId,
517 java.lang.String version, boolean incrementCounter)
518 throws com.liferay.portal.kernel.exception.PortalException,
519 com.liferay.portal.kernel.exception.SystemException {
520 return getService()
521 .getFile(userId, fileEntryId, version, incrementCounter);
522 }
523
524 public static java.io.File getFile(long userId, long fileEntryId,
525 java.lang.String version, boolean incrementCounter, int increment)
526 throws com.liferay.portal.kernel.exception.PortalException,
527 com.liferay.portal.kernel.exception.SystemException {
528 return getService()
529 .getFile(userId, fileEntryId, version, incrementCounter,
530 increment);
531 }
532
533 public static java.io.InputStream getFileAsStream(long userId,
534 long fileEntryId, java.lang.String version)
535 throws com.liferay.portal.kernel.exception.PortalException,
536 com.liferay.portal.kernel.exception.SystemException {
537 return getService().getFileAsStream(userId, fileEntryId, version);
538 }
539
540 public static java.io.InputStream getFileAsStream(long userId,
541 long fileEntryId, java.lang.String version, boolean incrementCounter)
542 throws com.liferay.portal.kernel.exception.PortalException,
543 com.liferay.portal.kernel.exception.SystemException {
544 return getService()
545 .getFileAsStream(userId, fileEntryId, version,
546 incrementCounter);
547 }
548
549 public static java.io.InputStream getFileAsStream(long userId,
550 long fileEntryId, java.lang.String version, boolean incrementCounter,
551 int increment)
552 throws com.liferay.portal.kernel.exception.PortalException,
553 com.liferay.portal.kernel.exception.SystemException {
554 return getService()
555 .getFileAsStream(userId, fileEntryId, version,
556 incrementCounter, increment);
557 }
558
559 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
560 int start, int end)
561 throws com.liferay.portal.kernel.exception.SystemException {
562 return getService().getFileEntries(start, end);
563 }
564
565 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
566 long groupId, long folderId)
567 throws com.liferay.portal.kernel.exception.SystemException {
568 return getService().getFileEntries(groupId, folderId);
569 }
570
571 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
572 long groupId, long folderId, int status, int start, int end,
573 com.liferay.portal.kernel.util.OrderByComparator obc)
574 throws com.liferay.portal.kernel.exception.SystemException {
575 return getService()
576 .getFileEntries(groupId, folderId, status, start, end, obc);
577 }
578
579 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
580 long groupId, long folderId, int start, int end,
581 com.liferay.portal.kernel.util.OrderByComparator obc)
582 throws com.liferay.portal.kernel.exception.SystemException {
583 return getService().getFileEntries(groupId, folderId, start, end, obc);
584 }
585
586 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
587 long folderId, java.lang.String name)
588 throws com.liferay.portal.kernel.exception.SystemException {
589 return getService().getFileEntries(folderId, name);
590 }
591
592 public static int getFileEntriesCount()
593 throws com.liferay.portal.kernel.exception.SystemException {
594 return getService().getFileEntriesCount();
595 }
596
597 public static int getFileEntriesCount(long groupId,
598 com.liferay.portal.kernel.util.DateRange dateRange, long repositoryId,
599 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
600 throws com.liferay.portal.kernel.exception.SystemException {
601 return getService()
602 .getFileEntriesCount(groupId, dateRange, repositoryId,
603 queryDefinition);
604 }
605
606 public static int getFileEntriesCount(long groupId, long folderId)
607 throws com.liferay.portal.kernel.exception.SystemException {
608 return getService().getFileEntriesCount(groupId, folderId);
609 }
610
611 public static int getFileEntriesCount(long groupId, long folderId,
612 int status) throws com.liferay.portal.kernel.exception.SystemException {
613 return getService().getFileEntriesCount(groupId, folderId, status);
614 }
615
616 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
617 long fileEntryId)
618 throws com.liferay.portal.kernel.exception.PortalException,
619 com.liferay.portal.kernel.exception.SystemException {
620 return getService().getFileEntry(fileEntryId);
621 }
622
623 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
624 long groupId, long folderId, java.lang.String title)
625 throws com.liferay.portal.kernel.exception.PortalException,
626 com.liferay.portal.kernel.exception.SystemException {
627 return getService().getFileEntry(groupId, folderId, title);
628 }
629
630 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByName(
631 long groupId, long folderId, java.lang.String name)
632 throws com.liferay.portal.kernel.exception.PortalException,
633 com.liferay.portal.kernel.exception.SystemException {
634 return getService().getFileEntryByName(groupId, folderId, name);
635 }
636
637 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
638 java.lang.String uuid, long groupId)
639 throws com.liferay.portal.kernel.exception.PortalException,
640 com.liferay.portal.kernel.exception.SystemException {
641 return getService().getFileEntryByUuidAndGroupId(uuid, groupId);
642 }
643
644 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
645 long groupId, int start, int end)
646 throws com.liferay.portal.kernel.exception.SystemException {
647 return getService().getGroupFileEntries(groupId, start, end);
648 }
649
650 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
651 long groupId, int start, int end,
652 com.liferay.portal.kernel.util.OrderByComparator obc)
653 throws com.liferay.portal.kernel.exception.SystemException {
654 return getService().getGroupFileEntries(groupId, start, end, obc);
655 }
656
657 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
658 long groupId, long userId, int start, int end)
659 throws com.liferay.portal.kernel.exception.SystemException {
660 return getService().getGroupFileEntries(groupId, userId, start, end);
661 }
662
663 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
664 long groupId, long userId, int start, int end,
665 com.liferay.portal.kernel.util.OrderByComparator obc)
666 throws com.liferay.portal.kernel.exception.SystemException {
667 return getService().getGroupFileEntries(groupId, userId, start, end, obc);
668 }
669
670 public static int getGroupFileEntriesCount(long groupId)
671 throws com.liferay.portal.kernel.exception.SystemException {
672 return getService().getGroupFileEntriesCount(groupId);
673 }
674
675 public static int getGroupFileEntriesCount(long groupId, long userId)
676 throws com.liferay.portal.kernel.exception.SystemException {
677 return getService().getGroupFileEntriesCount(groupId, userId);
678 }
679
680 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getMisversionedFileEntries()
681 throws com.liferay.portal.kernel.exception.SystemException {
682 return getService().getMisversionedFileEntries();
683 }
684
685 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries()
686 throws com.liferay.portal.kernel.exception.SystemException {
687 return getService().getNoAssetFileEntries();
688 }
689
690 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getOrphanedFileEntries()
691 throws com.liferay.portal.kernel.exception.SystemException {
692 return getService().getOrphanedFileEntries();
693 }
694
695 public static boolean hasExtraSettings()
696 throws com.liferay.portal.kernel.exception.SystemException {
697 return getService().hasExtraSettings();
698 }
699
700 public static boolean hasFileEntryLock(long userId, long fileEntryId)
701 throws com.liferay.portal.kernel.exception.PortalException,
702 com.liferay.portal.kernel.exception.SystemException {
703 return getService().hasFileEntryLock(userId, fileEntryId);
704 }
705
706 public static void incrementViewCounter(
707 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
708 int increment)
709 throws com.liferay.portal.kernel.exception.SystemException {
710 getService().incrementViewCounter(dlFileEntry, increment);
711 }
712
713 public static boolean isFileEntryCheckedOut(long fileEntryId)
714 throws com.liferay.portal.kernel.exception.PortalException,
715 com.liferay.portal.kernel.exception.SystemException {
716 return getService().isFileEntryCheckedOut(fileEntryId);
717 }
718
719 public static com.liferay.portal.model.Lock lockFileEntry(long userId,
720 long fileEntryId)
721 throws com.liferay.portal.kernel.exception.PortalException,
722 com.liferay.portal.kernel.exception.SystemException {
723 return getService().lockFileEntry(userId, fileEntryId);
724 }
725
726 public static com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
727 long userId, long fileEntryId, long newFolderId,
728 com.liferay.portal.service.ServiceContext serviceContext)
729 throws com.liferay.portal.kernel.exception.PortalException,
730 com.liferay.portal.kernel.exception.SystemException {
731 return getService()
732 .moveFileEntry(userId, fileEntryId, newFolderId,
733 serviceContext);
734 }
735
736 public static void rebuildTree(long companyId)
737 throws com.liferay.portal.kernel.exception.PortalException,
738 com.liferay.portal.kernel.exception.SystemException {
739 getService().rebuildTree(companyId);
740 }
741
742 public static void revertFileEntry(long userId, long fileEntryId,
743 java.lang.String version,
744 com.liferay.portal.service.ServiceContext serviceContext)
745 throws com.liferay.portal.kernel.exception.PortalException,
746 com.liferay.portal.kernel.exception.SystemException {
747 getService()
748 .revertFileEntry(userId, fileEntryId, version, serviceContext);
749 }
750
751 public static com.liferay.portal.kernel.search.Hits search(long groupId,
752 long userId, long creatorUserId, int status, int start, int end)
753 throws com.liferay.portal.kernel.exception.PortalException,
754 com.liferay.portal.kernel.exception.SystemException {
755 return getService()
756 .search(groupId, userId, creatorUserId, status, start, end);
757 }
758
759 public static com.liferay.portal.kernel.search.Hits search(long groupId,
760 long userId, long creatorUserId, long folderId,
761 java.lang.String[] mimeTypes, int status, int start, int end)
762 throws com.liferay.portal.kernel.exception.PortalException,
763 com.liferay.portal.kernel.exception.SystemException {
764 return getService()
765 .search(groupId, userId, creatorUserId, folderId, mimeTypes,
766 status, start, end);
767 }
768
769 public static void unlockFileEntry(long fileEntryId)
770 throws com.liferay.portal.kernel.exception.SystemException {
771 getService().unlockFileEntry(fileEntryId);
772 }
773
774 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
775 long userId, long fileEntryId, java.lang.String sourceFileName,
776 java.lang.String mimeType, java.lang.String title,
777 java.lang.String description, java.lang.String changeLog,
778 boolean majorVersion, long fileEntryTypeId,
779 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
780 java.io.File file, java.io.InputStream is, long size,
781 com.liferay.portal.service.ServiceContext serviceContext)
782 throws com.liferay.portal.kernel.exception.PortalException,
783 com.liferay.portal.kernel.exception.SystemException {
784 return getService()
785 .updateFileEntry(userId, fileEntryId, sourceFileName,
786 mimeType, title, description, changeLog, majorVersion,
787 fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
788 }
789
790 public static void updateSmallImage(long smallImageId, long largeImageId)
791 throws com.liferay.portal.kernel.exception.PortalException,
792 com.liferay.portal.kernel.exception.SystemException {
793 getService().updateSmallImage(smallImageId, largeImageId);
794 }
795
796 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateStatus(
797 long userId, long fileVersionId, int status,
798 java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
799 com.liferay.portal.service.ServiceContext serviceContext)
800 throws com.liferay.portal.kernel.exception.PortalException,
801 com.liferay.portal.kernel.exception.SystemException {
802 return getService()
803 .updateStatus(userId, fileVersionId, status,
804 workflowContext, serviceContext);
805 }
806
807 public static boolean verifyFileEntryCheckOut(long fileEntryId,
808 java.lang.String lockUuid)
809 throws com.liferay.portal.kernel.exception.PortalException,
810 com.liferay.portal.kernel.exception.SystemException {
811 return getService().verifyFileEntryCheckOut(fileEntryId, lockUuid);
812 }
813
814 public static boolean verifyFileEntryLock(long fileEntryId,
815 java.lang.String lockUuid)
816 throws com.liferay.portal.kernel.exception.PortalException,
817 com.liferay.portal.kernel.exception.SystemException {
818 return getService().verifyFileEntryLock(fileEntryId, lockUuid);
819 }
820
821 public static DLFileEntryLocalService getService() {
822 if (_service == null) {
823 _service = (DLFileEntryLocalService)PortalBeanLocatorUtil.locate(DLFileEntryLocalService.class.getName());
824
825 ReferenceRegistry.registerReference(DLFileEntryLocalServiceUtil.class,
826 "_service");
827 }
828
829 return _service;
830 }
831
832
835 public void setService(DLFileEntryLocalService service) {
836 }
837
838 private static DLFileEntryLocalService _service;
839 }