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
261 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
262 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
263 boolean merge)
264 throws com.liferay.portal.kernel.exception.SystemException {
265 return getService().updateDLFileEntry(dlFileEntry, merge);
266 }
267
268
273 public static java.lang.String getBeanIdentifier() {
274 return getService().getBeanIdentifier();
275 }
276
277
282 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
283 getService().setBeanIdentifier(beanIdentifier);
284 }
285
286 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
287 long userId, long groupId, long repositoryId, long folderId,
288 java.lang.String sourceFileName, java.lang.String mimeType,
289 java.lang.String title, java.lang.String description,
290 java.lang.String changeLog, long fileEntryTypeId,
291 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
292 java.io.File file, java.io.InputStream is, long size,
293 com.liferay.portal.service.ServiceContext serviceContext)
294 throws com.liferay.portal.kernel.exception.PortalException,
295 com.liferay.portal.kernel.exception.SystemException {
296 return getService()
297 .addFileEntry(userId, groupId, repositoryId, folderId,
298 sourceFileName, mimeType, title, description, changeLog,
299 fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
300 }
301
302 public static com.liferay.portlet.documentlibrary.model.DLFileVersion cancelCheckOut(
303 long userId, long fileEntryId)
304 throws com.liferay.portal.kernel.exception.PortalException,
305 com.liferay.portal.kernel.exception.SystemException {
306 return getService().cancelCheckOut(userId, fileEntryId);
307 }
308
309 public static void checkInFileEntry(long userId, long fileEntryId,
310 boolean majorVersion, java.lang.String changeLog,
311 com.liferay.portal.service.ServiceContext serviceContext)
312 throws com.liferay.portal.kernel.exception.PortalException,
313 com.liferay.portal.kernel.exception.SystemException {
314 getService()
315 .checkInFileEntry(userId, fileEntryId, majorVersion, changeLog,
316 serviceContext);
317 }
318
319 public static void checkInFileEntry(long userId, long fileEntryId,
320 java.lang.String lockUuid)
321 throws com.liferay.portal.kernel.exception.PortalException,
322 com.liferay.portal.kernel.exception.SystemException {
323 getService().checkInFileEntry(userId, fileEntryId, lockUuid);
324 }
325
326
329 public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
330 long userId, long fileEntryId)
331 throws com.liferay.portal.kernel.exception.PortalException,
332 com.liferay.portal.kernel.exception.SystemException {
333 return getService().checkOutFileEntry(userId, fileEntryId);
334 }
335
336 public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
337 long userId, long fileEntryId,
338 com.liferay.portal.service.ServiceContext serviceContext)
339 throws com.liferay.portal.kernel.exception.PortalException,
340 com.liferay.portal.kernel.exception.SystemException {
341 return getService()
342 .checkOutFileEntry(userId, fileEntryId, serviceContext);
343 }
344
345
349 public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
350 long userId, long fileEntryId, java.lang.String owner,
351 long expirationTime)
352 throws com.liferay.portal.kernel.exception.PortalException,
353 com.liferay.portal.kernel.exception.SystemException {
354 return getService()
355 .checkOutFileEntry(userId, fileEntryId, owner, expirationTime);
356 }
357
358 public static com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
359 long userId, long fileEntryId, java.lang.String owner,
360 long expirationTime,
361 com.liferay.portal.service.ServiceContext serviceContext)
362 throws com.liferay.portal.kernel.exception.PortalException,
363 com.liferay.portal.kernel.exception.SystemException {
364 return getService()
365 .checkOutFileEntry(userId, fileEntryId, owner,
366 expirationTime, serviceContext);
367 }
368
369 public static void convertExtraSettings(java.lang.String[] keys)
370 throws com.liferay.portal.kernel.exception.PortalException,
371 com.liferay.portal.kernel.exception.SystemException {
372 getService().convertExtraSettings(keys);
373 }
374
375 public static void copyFileEntryMetadata(long companyId,
376 long fileEntryTypeId, long fileEntryId, long fromFileVersionId,
377 long toFileVersionId,
378 com.liferay.portal.service.ServiceContext serviceContext)
379 throws com.liferay.portal.kernel.exception.PortalException,
380 com.liferay.portal.kernel.exception.SystemException {
381 getService()
382 .copyFileEntryMetadata(companyId, fileEntryTypeId, fileEntryId,
383 fromFileVersionId, toFileVersionId, serviceContext);
384 }
385
386 public static void deleteFileEntries(long groupId, long folderId)
387 throws com.liferay.portal.kernel.exception.PortalException,
388 com.liferay.portal.kernel.exception.SystemException {
389 getService().deleteFileEntries(groupId, folderId);
390 }
391
392 public static void deleteFileEntry(long fileEntryId)
393 throws com.liferay.portal.kernel.exception.PortalException,
394 com.liferay.portal.kernel.exception.SystemException {
395 getService().deleteFileEntry(fileEntryId);
396 }
397
398 public static void deleteFileEntry(long userId, long fileEntryId)
399 throws com.liferay.portal.kernel.exception.PortalException,
400 com.liferay.portal.kernel.exception.SystemException {
401 getService().deleteFileEntry(userId, fileEntryId);
402 }
403
404 public static void deleteFileVersion(long userId, long fileEntryId,
405 java.lang.String version)
406 throws com.liferay.portal.kernel.exception.PortalException,
407 com.liferay.portal.kernel.exception.SystemException {
408 getService().deleteFileVersion(userId, fileEntryId, version);
409 }
410
411 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByAnyImageId(
412 long imageId)
413 throws com.liferay.portal.kernel.exception.SystemException {
414 return getService().fetchFileEntryByAnyImageId(imageId);
415 }
416
417 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByName(
418 long groupId, long folderId, java.lang.String name)
419 throws com.liferay.portal.kernel.exception.SystemException {
420 return getService().fetchFileEntryByName(groupId, folderId, name);
421 }
422
423 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getExtraSettingsFileEntries(
424 int start, int end)
425 throws com.liferay.portal.kernel.exception.SystemException {
426 return getService().getExtraSettingsFileEntries(start, end);
427 }
428
429 public static java.io.File getFile(long userId, long fileEntryId,
430 java.lang.String version, boolean incrementCounter)
431 throws com.liferay.portal.kernel.exception.PortalException,
432 com.liferay.portal.kernel.exception.SystemException {
433 return getService()
434 .getFile(userId, fileEntryId, version, incrementCounter);
435 }
436
437 public static java.io.InputStream getFileAsStream(long userId,
438 long fileEntryId, java.lang.String version)
439 throws com.liferay.portal.kernel.exception.PortalException,
440 com.liferay.portal.kernel.exception.SystemException {
441 return getService().getFileAsStream(userId, fileEntryId, version);
442 }
443
444 public static java.io.InputStream getFileAsStream(long userId,
445 long fileEntryId, java.lang.String version, boolean incrementCounter)
446 throws com.liferay.portal.kernel.exception.PortalException,
447 com.liferay.portal.kernel.exception.SystemException {
448 return getService()
449 .getFileAsStream(userId, fileEntryId, version,
450 incrementCounter);
451 }
452
453 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
454 int start, int end)
455 throws com.liferay.portal.kernel.exception.SystemException {
456 return getService().getFileEntries(start, end);
457 }
458
459 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
460 long groupId, long folderId, int start, int end,
461 com.liferay.portal.kernel.util.OrderByComparator obc)
462 throws com.liferay.portal.kernel.exception.SystemException {
463 return getService().getFileEntries(groupId, folderId, start, end, obc);
464 }
465
466 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
467 long folderId, java.lang.String name)
468 throws com.liferay.portal.kernel.exception.SystemException {
469 return getService().getFileEntries(folderId, name);
470 }
471
472 public static int getFileEntriesCount()
473 throws com.liferay.portal.kernel.exception.SystemException {
474 return getService().getFileEntriesCount();
475 }
476
477 public static int getFileEntriesCount(long groupId, long folderId)
478 throws com.liferay.portal.kernel.exception.SystemException {
479 return getService().getFileEntriesCount(groupId, folderId);
480 }
481
482 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
483 long fileEntryId)
484 throws com.liferay.portal.kernel.exception.PortalException,
485 com.liferay.portal.kernel.exception.SystemException {
486 return getService().getFileEntry(fileEntryId);
487 }
488
489 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
490 long groupId, long folderId, java.lang.String title)
491 throws com.liferay.portal.kernel.exception.PortalException,
492 com.liferay.portal.kernel.exception.SystemException {
493 return getService().getFileEntry(groupId, folderId, title);
494 }
495
496 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByName(
497 long groupId, long folderId, java.lang.String name)
498 throws com.liferay.portal.kernel.exception.PortalException,
499 com.liferay.portal.kernel.exception.SystemException {
500 return getService().getFileEntryByName(groupId, folderId, name);
501 }
502
503 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
504 java.lang.String uuid, long groupId)
505 throws com.liferay.portal.kernel.exception.PortalException,
506 com.liferay.portal.kernel.exception.SystemException {
507 return getService().getFileEntryByUuidAndGroupId(uuid, groupId);
508 }
509
510 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
511 long groupId, int start, int end)
512 throws com.liferay.portal.kernel.exception.SystemException {
513 return getService().getGroupFileEntries(groupId, start, end);
514 }
515
516 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
517 long groupId, int start, int end,
518 com.liferay.portal.kernel.util.OrderByComparator obc)
519 throws com.liferay.portal.kernel.exception.SystemException {
520 return getService().getGroupFileEntries(groupId, start, end, obc);
521 }
522
523 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
524 long groupId, long userId, int start, int end)
525 throws com.liferay.portal.kernel.exception.SystemException {
526 return getService().getGroupFileEntries(groupId, userId, start, end);
527 }
528
529 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
530 long groupId, long userId, int start, int end,
531 com.liferay.portal.kernel.util.OrderByComparator obc)
532 throws com.liferay.portal.kernel.exception.SystemException {
533 return getService().getGroupFileEntries(groupId, userId, start, end, obc);
534 }
535
536 public static int getGroupFileEntriesCount(long groupId)
537 throws com.liferay.portal.kernel.exception.SystemException {
538 return getService().getGroupFileEntriesCount(groupId);
539 }
540
541 public static int getGroupFileEntriesCount(long groupId, long userId)
542 throws com.liferay.portal.kernel.exception.SystemException {
543 return getService().getGroupFileEntriesCount(groupId, userId);
544 }
545
546 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getMisversionedFileEntries()
547 throws com.liferay.portal.kernel.exception.SystemException {
548 return getService().getMisversionedFileEntries();
549 }
550
551 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries()
552 throws com.liferay.portal.kernel.exception.SystemException {
553 return getService().getNoAssetFileEntries();
554 }
555
556 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getOrphanedFileEntries()
557 throws com.liferay.portal.kernel.exception.SystemException {
558 return getService().getOrphanedFileEntries();
559 }
560
561 public static boolean hasExtraSettings()
562 throws com.liferay.portal.kernel.exception.SystemException {
563 return getService().hasExtraSettings();
564 }
565
566 public static boolean hasFileEntryLock(long userId, long fileEntryId)
567 throws com.liferay.portal.kernel.exception.PortalException,
568 com.liferay.portal.kernel.exception.SystemException {
569 return getService().hasFileEntryLock(userId, fileEntryId);
570 }
571
572 public static boolean isFileEntryCheckedOut(long fileEntryId)
573 throws com.liferay.portal.kernel.exception.PortalException,
574 com.liferay.portal.kernel.exception.SystemException {
575 return getService().isFileEntryCheckedOut(fileEntryId);
576 }
577
578 public static com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
579 long userId, long fileEntryId, long newFolderId,
580 com.liferay.portal.service.ServiceContext serviceContext)
581 throws com.liferay.portal.kernel.exception.PortalException,
582 com.liferay.portal.kernel.exception.SystemException {
583 return getService()
584 .moveFileEntry(userId, fileEntryId, newFolderId,
585 serviceContext);
586 }
587
588 public static void revertFileEntry(long userId, long fileEntryId,
589 java.lang.String version,
590 com.liferay.portal.service.ServiceContext serviceContext)
591 throws com.liferay.portal.kernel.exception.PortalException,
592 com.liferay.portal.kernel.exception.SystemException {
593 getService()
594 .revertFileEntry(userId, fileEntryId, version, serviceContext);
595 }
596
597 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
598 long userId, long fileEntryId, java.lang.String sourceFileName,
599 java.lang.String mimeType, java.lang.String title,
600 java.lang.String description, java.lang.String changeLog,
601 boolean majorVersion, long fileEntryTypeId,
602 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
603 java.io.File file, java.io.InputStream is, long size,
604 com.liferay.portal.service.ServiceContext serviceContext)
605 throws com.liferay.portal.kernel.exception.PortalException,
606 com.liferay.portal.kernel.exception.SystemException {
607 return getService()
608 .updateFileEntry(userId, fileEntryId, sourceFileName,
609 mimeType, title, description, changeLog, majorVersion,
610 fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
611 }
612
613 public static void updateSmallImage(long smallImageId, long largeImageId)
614 throws com.liferay.portal.kernel.exception.PortalException,
615 com.liferay.portal.kernel.exception.SystemException {
616 getService().updateSmallImage(smallImageId, largeImageId);
617 }
618
619 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateStatus(
620 long userId, long fileVersionId, int status,
621 java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
622 com.liferay.portal.service.ServiceContext serviceContext)
623 throws com.liferay.portal.kernel.exception.PortalException,
624 com.liferay.portal.kernel.exception.SystemException {
625 return getService()
626 .updateStatus(userId, fileVersionId, status,
627 workflowContext, serviceContext);
628 }
629
630 public static boolean verifyFileEntryCheckOut(long fileEntryId,
631 java.lang.String lockUuid)
632 throws com.liferay.portal.kernel.exception.PortalException,
633 com.liferay.portal.kernel.exception.SystemException {
634 return getService().verifyFileEntryCheckOut(fileEntryId, lockUuid);
635 }
636
637 public static boolean verifyFileEntryLock(long fileEntryId,
638 java.lang.String lockUuid)
639 throws com.liferay.portal.kernel.exception.PortalException,
640 com.liferay.portal.kernel.exception.SystemException {
641 return getService().verifyFileEntryLock(fileEntryId, lockUuid);
642 }
643
644 public static DLFileEntryLocalService getService() {
645 if (_service == null) {
646 _service = (DLFileEntryLocalService)PortalBeanLocatorUtil.locate(DLFileEntryLocalService.class.getName());
647
648 ReferenceRegistry.registerReference(DLFileEntryLocalServiceUtil.class,
649 "_service");
650 }
651
652 return _service;
653 }
654
655
658 public void setService(DLFileEntryLocalService service) {
659 }
660
661 private static DLFileEntryLocalService _service;
662 }