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.DDMFormValues> ddmFormValuesMap,
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, ddmFormValuesMap, 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 com.liferay.portlet.documentlibrary.model.DLFileEntry copyFileEntry(
152 long userId, long groupId, long repositoryId, long fileEntryId,
153 long destFolderId,
154 com.liferay.portal.service.ServiceContext serviceContext)
155 throws com.liferay.portal.kernel.exception.PortalException {
156 return getService()
157 .copyFileEntry(userId, groupId, repositoryId, fileEntryId,
158 destFolderId, serviceContext);
159 }
160
161 public static void copyFileEntryMetadata(long companyId,
162 long fileEntryTypeId, long fileEntryId, long fromFileVersionId,
163 long toFileVersionId,
164 com.liferay.portal.service.ServiceContext serviceContext)
165 throws com.liferay.portal.kernel.exception.PortalException {
166 getService()
167 .copyFileEntryMetadata(companyId, fileEntryTypeId, fileEntryId,
168 fromFileVersionId, toFileVersionId, serviceContext);
169 }
170
171
177 public static com.liferay.portlet.documentlibrary.model.DLFileEntry createDLFileEntry(
178 long fileEntryId) {
179 return getService().createDLFileEntry(fileEntryId);
180 }
181
182
188 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteDLFileEntry(
189 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry) {
190 return getService().deleteDLFileEntry(dlFileEntry);
191 }
192
193
200 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteDLFileEntry(
201 long fileEntryId)
202 throws com.liferay.portal.kernel.exception.PortalException {
203 return getService().deleteDLFileEntry(fileEntryId);
204 }
205
206 public static void deleteFileEntries(long groupId, long folderId)
207 throws com.liferay.portal.kernel.exception.PortalException {
208 getService().deleteFileEntries(groupId, folderId);
209 }
210
211 public static void deleteFileEntries(long groupId, long folderId,
212 boolean includeTrashedEntries)
213 throws com.liferay.portal.kernel.exception.PortalException {
214 getService().deleteFileEntries(groupId, folderId, includeTrashedEntries);
215 }
216
217 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
218 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
219 throws com.liferay.portal.kernel.exception.PortalException {
220 return getService().deleteFileEntry(dlFileEntry);
221 }
222
223 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
224 long fileEntryId)
225 throws com.liferay.portal.kernel.exception.PortalException {
226 return getService().deleteFileEntry(fileEntryId);
227 }
228
229 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
230 long userId, long fileEntryId)
231 throws com.liferay.portal.kernel.exception.PortalException {
232 return getService().deleteFileEntry(userId, fileEntryId);
233 }
234
235 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileVersion(
236 long userId, long fileEntryId, java.lang.String version)
237 throws com.liferay.portal.kernel.exception.PortalException {
238 return getService().deleteFileVersion(userId, fileEntryId, version);
239 }
240
241
244 public static com.liferay.portal.model.PersistedModel deletePersistedModel(
245 com.liferay.portal.model.PersistedModel persistedModel)
246 throws com.liferay.portal.kernel.exception.PortalException {
247 return getService().deletePersistedModel(persistedModel);
248 }
249
250 public static void deleteRepositoryFileEntries(long repositoryId,
251 long folderId)
252 throws com.liferay.portal.kernel.exception.PortalException {
253 getService().deleteRepositoryFileEntries(repositoryId, folderId);
254 }
255
256 public static void deleteRepositoryFileEntries(long repositoryId,
257 long folderId, boolean includeTrashedEntries)
258 throws com.liferay.portal.kernel.exception.PortalException {
259 getService()
260 .deleteRepositoryFileEntries(repositoryId, folderId,
261 includeTrashedEntries);
262 }
263
264 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
265 return getService().dynamicQuery();
266 }
267
268
274 public static <T> java.util.List<T> dynamicQuery(
275 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
276 return getService().dynamicQuery(dynamicQuery);
277 }
278
279
291 public static <T> java.util.List<T> dynamicQuery(
292 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
293 int end) {
294 return getService().dynamicQuery(dynamicQuery, start, end);
295 }
296
297
310 public static <T> java.util.List<T> dynamicQuery(
311 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
312 int end,
313 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
314 return getService()
315 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
316 }
317
318
324 public static long dynamicQueryCount(
325 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
326 return getService().dynamicQueryCount(dynamicQuery);
327 }
328
329
336 public static long dynamicQueryCount(
337 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
338 com.liferay.portal.kernel.dao.orm.Projection projection) {
339 return getService().dynamicQueryCount(dynamicQuery, projection);
340 }
341
342 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchDLFileEntry(
343 long fileEntryId) {
344 return getService().fetchDLFileEntry(fileEntryId);
345 }
346
347
354 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchDLFileEntryByUuidAndGroupId(
355 java.lang.String uuid, long groupId) {
356 return getService().fetchDLFileEntryByUuidAndGroupId(uuid, groupId);
357 }
358
359 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntry(
360 long groupId, long folderId, java.lang.String title) {
361 return getService().fetchFileEntry(groupId, folderId, title);
362 }
363
364 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByAnyImageId(
365 long imageId) {
366 return getService().fetchFileEntryByAnyImageId(imageId);
367 }
368
369 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByFileName(
370 long groupId, long folderId, java.lang.String fileName) {
371 return getService().fetchFileEntryByFileName(groupId, folderId, fileName);
372 }
373
374 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByName(
375 long groupId, long folderId, java.lang.String name) {
376 return getService().fetchFileEntryByName(groupId, folderId, name);
377 }
378
379 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
380 return getService().getActionableDynamicQuery();
381 }
382
383
388 public static java.lang.String getBeanIdentifier() {
389 return getService().getBeanIdentifier();
390 }
391
392 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDDMStructureFileEntries(
393 long[] ddmStructureIds) {
394 return getService().getDDMStructureFileEntries(ddmStructureIds);
395 }
396
397 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDDMStructureFileEntries(
398 long groupId, long[] ddmStructureIds) {
399 return getService().getDDMStructureFileEntries(groupId, ddmStructureIds);
400 }
401
402
413 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntries(
414 int start, int end) {
415 return getService().getDLFileEntries(start, end);
416 }
417
418
425 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntriesByUuidAndCompanyId(
426 java.lang.String uuid, long companyId) {
427 return getService().getDLFileEntriesByUuidAndCompanyId(uuid, companyId);
428 }
429
430
440 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntriesByUuidAndCompanyId(
441 java.lang.String uuid, long companyId, int start, int end,
442 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> orderByComparator) {
443 return getService()
444 .getDLFileEntriesByUuidAndCompanyId(uuid, companyId, start,
445 end, orderByComparator);
446 }
447
448
453 public static int getDLFileEntriesCount() {
454 return getService().getDLFileEntriesCount();
455 }
456
457
464 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntry(
465 long fileEntryId)
466 throws com.liferay.portal.kernel.exception.PortalException {
467 return getService().getDLFileEntry(fileEntryId);
468 }
469
470
478 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntryByUuidAndGroupId(
479 java.lang.String uuid, long groupId)
480 throws com.liferay.portal.kernel.exception.PortalException {
481 return getService().getDLFileEntryByUuidAndGroupId(uuid, groupId);
482 }
483
484 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
485 com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
486 return getService().getExportActionableDynamicQuery(portletDataContext);
487 }
488
489 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getExtraSettingsFileEntries(
490 int start, int end) {
491 return getService().getExtraSettingsFileEntries(start, end);
492 }
493
494 public static int getExtraSettingsFileEntriesCount() {
495 return getService().getExtraSettingsFileEntriesCount();
496 }
497
498 public static java.io.File getFile(long fileEntryId,
499 java.lang.String version, boolean incrementCounter)
500 throws com.liferay.portal.kernel.exception.PortalException {
501 return getService().getFile(fileEntryId, version, incrementCounter);
502 }
503
504 public static java.io.File getFile(long fileEntryId,
505 java.lang.String version, boolean incrementCounter, int increment)
506 throws com.liferay.portal.kernel.exception.PortalException {
507 return getService()
508 .getFile(fileEntryId, version, incrementCounter, increment);
509 }
510
511
515 @Deprecated
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 return getService()
520 .getFile(userId, fileEntryId, version, incrementCounter);
521 }
522
523
527 @Deprecated
528 public static java.io.File getFile(long userId, long fileEntryId,
529 java.lang.String version, boolean incrementCounter, int increment)
530 throws com.liferay.portal.kernel.exception.PortalException {
531 return getService()
532 .getFile(userId, fileEntryId, version, incrementCounter,
533 increment);
534 }
535
536 public static java.io.InputStream getFileAsStream(long fileEntryId,
537 java.lang.String version)
538 throws com.liferay.portal.kernel.exception.PortalException {
539 return getService().getFileAsStream(fileEntryId, version);
540 }
541
542 public static java.io.InputStream getFileAsStream(long fileEntryId,
543 java.lang.String version, boolean incrementCounter)
544 throws com.liferay.portal.kernel.exception.PortalException {
545 return getService()
546 .getFileAsStream(fileEntryId, version, incrementCounter);
547 }
548
549 public static java.io.InputStream getFileAsStream(long fileEntryId,
550 java.lang.String version, boolean incrementCounter, int increment)
551 throws com.liferay.portal.kernel.exception.PortalException {
552 return getService()
553 .getFileAsStream(fileEntryId, version, incrementCounter,
554 increment);
555 }
556
557
561 @Deprecated
562 public static java.io.InputStream getFileAsStream(long userId,
563 long fileEntryId, java.lang.String version)
564 throws com.liferay.portal.kernel.exception.PortalException {
565 return getService().getFileAsStream(userId, fileEntryId, version);
566 }
567
568
572 @Deprecated
573 public static java.io.InputStream getFileAsStream(long userId,
574 long fileEntryId, java.lang.String version, boolean incrementCounter)
575 throws com.liferay.portal.kernel.exception.PortalException {
576 return getService()
577 .getFileAsStream(userId, fileEntryId, version,
578 incrementCounter);
579 }
580
581
585 @Deprecated
586 public static java.io.InputStream getFileAsStream(long userId,
587 long fileEntryId, java.lang.String version, boolean incrementCounter,
588 int increment)
589 throws com.liferay.portal.kernel.exception.PortalException {
590 return getService()
591 .getFileAsStream(userId, fileEntryId, version,
592 incrementCounter, increment);
593 }
594
595 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
596 long folderId, java.lang.String name) {
597 return getService().getFileEntries(folderId, name);
598 }
599
600 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
601 long groupId, long folderId) {
602 return getService().getFileEntries(groupId, folderId);
603 }
604
605 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
606 long groupId, long folderId, int start, int end,
607 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc) {
608 return getService().getFileEntries(groupId, folderId, start, end, obc);
609 }
610
611 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
612 long groupId, long folderId, int status, int start, int end,
613 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc) {
614 return getService()
615 .getFileEntries(groupId, folderId, status, start, end, obc);
616 }
617
618 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
619 long groupId, long userId, java.util.List<java.lang.Long> folderIds,
620 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 .getFileEntries(groupId, userId, folderIds, mimeTypes,
625 queryDefinition);
626 }
627
628 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
629 long groupId, long userId,
630 java.util.List<java.lang.Long> repositoryIds,
631 java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
632 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
633 throws java.lang.Exception {
634 return getService()
635 .getFileEntries(groupId, userId, repositoryIds, folderIds,
636 mimeTypes, queryDefinition);
637 }
638
639 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
640 int start, int end) {
641 return getService().getFileEntries(start, end);
642 }
643
644 public static int getFileEntriesCount() {
645 return getService().getFileEntriesCount();
646 }
647
648
651 @Deprecated
652 public static int getFileEntriesCount(long groupId,
653 com.liferay.portal.kernel.util.DateRange dateRange, long repositoryId,
654 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition) {
655 return getService()
656 .getFileEntriesCount(groupId, dateRange, repositoryId,
657 queryDefinition);
658 }
659
660 public static int getFileEntriesCount(long groupId, long folderId) {
661 return getService().getFileEntriesCount(groupId, folderId);
662 }
663
664 public static int getFileEntriesCount(long groupId, long folderId,
665 int status) {
666 return getService().getFileEntriesCount(groupId, folderId, status);
667 }
668
669 public static int getFileEntriesCount(long groupId, long userId,
670 java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
671 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
672 throws java.lang.Exception {
673 return getService()
674 .getFileEntriesCount(groupId, userId, folderIds, mimeTypes,
675 queryDefinition);
676 }
677
678 public static int getFileEntriesCount(long groupId, long userId,
679 java.util.List<java.lang.Long> repositoryIds,
680 java.util.List<java.lang.Long> folderIds, java.lang.String[] mimeTypes,
681 com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.documentlibrary.model.DLFileEntry> queryDefinition)
682 throws java.lang.Exception {
683 return getService()
684 .getFileEntriesCount(groupId, userId, repositoryIds,
685 folderIds, mimeTypes, queryDefinition);
686 }
687
688 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
689 long fileEntryId)
690 throws com.liferay.portal.kernel.exception.PortalException {
691 return getService().getFileEntry(fileEntryId);
692 }
693
694 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
695 long groupId, long folderId, java.lang.String title)
696 throws com.liferay.portal.kernel.exception.PortalException {
697 return getService().getFileEntry(groupId, folderId, title);
698 }
699
700 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByName(
701 long groupId, long folderId, java.lang.String name)
702 throws com.liferay.portal.kernel.exception.PortalException {
703 return getService().getFileEntryByName(groupId, folderId, name);
704 }
705
706 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
707 java.lang.String uuid, long groupId)
708 throws com.liferay.portal.kernel.exception.PortalException {
709 return getService().getFileEntryByUuidAndGroupId(uuid, groupId);
710 }
711
712 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
713 long groupId, int start, int end) {
714 return getService().getGroupFileEntries(groupId, start, end);
715 }
716
717 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
718 long groupId, int start, int end,
719 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc) {
720 return getService().getGroupFileEntries(groupId, start, end, obc);
721 }
722
723 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
724 long groupId, long userId, long repositoryId, long rootFolderId,
725 int start, int end,
726 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc) {
727 return getService()
728 .getGroupFileEntries(groupId, userId, repositoryId,
729 rootFolderId, start, end, obc);
730 }
731
732 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
733 long groupId, long userId, long rootFolderId, int start, int end,
734 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc) {
735 return getService()
736 .getGroupFileEntries(groupId, userId, rootFolderId, start,
737 end, obc);
738 }
739
740 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
741 long groupId, long userId, int start, int end) {
742 return getService().getGroupFileEntries(groupId, userId, start, end);
743 }
744
745 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
746 long groupId, long userId, int start, int end,
747 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntry> obc) {
748 return getService().getGroupFileEntries(groupId, userId, start, end, obc);
749 }
750
751 public static int getGroupFileEntriesCount(long groupId) {
752 return getService().getGroupFileEntriesCount(groupId);
753 }
754
755 public static int getGroupFileEntriesCount(long groupId, long userId) {
756 return getService().getGroupFileEntriesCount(groupId, userId);
757 }
758
759 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getMisversionedFileEntries() {
760 return getService().getMisversionedFileEntries();
761 }
762
763 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries() {
764 return getService().getNoAssetFileEntries();
765 }
766
767 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getOrphanedFileEntries() {
768 return getService().getOrphanedFileEntries();
769 }
770
771 public static com.liferay.portal.model.PersistedModel getPersistedModel(
772 java.io.Serializable primaryKeyObj)
773 throws com.liferay.portal.kernel.exception.PortalException {
774 return getService().getPersistedModel(primaryKeyObj);
775 }
776
777 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getRepositoryFileEntries(
778 long repositoryId, int start, int end) {
779 return getService().getRepositoryFileEntries(repositoryId, start, end);
780 }
781
782 public static int getRepositoryFileEntriesCount(long repositoryId) {
783 return getService().getRepositoryFileEntriesCount(repositoryId);
784 }
785
786 public static boolean hasExtraSettings() {
787 return getService().hasExtraSettings();
788 }
789
790 public static boolean hasFileEntryLock(long userId, long fileEntryId)
791 throws com.liferay.portal.kernel.exception.PortalException {
792 return getService().hasFileEntryLock(userId, fileEntryId);
793 }
794
795 public static void incrementViewCounter(
796 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
797 int increment) {
798 getService().incrementViewCounter(dlFileEntry, increment);
799 }
800
801 public static boolean isFileEntryCheckedOut(long fileEntryId)
802 throws com.liferay.portal.kernel.exception.PortalException {
803 return getService().isFileEntryCheckedOut(fileEntryId);
804 }
805
806 public static boolean isKeepFileVersionLabel(long fileEntryId,
807 com.liferay.portal.service.ServiceContext serviceContext)
808 throws com.liferay.portal.kernel.exception.PortalException {
809 return getService().isKeepFileVersionLabel(fileEntryId, serviceContext);
810 }
811
812 public static com.liferay.portal.kernel.lock.Lock lockFileEntry(
813 long userId, long fileEntryId)
814 throws com.liferay.portal.kernel.exception.PortalException {
815 return getService().lockFileEntry(userId, fileEntryId);
816 }
817
818 public static com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
819 long userId, long fileEntryId, long newFolderId,
820 com.liferay.portal.service.ServiceContext serviceContext)
821 throws com.liferay.portal.kernel.exception.PortalException {
822 return getService()
823 .moveFileEntry(userId, fileEntryId, newFolderId,
824 serviceContext);
825 }
826
827 public static void rebuildTree(long companyId)
828 throws com.liferay.portal.kernel.exception.PortalException {
829 getService().rebuildTree(companyId);
830 }
831
832 public static void revertFileEntry(long userId, long fileEntryId,
833 java.lang.String version,
834 com.liferay.portal.service.ServiceContext serviceContext)
835 throws com.liferay.portal.kernel.exception.PortalException {
836 getService()
837 .revertFileEntry(userId, fileEntryId, version, serviceContext);
838 }
839
840 public static com.liferay.portal.kernel.search.Hits search(long groupId,
841 long userId, long creatorUserId, long folderId,
842 java.lang.String[] mimeTypes, int status, int start, int end)
843 throws com.liferay.portal.kernel.exception.PortalException {
844 return getService()
845 .search(groupId, userId, creatorUserId, folderId, mimeTypes,
846 status, start, end);
847 }
848
849 public static com.liferay.portal.kernel.search.Hits search(long groupId,
850 long userId, long creatorUserId, int status, int start, int end)
851 throws com.liferay.portal.kernel.exception.PortalException {
852 return getService()
853 .search(groupId, userId, creatorUserId, status, start, end);
854 }
855
856
861 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
862 getService().setBeanIdentifier(beanIdentifier);
863 }
864
865 public static void setTreePaths(long folderId, java.lang.String treePath,
866 boolean reindex)
867 throws com.liferay.portal.kernel.exception.PortalException {
868 getService().setTreePaths(folderId, treePath, reindex);
869 }
870
871 public static void unlockFileEntry(long fileEntryId) {
872 getService().unlockFileEntry(fileEntryId);
873 }
874
875
881 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
882 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry) {
883 return getService().updateDLFileEntry(dlFileEntry);
884 }
885
886 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
887 long userId, long fileEntryId, java.lang.String sourceFileName,
888 java.lang.String mimeType, java.lang.String title,
889 java.lang.String description, java.lang.String changeLog,
890 boolean majorVersion, long fileEntryTypeId,
891 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.DDMFormValues> ddmFormValuesMap,
892 java.io.File file, java.io.InputStream is, long size,
893 com.liferay.portal.service.ServiceContext serviceContext)
894 throws com.liferay.portal.kernel.exception.PortalException {
895 return getService()
896 .updateFileEntry(userId, fileEntryId, sourceFileName,
897 mimeType, title, description, changeLog, majorVersion,
898 fileEntryTypeId, ddmFormValuesMap, file, is, size, serviceContext);
899 }
900
901 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntryType(
902 long userId, long fileEntryId, long fileEntryTypeId,
903 com.liferay.portal.service.ServiceContext serviceContext)
904 throws com.liferay.portal.kernel.exception.PortalException {
905 return getService()
906 .updateFileEntryType(userId, fileEntryId, fileEntryTypeId,
907 serviceContext);
908 }
909
910 public static void updateSmallImage(long smallImageId, long largeImageId)
911 throws com.liferay.portal.kernel.exception.PortalException {
912 getService().updateSmallImage(smallImageId, largeImageId);
913 }
914
915 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateStatus(
916 long userId, long fileVersionId, int status,
917 com.liferay.portal.service.ServiceContext serviceContext,
918 java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
919 throws com.liferay.portal.kernel.exception.PortalException {
920 return getService()
921 .updateStatus(userId, fileVersionId, status, serviceContext,
922 workflowContext);
923 }
924
925 public static void validateFile(long groupId, long folderId,
926 long fileEntryId, java.lang.String fileName, java.lang.String title)
927 throws com.liferay.portal.kernel.exception.PortalException {
928 getService()
929 .validateFile(groupId, folderId, fileEntryId, fileName, title);
930 }
931
932 public static boolean verifyFileEntryCheckOut(long fileEntryId,
933 java.lang.String lockUuid)
934 throws com.liferay.portal.kernel.exception.PortalException {
935 return getService().verifyFileEntryCheckOut(fileEntryId, lockUuid);
936 }
937
938 public static boolean verifyFileEntryLock(long fileEntryId,
939 java.lang.String lockUuid)
940 throws com.liferay.portal.kernel.exception.PortalException {
941 return getService().verifyFileEntryLock(fileEntryId, lockUuid);
942 }
943
944 public static DLFileEntryLocalService getService() {
945 if (_service == null) {
946 _service = (DLFileEntryLocalService)PortalBeanLocatorUtil.locate(DLFileEntryLocalService.class.getName());
947
948 ReferenceRegistry.registerReference(DLFileEntryLocalServiceUtil.class,
949 "_service");
950 }
951
952 return _service;
953 }
954
955
958 @Deprecated
959 public void setService(DLFileEntryLocalService service) {
960 }
961
962 private static DLFileEntryLocalService _service;
963 }