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
261 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType updateDLFileEntryType(
262 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType,
263 boolean merge)
264 throws com.liferay.portal.kernel.exception.SystemException {
265 return getService().updateDLFileEntryType(dlFileEntryType, merge);
266 }
267
268
271 public static void addDLFolderDLFileEntryType(long folderId,
272 long fileEntryTypeId)
273 throws com.liferay.portal.kernel.exception.SystemException {
274 getService().addDLFolderDLFileEntryType(folderId, fileEntryTypeId);
275 }
276
277
280 public static void addDLFolderDLFileEntryType(long folderId,
281 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
282 throws com.liferay.portal.kernel.exception.SystemException {
283 getService().addDLFolderDLFileEntryType(folderId, dlFileEntryType);
284 }
285
286
289 public static void addDLFolderDLFileEntryTypes(long folderId,
290 long[] fileEntryTypeIds)
291 throws com.liferay.portal.kernel.exception.SystemException {
292 getService().addDLFolderDLFileEntryTypes(folderId, fileEntryTypeIds);
293 }
294
295
298 public static void addDLFolderDLFileEntryTypes(long folderId,
299 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
300 throws com.liferay.portal.kernel.exception.SystemException {
301 getService().addDLFolderDLFileEntryTypes(folderId, DLFileEntryTypes);
302 }
303
304
307 public static void clearDLFolderDLFileEntryTypes(long folderId)
308 throws com.liferay.portal.kernel.exception.SystemException {
309 getService().clearDLFolderDLFileEntryTypes(folderId);
310 }
311
312
315 public static void deleteDLFolderDLFileEntryType(long folderId,
316 long fileEntryTypeId)
317 throws com.liferay.portal.kernel.exception.SystemException {
318 getService().deleteDLFolderDLFileEntryType(folderId, fileEntryTypeId);
319 }
320
321
324 public static void deleteDLFolderDLFileEntryType(long folderId,
325 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
326 throws com.liferay.portal.kernel.exception.SystemException {
327 getService().deleteDLFolderDLFileEntryType(folderId, dlFileEntryType);
328 }
329
330
333 public static void deleteDLFolderDLFileEntryTypes(long folderId,
334 long[] fileEntryTypeIds)
335 throws com.liferay.portal.kernel.exception.SystemException {
336 getService().deleteDLFolderDLFileEntryTypes(folderId, fileEntryTypeIds);
337 }
338
339
342 public static void deleteDLFolderDLFileEntryTypes(long folderId,
343 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
344 throws com.liferay.portal.kernel.exception.SystemException {
345 getService().deleteDLFolderDLFileEntryTypes(folderId, DLFileEntryTypes);
346 }
347
348
351 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
352 long folderId)
353 throws com.liferay.portal.kernel.exception.SystemException {
354 return getService().getDLFolderDLFileEntryTypes(folderId);
355 }
356
357
360 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
361 long folderId, int start, int end)
362 throws com.liferay.portal.kernel.exception.SystemException {
363 return getService().getDLFolderDLFileEntryTypes(folderId, start, end);
364 }
365
366
369 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
370 long folderId, int start, int end,
371 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
372 throws com.liferay.portal.kernel.exception.SystemException {
373 return getService()
374 .getDLFolderDLFileEntryTypes(folderId, start, end,
375 orderByComparator);
376 }
377
378
381 public static int getDLFolderDLFileEntryTypesCount(long folderId)
382 throws com.liferay.portal.kernel.exception.SystemException {
383 return getService().getDLFolderDLFileEntryTypesCount(folderId);
384 }
385
386
389 public static boolean hasDLFolderDLFileEntryType(long folderId,
390 long fileEntryTypeId)
391 throws com.liferay.portal.kernel.exception.SystemException {
392 return getService().hasDLFolderDLFileEntryType(folderId, fileEntryTypeId);
393 }
394
395
398 public static boolean hasDLFolderDLFileEntryTypes(long folderId)
399 throws com.liferay.portal.kernel.exception.SystemException {
400 return getService().hasDLFolderDLFileEntryTypes(folderId);
401 }
402
403
406 public static void setDLFolderDLFileEntryTypes(long folderId,
407 long[] fileEntryTypeIds)
408 throws com.liferay.portal.kernel.exception.SystemException {
409 getService().setDLFolderDLFileEntryTypes(folderId, fileEntryTypeIds);
410 }
411
412
415 public static void addDDMStructureDLFileEntryType(long structureId,
416 long fileEntryTypeId)
417 throws com.liferay.portal.kernel.exception.SystemException {
418 getService().addDDMStructureDLFileEntryType(structureId, fileEntryTypeId);
419 }
420
421
424 public static void addDDMStructureDLFileEntryType(long structureId,
425 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
426 throws com.liferay.portal.kernel.exception.SystemException {
427 getService().addDDMStructureDLFileEntryType(structureId, dlFileEntryType);
428 }
429
430
433 public static void addDDMStructureDLFileEntryTypes(long structureId,
434 long[] fileEntryTypeIds)
435 throws com.liferay.portal.kernel.exception.SystemException {
436 getService()
437 .addDDMStructureDLFileEntryTypes(structureId, fileEntryTypeIds);
438 }
439
440
443 public static void addDDMStructureDLFileEntryTypes(long structureId,
444 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
445 throws com.liferay.portal.kernel.exception.SystemException {
446 getService()
447 .addDDMStructureDLFileEntryTypes(structureId, DLFileEntryTypes);
448 }
449
450
453 public static void clearDDMStructureDLFileEntryTypes(long structureId)
454 throws com.liferay.portal.kernel.exception.SystemException {
455 getService().clearDDMStructureDLFileEntryTypes(structureId);
456 }
457
458
461 public static void deleteDDMStructureDLFileEntryType(long structureId,
462 long fileEntryTypeId)
463 throws com.liferay.portal.kernel.exception.SystemException {
464 getService()
465 .deleteDDMStructureDLFileEntryType(structureId, fileEntryTypeId);
466 }
467
468
471 public static void deleteDDMStructureDLFileEntryType(long structureId,
472 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
473 throws com.liferay.portal.kernel.exception.SystemException {
474 getService()
475 .deleteDDMStructureDLFileEntryType(structureId, dlFileEntryType);
476 }
477
478
481 public static void deleteDDMStructureDLFileEntryTypes(long structureId,
482 long[] fileEntryTypeIds)
483 throws com.liferay.portal.kernel.exception.SystemException {
484 getService()
485 .deleteDDMStructureDLFileEntryTypes(structureId, fileEntryTypeIds);
486 }
487
488
491 public static void deleteDDMStructureDLFileEntryTypes(long structureId,
492 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
493 throws com.liferay.portal.kernel.exception.SystemException {
494 getService()
495 .deleteDDMStructureDLFileEntryTypes(structureId, DLFileEntryTypes);
496 }
497
498
501 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
502 long structureId)
503 throws com.liferay.portal.kernel.exception.SystemException {
504 return getService().getDDMStructureDLFileEntryTypes(structureId);
505 }
506
507
510 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
511 long structureId, int start, int end)
512 throws com.liferay.portal.kernel.exception.SystemException {
513 return getService()
514 .getDDMStructureDLFileEntryTypes(structureId, start, end);
515 }
516
517
520 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
521 long structureId, int start, int end,
522 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
523 throws com.liferay.portal.kernel.exception.SystemException {
524 return getService()
525 .getDDMStructureDLFileEntryTypes(structureId, start, end,
526 orderByComparator);
527 }
528
529
532 public static int getDDMStructureDLFileEntryTypesCount(long structureId)
533 throws com.liferay.portal.kernel.exception.SystemException {
534 return getService().getDDMStructureDLFileEntryTypesCount(structureId);
535 }
536
537
540 public static boolean hasDDMStructureDLFileEntryType(long structureId,
541 long fileEntryTypeId)
542 throws com.liferay.portal.kernel.exception.SystemException {
543 return getService()
544 .hasDDMStructureDLFileEntryType(structureId, fileEntryTypeId);
545 }
546
547
550 public static boolean hasDDMStructureDLFileEntryTypes(long structureId)
551 throws com.liferay.portal.kernel.exception.SystemException {
552 return getService().hasDDMStructureDLFileEntryTypes(structureId);
553 }
554
555
558 public static void setDDMStructureDLFileEntryTypes(long structureId,
559 long[] fileEntryTypeIds)
560 throws com.liferay.portal.kernel.exception.SystemException {
561 getService()
562 .setDDMStructureDLFileEntryTypes(structureId, fileEntryTypeIds);
563 }
564
565
570 public static java.lang.String getBeanIdentifier() {
571 return getService().getBeanIdentifier();
572 }
573
574
579 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
580 getService().setBeanIdentifier(beanIdentifier);
581 }
582
583 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
584 long userId, long groupId, java.lang.String name,
585 java.lang.String description, long[] ddmStructureIds,
586 com.liferay.portal.service.ServiceContext serviceContext)
587 throws com.liferay.portal.kernel.exception.PortalException,
588 com.liferay.portal.kernel.exception.SystemException {
589 return getService()
590 .addFileEntryType(userId, groupId, name, description,
591 ddmStructureIds, serviceContext);
592 }
593
594 public static void cascadeFileEntryTypes(long userId,
595 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
596 throws com.liferay.portal.kernel.exception.PortalException,
597 com.liferay.portal.kernel.exception.SystemException {
598 getService().cascadeFileEntryTypes(userId, dlFolder);
599 }
600
601 public static void deleteFileEntryType(
602 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
603 throws com.liferay.portal.kernel.exception.PortalException,
604 com.liferay.portal.kernel.exception.SystemException {
605 getService().deleteFileEntryType(dlFileEntryType);
606 }
607
608 public static void deleteFileEntryType(long fileEntryTypeId)
609 throws com.liferay.portal.kernel.exception.PortalException,
610 com.liferay.portal.kernel.exception.SystemException {
611 getService().deleteFileEntryType(fileEntryTypeId);
612 }
613
614 public static void deleteFileEntryTypes(long groupId)
615 throws com.liferay.portal.kernel.exception.PortalException,
616 com.liferay.portal.kernel.exception.SystemException {
617 getService().deleteFileEntryTypes(groupId);
618 }
619
620 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchFileEntryType(
621 long fileEntryTypeId)
622 throws com.liferay.portal.kernel.exception.SystemException {
623 return getService().fetchFileEntryType(fileEntryTypeId);
624 }
625
626 public static long getDefaultFileEntryTypeId(long folderId)
627 throws com.liferay.portal.kernel.exception.PortalException,
628 com.liferay.portal.kernel.exception.SystemException {
629 return getService().getDefaultFileEntryTypeId(folderId);
630 }
631
632 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
633 long fileEntryTypeId)
634 throws com.liferay.portal.kernel.exception.PortalException,
635 com.liferay.portal.kernel.exception.SystemException {
636 return getService().getFileEntryType(fileEntryTypeId);
637 }
638
639 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
640 long groupId, java.lang.String name)
641 throws com.liferay.portal.kernel.exception.PortalException,
642 com.liferay.portal.kernel.exception.SystemException {
643 return getService().getFileEntryType(groupId, name);
644 }
645
646 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
647 long[] groupIds)
648 throws com.liferay.portal.kernel.exception.SystemException {
649 return getService().getFileEntryTypes(groupIds);
650 }
651
652 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFolderFileEntryTypes(
653 long[] groupIds, long folderId, boolean inherited)
654 throws com.liferay.portal.kernel.exception.PortalException,
655 com.liferay.portal.kernel.exception.SystemException {
656 return getService()
657 .getFolderFileEntryTypes(groupIds, folderId, inherited);
658 }
659
660 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> search(
661 long companyId, long[] groupIds, java.lang.String keywords,
662 boolean includeBasicFileEntryType, int start, int end,
663 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
664 throws com.liferay.portal.kernel.exception.SystemException {
665 return getService()
666 .search(companyId, groupIds, keywords,
667 includeBasicFileEntryType, start, end, orderByComparator);
668 }
669
670 public static int searchCount(long companyId, long[] groupIds,
671 java.lang.String keywords, boolean includeBasicFileEntryType)
672 throws com.liferay.portal.kernel.exception.SystemException {
673 return getService()
674 .searchCount(companyId, groupIds, keywords,
675 includeBasicFileEntryType);
676 }
677
678 public static void unsetFolderFileEntryTypes(long folderId)
679 throws com.liferay.portal.kernel.exception.SystemException {
680 getService().unsetFolderFileEntryTypes(folderId);
681 }
682
683 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntryFileEntryType(
684 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
685 com.liferay.portal.service.ServiceContext serviceContext)
686 throws com.liferay.portal.kernel.exception.PortalException,
687 com.liferay.portal.kernel.exception.SystemException {
688 return getService()
689 .updateFileEntryFileEntryType(dlFileEntry, serviceContext);
690 }
691
692 public static void updateFileEntryType(long userId, long fileEntryTypeId,
693 java.lang.String name, java.lang.String description,
694 long[] ddmStructureIds,
695 com.liferay.portal.service.ServiceContext serviceContext)
696 throws com.liferay.portal.kernel.exception.PortalException,
697 com.liferay.portal.kernel.exception.SystemException {
698 getService()
699 .updateFileEntryType(userId, fileEntryTypeId, name, description,
700 ddmStructureIds, serviceContext);
701 }
702
703 public static void updateFolderFileEntryTypes(
704 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
705 java.util.List<java.lang.Long> fileEntryTypeIds,
706 long defaultFileEntryTypeId,
707 com.liferay.portal.service.ServiceContext serviceContext)
708 throws com.liferay.portal.kernel.exception.PortalException,
709 com.liferay.portal.kernel.exception.SystemException {
710 getService()
711 .updateFolderFileEntryTypes(dlFolder, fileEntryTypeIds,
712 defaultFileEntryTypeId, serviceContext);
713 }
714
715 public static DLFileEntryTypeLocalService getService() {
716 if (_service == null) {
717 _service = (DLFileEntryTypeLocalService)PortalBeanLocatorUtil.locate(DLFileEntryTypeLocalService.class.getName());
718
719 ReferenceRegistry.registerReference(DLFileEntryTypeLocalServiceUtil.class,
720 "_service");
721 }
722
723 return _service;
724 }
725
726
729 public void setService(DLFileEntryTypeLocalService service) {
730 }
731
732 private static DLFileEntryTypeLocalService _service;
733 }