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
050 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addDLFileEntry(
051 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry) {
052 return getService().addDLFileEntry(dlFileEntry);
053 }
054
055 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
056 long userId, long groupId, long repositoryId, long folderId,
057 java.lang.String sourceFileName, java.lang.String mimeType,
058 java.lang.String title, java.lang.String description,
059 java.lang.String changeLog, long fileEntryTypeId,
060 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
061 java.io.File file, java.io.InputStream is, long size,
062 com.liferay.portal.service.ServiceContext serviceContext)
063 throws com.liferay.portal.kernel.exception.PortalException {
064 return getService()
065 .addFileEntry(userId, groupId, repositoryId, folderId,
066 sourceFileName, mimeType, title, description, changeLog,
067 fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
068 }
069
070 public static com.liferay.portlet.documentlibrary.model.DLFileVersion cancelCheckOut(
071 long userId, long fileEntryId)
072 throws com.liferay.portal.kernel.exception.PortalException {
073 return getService().cancelCheckOut(userId, fileEntryId);
074 }
075
076
080 @Deprecated
081 public static void checkInFileEntry(long userId, long fileEntryId,
082 java.lang.String lockUuid)
083 throws com.liferay.portal.kernel.exception.PortalException {
084 getService().checkInFileEntry(userId, fileEntryId, lockUuid);
085 }
086
087 public static void checkInFileEntry(long userId, long fileEntryId,
088 java.lang.String lockUuid,
089 com.liferay.portal.service.ServiceContext serviceContext)
090 throws com.liferay.portal.kernel.exception.PortalException {
091 getService()
092 .checkInFileEntry(userId, fileEntryId, lockUuid, serviceContext);
093 }
094
095 public static void checkInFileEntry(long userId, long fileEntryId,
096 boolean majorVersion, java.lang.String changeLog,
097 com.liferay.portal.service.ServiceContext serviceContext)
098 throws com.liferay.portal.kernel.exception.PortalException {
099 getService()
100 .checkInFileEntry(userId, fileEntryId, majorVersion, changeLog,
101 serviceContext);
102 }
103
104
108 @Deprecated
109 public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
110 long userId, long fileEntryId)
111 throws com.liferay.portal.kernel.exception.PortalException {
112 return getService().checkOutFileEntry(userId, fileEntryId);
113 }
114
115
119 @Deprecated
120 public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
121 long userId, long fileEntryId, java.lang.String owner,
122 long expirationTime)
123 throws com.liferay.portal.kernel.exception.PortalException {
124 return getService()
125 .checkOutFileEntry(userId, fileEntryId, owner, expirationTime);
126 }
127
128 public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
129 long userId, long fileEntryId, java.lang.String owner,
130 long expirationTime,
131 com.liferay.portal.service.ServiceContext serviceContext)
132 throws com.liferay.portal.kernel.exception.PortalException {
133 return getService()
134 .checkOutFileEntry(userId, fileEntryId, owner,
135 expirationTime, serviceContext);
136 }
137
138 public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
139 long userId, long fileEntryId,
140 com.liferay.portal.service.ServiceContext serviceContext)
141 throws com.liferay.portal.kernel.exception.PortalException {
142 return getService()
143 .checkOutFileEntry(userId, fileEntryId, serviceContext);
144 }
145
146 public static void convertExtraSettings(java.lang.String[] keys)
147 throws com.liferay.portal.kernel.exception.PortalException {
148 getService().convertExtraSettings(keys);
149 }
150
151 public static void copyFileEntryMetadata(long companyId,
152 long fileEntryTypeId, long fileEntryId, long fromFileVersionId,
153 long toFileVersionId,
154 com.liferay.portal.service.ServiceContext serviceContext)
155 throws com.liferay.portal.kernel.exception.PortalException {
156 getService()
157 .copyFileEntryMetadata(companyId, fileEntryTypeId, fileEntryId,
158 fromFileVersionId, toFileVersionId, serviceContext);
159 }
160
161
167 public static com.liferay.portlet.documentlibrary.model.DLFileEntry createDLFileEntry(
168 long fileEntryId) {
169 return getService().createDLFileEntry(fileEntryId);
170 }
171
172
178 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteDLFileEntry(
179 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry) {
180 return getService().deleteDLFileEntry(dlFileEntry);
181 }
182
183
190 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteDLFileEntry(
191 long fileEntryId)
192 throws com.liferay.portal.kernel.exception.PortalException {
193 return getService().deleteDLFileEntry(fileEntryId);
194 }
195
196 public static void deleteFileEntries(long groupId, long folderId)
197 throws com.liferay.portal.kernel.exception.PortalException {
198 getService().deleteFileEntries(groupId, folderId);
199 }
200
201 public static void deleteFileEntries(long groupId, long folderId,
202 boolean includeTrashedEntries)
203 throws com.liferay.portal.kernel.exception.PortalException {
204 getService().deleteFileEntries(groupId, folderId, includeTrashedEntries);
205 }
206
207 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
208 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
209 throws com.liferay.portal.kernel.exception.PortalException {
210 return getService().deleteFileEntry(dlFileEntry);
211 }
212
213 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
214 long fileEntryId)
215 throws com.liferay.portal.kernel.exception.PortalException {
216 return getService().deleteFileEntry(fileEntryId);
217 }
218
219 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
220 long userId, long fileEntryId)
221 throws com.liferay.portal.kernel.exception.PortalException {
222 return getService().deleteFileEntry(userId, fileEntryId);
223 }
224
225 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileVersion(
226 long userId, long fileEntryId, java.lang.String version)
227 throws com.liferay.portal.kernel.exception.PortalException {
228 return getService().deleteFileVersion(userId, fileEntryId, version);
229 }
230
231
234 public static com.liferay.portal.model.PersistedModel deletePersistedModel(
235 com.liferay.portal.model.PersistedModel persistedModel)
236 throws com.liferay.portal.kernel.exception.PortalException {
237 return getService().deletePersistedModel(persistedModel);
238 }
239
240 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
241 return getService().dynamicQuery();
242 }
243
244
250 public static <T> java.util.List<T> dynamicQuery(
251 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
252 return getService().dynamicQuery(dynamicQuery);
253 }
254
255
267 public static <T> java.util.List<T> dynamicQuery(
268 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
269 int end) {
270 return getService().dynamicQuery(dynamicQuery, start, end);
271 }
272
273
286 public static <T> java.util.List<T> dynamicQuery(
287 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
288 int end,
289 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
290 return getService()
291 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
292 }
293
294
300 public static long dynamicQueryCount(
301 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
302 return getService().dynamicQueryCount(dynamicQuery);
303 }
304
305
312 public static long dynamicQueryCount(
313 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
314 com.liferay.portal.kernel.dao.orm.Projection projection) {
315 return getService().dynamicQueryCount(dynamicQuery, projection);
316 }
317
318 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchDLFileEntry(
319 long fileEntryId) {
320 return getService().fetchDLFileEntry(fileEntryId);
321 }
322
323
330 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchDLFileEntryByUuidAndGroupId(
331 java.lang.String uuid, long groupId) {
332 return getService().fetchDLFileEntryByUuidAndGroupId(uuid, groupId);
333 }
334
335 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntry(
336 long groupId, long folderId, java.lang.String title) {
337 return getService().fetchFileEntry(groupId, folderId, title);
338 }
339
340 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByAnyImageId(
341 long imageId) {
342 return getService().fetchFileEntryByAnyImageId(imageId);
343 }
344
345 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByFileName(
346 long groupId, long folderId, java.lang.String fileName) {
347 return getService().fetchFileEntryByFileName(groupId, folderId, fileName);
348 }
349
350 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByName(
351 long groupId, long folderId, java.lang.String name) {
352 return getService().fetchFileEntryByName(groupId, folderId, name);
353 }
354
355 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
356 return getService().getActionableDynamicQuery();
357 }
358
359
364 public static java.lang.String getBeanIdentifier() {
365 return getService().getBeanIdentifier();
366 }
367
368 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDDMStructureFileEntries(
369 long[] ddmStructureIds) {
370 return getService().getDDMStructureFileEntries(ddmStructureIds);
371 }
372
373
384 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntries(
385 int start, int end) {
386 return getService().getDLFileEntries(start, end);
387 }
388
389 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntriesByUuidAndCompanyId(
390 java.lang.String uuid, long companyId) {
391 return getService().getDLFileEntriesByUuidAndCompanyId(uuid, companyId);
392 }
393
394 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntriesByUuidAndCompanyId(
395 java.lang.String uuid, long companyId, int start, int end,
396 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> orderByComparator) {
397 return getService()
398 .getDLFileEntriesByUuidAndCompanyId(uuid, companyId, start,
399 end, orderByComparator);
400 }
401
402
407 public static int getDLFileEntriesCount() {
408 return getService().getDLFileEntriesCount();
409 }
410
411
418 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntry(
419 long fileEntryId)
420 throws com.liferay.portal.kernel.exception.PortalException {
421 return getService().getDLFileEntry(fileEntryId);
422 }
423
424
432 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntryByUuidAndGroupId(
433 java.lang.String uuid, long groupId)
434 throws com.liferay.portal.kernel.exception.PortalException {
435 return getService().getDLFileEntryByUuidAndGroupId(uuid, groupId);
436 }
437
438 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
439 com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) {
440 return getService().getExportActionableDynamicQuery(portletDataContext);
441 }
442
443 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getExtraSettingsFileEntries(
444 int start, int end) {
445 return getService().getExtraSettingsFileEntries(start, end);
446 }
447
448 public static int getExtraSettingsFileEntriesCount() {
449 return getService().getExtraSettingsFileEntriesCount();
450 }
451
452 public static java.io.File getFile(long fileEntryId,
453 java.lang.String version, boolean incrementCounter)
454 throws com.liferay.portal.kernel.exception.PortalException {
455 return getService().getFile(fileEntryId, version, incrementCounter);
456 }
457
458 public static java.io.File getFile(long fileEntryId,
459 java.lang.String version, boolean incrementCounter, int increment)
460 throws com.liferay.portal.kernel.exception.PortalException {
461 return getService()
462 .getFile(fileEntryId, version, incrementCounter, increment);
463 }
464
465
469 @Deprecated
470 public static java.io.File getFile(long userId, long fileEntryId,
471 java.lang.String version, boolean incrementCounter)
472 throws com.liferay.portal.kernel.exception.PortalException {
473 return getService()
474 .getFile(userId, fileEntryId, version, incrementCounter);
475 }
476
477
481 @Deprecated
482 public static java.io.File getFile(long userId, long fileEntryId,
483 java.lang.String version, boolean incrementCounter, int increment)
484 throws com.liferay.portal.kernel.exception.PortalException {
485 return getService()
486 .getFile(userId, fileEntryId, version, incrementCounter,
487 increment);
488 }
489
490 public static java.io.InputStream getFileAsStream(long fileEntryId,
491 java.lang.String version)
492 throws com.liferay.portal.kernel.exception.PortalException {
493 return getService().getFileAsStream(fileEntryId, version);
494 }
495
496 public static java.io.InputStream getFileAsStream(long fileEntryId,
497 java.lang.String version, boolean incrementCounter)
498 throws com.liferay.portal.kernel.exception.PortalException {
499 return getService()
500 .getFileAsStream(fileEntryId, version, incrementCounter);
501 }
502
503 public static java.io.InputStream getFileAsStream(long fileEntryId,
504 java.lang.String version, boolean incrementCounter, int increment)
505 throws com.liferay.portal.kernel.exception.PortalException {
506 return getService()
507 .getFileAsStream(fileEntryId, version, incrementCounter,
508 increment);
509 }
510
511
515 @Deprecated
516 public static java.io.InputStream getFileAsStream(long userId,
517 long fileEntryId, java.lang.String version)
518 throws com.liferay.portal.kernel.exception.PortalException {
519 return getService().getFileAsStream(userId, fileEntryId, version);
520 }
521
522
526 @Deprecated
527 public static java.io.InputStream getFileAsStream(long userId,
528 long fileEntryId, java.lang.String version, boolean incrementCounter)
529 throws com.liferay.portal.kernel.exception.PortalException {
530 return getService()
531 .getFileAsStream(userId, fileEntryId, version,
532 incrementCounter);
533 }
534
535
539 @Deprecated
540 public static java.io.InputStream getFileAsStream(long userId,
541 long fileEntryId, java.lang.String version, boolean incrementCounter,
542 int increment)
543 throws com.liferay.portal.kernel.exception.PortalException {
544 return getService()
545 .getFileAsStream(userId, fileEntryId, version,
546 incrementCounter, increment);
547 }
548
549 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
550 long folderId, java.lang.String name) {
551 return getService().getFileEntries(folderId, name);
552 }
553
554 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
555 long groupId, long folderId) {
556 return getService().getFileEntries(groupId, folderId);
557 }
558
559 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
560 long groupId, long folderId, int start, int end,
561 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc) {
562 return getService().getFileEntries(groupId, folderId, start, end, obc);
563 }
564
565 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
566 long groupId, long folderId, int status, int start, int end,
567 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc) {
568 return getService()
569 .getFileEntries(groupId, folderId, status, start, end, obc);
570 }
571
572 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
573 long groupId, long userId, java.util.List<java.lang.Long> folderIds,
574 java.lang.String[] mimeTypes,
575 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
576 throws java.lang.Exception {
577 return getService()
578 .getFileEntries(groupId, userId, folderIds, mimeTypes,
579 queryDefinition);
580 }
581
582 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
583 long groupId, long userId,
584 java.util.List<java.lang.Long> repositoryIds,
585 java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
586 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
587 throws java.lang.Exception {
588 return getService()
589 .getFileEntries(groupId, userId, repositoryIds, folderIds,
590 mimeTypes, queryDefinition);
591 }
592
593 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
594 int start, int end) {
595 return getService().getFileEntries(start, end);
596 }
597
598 public static int getFileEntriesCount() {
599 return getService().getFileEntriesCount();
600 }
601
602 public static int getFileEntriesCount(long groupId,
603 com.liferay.portal.kernel.util.DateRange dateRange, long repositoryId,
604 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition) {
605 return getService()
606 .getFileEntriesCount(groupId, dateRange, repositoryId,
607 queryDefinition);
608 }
609
610 public static int getFileEntriesCount(long groupId, long folderId) {
611 return getService().getFileEntriesCount(groupId, folderId);
612 }
613
614 public static int getFileEntriesCount(long groupId, long folderId,
615 int status) {
616 return getService().getFileEntriesCount(groupId, folderId, status);
617 }
618
619 public static int getFileEntriesCount(long groupId, long userId,
620 java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
621 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
622 throws java.lang.Exception {
623 return getService()
624 .getFileEntriesCount(groupId, userId, folderIds, mimeTypes,
625 queryDefinition);
626 }
627
628 public static int getFileEntriesCount(long groupId, long userId,
629 java.util.List<java.lang.Long> repositoryIds,
630 java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
631 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
632 throws java.lang.Exception {
633 return getService()
634 .getFileEntriesCount(groupId, userId, repositoryIds,
635 folderIds, mimeTypes, queryDefinition);
636 }
637
638 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
639 long fileEntryId)
640 throws com.liferay.portal.kernel.exception.PortalException {
641 return getService().getFileEntry(fileEntryId);
642 }
643
644 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
645 long groupId, long folderId, java.lang.String title)
646 throws com.liferay.portal.kernel.exception.PortalException {
647 return getService().getFileEntry(groupId, folderId, title);
648 }
649
650 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByName(
651 long groupId, long folderId, java.lang.String name)
652 throws com.liferay.portal.kernel.exception.PortalException {
653 return getService().getFileEntryByName(groupId, folderId, name);
654 }
655
656 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
657 java.lang.String uuid, long groupId)
658 throws com.liferay.portal.kernel.exception.PortalException {
659 return getService().getFileEntryByUuidAndGroupId(uuid, groupId);
660 }
661
662 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
663 long groupId, int start, int end) {
664 return getService().getGroupFileEntries(groupId, start, end);
665 }
666
667 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
668 long groupId, int start, int end,
669 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc) {
670 return getService().getGroupFileEntries(groupId, start, end, obc);
671 }
672
673 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
674 long groupId, long userId, long rootFolderId, int start, int end,
675 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc) {
676 return getService()
677 .getGroupFileEntries(groupId, userId, rootFolderId, start,
678 end, obc);
679 }
680
681 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
682 long groupId, long userId, int start, int end) {
683 return getService().getGroupFileEntries(groupId, userId, start, end);
684 }
685
686 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
687 long groupId, long userId, int start, int end,
688 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc) {
689 return getService().getGroupFileEntries(groupId, userId, start, end, obc);
690 }
691
692 public static int getGroupFileEntriesCount(long groupId) {
693 return getService().getGroupFileEntriesCount(groupId);
694 }
695
696 public static int getGroupFileEntriesCount(long groupId, long userId) {
697 return getService().getGroupFileEntriesCount(groupId, userId);
698 }
699
700 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getMisversionedFileEntries() {
701 return getService().getMisversionedFileEntries();
702 }
703
704 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries() {
705 return getService().getNoAssetFileEntries();
706 }
707
708 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getOrphanedFileEntries() {
709 return getService().getOrphanedFileEntries();
710 }
711
712 public static com.liferay.portal.model.PersistedModel getPersistedModel(
713 java.io.Serializable primaryKeyObj)
714 throws com.liferay.portal.kernel.exception.PortalException {
715 return getService().getPersistedModel(primaryKeyObj);
716 }
717
718 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getRepositoryFileEntries(
719 long repositoryId, int start, int end) {
720 return getService().getRepositoryFileEntries(repositoryId, start, end);
721 }
722
723 public static int getRepositoryFileEntriesCount(long repositoryId) {
724 return getService().getRepositoryFileEntriesCount(repositoryId);
725 }
726
727 public static boolean hasExtraSettings() {
728 return getService().hasExtraSettings();
729 }
730
731 public static boolean hasFileEntryLock(long userId, long fileEntryId)
732 throws com.liferay.portal.kernel.exception.PortalException {
733 return getService().hasFileEntryLock(userId, fileEntryId);
734 }
735
736 public static void incrementViewCounter(
737 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
738 int increment) {
739 getService().incrementViewCounter(dlFileEntry, increment);
740 }
741
742 public static boolean isFileEntryCheckedOut(long fileEntryId)
743 throws com.liferay.portal.kernel.exception.PortalException {
744 return getService().isFileEntryCheckedOut(fileEntryId);
745 }
746
747 public static com.liferay.portal.model.Lock lockFileEntry(long userId,
748 long fileEntryId)
749 throws com.liferay.portal.kernel.exception.PortalException {
750 return getService().lockFileEntry(userId, fileEntryId);
751 }
752
753 public static com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
754 long userId, long fileEntryId, long newFolderId,
755 com.liferay.portal.service.ServiceContext serviceContext)
756 throws com.liferay.portal.kernel.exception.PortalException {
757 return getService()
758 .moveFileEntry(userId, fileEntryId, newFolderId,
759 serviceContext);
760 }
761
762 public static void rebuildTree(long companyId)
763 throws com.liferay.portal.kernel.exception.PortalException {
764 getService().rebuildTree(companyId);
765 }
766
767 public static void revertFileEntry(long userId, long fileEntryId,
768 java.lang.String version,
769 com.liferay.portal.service.ServiceContext serviceContext)
770 throws com.liferay.portal.kernel.exception.PortalException {
771 getService()
772 .revertFileEntry(userId, fileEntryId, version, serviceContext);
773 }
774
775 public static com.liferay.portal.kernel.search.Hits search(long groupId,
776 long userId, long creatorUserId, long folderId,
777 java.lang.String[] mimeTypes, int status, int start, int end)
778 throws com.liferay.portal.kernel.exception.PortalException {
779 return getService()
780 .search(groupId, userId, creatorUserId, folderId, mimeTypes,
781 status, start, end);
782 }
783
784 public static com.liferay.portal.kernel.search.Hits search(long groupId,
785 long userId, long creatorUserId, int status, int start, int end)
786 throws com.liferay.portal.kernel.exception.PortalException {
787 return getService()
788 .search(groupId, userId, creatorUserId, status, start, end);
789 }
790
791
796 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
797 getService().setBeanIdentifier(beanIdentifier);
798 }
799
800 public static void setTreePaths(long folderId, java.lang.String treePath,
801 boolean reindex)
802 throws com.liferay.portal.kernel.exception.PortalException {
803 getService().setTreePaths(folderId, treePath, reindex);
804 }
805
806 public static void unlockFileEntry(long fileEntryId) {
807 getService().unlockFileEntry(fileEntryId);
808 }
809
810
816 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
817 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry) {
818 return getService().updateDLFileEntry(dlFileEntry);
819 }
820
821 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
822 long userId, long fileEntryId, java.lang.String sourceFileName,
823 java.lang.String mimeType, java.lang.String title,
824 java.lang.String description, java.lang.String changeLog,
825 boolean majorVersion, long fileEntryTypeId,
826 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
827 java.io.File file, java.io.InputStream is, long size,
828 com.liferay.portal.service.ServiceContext serviceContext)
829 throws com.liferay.portal.kernel.exception.PortalException {
830 return getService()
831 .updateFileEntry(userId, fileEntryId, sourceFileName,
832 mimeType, title, description, changeLog, majorVersion,
833 fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
834 }
835
836 public static void updateSmallImage(long smallImageId, long largeImageId)
837 throws com.liferay.portal.kernel.exception.PortalException {
838 getService().updateSmallImage(smallImageId, largeImageId);
839 }
840
841 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateStatus(
842 long userId, long fileVersionId, int status,
843 com.liferay.portal.service.ServiceContext serviceContext,
844 java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
845 throws com.liferay.portal.kernel.exception.PortalException {
846 return getService()
847 .updateStatus(userId, fileVersionId, status, serviceContext,
848 workflowContext);
849 }
850
851 public static void validateFile(long groupId, long folderId,
852 long fileEntryId, java.lang.String fileName, java.lang.String title)
853 throws com.liferay.portal.kernel.exception.PortalException {
854 getService()
855 .validateFile(groupId, folderId, fileEntryId, fileName, title);
856 }
857
858 public static boolean verifyFileEntryCheckOut(long fileEntryId,
859 java.lang.String lockUuid)
860 throws com.liferay.portal.kernel.exception.PortalException {
861 return getService().verifyFileEntryCheckOut(fileEntryId, lockUuid);
862 }
863
864 public static boolean verifyFileEntryLock(long fileEntryId,
865 java.lang.String lockUuid)
866 throws com.liferay.portal.kernel.exception.PortalException {
867 return getService().verifyFileEntryLock(fileEntryId, lockUuid);
868 }
869
870 public static DLFileEntryLocalService getService() {
871 if (_service == null) {
872 _service = (DLFileEntryLocalService)PortalBeanLocatorUtil.locate(DLFileEntryLocalService.class.getName());
873
874 ReferenceRegistry.registerReference(DLFileEntryLocalServiceUtil.class,
875 "_service");
876 }
877
878 return _service;
879 }
880
881
884 @Deprecated
885 public void setService(DLFileEntryLocalService service) {
886 }
887
888 private static DLFileEntryLocalService _service;
889 }