001
014
015 package com.liferay.portlet.asset.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class AssetCategoryLocalServiceUtil {
038
043
044
051 public static com.liferay.portlet.asset.model.AssetCategory addAssetCategory(
052 com.liferay.portlet.asset.model.AssetCategory assetCategory)
053 throws com.liferay.portal.kernel.exception.SystemException {
054 return getService().addAssetCategory(assetCategory);
055 }
056
057
063 public static com.liferay.portlet.asset.model.AssetCategory createAssetCategory(
064 long categoryId) {
065 return getService().createAssetCategory(categoryId);
066 }
067
068
076 public static com.liferay.portlet.asset.model.AssetCategory deleteAssetCategory(
077 long categoryId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 return getService().deleteAssetCategory(categoryId);
081 }
082
083
090 public static com.liferay.portlet.asset.model.AssetCategory deleteAssetCategory(
091 com.liferay.portlet.asset.model.AssetCategory assetCategory)
092 throws com.liferay.portal.kernel.exception.SystemException {
093 return getService().deleteAssetCategory(assetCategory);
094 }
095
096 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
097 return getService().dynamicQuery();
098 }
099
100
107 @SuppressWarnings("rawtypes")
108 public static java.util.List dynamicQuery(
109 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().dynamicQuery(dynamicQuery);
112 }
113
114
127 @SuppressWarnings("rawtypes")
128 public static java.util.List dynamicQuery(
129 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130 int end) throws com.liferay.portal.kernel.exception.SystemException {
131 return getService().dynamicQuery(dynamicQuery, start, end);
132 }
133
134
148 @SuppressWarnings("rawtypes")
149 public static java.util.List dynamicQuery(
150 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151 int end,
152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService()
155 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
156 }
157
158
165 public static long dynamicQueryCount(
166 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getService().dynamicQueryCount(dynamicQuery);
169 }
170
171
179 public static long dynamicQueryCount(
180 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
181 com.liferay.portal.kernel.dao.orm.Projection projection)
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return getService().dynamicQueryCount(dynamicQuery, projection);
184 }
185
186 public static com.liferay.portlet.asset.model.AssetCategory fetchAssetCategory(
187 long categoryId)
188 throws com.liferay.portal.kernel.exception.SystemException {
189 return getService().fetchAssetCategory(categoryId);
190 }
191
192
200 public static com.liferay.portlet.asset.model.AssetCategory fetchAssetCategoryByUuidAndCompanyId(
201 java.lang.String uuid, long companyId)
202 throws com.liferay.portal.kernel.exception.SystemException {
203 return getService().fetchAssetCategoryByUuidAndCompanyId(uuid, companyId);
204 }
205
206
214 public static com.liferay.portlet.asset.model.AssetCategory fetchAssetCategoryByUuidAndGroupId(
215 java.lang.String uuid, long groupId)
216 throws com.liferay.portal.kernel.exception.SystemException {
217 return getService().fetchAssetCategoryByUuidAndGroupId(uuid, groupId);
218 }
219
220
228 public static com.liferay.portlet.asset.model.AssetCategory getAssetCategory(
229 long categoryId)
230 throws com.liferay.portal.kernel.exception.PortalException,
231 com.liferay.portal.kernel.exception.SystemException {
232 return getService().getAssetCategory(categoryId);
233 }
234
235 public static com.liferay.portal.model.PersistedModel getPersistedModel(
236 java.io.Serializable primaryKeyObj)
237 throws com.liferay.portal.kernel.exception.PortalException,
238 com.liferay.portal.kernel.exception.SystemException {
239 return getService().getPersistedModel(primaryKeyObj);
240 }
241
242
251 public static com.liferay.portlet.asset.model.AssetCategory getAssetCategoryByUuidAndCompanyId(
252 java.lang.String uuid, long companyId)
253 throws com.liferay.portal.kernel.exception.PortalException,
254 com.liferay.portal.kernel.exception.SystemException {
255 return getService().getAssetCategoryByUuidAndCompanyId(uuid, companyId);
256 }
257
258
267 public static com.liferay.portlet.asset.model.AssetCategory getAssetCategoryByUuidAndGroupId(
268 java.lang.String uuid, long groupId)
269 throws com.liferay.portal.kernel.exception.PortalException,
270 com.liferay.portal.kernel.exception.SystemException {
271 return getService().getAssetCategoryByUuidAndGroupId(uuid, groupId);
272 }
273
274
286 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
287 int start, int end)
288 throws com.liferay.portal.kernel.exception.SystemException {
289 return getService().getAssetCategories(start, end);
290 }
291
292
298 public static int getAssetCategoriesCount()
299 throws com.liferay.portal.kernel.exception.SystemException {
300 return getService().getAssetCategoriesCount();
301 }
302
303
310 public static com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
311 com.liferay.portlet.asset.model.AssetCategory assetCategory)
312 throws com.liferay.portal.kernel.exception.SystemException {
313 return getService().updateAssetCategory(assetCategory);
314 }
315
316
319 public static void addAssetEntryAssetCategory(long entryId, long categoryId)
320 throws com.liferay.portal.kernel.exception.SystemException {
321 getService().addAssetEntryAssetCategory(entryId, categoryId);
322 }
323
324
327 public static void addAssetEntryAssetCategory(long entryId,
328 com.liferay.portlet.asset.model.AssetCategory assetCategory)
329 throws com.liferay.portal.kernel.exception.SystemException {
330 getService().addAssetEntryAssetCategory(entryId, assetCategory);
331 }
332
333
336 public static void addAssetEntryAssetCategories(long entryId,
337 long[] categoryIds)
338 throws com.liferay.portal.kernel.exception.SystemException {
339 getService().addAssetEntryAssetCategories(entryId, categoryIds);
340 }
341
342
345 public static void addAssetEntryAssetCategories(long entryId,
346 java.util.List<com.liferay.portlet.asset.model.AssetCategory> AssetCategories)
347 throws com.liferay.portal.kernel.exception.SystemException {
348 getService().addAssetEntryAssetCategories(entryId, AssetCategories);
349 }
350
351
354 public static void clearAssetEntryAssetCategories(long entryId)
355 throws com.liferay.portal.kernel.exception.SystemException {
356 getService().clearAssetEntryAssetCategories(entryId);
357 }
358
359
362 public static void deleteAssetEntryAssetCategory(long entryId,
363 long categoryId)
364 throws com.liferay.portal.kernel.exception.SystemException {
365 getService().deleteAssetEntryAssetCategory(entryId, categoryId);
366 }
367
368
371 public static void deleteAssetEntryAssetCategory(long entryId,
372 com.liferay.portlet.asset.model.AssetCategory assetCategory)
373 throws com.liferay.portal.kernel.exception.SystemException {
374 getService().deleteAssetEntryAssetCategory(entryId, assetCategory);
375 }
376
377
380 public static void deleteAssetEntryAssetCategories(long entryId,
381 long[] categoryIds)
382 throws com.liferay.portal.kernel.exception.SystemException {
383 getService().deleteAssetEntryAssetCategories(entryId, categoryIds);
384 }
385
386
389 public static void deleteAssetEntryAssetCategories(long entryId,
390 java.util.List<com.liferay.portlet.asset.model.AssetCategory> AssetCategories)
391 throws com.liferay.portal.kernel.exception.SystemException {
392 getService().deleteAssetEntryAssetCategories(entryId, AssetCategories);
393 }
394
395
398 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
399 long entryId)
400 throws com.liferay.portal.kernel.exception.SystemException {
401 return getService().getAssetEntryAssetCategories(entryId);
402 }
403
404
407 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
408 long entryId, int start, int end)
409 throws com.liferay.portal.kernel.exception.SystemException {
410 return getService().getAssetEntryAssetCategories(entryId, start, end);
411 }
412
413
416 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
417 long entryId, int start, int end,
418 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
419 throws com.liferay.portal.kernel.exception.SystemException {
420 return getService()
421 .getAssetEntryAssetCategories(entryId, start, end,
422 orderByComparator);
423 }
424
425
428 public static int getAssetEntryAssetCategoriesCount(long entryId)
429 throws com.liferay.portal.kernel.exception.SystemException {
430 return getService().getAssetEntryAssetCategoriesCount(entryId);
431 }
432
433
436 public static boolean hasAssetEntryAssetCategory(long entryId,
437 long categoryId)
438 throws com.liferay.portal.kernel.exception.SystemException {
439 return getService().hasAssetEntryAssetCategory(entryId, categoryId);
440 }
441
442
445 public static boolean hasAssetEntryAssetCategories(long entryId)
446 throws com.liferay.portal.kernel.exception.SystemException {
447 return getService().hasAssetEntryAssetCategories(entryId);
448 }
449
450
453 public static void setAssetEntryAssetCategories(long entryId,
454 long[] categoryIds)
455 throws com.liferay.portal.kernel.exception.SystemException {
456 getService().setAssetEntryAssetCategories(entryId, categoryIds);
457 }
458
459
464 public static java.lang.String getBeanIdentifier() {
465 return getService().getBeanIdentifier();
466 }
467
468
473 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
474 getService().setBeanIdentifier(beanIdentifier);
475 }
476
477 public static com.liferay.portlet.asset.model.AssetCategory addCategory(
478 long userId, long parentCategoryId,
479 java.util.Map<java.util.Locale, java.lang.String> titleMap,
480 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
481 long vocabularyId, java.lang.String[] categoryProperties,
482 com.liferay.portal.service.ServiceContext serviceContext)
483 throws com.liferay.portal.kernel.exception.PortalException,
484 com.liferay.portal.kernel.exception.SystemException {
485 return getService()
486 .addCategory(userId, parentCategoryId, titleMap,
487 descriptionMap, vocabularyId, categoryProperties, serviceContext);
488 }
489
490 public static com.liferay.portlet.asset.model.AssetCategory addCategory(
491 long userId, java.lang.String title, long vocabularyId,
492 com.liferay.portal.service.ServiceContext serviceContext)
493 throws com.liferay.portal.kernel.exception.PortalException,
494 com.liferay.portal.kernel.exception.SystemException {
495 return getService()
496 .addCategory(userId, title, vocabularyId, serviceContext);
497 }
498
499 public static void addCategoryResources(
500 com.liferay.portlet.asset.model.AssetCategory category,
501 boolean addGroupPermissions, boolean addGuestPermissions)
502 throws com.liferay.portal.kernel.exception.PortalException,
503 com.liferay.portal.kernel.exception.SystemException {
504 getService()
505 .addCategoryResources(category, addGroupPermissions,
506 addGuestPermissions);
507 }
508
509 public static void addCategoryResources(
510 com.liferay.portlet.asset.model.AssetCategory category,
511 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
512 throws com.liferay.portal.kernel.exception.PortalException,
513 com.liferay.portal.kernel.exception.SystemException {
514 getService()
515 .addCategoryResources(category, groupPermissions, guestPermissions);
516 }
517
518 public static void deleteCategory(
519 com.liferay.portlet.asset.model.AssetCategory category)
520 throws com.liferay.portal.kernel.exception.PortalException,
521 com.liferay.portal.kernel.exception.SystemException {
522 getService().deleteCategory(category);
523 }
524
525 public static void deleteCategory(long categoryId)
526 throws com.liferay.portal.kernel.exception.PortalException,
527 com.liferay.portal.kernel.exception.SystemException {
528 getService().deleteCategory(categoryId);
529 }
530
531 public static void deleteVocabularyCategories(long vocabularyId)
532 throws com.liferay.portal.kernel.exception.PortalException,
533 com.liferay.portal.kernel.exception.SystemException {
534 getService().deleteVocabularyCategories(vocabularyId);
535 }
536
537 public static com.liferay.portlet.asset.model.AssetCategory fetchCategory(
538 long categoryId)
539 throws com.liferay.portal.kernel.exception.SystemException {
540 return getService().fetchCategory(categoryId);
541 }
542
543 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories()
544 throws com.liferay.portal.kernel.exception.SystemException {
545 return getService().getCategories();
546 }
547
548 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
549 long classNameId, long classPK)
550 throws com.liferay.portal.kernel.exception.SystemException {
551 return getService().getCategories(classNameId, classPK);
552 }
553
554 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
555 java.lang.String className, long classPK)
556 throws com.liferay.portal.kernel.exception.SystemException {
557 return getService().getCategories(className, classPK);
558 }
559
560 public static com.liferay.portlet.asset.model.AssetCategory getCategory(
561 long categoryId)
562 throws com.liferay.portal.kernel.exception.PortalException,
563 com.liferay.portal.kernel.exception.SystemException {
564 return getService().getCategory(categoryId);
565 }
566
567 public static com.liferay.portlet.asset.model.AssetCategory getCategory(
568 java.lang.String uuid, long groupId)
569 throws com.liferay.portal.kernel.exception.PortalException,
570 com.liferay.portal.kernel.exception.SystemException {
571 return getService().getCategory(uuid, groupId);
572 }
573
574 public static long[] getCategoryIds(java.lang.String className, long classPK)
575 throws com.liferay.portal.kernel.exception.SystemException {
576 return getService().getCategoryIds(className, classPK);
577 }
578
579 public static java.lang.String[] getCategoryNames()
580 throws com.liferay.portal.kernel.exception.SystemException {
581 return getService().getCategoryNames();
582 }
583
584 public static java.lang.String[] getCategoryNames(long classNameId,
585 long classPK)
586 throws com.liferay.portal.kernel.exception.SystemException {
587 return getService().getCategoryNames(classNameId, classPK);
588 }
589
590 public static java.lang.String[] getCategoryNames(
591 java.lang.String className, long classPK)
592 throws com.liferay.portal.kernel.exception.SystemException {
593 return getService().getCategoryNames(className, classPK);
594 }
595
596 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
597 long parentCategoryId)
598 throws com.liferay.portal.kernel.exception.SystemException {
599 return getService().getChildCategories(parentCategoryId);
600 }
601
602 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
603 long parentCategoryId, int start, int end,
604 com.liferay.portal.kernel.util.OrderByComparator obc)
605 throws com.liferay.portal.kernel.exception.SystemException {
606 return getService().getChildCategories(parentCategoryId, start, end, obc);
607 }
608
609 public static int getChildCategoriesCount(long parentCategoryId)
610 throws com.liferay.portal.kernel.exception.SystemException {
611 return getService().getChildCategoriesCount(parentCategoryId);
612 }
613
614 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getEntryCategories(
615 long entryId)
616 throws com.liferay.portal.kernel.exception.SystemException {
617 return getService().getEntryCategories(entryId);
618 }
619
620 public static java.util.List<java.lang.Long> getSubcategoryIds(
621 long parentCategoryId)
622 throws com.liferay.portal.kernel.exception.SystemException {
623 return getService().getSubcategoryIds(parentCategoryId);
624 }
625
626 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
627 long vocabularyId, int start, int end,
628 com.liferay.portal.kernel.util.OrderByComparator obc)
629 throws com.liferay.portal.kernel.exception.SystemException {
630 return getService()
631 .getVocabularyCategories(vocabularyId, start, end, obc);
632 }
633
634 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
635 long parentCategoryId, long vocabularyId, int start, int end,
636 com.liferay.portal.kernel.util.OrderByComparator obc)
637 throws com.liferay.portal.kernel.exception.SystemException {
638 return getService()
639 .getVocabularyCategories(parentCategoryId, vocabularyId,
640 start, end, obc);
641 }
642
643 public static int getVocabularyCategoriesCount(long vocabularyId)
644 throws com.liferay.portal.kernel.exception.SystemException {
645 return getService().getVocabularyCategoriesCount(vocabularyId);
646 }
647
648 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
649 long vocabularyId, int start, int end,
650 com.liferay.portal.kernel.util.OrderByComparator obc)
651 throws com.liferay.portal.kernel.exception.SystemException {
652 return getService()
653 .getVocabularyRootCategories(vocabularyId, start, end, obc);
654 }
655
656 public static int getVocabularyRootCategoriesCount(long vocabularyId)
657 throws com.liferay.portal.kernel.exception.SystemException {
658 return getService().getVocabularyRootCategoriesCount(vocabularyId);
659 }
660
661 public static void mergeCategories(long fromCategoryId, long toCategoryId)
662 throws com.liferay.portal.kernel.exception.PortalException,
663 com.liferay.portal.kernel.exception.SystemException {
664 getService().mergeCategories(fromCategoryId, toCategoryId);
665 }
666
667 public static com.liferay.portlet.asset.model.AssetCategory moveCategory(
668 long categoryId, long parentCategoryId, long vocabularyId,
669 com.liferay.portal.service.ServiceContext serviceContext)
670 throws com.liferay.portal.kernel.exception.PortalException,
671 com.liferay.portal.kernel.exception.SystemException {
672 return getService()
673 .moveCategory(categoryId, parentCategoryId, vocabularyId,
674 serviceContext);
675 }
676
677 public static void rebuildTree(long groupId, boolean force)
678 throws com.liferay.portal.kernel.exception.SystemException {
679 getService().rebuildTree(groupId, force);
680 }
681
682 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
683 long groupId, java.lang.String name,
684 java.lang.String[] categoryProperties, int start, int end)
685 throws com.liferay.portal.kernel.exception.SystemException {
686 return getService().search(groupId, name, categoryProperties, start, end);
687 }
688
689 public static com.liferay.portlet.asset.model.AssetCategory updateCategory(
690 long userId, long categoryId, long parentCategoryId,
691 java.util.Map<java.util.Locale, java.lang.String> titleMap,
692 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
693 long vocabularyId, java.lang.String[] categoryProperties,
694 com.liferay.portal.service.ServiceContext serviceContext)
695 throws com.liferay.portal.kernel.exception.PortalException,
696 com.liferay.portal.kernel.exception.SystemException {
697 return getService()
698 .updateCategory(userId, categoryId, parentCategoryId,
699 titleMap, descriptionMap, vocabularyId, categoryProperties,
700 serviceContext);
701 }
702
703 public static AssetCategoryLocalService getService() {
704 if (_service == null) {
705 _service = (AssetCategoryLocalService)PortalBeanLocatorUtil.locate(AssetCategoryLocalService.class.getName());
706
707 ReferenceRegistry.registerReference(AssetCategoryLocalServiceUtil.class,
708 "_service");
709 }
710
711 return _service;
712 }
713
714
717 public void setService(AssetCategoryLocalService service) {
718 }
719
720 private static AssetCategoryLocalService _service;
721 }