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
308 public static void checkInFileEntry(long userId, long fileEntryId,
309 java.lang.String lockUuid)
310 throws com.liferay.portal.kernel.exception.PortalException,
311 com.liferay.portal.kernel.exception.SystemException {
312 getService().checkInFileEntry(userId, fileEntryId, lockUuid);
313 }
314
315 public static void checkInFileEntry(long userId, long fileEntryId,
316 java.lang.String lockUuid,
317 com.liferay.portal.service.ServiceContext serviceContext)
318 throws com.liferay.portal.kernel.exception.PortalException,
319 com.liferay.portal.kernel.exception.SystemException {
320 getService()
321 .checkInFileEntry(userId, fileEntryId, lockUuid, serviceContext);
322 }
323
324
328 public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
329 long userId, long fileEntryId)
330 throws com.liferay.portal.kernel.exception.PortalException,
331 com.liferay.portal.kernel.exception.SystemException {
332 return getService().checkOutFileEntry(userId, fileEntryId);
333 }
334
335 public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
336 long userId, long fileEntryId,
337 com.liferay.portal.service.ServiceContext serviceContext)
338 throws com.liferay.portal.kernel.exception.PortalException,
339 com.liferay.portal.kernel.exception.SystemException {
340 return getService()
341 .checkOutFileEntry(userId, fileEntryId, serviceContext);
342 }
343
344
348 public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
349 long userId, long fileEntryId, java.lang.String owner,
350 long expirationTime)
351 throws com.liferay.portal.kernel.exception.PortalException,
352 com.liferay.portal.kernel.exception.SystemException {
353 return getService()
354 .checkOutFileEntry(userId, fileEntryId, owner, expirationTime);
355 }
356
357 public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
358 long userId, long fileEntryId, java.lang.String owner,
359 long expirationTime,
360 com.liferay.portal.service.ServiceContext serviceContext)
361 throws com.liferay.portal.kernel.exception.PortalException,
362 com.liferay.portal.kernel.exception.SystemException {
363 return getService()
364 .checkOutFileEntry(userId, fileEntryId, owner,
365 expirationTime, serviceContext);
366 }
367
368 public static void convertExtraSettings(java.lang.String[] keys)
369 throws com.liferay.portal.kernel.exception.PortalException,
370 com.liferay.portal.kernel.exception.SystemException {
371 getService().convertExtraSettings(keys);
372 }
373
374 public static void copyFileEntryMetadata(long companyId,
375 long fileEntryTypeId, long fileEntryId, long fromFileVersionId,
376 long toFileVersionId,
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 .copyFileEntryMetadata(companyId, fileEntryTypeId, fileEntryId,
382 fromFileVersionId, toFileVersionId, serviceContext);
383 }
384
385 public static void deleteFileEntries(long groupId, long folderId)
386 throws com.liferay.portal.kernel.exception.PortalException,
387 com.liferay.portal.kernel.exception.SystemException {
388 getService().deleteFileEntries(groupId, folderId);
389 }
390
391 public static void deleteFileEntries(long groupId, long folderId,
392 boolean includeTrashedEntries)
393 throws com.liferay.portal.kernel.exception.PortalException,
394 com.liferay.portal.kernel.exception.SystemException {
395 getService().deleteFileEntries(groupId, folderId, includeTrashedEntries);
396 }
397
398 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
399 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
400 throws com.liferay.portal.kernel.exception.PortalException,
401 com.liferay.portal.kernel.exception.SystemException {
402 return getService().deleteFileEntry(dlFileEntry);
403 }
404
405 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
406 long fileEntryId)
407 throws com.liferay.portal.kernel.exception.PortalException,
408 com.liferay.portal.kernel.exception.SystemException {
409 return getService().deleteFileEntry(fileEntryId);
410 }
411
412 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileEntry(
413 long userId, long fileEntryId)
414 throws com.liferay.portal.kernel.exception.PortalException,
415 com.liferay.portal.kernel.exception.SystemException {
416 return getService().deleteFileEntry(userId, fileEntryId);
417 }
418
419 public static com.liferay.portlet.documentlibrary.model.DLFileEntry deleteFileVersion(
420 long userId, long fileEntryId, java.lang.String version)
421 throws com.liferay.portal.kernel.exception.PortalException,
422 com.liferay.portal.kernel.exception.SystemException {
423 return getService().deleteFileVersion(userId, fileEntryId, version);
424 }
425
426 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntry(
427 long groupId, long folderId, java.lang.String title)
428 throws com.liferay.portal.kernel.exception.SystemException {
429 return getService().fetchFileEntry(groupId, folderId, title);
430 }
431
432 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByAnyImageId(
433 long imageId)
434 throws com.liferay.portal.kernel.exception.SystemException {
435 return getService().fetchFileEntryByAnyImageId(imageId);
436 }
437
438 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByName(
439 long groupId, long folderId, java.lang.String name)
440 throws com.liferay.portal.kernel.exception.SystemException {
441 return getService().fetchFileEntryByName(groupId, folderId, name);
442 }
443
444 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDDMStructureFileEntries(
445 long[] ddmStructureIds)
446 throws com.liferay.portal.kernel.exception.SystemException {
447 return getService().getDDMStructureFileEntries(ddmStructureIds);
448 }
449
450 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getExtraSettingsFileEntries(
451 int start, int end)
452 throws com.liferay.portal.kernel.exception.SystemException {
453 return getService().getExtraSettingsFileEntries(start, end);
454 }
455
456 public static java.io.File getFile(long userId, long fileEntryId,
457 java.lang.String version, boolean incrementCounter)
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 }
463
464 public static java.io.File getFile(long userId, long fileEntryId,
465 java.lang.String version, boolean incrementCounter, int increment)
466 throws com.liferay.portal.kernel.exception.PortalException,
467 com.liferay.portal.kernel.exception.SystemException {
468 return getService()
469 .getFile(userId, fileEntryId, version, incrementCounter,
470 increment);
471 }
472
473 public static java.io.InputStream getFileAsStream(long userId,
474 long fileEntryId, java.lang.String version)
475 throws com.liferay.portal.kernel.exception.PortalException,
476 com.liferay.portal.kernel.exception.SystemException {
477 return getService().getFileAsStream(userId, fileEntryId, version);
478 }
479
480 public static java.io.InputStream getFileAsStream(long userId,
481 long fileEntryId, java.lang.String version, boolean incrementCounter)
482 throws com.liferay.portal.kernel.exception.PortalException,
483 com.liferay.portal.kernel.exception.SystemException {
484 return getService()
485 .getFileAsStream(userId, fileEntryId, version,
486 incrementCounter);
487 }
488
489 public static java.io.InputStream getFileAsStream(long userId,
490 long fileEntryId, java.lang.String version, boolean incrementCounter,
491 int increment)
492 throws com.liferay.portal.kernel.exception.PortalException,
493 com.liferay.portal.kernel.exception.SystemException {
494 return getService()
495 .getFileAsStream(userId, fileEntryId, version,
496 incrementCounter, increment);
497 }
498
499 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
500 int start, int end)
501 throws com.liferay.portal.kernel.exception.SystemException {
502 return getService().getFileEntries(start, end);
503 }
504
505 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
506 long groupId, long folderId)
507 throws com.liferay.portal.kernel.exception.SystemException {
508 return getService().getFileEntries(groupId, folderId);
509 }
510
511 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
512 long groupId, long folderId, int status, int start, int end,
513 com.liferay.portal.kernel.util.OrderByComparator obc)
514 throws com.liferay.portal.kernel.exception.SystemException {
515 return getService()
516 .getFileEntries(groupId, folderId, status, start, end, obc);
517 }
518
519 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
520 long groupId, long folderId, int start, int end,
521 com.liferay.portal.kernel.util.OrderByComparator obc)
522 throws com.liferay.portal.kernel.exception.SystemException {
523 return getService().getFileEntries(groupId, folderId, start, end, obc);
524 }
525
526 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
527 long folderId, java.lang.String name)
528 throws com.liferay.portal.kernel.exception.SystemException {
529 return getService().getFileEntries(folderId, name);
530 }
531
532 public static int getFileEntriesCount()
533 throws com.liferay.portal.kernel.exception.SystemException {
534 return getService().getFileEntriesCount();
535 }
536
537 public static int getFileEntriesCount(long groupId, long folderId)
538 throws com.liferay.portal.kernel.exception.SystemException {
539 return getService().getFileEntriesCount(groupId, folderId);
540 }
541
542 public static int getFileEntriesCount(long groupId, long folderId,
543 int status) throws com.liferay.portal.kernel.exception.SystemException {
544 return getService().getFileEntriesCount(groupId, folderId, status);
545 }
546
547 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
548 long fileEntryId)
549 throws com.liferay.portal.kernel.exception.PortalException,
550 com.liferay.portal.kernel.exception.SystemException {
551 return getService().getFileEntry(fileEntryId);
552 }
553
554 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
555 long groupId, long folderId, java.lang.String title)
556 throws com.liferay.portal.kernel.exception.PortalException,
557 com.liferay.portal.kernel.exception.SystemException {
558 return getService().getFileEntry(groupId, folderId, title);
559 }
560
561 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByName(
562 long groupId, long folderId, java.lang.String name)
563 throws com.liferay.portal.kernel.exception.PortalException,
564 com.liferay.portal.kernel.exception.SystemException {
565 return getService().getFileEntryByName(groupId, folderId, name);
566 }
567
568 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
569 java.lang.String uuid, long groupId)
570 throws com.liferay.portal.kernel.exception.PortalException,
571 com.liferay.portal.kernel.exception.SystemException {
572 return getService().getFileEntryByUuidAndGroupId(uuid, groupId);
573 }
574
575 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
576 long groupId, int start, int end)
577 throws com.liferay.portal.kernel.exception.SystemException {
578 return getService().getGroupFileEntries(groupId, start, end);
579 }
580
581 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
582 long groupId, int start, int end,
583 com.liferay.portal.kernel.util.OrderByComparator obc)
584 throws com.liferay.portal.kernel.exception.SystemException {
585 return getService().getGroupFileEntries(groupId, start, end, obc);
586 }
587
588 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
589 long groupId, long userId, int start, int end)
590 throws com.liferay.portal.kernel.exception.SystemException {
591 return getService().getGroupFileEntries(groupId, userId, start, end);
592 }
593
594 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
595 long groupId, long userId, int start, int end,
596 com.liferay.portal.kernel.util.OrderByComparator obc)
597 throws com.liferay.portal.kernel.exception.SystemException {
598 return getService().getGroupFileEntries(groupId, userId, start, end, obc);
599 }
600
601 public static int getGroupFileEntriesCount(long groupId)
602 throws com.liferay.portal.kernel.exception.SystemException {
603 return getService().getGroupFileEntriesCount(groupId);
604 }
605
606 public static int getGroupFileEntriesCount(long groupId, long userId)
607 throws com.liferay.portal.kernel.exception.SystemException {
608 return getService().getGroupFileEntriesCount(groupId, userId);
609 }
610
611 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getMisversionedFileEntries()
612 throws com.liferay.portal.kernel.exception.SystemException {
613 return getService().getMisversionedFileEntries();
614 }
615
616 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries()
617 throws com.liferay.portal.kernel.exception.SystemException {
618 return getService().getNoAssetFileEntries();
619 }
620
621 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getOrphanedFileEntries()
622 throws com.liferay.portal.kernel.exception.SystemException {
623 return getService().getOrphanedFileEntries();
624 }
625
626 public static boolean hasExtraSettings()
627 throws com.liferay.portal.kernel.exception.SystemException {
628 return getService().hasExtraSettings();
629 }
630
631 public static boolean hasFileEntryLock(long userId, long fileEntryId)
632 throws com.liferay.portal.kernel.exception.PortalException,
633 com.liferay.portal.kernel.exception.SystemException {
634 return getService().hasFileEntryLock(userId, fileEntryId);
635 }
636
637 public static void incrementViewCounter(
638 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
639 int increment)
640 throws com.liferay.portal.kernel.exception.SystemException {
641 getService().incrementViewCounter(dlFileEntry, increment);
642 }
643
644 public static boolean isFileEntryCheckedOut(long fileEntryId)
645 throws com.liferay.portal.kernel.exception.PortalException,
646 com.liferay.portal.kernel.exception.SystemException {
647 return getService().isFileEntryCheckedOut(fileEntryId);
648 }
649
650 public static com.liferay.portal.model.Lock lockFileEntry(long userId,
651 long fileEntryId)
652 throws com.liferay.portal.kernel.exception.PortalException,
653 com.liferay.portal.kernel.exception.SystemException {
654 return getService().lockFileEntry(userId, fileEntryId);
655 }
656
657 public static com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
658 long userId, long fileEntryId, long newFolderId,
659 com.liferay.portal.service.ServiceContext serviceContext)
660 throws com.liferay.portal.kernel.exception.PortalException,
661 com.liferay.portal.kernel.exception.SystemException {
662 return getService()
663 .moveFileEntry(userId, fileEntryId, newFolderId,
664 serviceContext);
665 }
666
667 public static void revertFileEntry(long userId, long fileEntryId,
668 java.lang.String version,
669 com.liferay.portal.service.ServiceContext serviceContext)
670 throws com.liferay.portal.kernel.exception.PortalException,
671 com.liferay.portal.kernel.exception.SystemException {
672 getService()
673 .revertFileEntry(userId, fileEntryId, version, serviceContext);
674 }
675
676 public static void unlockFileEntry(long fileEntryId)
677 throws com.liferay.portal.kernel.exception.SystemException {
678 getService().unlockFileEntry(fileEntryId);
679 }
680
681 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
682 long userId, long fileEntryId, java.lang.String sourceFileName,
683 java.lang.String mimeType, java.lang.String title,
684 java.lang.String description, java.lang.String changeLog,
685 boolean majorVersion, long fileEntryTypeId,
686 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
687 java.io.File file, java.io.InputStream is, long size,
688 com.liferay.portal.service.ServiceContext serviceContext)
689 throws com.liferay.portal.kernel.exception.PortalException,
690 com.liferay.portal.kernel.exception.SystemException {
691 return getService()
692 .updateFileEntry(userId, fileEntryId, sourceFileName,
693 mimeType, title, description, changeLog, majorVersion,
694 fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
695 }
696
697 public static void updateSmallImage(long smallImageId, long largeImageId)
698 throws com.liferay.portal.kernel.exception.PortalException,
699 com.liferay.portal.kernel.exception.SystemException {
700 getService().updateSmallImage(smallImageId, largeImageId);
701 }
702
703 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateStatus(
704 long userId, long fileVersionId, int status,
705 java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
706 com.liferay.portal.service.ServiceContext serviceContext)
707 throws com.liferay.portal.kernel.exception.PortalException,
708 com.liferay.portal.kernel.exception.SystemException {
709 return getService()
710 .updateStatus(userId, fileVersionId, status,
711 workflowContext, serviceContext);
712 }
713
714 public static boolean verifyFileEntryCheckOut(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().verifyFileEntryCheckOut(fileEntryId, lockUuid);
719 }
720
721 public static boolean verifyFileEntryLock(long fileEntryId,
722 java.lang.String lockUuid)
723 throws com.liferay.portal.kernel.exception.PortalException,
724 com.liferay.portal.kernel.exception.SystemException {
725 return getService().verifyFileEntryLock(fileEntryId, lockUuid);
726 }
727
728 public static DLFileEntryLocalService getService() {
729 if (_service == null) {
730 _service = (DLFileEntryLocalService)PortalBeanLocatorUtil.locate(DLFileEntryLocalService.class.getName());
731
732 ReferenceRegistry.registerReference(DLFileEntryLocalServiceUtil.class,
733 "_service");
734 }
735
736 return _service;
737 }
738
739
742 public void setService(DLFileEntryLocalService service) {
743 }
744
745 private static DLFileEntryLocalService _service;
746 }