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 DLFileEntryTypeLocalServiceUtil {
034
039
040
047 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType addDLFileEntryType(
048 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addDLFileEntryType(dlFileEntryType);
051 }
052
053
059 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType createDLFileEntryType(
060 long fileEntryTypeId) {
061 return getService().createDLFileEntryType(fileEntryTypeId);
062 }
063
064
072 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType deleteDLFileEntryType(
073 long fileEntryTypeId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().deleteDLFileEntryType(fileEntryTypeId);
077 }
078
079
086 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType deleteDLFileEntryType(
087 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return getService().deleteDLFileEntryType(dlFileEntryType);
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.DLFileEntryType fetchDLFileEntryType(
168 long fileEntryTypeId)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().fetchDLFileEntryType(fileEntryTypeId);
171 }
172
173
181 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryType(
182 long fileEntryTypeId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getDLFileEntryType(fileEntryTypeId);
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.DLFileEntryType getDLFileEntryTypeByUuidAndGroupId(
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().getDLFileEntryTypeByUuidAndGroupId(uuid, groupId);
209 }
210
211
223 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes(
224 int start, int end)
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getService().getDLFileEntryTypes(start, end);
227 }
228
229
235 public static int getDLFileEntryTypesCount()
236 throws com.liferay.portal.kernel.exception.SystemException {
237 return getService().getDLFileEntryTypesCount();
238 }
239
240
247 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType updateDLFileEntryType(
248 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
249 throws com.liferay.portal.kernel.exception.SystemException {
250 return getService().updateDLFileEntryType(dlFileEntryType);
251 }
252
253
256 public static void addDLFolderDLFileEntryType(long folderId,
257 long fileEntryTypeId)
258 throws com.liferay.portal.kernel.exception.SystemException {
259 getService().addDLFolderDLFileEntryType(folderId, fileEntryTypeId);
260 }
261
262
265 public static void addDLFolderDLFileEntryType(long folderId,
266 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
267 throws com.liferay.portal.kernel.exception.SystemException {
268 getService().addDLFolderDLFileEntryType(folderId, dlFileEntryType);
269 }
270
271
274 public static void addDLFolderDLFileEntryTypes(long folderId,
275 long[] fileEntryTypeIds)
276 throws com.liferay.portal.kernel.exception.SystemException {
277 getService().addDLFolderDLFileEntryTypes(folderId, fileEntryTypeIds);
278 }
279
280
283 public static void addDLFolderDLFileEntryTypes(long folderId,
284 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
285 throws com.liferay.portal.kernel.exception.SystemException {
286 getService().addDLFolderDLFileEntryTypes(folderId, DLFileEntryTypes);
287 }
288
289
292 public static void clearDLFolderDLFileEntryTypes(long folderId)
293 throws com.liferay.portal.kernel.exception.SystemException {
294 getService().clearDLFolderDLFileEntryTypes(folderId);
295 }
296
297
300 public static void deleteDLFolderDLFileEntryType(long folderId,
301 long fileEntryTypeId)
302 throws com.liferay.portal.kernel.exception.SystemException {
303 getService().deleteDLFolderDLFileEntryType(folderId, fileEntryTypeId);
304 }
305
306
309 public static void deleteDLFolderDLFileEntryType(long folderId,
310 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
311 throws com.liferay.portal.kernel.exception.SystemException {
312 getService().deleteDLFolderDLFileEntryType(folderId, dlFileEntryType);
313 }
314
315
318 public static void deleteDLFolderDLFileEntryTypes(long folderId,
319 long[] fileEntryTypeIds)
320 throws com.liferay.portal.kernel.exception.SystemException {
321 getService().deleteDLFolderDLFileEntryTypes(folderId, fileEntryTypeIds);
322 }
323
324
327 public static void deleteDLFolderDLFileEntryTypes(long folderId,
328 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
329 throws com.liferay.portal.kernel.exception.SystemException {
330 getService().deleteDLFolderDLFileEntryTypes(folderId, DLFileEntryTypes);
331 }
332
333
336 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
337 long folderId)
338 throws com.liferay.portal.kernel.exception.SystemException {
339 return getService().getDLFolderDLFileEntryTypes(folderId);
340 }
341
342
345 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
346 long folderId, int start, int end)
347 throws com.liferay.portal.kernel.exception.SystemException {
348 return getService().getDLFolderDLFileEntryTypes(folderId, start, end);
349 }
350
351
354 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
355 long folderId, int start, int end,
356 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
357 throws com.liferay.portal.kernel.exception.SystemException {
358 return getService()
359 .getDLFolderDLFileEntryTypes(folderId, start, end,
360 orderByComparator);
361 }
362
363
366 public static int getDLFolderDLFileEntryTypesCount(long folderId)
367 throws com.liferay.portal.kernel.exception.SystemException {
368 return getService().getDLFolderDLFileEntryTypesCount(folderId);
369 }
370
371
374 public static boolean hasDLFolderDLFileEntryType(long folderId,
375 long fileEntryTypeId)
376 throws com.liferay.portal.kernel.exception.SystemException {
377 return getService().hasDLFolderDLFileEntryType(folderId, fileEntryTypeId);
378 }
379
380
383 public static boolean hasDLFolderDLFileEntryTypes(long folderId)
384 throws com.liferay.portal.kernel.exception.SystemException {
385 return getService().hasDLFolderDLFileEntryTypes(folderId);
386 }
387
388
391 public static void setDLFolderDLFileEntryTypes(long folderId,
392 long[] fileEntryTypeIds)
393 throws com.liferay.portal.kernel.exception.SystemException {
394 getService().setDLFolderDLFileEntryTypes(folderId, fileEntryTypeIds);
395 }
396
397
400 public static void addDDMStructureDLFileEntryType(long structureId,
401 long fileEntryTypeId)
402 throws com.liferay.portal.kernel.exception.SystemException {
403 getService().addDDMStructureDLFileEntryType(structureId, fileEntryTypeId);
404 }
405
406
409 public static void addDDMStructureDLFileEntryType(long structureId,
410 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
411 throws com.liferay.portal.kernel.exception.SystemException {
412 getService().addDDMStructureDLFileEntryType(structureId, dlFileEntryType);
413 }
414
415
418 public static void addDDMStructureDLFileEntryTypes(long structureId,
419 long[] fileEntryTypeIds)
420 throws com.liferay.portal.kernel.exception.SystemException {
421 getService()
422 .addDDMStructureDLFileEntryTypes(structureId, fileEntryTypeIds);
423 }
424
425
428 public static void addDDMStructureDLFileEntryTypes(long structureId,
429 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
430 throws com.liferay.portal.kernel.exception.SystemException {
431 getService()
432 .addDDMStructureDLFileEntryTypes(structureId, DLFileEntryTypes);
433 }
434
435
438 public static void clearDDMStructureDLFileEntryTypes(long structureId)
439 throws com.liferay.portal.kernel.exception.SystemException {
440 getService().clearDDMStructureDLFileEntryTypes(structureId);
441 }
442
443
446 public static void deleteDDMStructureDLFileEntryType(long structureId,
447 long fileEntryTypeId)
448 throws com.liferay.portal.kernel.exception.SystemException {
449 getService()
450 .deleteDDMStructureDLFileEntryType(structureId, fileEntryTypeId);
451 }
452
453
456 public static void deleteDDMStructureDLFileEntryType(long structureId,
457 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
458 throws com.liferay.portal.kernel.exception.SystemException {
459 getService()
460 .deleteDDMStructureDLFileEntryType(structureId, dlFileEntryType);
461 }
462
463
466 public static void deleteDDMStructureDLFileEntryTypes(long structureId,
467 long[] fileEntryTypeIds)
468 throws com.liferay.portal.kernel.exception.SystemException {
469 getService()
470 .deleteDDMStructureDLFileEntryTypes(structureId, fileEntryTypeIds);
471 }
472
473
476 public static void deleteDDMStructureDLFileEntryTypes(long structureId,
477 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
478 throws com.liferay.portal.kernel.exception.SystemException {
479 getService()
480 .deleteDDMStructureDLFileEntryTypes(structureId, DLFileEntryTypes);
481 }
482
483
486 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
487 long structureId)
488 throws com.liferay.portal.kernel.exception.SystemException {
489 return getService().getDDMStructureDLFileEntryTypes(structureId);
490 }
491
492
495 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
496 long structureId, int start, int end)
497 throws com.liferay.portal.kernel.exception.SystemException {
498 return getService()
499 .getDDMStructureDLFileEntryTypes(structureId, start, end);
500 }
501
502
505 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
506 long structureId, int start, int end,
507 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
508 throws com.liferay.portal.kernel.exception.SystemException {
509 return getService()
510 .getDDMStructureDLFileEntryTypes(structureId, start, end,
511 orderByComparator);
512 }
513
514
517 public static int getDDMStructureDLFileEntryTypesCount(long structureId)
518 throws com.liferay.portal.kernel.exception.SystemException {
519 return getService().getDDMStructureDLFileEntryTypesCount(structureId);
520 }
521
522
525 public static boolean hasDDMStructureDLFileEntryType(long structureId,
526 long fileEntryTypeId)
527 throws com.liferay.portal.kernel.exception.SystemException {
528 return getService()
529 .hasDDMStructureDLFileEntryType(structureId, fileEntryTypeId);
530 }
531
532
535 public static boolean hasDDMStructureDLFileEntryTypes(long structureId)
536 throws com.liferay.portal.kernel.exception.SystemException {
537 return getService().hasDDMStructureDLFileEntryTypes(structureId);
538 }
539
540
543 public static void setDDMStructureDLFileEntryTypes(long structureId,
544 long[] fileEntryTypeIds)
545 throws com.liferay.portal.kernel.exception.SystemException {
546 getService()
547 .setDDMStructureDLFileEntryTypes(structureId, fileEntryTypeIds);
548 }
549
550
555 public static java.lang.String getBeanIdentifier() {
556 return getService().getBeanIdentifier();
557 }
558
559
564 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
565 getService().setBeanIdentifier(beanIdentifier);
566 }
567
568 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
569 long userId, long groupId, java.lang.String name,
570 java.lang.String description, long[] ddmStructureIds,
571 com.liferay.portal.service.ServiceContext serviceContext)
572 throws com.liferay.portal.kernel.exception.PortalException,
573 com.liferay.portal.kernel.exception.SystemException {
574 return getService()
575 .addFileEntryType(userId, groupId, name, description,
576 ddmStructureIds, serviceContext);
577 }
578
579 public static void cascadeFileEntryTypes(long userId,
580 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
581 throws com.liferay.portal.kernel.exception.PortalException,
582 com.liferay.portal.kernel.exception.SystemException {
583 getService().cascadeFileEntryTypes(userId, dlFolder);
584 }
585
586 public static void deleteFileEntryType(
587 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
588 throws com.liferay.portal.kernel.exception.PortalException,
589 com.liferay.portal.kernel.exception.SystemException {
590 getService().deleteFileEntryType(dlFileEntryType);
591 }
592
593 public static void deleteFileEntryType(long fileEntryTypeId)
594 throws com.liferay.portal.kernel.exception.PortalException,
595 com.liferay.portal.kernel.exception.SystemException {
596 getService().deleteFileEntryType(fileEntryTypeId);
597 }
598
599 public static void deleteFileEntryTypes(long groupId)
600 throws com.liferay.portal.kernel.exception.PortalException,
601 com.liferay.portal.kernel.exception.SystemException {
602 getService().deleteFileEntryTypes(groupId);
603 }
604
605 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchFileEntryType(
606 long fileEntryTypeId)
607 throws com.liferay.portal.kernel.exception.SystemException {
608 return getService().fetchFileEntryType(fileEntryTypeId);
609 }
610
611 public static long getDefaultFileEntryTypeId(long folderId)
612 throws com.liferay.portal.kernel.exception.PortalException,
613 com.liferay.portal.kernel.exception.SystemException {
614 return getService().getDefaultFileEntryTypeId(folderId);
615 }
616
617 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
618 long fileEntryTypeId)
619 throws com.liferay.portal.kernel.exception.PortalException,
620 com.liferay.portal.kernel.exception.SystemException {
621 return getService().getFileEntryType(fileEntryTypeId);
622 }
623
624 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
625 long groupId, java.lang.String name)
626 throws com.liferay.portal.kernel.exception.PortalException,
627 com.liferay.portal.kernel.exception.SystemException {
628 return getService().getFileEntryType(groupId, name);
629 }
630
631 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
632 long[] groupIds)
633 throws com.liferay.portal.kernel.exception.SystemException {
634 return getService().getFileEntryTypes(groupIds);
635 }
636
637 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFolderFileEntryTypes(
638 long[] groupIds, long folderId, boolean inherited)
639 throws com.liferay.portal.kernel.exception.PortalException,
640 com.liferay.portal.kernel.exception.SystemException {
641 return getService()
642 .getFolderFileEntryTypes(groupIds, folderId, inherited);
643 }
644
645 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> search(
646 long companyId, long[] groupIds, java.lang.String keywords,
647 boolean includeBasicFileEntryType, int start, int end,
648 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
649 throws com.liferay.portal.kernel.exception.SystemException {
650 return getService()
651 .search(companyId, groupIds, keywords,
652 includeBasicFileEntryType, start, end, orderByComparator);
653 }
654
655 public static int searchCount(long companyId, long[] groupIds,
656 java.lang.String keywords, boolean includeBasicFileEntryType)
657 throws com.liferay.portal.kernel.exception.SystemException {
658 return getService()
659 .searchCount(companyId, groupIds, keywords,
660 includeBasicFileEntryType);
661 }
662
663 public static void unsetFolderFileEntryTypes(long folderId)
664 throws com.liferay.portal.kernel.exception.SystemException {
665 getService().unsetFolderFileEntryTypes(folderId);
666 }
667
668 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntryFileEntryType(
669 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
670 com.liferay.portal.service.ServiceContext serviceContext)
671 throws com.liferay.portal.kernel.exception.PortalException,
672 com.liferay.portal.kernel.exception.SystemException {
673 return getService()
674 .updateFileEntryFileEntryType(dlFileEntry, serviceContext);
675 }
676
677 public static void updateFileEntryType(long userId, long fileEntryTypeId,
678 java.lang.String name, java.lang.String description,
679 long[] ddmStructureIds,
680 com.liferay.portal.service.ServiceContext serviceContext)
681 throws com.liferay.portal.kernel.exception.PortalException,
682 com.liferay.portal.kernel.exception.SystemException {
683 getService()
684 .updateFileEntryType(userId, fileEntryTypeId, name, description,
685 ddmStructureIds, serviceContext);
686 }
687
688 public static void updateFolderFileEntryTypes(
689 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
690 java.util.List<java.lang.Long> fileEntryTypeIds,
691 long defaultFileEntryTypeId,
692 com.liferay.portal.service.ServiceContext serviceContext)
693 throws com.liferay.portal.kernel.exception.PortalException,
694 com.liferay.portal.kernel.exception.SystemException {
695 getService()
696 .updateFolderFileEntryTypes(dlFolder, fileEntryTypeIds,
697 defaultFileEntryTypeId, serviceContext);
698 }
699
700 public static DLFileEntryTypeLocalService getService() {
701 if (_service == null) {
702 _service = (DLFileEntryTypeLocalService)PortalBeanLocatorUtil.locate(DLFileEntryTypeLocalService.class.getName());
703
704 ReferenceRegistry.registerReference(DLFileEntryTypeLocalServiceUtil.class,
705 "_service");
706 }
707
708 return _service;
709 }
710
711
714 public void setService(DLFileEntryTypeLocalService service) {
715 }
716
717 private static DLFileEntryTypeLocalService _service;
718 }