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
033 public class DLFileEntryLocalServiceUtil {
034
039
040
047 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addDLFileEntry(
048 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addDLFileEntry(dlFileEntry);
051 }
052
053
059 public static com.liferay.portlet.documentlibrary.model.DLFileEntry createDLFileEntry(
060 long fileEntryId) {
061 return getService().createDLFileEntry(fileEntryId);
062 }
063
064
072 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteDLFileEntry(
073 long fileEntryId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().deleteDLFileEntry(fileEntryId);
077 }
078
079
086 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteDLFileEntry(
087 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return getService().deleteDLFileEntry(dlFileEntry);
090 }
091
092 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093 return getService().dynamicQuery();
094 }
095
096
103 @SuppressWarnings("rawtypes")
104 public static java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().dynamicQuery(dynamicQuery);
108 }
109
110
123 @SuppressWarnings("rawtypes")
124 public static java.util.List dynamicQuery(
125 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126 int end) throws com.liferay.portal.kernel.exception.SystemException {
127 return getService().dynamicQuery(dynamicQuery, start, end);
128 }
129
130
144 @SuppressWarnings("rawtypes")
145 public static java.util.List dynamicQuery(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147 int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getService()
151 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
152 }
153
154
161 public static long dynamicQueryCount(
162 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().dynamicQueryCount(dynamicQuery);
165 }
166
167 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchDLFileEntry(
168 long fileEntryId)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().fetchDLFileEntry(fileEntryId);
171 }
172
173
181 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntry(
182 long fileEntryId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getDLFileEntry(fileEntryId);
186 }
187
188 public static com.liferay.portal.model.PersistedModel getPersistedModel(
189 java.io.Serializable primaryKeyObj)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException {
192 return getService().getPersistedModel(primaryKeyObj);
193 }
194
195
204 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntryByUuidAndGroupId(
205 java.lang.String uuid, long groupId)
206 throws com.liferay.portal.kernel.exception.PortalException,
207 com.liferay.portal.kernel.exception.SystemException {
208 return getService().getDLFileEntryByUuidAndGroupId(uuid, groupId);
209 }
210
211
223 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntries(
224 int start, int end)
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getService().getDLFileEntries(start, end);
227 }
228
229
235 public static int getDLFileEntriesCount()
236 throws com.liferay.portal.kernel.exception.SystemException {
237 return getService().getDLFileEntriesCount();
238 }
239
240
247 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
248 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
249 throws com.liferay.portal.kernel.exception.SystemException {
250 return getService().updateDLFileEntry(dlFileEntry);
251 }
252
253
258 public static java.lang.String getBeanIdentifier() {
259 return getService().getBeanIdentifier();
260 }
261
262
267 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
268 getService().setBeanIdentifier(beanIdentifier);
269 }
270
271 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
272 long userId, long groupId, long repositoryId, long folderId,
273 java.lang.String sourceFileName, java.lang.String mimeType,
274 java.lang.String title, java.lang.String description,
275 java.lang.String changeLog, long fileEntryTypeId,
276 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
277 java.io.File file, java.io.InputStream is, long size,
278 com.liferay.portal.service.ServiceContext serviceContext)
279 throws com.liferay.portal.kernel.exception.PortalException,
280 com.liferay.portal.kernel.exception.SystemException {
281 return getService()
282 .addFileEntry(userId, groupId, repositoryId, folderId,
283 sourceFileName, mimeType, title, description, changeLog,
284 fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
285 }
286
287 public static com.liferay.portlet.documentlibrary.model.DLFileVersion cancelCheckOut(
288 long userId, long fileEntryId)
289 throws com.liferay.portal.kernel.exception.PortalException,
290 com.liferay.portal.kernel.exception.SystemException {
291 return getService().cancelCheckOut(userId, fileEntryId);
292 }
293
294 public static void checkInFileEntry(long userId, long fileEntryId,
295 boolean majorVersion, java.lang.String changeLog,
296 com.liferay.portal.service.ServiceContext serviceContext)
297 throws com.liferay.portal.kernel.exception.PortalException,
298 com.liferay.portal.kernel.exception.SystemException {
299 getService()
300 .checkInFileEntry(userId, fileEntryId, majorVersion, changeLog,
301 serviceContext);
302 }
303
304
307 public static void checkInFileEntry(long userId, long fileEntryId,
308 java.lang.String lockUuid)
309 throws com.liferay.portal.kernel.exception.PortalException,
310 com.liferay.portal.kernel.exception.SystemException {
311 getService().checkInFileEntry(userId, fileEntryId, lockUuid);
312 }
313
314 public static void checkInFileEntry(long userId, long fileEntryId,
315 java.lang.String lockUuid,
316 com.liferay.portal.service.ServiceContext serviceContext)
317 throws com.liferay.portal.kernel.exception.PortalException,
318 com.liferay.portal.kernel.exception.SystemException {
319 getService()
320 .checkInFileEntry(userId, fileEntryId, lockUuid, serviceContext);
321 }
322
323
326 public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
327 long userId, long fileEntryId)
328 throws com.liferay.portal.kernel.exception.PortalException,
329 com.liferay.portal.kernel.exception.SystemException {
330 return getService().checkOutFileEntry(userId, fileEntryId);
331 }
332
333 public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
334 long userId, long fileEntryId,
335 com.liferay.portal.service.ServiceContext serviceContext)
336 throws com.liferay.portal.kernel.exception.PortalException,
337 com.liferay.portal.kernel.exception.SystemException {
338 return getService()
339 .checkOutFileEntry(userId, fileEntryId, serviceContext);
340 }
341
342
346 public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
347 long userId, long fileEntryId, java.lang.String owner,
348 long expirationTime)
349 throws com.liferay.portal.kernel.exception.PortalException,
350 com.liferay.portal.kernel.exception.SystemException {
351 return getService()
352 .checkOutFileEntry(userId, fileEntryId, owner, expirationTime);
353 }
354
355 public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
356 long userId, long fileEntryId, java.lang.String owner,
357 long expirationTime,
358 com.liferay.portal.service.ServiceContext serviceContext)
359 throws com.liferay.portal.kernel.exception.PortalException,
360 com.liferay.portal.kernel.exception.SystemException {
361 return getService()
362 .checkOutFileEntry(userId, fileEntryId, owner,
363 expirationTime, serviceContext);
364 }
365
366 public static void convertExtraSettings(java.lang.String[] keys)
367 throws com.liferay.portal.kernel.exception.PortalException,
368 com.liferay.portal.kernel.exception.SystemException {
369 getService().convertExtraSettings(keys);
370 }
371
372 public static void copyFileEntryMetadata(long companyId,
373 long fileEntryTypeId, long fileEntryId, long fromFileVersionId,
374 long toFileVersionId,
375 com.liferay.portal.service.ServiceContext serviceContext)
376 throws com.liferay.portal.kernel.exception.PortalException,
377 com.liferay.portal.kernel.exception.SystemException {
378 getService()
379 .copyFileEntryMetadata(companyId, fileEntryTypeId, fileEntryId,
380 fromFileVersionId, toFileVersionId, serviceContext);
381 }
382
383 public static void deleteFileEntries(long groupId, long folderId)
384 throws com.liferay.portal.kernel.exception.PortalException,
385 com.liferay.portal.kernel.exception.SystemException {
386 getService().deleteFileEntries(groupId, folderId);
387 }
388
389 public static void deleteFileEntries(long groupId, long folderId,
390 boolean includeTrashedEntries)
391 throws com.liferay.portal.kernel.exception.PortalException,
392 com.liferay.portal.kernel.exception.SystemException {
393 getService().deleteFileEntries(groupId, folderId, includeTrashedEntries);
394 }
395
396 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
397 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
398 throws com.liferay.portal.kernel.exception.PortalException,
399 com.liferay.portal.kernel.exception.SystemException {
400 return getService().deleteFileEntry(dlFileEntry);
401 }
402
403 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
404 long fileEntryId)
405 throws com.liferay.portal.kernel.exception.PortalException,
406 com.liferay.portal.kernel.exception.SystemException {
407 return getService().deleteFileEntry(fileEntryId);
408 }
409
410 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
411 long userId, long fileEntryId)
412 throws com.liferay.portal.kernel.exception.PortalException,
413 com.liferay.portal.kernel.exception.SystemException {
414 return getService().deleteFileEntry(userId, fileEntryId);
415 }
416
417 public static void deleteFileVersion(long userId, long fileEntryId,
418 java.lang.String version)
419 throws com.liferay.portal.kernel.exception.PortalException,
420 com.liferay.portal.kernel.exception.SystemException {
421 getService().deleteFileVersion(userId, fileEntryId, version);
422 }
423
424 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntry(
425 long groupId, long folderId, java.lang.String title)
426 throws com.liferay.portal.kernel.exception.SystemException {
427 return getService().fetchFileEntry(groupId, folderId, title);
428 }
429
430 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByAnyImageId(
431 long imageId)
432 throws com.liferay.portal.kernel.exception.SystemException {
433 return getService().fetchFileEntryByAnyImageId(imageId);
434 }
435
436 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByName(
437 long groupId, long folderId, java.lang.String name)
438 throws com.liferay.portal.kernel.exception.SystemException {
439 return getService().fetchFileEntryByName(groupId, folderId, name);
440 }
441
442 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getExtraSettingsFileEntries(
443 int start, int end)
444 throws com.liferay.portal.kernel.exception.SystemException {
445 return getService().getExtraSettingsFileEntries(start, end);
446 }
447
448 public static java.io.File getFile(long userId, long fileEntryId,
449 java.lang.String version, boolean incrementCounter)
450 throws com.liferay.portal.kernel.exception.PortalException,
451 com.liferay.portal.kernel.exception.SystemException {
452 return getService()
453 .getFile(userId, fileEntryId, version, incrementCounter);
454 }
455
456 public static java.io.File getFile(long userId, long fileEntryId,
457 java.lang.String version, boolean incrementCounter, int increment)
458 throws com.liferay.portal.kernel.exception.PortalException,
459 com.liferay.portal.kernel.exception.SystemException {
460 return getService()
461 .getFile(userId, fileEntryId, version, incrementCounter,
462 increment);
463 }
464
465 public static java.io.InputStream getFileAsStream(long userId,
466 long fileEntryId, java.lang.String version)
467 throws com.liferay.portal.kernel.exception.PortalException,
468 com.liferay.portal.kernel.exception.SystemException {
469 return getService().getFileAsStream(userId, fileEntryId, version);
470 }
471
472 public static java.io.InputStream getFileAsStream(long userId,
473 long fileEntryId, java.lang.String version, boolean incrementCounter)
474 throws com.liferay.portal.kernel.exception.PortalException,
475 com.liferay.portal.kernel.exception.SystemException {
476 return getService()
477 .getFileAsStream(userId, fileEntryId, version,
478 incrementCounter);
479 }
480
481 public static java.io.InputStream getFileAsStream(long userId,
482 long fileEntryId, java.lang.String version, boolean incrementCounter,
483 int increment)
484 throws com.liferay.portal.kernel.exception.PortalException,
485 com.liferay.portal.kernel.exception.SystemException {
486 return getService()
487 .getFileAsStream(userId, fileEntryId, version,
488 incrementCounter, increment);
489 }
490
491 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
492 int start, int end)
493 throws com.liferay.portal.kernel.exception.SystemException {
494 return getService().getFileEntries(start, end);
495 }
496
497 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
498 long groupId, long folderId)
499 throws com.liferay.portal.kernel.exception.SystemException {
500 return getService().getFileEntries(groupId, folderId);
501 }
502
503 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
504 long groupId, long folderId, int status, int start, int end,
505 com.liferay.portal.kernel.util.OrderByComparator obc)
506 throws com.liferay.portal.kernel.exception.SystemException {
507 return getService()
508 .getFileEntries(groupId, folderId, status, start, end, obc);
509 }
510
511 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
512 long groupId, long folderId, int start, int end,
513 com.liferay.portal.kernel.util.OrderByComparator obc)
514 throws com.liferay.portal.kernel.exception.SystemException {
515 return getService().getFileEntries(groupId, folderId, start, end, obc);
516 }
517
518 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
519 long folderId, java.lang.String name)
520 throws com.liferay.portal.kernel.exception.SystemException {
521 return getService().getFileEntries(folderId, name);
522 }
523
524 public static int getFileEntriesCount()
525 throws com.liferay.portal.kernel.exception.SystemException {
526 return getService().getFileEntriesCount();
527 }
528
529 public static int getFileEntriesCount(long groupId, long folderId)
530 throws com.liferay.portal.kernel.exception.SystemException {
531 return getService().getFileEntriesCount(groupId, folderId);
532 }
533
534 public static int getFileEntriesCount(long groupId, long folderId,
535 int status) throws com.liferay.portal.kernel.exception.SystemException {
536 return getService().getFileEntriesCount(groupId, folderId, status);
537 }
538
539 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
540 long fileEntryId)
541 throws com.liferay.portal.kernel.exception.PortalException,
542 com.liferay.portal.kernel.exception.SystemException {
543 return getService().getFileEntry(fileEntryId);
544 }
545
546 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
547 long groupId, long folderId, java.lang.String title)
548 throws com.liferay.portal.kernel.exception.PortalException,
549 com.liferay.portal.kernel.exception.SystemException {
550 return getService().getFileEntry(groupId, folderId, title);
551 }
552
553 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByName(
554 long groupId, long folderId, java.lang.String name)
555 throws com.liferay.portal.kernel.exception.PortalException,
556 com.liferay.portal.kernel.exception.SystemException {
557 return getService().getFileEntryByName(groupId, folderId, name);
558 }
559
560 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
561 java.lang.String uuid, long groupId)
562 throws com.liferay.portal.kernel.exception.PortalException,
563 com.liferay.portal.kernel.exception.SystemException {
564 return getService().getFileEntryByUuidAndGroupId(uuid, groupId);
565 }
566
567 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
568 long groupId, int start, int end)
569 throws com.liferay.portal.kernel.exception.SystemException {
570 return getService().getGroupFileEntries(groupId, start, end);
571 }
572
573 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
574 long groupId, int start, int end,
575 com.liferay.portal.kernel.util.OrderByComparator obc)
576 throws com.liferay.portal.kernel.exception.SystemException {
577 return getService().getGroupFileEntries(groupId, start, end, obc);
578 }
579
580 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
581 long groupId, long userId, int start, int end)
582 throws com.liferay.portal.kernel.exception.SystemException {
583 return getService().getGroupFileEntries(groupId, userId, start, end);
584 }
585
586 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
587 long groupId, long userId, int start, int end,
588 com.liferay.portal.kernel.util.OrderByComparator obc)
589 throws com.liferay.portal.kernel.exception.SystemException {
590 return getService().getGroupFileEntries(groupId, userId, start, end, obc);
591 }
592
593 public static int getGroupFileEntriesCount(long groupId)
594 throws com.liferay.portal.kernel.exception.SystemException {
595 return getService().getGroupFileEntriesCount(groupId);
596 }
597
598 public static int getGroupFileEntriesCount(long groupId, long userId)
599 throws com.liferay.portal.kernel.exception.SystemException {
600 return getService().getGroupFileEntriesCount(groupId, userId);
601 }
602
603 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getMisversionedFileEntries()
604 throws com.liferay.portal.kernel.exception.SystemException {
605 return getService().getMisversionedFileEntries();
606 }
607
608 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries()
609 throws com.liferay.portal.kernel.exception.SystemException {
610 return getService().getNoAssetFileEntries();
611 }
612
613 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getOrphanedFileEntries()
614 throws com.liferay.portal.kernel.exception.SystemException {
615 return getService().getOrphanedFileEntries();
616 }
617
618 public static boolean hasExtraSettings()
619 throws com.liferay.portal.kernel.exception.SystemException {
620 return getService().hasExtraSettings();
621 }
622
623 public static boolean hasFileEntryLock(long userId, long fileEntryId)
624 throws com.liferay.portal.kernel.exception.PortalException,
625 com.liferay.portal.kernel.exception.SystemException {
626 return getService().hasFileEntryLock(userId, fileEntryId);
627 }
628
629 public static void incrementViewCounter(
630 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
631 boolean incrementCounter, int increment)
632 throws com.liferay.portal.kernel.exception.SystemException {
633 getService()
634 .incrementViewCounter(dlFileEntry, incrementCounter, increment);
635 }
636
637 public static boolean isFileEntryCheckedOut(long fileEntryId)
638 throws com.liferay.portal.kernel.exception.PortalException,
639 com.liferay.portal.kernel.exception.SystemException {
640 return getService().isFileEntryCheckedOut(fileEntryId);
641 }
642
643 public static com.liferay.portal.model.Lock lockFileEntry(long userId,
644 long fileEntryId)
645 throws com.liferay.portal.kernel.exception.PortalException,
646 com.liferay.portal.kernel.exception.SystemException {
647 return getService().lockFileEntry(userId, fileEntryId);
648 }
649
650 public static com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
651 long userId, long fileEntryId, long newFolderId,
652 com.liferay.portal.service.ServiceContext serviceContext)
653 throws com.liferay.portal.kernel.exception.PortalException,
654 com.liferay.portal.kernel.exception.SystemException {
655 return getService()
656 .moveFileEntry(userId, fileEntryId, newFolderId,
657 serviceContext);
658 }
659
660 public static void revertFileEntry(long userId, long fileEntryId,
661 java.lang.String version,
662 com.liferay.portal.service.ServiceContext serviceContext)
663 throws com.liferay.portal.kernel.exception.PortalException,
664 com.liferay.portal.kernel.exception.SystemException {
665 getService()
666 .revertFileEntry(userId, fileEntryId, version, serviceContext);
667 }
668
669 public static void unlockFileEntry(long fileEntryId)
670 throws com.liferay.portal.kernel.exception.SystemException {
671 getService().unlockFileEntry(fileEntryId);
672 }
673
674 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
675 long userId, long fileEntryId, java.lang.String sourceFileName,
676 java.lang.String mimeType, java.lang.String title,
677 java.lang.String description, java.lang.String changeLog,
678 boolean majorVersion, long fileEntryTypeId,
679 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
680 java.io.File file, java.io.InputStream is, long size,
681 com.liferay.portal.service.ServiceContext serviceContext)
682 throws com.liferay.portal.kernel.exception.PortalException,
683 com.liferay.portal.kernel.exception.SystemException {
684 return getService()
685 .updateFileEntry(userId, fileEntryId, sourceFileName,
686 mimeType, title, description, changeLog, majorVersion,
687 fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
688 }
689
690 public static void updateSmallImage(long smallImageId, long largeImageId)
691 throws com.liferay.portal.kernel.exception.PortalException,
692 com.liferay.portal.kernel.exception.SystemException {
693 getService().updateSmallImage(smallImageId, largeImageId);
694 }
695
696 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateStatus(
697 long userId, long fileVersionId, int status,
698 java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
699 com.liferay.portal.service.ServiceContext serviceContext)
700 throws com.liferay.portal.kernel.exception.PortalException,
701 com.liferay.portal.kernel.exception.SystemException {
702 return getService()
703 .updateStatus(userId, fileVersionId, status,
704 workflowContext, serviceContext);
705 }
706
707 public static boolean verifyFileEntryCheckOut(long fileEntryId,
708 java.lang.String lockUuid)
709 throws com.liferay.portal.kernel.exception.PortalException,
710 com.liferay.portal.kernel.exception.SystemException {
711 return getService().verifyFileEntryCheckOut(fileEntryId, lockUuid);
712 }
713
714 public static boolean verifyFileEntryLock(long fileEntryId,
715 java.lang.String lockUuid)
716 throws com.liferay.portal.kernel.exception.PortalException,
717 com.liferay.portal.kernel.exception.SystemException {
718 return getService().verifyFileEntryLock(fileEntryId, lockUuid);
719 }
720
721 public static DLFileEntryLocalService getService() {
722 if (_service == null) {
723 _service = (DLFileEntryLocalService)PortalBeanLocatorUtil.locate(DLFileEntryLocalService.class.getName());
724
725 ReferenceRegistry.registerReference(DLFileEntryLocalServiceUtil.class,
726 "_service");
727 }
728
729 return _service;
730 }
731
732
735 public void setService(DLFileEntryLocalService service) {
736 }
737
738 private static DLFileEntryLocalService _service;
739 }