001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
034 public class AssetCategoryLocalServiceUtil {
035
040
041
048 public static com.liferay.portlet.asset.model.AssetCategory addAssetCategory(
049 com.liferay.portlet.asset.model.AssetCategory assetCategory)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addAssetCategory(assetCategory);
052 }
053
054
060 public static com.liferay.portlet.asset.model.AssetCategory createAssetCategory(
061 long categoryId) {
062 return getService().createAssetCategory(categoryId);
063 }
064
065
073 public static com.liferay.portlet.asset.model.AssetCategory deleteAssetCategory(
074 long categoryId)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 return getService().deleteAssetCategory(categoryId);
078 }
079
080
087 public static com.liferay.portlet.asset.model.AssetCategory deleteAssetCategory(
088 com.liferay.portlet.asset.model.AssetCategory assetCategory)
089 throws com.liferay.portal.kernel.exception.SystemException {
090 return getService().deleteAssetCategory(assetCategory);
091 }
092
093 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
094 return getService().dynamicQuery();
095 }
096
097
104 @SuppressWarnings("rawtypes")
105 public static java.util.List dynamicQuery(
106 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().dynamicQuery(dynamicQuery);
109 }
110
111
124 @SuppressWarnings("rawtypes")
125 public static java.util.List dynamicQuery(
126 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
127 int end) throws com.liferay.portal.kernel.exception.SystemException {
128 return getService().dynamicQuery(dynamicQuery, start, end);
129 }
130
131
145 @SuppressWarnings("rawtypes")
146 public static java.util.List dynamicQuery(
147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148 int end,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.kernel.exception.SystemException {
151 return getService()
152 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
153 }
154
155
162 public static long dynamicQueryCount(
163 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return getService().dynamicQueryCount(dynamicQuery);
166 }
167
168
176 public static long dynamicQueryCount(
177 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
178 com.liferay.portal.kernel.dao.orm.Projection projection)
179 throws com.liferay.portal.kernel.exception.SystemException {
180 return getService().dynamicQueryCount(dynamicQuery, projection);
181 }
182
183 public static com.liferay.portlet.asset.model.AssetCategory fetchAssetCategory(
184 long categoryId)
185 throws com.liferay.portal.kernel.exception.SystemException {
186 return getService().fetchAssetCategory(categoryId);
187 }
188
189
197 public static com.liferay.portlet.asset.model.AssetCategory fetchAssetCategoryByUuidAndCompanyId(
198 java.lang.String uuid, long companyId)
199 throws com.liferay.portal.kernel.exception.SystemException {
200 return getService().fetchAssetCategoryByUuidAndCompanyId(uuid, companyId);
201 }
202
203
211 public static com.liferay.portlet.asset.model.AssetCategory fetchAssetCategoryByUuidAndGroupId(
212 java.lang.String uuid, long groupId)
213 throws com.liferay.portal.kernel.exception.SystemException {
214 return getService().fetchAssetCategoryByUuidAndGroupId(uuid, groupId);
215 }
216
217
225 public static com.liferay.portlet.asset.model.AssetCategory getAssetCategory(
226 long categoryId)
227 throws com.liferay.portal.kernel.exception.PortalException,
228 com.liferay.portal.kernel.exception.SystemException {
229 return getService().getAssetCategory(categoryId);
230 }
231
232 public static com.liferay.portal.model.PersistedModel getPersistedModel(
233 java.io.Serializable primaryKeyObj)
234 throws com.liferay.portal.kernel.exception.PortalException,
235 com.liferay.portal.kernel.exception.SystemException {
236 return getService().getPersistedModel(primaryKeyObj);
237 }
238
239
248 public static com.liferay.portlet.asset.model.AssetCategory getAssetCategoryByUuidAndCompanyId(
249 java.lang.String uuid, long companyId)
250 throws com.liferay.portal.kernel.exception.PortalException,
251 com.liferay.portal.kernel.exception.SystemException {
252 return getService().getAssetCategoryByUuidAndCompanyId(uuid, companyId);
253 }
254
255
264 public static com.liferay.portlet.asset.model.AssetCategory getAssetCategoryByUuidAndGroupId(
265 java.lang.String uuid, long groupId)
266 throws com.liferay.portal.kernel.exception.PortalException,
267 com.liferay.portal.kernel.exception.SystemException {
268 return getService().getAssetCategoryByUuidAndGroupId(uuid, groupId);
269 }
270
271
283 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
284 int start, int end)
285 throws com.liferay.portal.kernel.exception.SystemException {
286 return getService().getAssetCategories(start, end);
287 }
288
289
295 public static int getAssetCategoriesCount()
296 throws com.liferay.portal.kernel.exception.SystemException {
297 return getService().getAssetCategoriesCount();
298 }
299
300
307 public static com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
308 com.liferay.portlet.asset.model.AssetCategory assetCategory)
309 throws com.liferay.portal.kernel.exception.SystemException {
310 return getService().updateAssetCategory(assetCategory);
311 }
312
313
316 public static void addAssetEntryAssetCategory(long entryId, long categoryId)
317 throws com.liferay.portal.kernel.exception.SystemException {
318 getService().addAssetEntryAssetCategory(entryId, categoryId);
319 }
320
321
324 public static void addAssetEntryAssetCategory(long entryId,
325 com.liferay.portlet.asset.model.AssetCategory assetCategory)
326 throws com.liferay.portal.kernel.exception.SystemException {
327 getService().addAssetEntryAssetCategory(entryId, assetCategory);
328 }
329
330
333 public static void addAssetEntryAssetCategories(long entryId,
334 long[] categoryIds)
335 throws com.liferay.portal.kernel.exception.SystemException {
336 getService().addAssetEntryAssetCategories(entryId, categoryIds);
337 }
338
339
342 public static void addAssetEntryAssetCategories(long entryId,
343 java.util.List<com.liferay.portlet.asset.model.AssetCategory> AssetCategories)
344 throws com.liferay.portal.kernel.exception.SystemException {
345 getService().addAssetEntryAssetCategories(entryId, AssetCategories);
346 }
347
348
351 public static void clearAssetEntryAssetCategories(long entryId)
352 throws com.liferay.portal.kernel.exception.SystemException {
353 getService().clearAssetEntryAssetCategories(entryId);
354 }
355
356
359 public static void deleteAssetEntryAssetCategory(long entryId,
360 long categoryId)
361 throws com.liferay.portal.kernel.exception.SystemException {
362 getService().deleteAssetEntryAssetCategory(entryId, categoryId);
363 }
364
365
368 public static void deleteAssetEntryAssetCategory(long entryId,
369 com.liferay.portlet.asset.model.AssetCategory assetCategory)
370 throws com.liferay.portal.kernel.exception.SystemException {
371 getService().deleteAssetEntryAssetCategory(entryId, assetCategory);
372 }
373
374
377 public static void deleteAssetEntryAssetCategories(long entryId,
378 long[] categoryIds)
379 throws com.liferay.portal.kernel.exception.SystemException {
380 getService().deleteAssetEntryAssetCategories(entryId, categoryIds);
381 }
382
383
386 public static void deleteAssetEntryAssetCategories(long entryId,
387 java.util.List<com.liferay.portlet.asset.model.AssetCategory> AssetCategories)
388 throws com.liferay.portal.kernel.exception.SystemException {
389 getService().deleteAssetEntryAssetCategories(entryId, AssetCategories);
390 }
391
392
395 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
396 long entryId)
397 throws com.liferay.portal.kernel.exception.SystemException {
398 return getService().getAssetEntryAssetCategories(entryId);
399 }
400
401
404 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
405 long entryId, int start, int end)
406 throws com.liferay.portal.kernel.exception.SystemException {
407 return getService().getAssetEntryAssetCategories(entryId, start, end);
408 }
409
410
413 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
414 long entryId, int start, int end,
415 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
416 throws com.liferay.portal.kernel.exception.SystemException {
417 return getService()
418 .getAssetEntryAssetCategories(entryId, start, end,
419 orderByComparator);
420 }
421
422
425 public static int getAssetEntryAssetCategoriesCount(long entryId)
426 throws com.liferay.portal.kernel.exception.SystemException {
427 return getService().getAssetEntryAssetCategoriesCount(entryId);
428 }
429
430
433 public static boolean hasAssetEntryAssetCategory(long entryId,
434 long categoryId)
435 throws com.liferay.portal.kernel.exception.SystemException {
436 return getService().hasAssetEntryAssetCategory(entryId, categoryId);
437 }
438
439
442 public static boolean hasAssetEntryAssetCategories(long entryId)
443 throws com.liferay.portal.kernel.exception.SystemException {
444 return getService().hasAssetEntryAssetCategories(entryId);
445 }
446
447
450 public static void setAssetEntryAssetCategories(long entryId,
451 long[] categoryIds)
452 throws com.liferay.portal.kernel.exception.SystemException {
453 getService().setAssetEntryAssetCategories(entryId, categoryIds);
454 }
455
456
461 public static java.lang.String getBeanIdentifier() {
462 return getService().getBeanIdentifier();
463 }
464
465
470 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
471 getService().setBeanIdentifier(beanIdentifier);
472 }
473
474 public static com.liferay.portlet.asset.model.AssetCategory addCategory(
475 long userId, long parentCategoryId,
476 java.util.Map<java.util.Locale, java.lang.String> titleMap,
477 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
478 long vocabularyId, java.lang.String[] categoryProperties,
479 com.liferay.portal.service.ServiceContext serviceContext)
480 throws com.liferay.portal.kernel.exception.PortalException,
481 com.liferay.portal.kernel.exception.SystemException {
482 return getService()
483 .addCategory(userId, parentCategoryId, titleMap,
484 descriptionMap, vocabularyId, categoryProperties, serviceContext);
485 }
486
487 public static com.liferay.portlet.asset.model.AssetCategory addCategory(
488 long userId, java.lang.String title, long vocabularyId,
489 com.liferay.portal.service.ServiceContext serviceContext)
490 throws com.liferay.portal.kernel.exception.PortalException,
491 com.liferay.portal.kernel.exception.SystemException {
492 return getService()
493 .addCategory(userId, title, vocabularyId, serviceContext);
494 }
495
496 public static void addCategoryResources(
497 com.liferay.portlet.asset.model.AssetCategory category,
498 boolean addGroupPermissions, boolean addGuestPermissions)
499 throws com.liferay.portal.kernel.exception.PortalException,
500 com.liferay.portal.kernel.exception.SystemException {
501 getService()
502 .addCategoryResources(category, addGroupPermissions,
503 addGuestPermissions);
504 }
505
506 public static void addCategoryResources(
507 com.liferay.portlet.asset.model.AssetCategory category,
508 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
509 throws com.liferay.portal.kernel.exception.PortalException,
510 com.liferay.portal.kernel.exception.SystemException {
511 getService()
512 .addCategoryResources(category, groupPermissions, guestPermissions);
513 }
514
515 public static void deleteCategory(
516 com.liferay.portlet.asset.model.AssetCategory category)
517 throws com.liferay.portal.kernel.exception.PortalException,
518 com.liferay.portal.kernel.exception.SystemException {
519 getService().deleteCategory(category);
520 }
521
522 public static void deleteCategory(long categoryId)
523 throws com.liferay.portal.kernel.exception.PortalException,
524 com.liferay.portal.kernel.exception.SystemException {
525 getService().deleteCategory(categoryId);
526 }
527
528 public static void deleteVocabularyCategories(long vocabularyId)
529 throws com.liferay.portal.kernel.exception.PortalException,
530 com.liferay.portal.kernel.exception.SystemException {
531 getService().deleteVocabularyCategories(vocabularyId);
532 }
533
534 public static com.liferay.portlet.asset.model.AssetCategory fetchCategory(
535 long categoryId)
536 throws com.liferay.portal.kernel.exception.SystemException {
537 return getService().fetchCategory(categoryId);
538 }
539
540 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories()
541 throws com.liferay.portal.kernel.exception.SystemException {
542 return getService().getCategories();
543 }
544
545 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
546 long classNameId, long classPK)
547 throws com.liferay.portal.kernel.exception.SystemException {
548 return getService().getCategories(classNameId, classPK);
549 }
550
551 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
552 java.lang.String className, long classPK)
553 throws com.liferay.portal.kernel.exception.SystemException {
554 return getService().getCategories(className, classPK);
555 }
556
557 public static com.liferay.portlet.asset.model.AssetCategory getCategory(
558 long categoryId)
559 throws com.liferay.portal.kernel.exception.PortalException,
560 com.liferay.portal.kernel.exception.SystemException {
561 return getService().getCategory(categoryId);
562 }
563
564 public static com.liferay.portlet.asset.model.AssetCategory getCategory(
565 java.lang.String uuid, long groupId)
566 throws com.liferay.portal.kernel.exception.PortalException,
567 com.liferay.portal.kernel.exception.SystemException {
568 return getService().getCategory(uuid, groupId);
569 }
570
571 public static long[] getCategoryIds(java.lang.String className, long classPK)
572 throws com.liferay.portal.kernel.exception.SystemException {
573 return getService().getCategoryIds(className, classPK);
574 }
575
576 public static java.lang.String[] getCategoryNames()
577 throws com.liferay.portal.kernel.exception.SystemException {
578 return getService().getCategoryNames();
579 }
580
581 public static java.lang.String[] getCategoryNames(long classNameId,
582 long classPK)
583 throws com.liferay.portal.kernel.exception.SystemException {
584 return getService().getCategoryNames(classNameId, classPK);
585 }
586
587 public static java.lang.String[] getCategoryNames(
588 java.lang.String className, long classPK)
589 throws com.liferay.portal.kernel.exception.SystemException {
590 return getService().getCategoryNames(className, classPK);
591 }
592
593 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
594 long parentCategoryId)
595 throws com.liferay.portal.kernel.exception.SystemException {
596 return getService().getChildCategories(parentCategoryId);
597 }
598
599 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
600 long parentCategoryId, int start, int end,
601 com.liferay.portal.kernel.util.OrderByComparator obc)
602 throws com.liferay.portal.kernel.exception.SystemException {
603 return getService().getChildCategories(parentCategoryId, start, end, obc);
604 }
605
606 public static int getChildCategoriesCount(long parentCategoryId)
607 throws com.liferay.portal.kernel.exception.SystemException {
608 return getService().getChildCategoriesCount(parentCategoryId);
609 }
610
611 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getEntryCategories(
612 long entryId)
613 throws com.liferay.portal.kernel.exception.SystemException {
614 return getService().getEntryCategories(entryId);
615 }
616
617 public static java.util.List<java.lang.Long> getSubcategoryIds(
618 long parentCategoryId)
619 throws com.liferay.portal.kernel.exception.SystemException {
620 return getService().getSubcategoryIds(parentCategoryId);
621 }
622
623 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
624 long vocabularyId, int start, int end,
625 com.liferay.portal.kernel.util.OrderByComparator obc)
626 throws com.liferay.portal.kernel.exception.SystemException {
627 return getService()
628 .getVocabularyCategories(vocabularyId, start, end, obc);
629 }
630
631 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
632 long parentCategoryId, long vocabularyId, int start, int end,
633 com.liferay.portal.kernel.util.OrderByComparator obc)
634 throws com.liferay.portal.kernel.exception.SystemException {
635 return getService()
636 .getVocabularyCategories(parentCategoryId, vocabularyId,
637 start, end, obc);
638 }
639
640 public static int getVocabularyCategoriesCount(long vocabularyId)
641 throws com.liferay.portal.kernel.exception.SystemException {
642 return getService().getVocabularyCategoriesCount(vocabularyId);
643 }
644
645 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
646 long vocabularyId, int start, int end,
647 com.liferay.portal.kernel.util.OrderByComparator obc)
648 throws com.liferay.portal.kernel.exception.SystemException {
649 return getService()
650 .getVocabularyRootCategories(vocabularyId, start, end, obc);
651 }
652
653 public static int getVocabularyRootCategoriesCount(long vocabularyId)
654 throws com.liferay.portal.kernel.exception.SystemException {
655 return getService().getVocabularyRootCategoriesCount(vocabularyId);
656 }
657
658 public static void mergeCategories(long fromCategoryId, long toCategoryId)
659 throws com.liferay.portal.kernel.exception.PortalException,
660 com.liferay.portal.kernel.exception.SystemException {
661 getService().mergeCategories(fromCategoryId, toCategoryId);
662 }
663
664 public static com.liferay.portlet.asset.model.AssetCategory moveCategory(
665 long categoryId, long parentCategoryId, long vocabularyId,
666 com.liferay.portal.service.ServiceContext serviceContext)
667 throws com.liferay.portal.kernel.exception.PortalException,
668 com.liferay.portal.kernel.exception.SystemException {
669 return getService()
670 .moveCategory(categoryId, parentCategoryId, vocabularyId,
671 serviceContext);
672 }
673
674 public static void rebuildTree(long groupId, boolean force)
675 throws com.liferay.portal.kernel.exception.SystemException {
676 getService().rebuildTree(groupId, force);
677 }
678
679 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
680 long groupId, java.lang.String name,
681 java.lang.String[] categoryProperties, int start, int end)
682 throws com.liferay.portal.kernel.exception.SystemException {
683 return getService().search(groupId, name, categoryProperties, start, end);
684 }
685
686 public static com.liferay.portlet.asset.model.AssetCategory updateCategory(
687 long userId, long categoryId, long parentCategoryId,
688 java.util.Map<java.util.Locale, java.lang.String> titleMap,
689 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
690 long vocabularyId, java.lang.String[] categoryProperties,
691 com.liferay.portal.service.ServiceContext serviceContext)
692 throws com.liferay.portal.kernel.exception.PortalException,
693 com.liferay.portal.kernel.exception.SystemException {
694 return getService()
695 .updateCategory(userId, categoryId, parentCategoryId,
696 titleMap, descriptionMap, vocabularyId, categoryProperties,
697 serviceContext);
698 }
699
700 public static AssetCategoryLocalService getService() {
701 if (_service == null) {
702 _service = (AssetCategoryLocalService)PortalBeanLocatorUtil.locate(AssetCategoryLocalService.class.getName());
703
704 ReferenceRegistry.registerReference(AssetCategoryLocalServiceUtil.class,
705 "_service");
706 }
707
708 return _service;
709 }
710
711
714 public void setService(AssetCategoryLocalService service) {
715 }
716
717 private static AssetCategoryLocalService _service;
718 }