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
050 public static com.liferay.portlet.asset.model.AssetCategory addAssetCategory(
051 com.liferay.portlet.asset.model.AssetCategory assetCategory) {
052 return getService().addAssetCategory(assetCategory);
053 }
054
055 public static void addAssetEntryAssetCategories(long entryId,
056 java.util.List<com.liferay.portlet.asset.model.AssetCategory> AssetCategories) {
057 getService().addAssetEntryAssetCategories(entryId, AssetCategories);
058 }
059
060 public static void addAssetEntryAssetCategories(long entryId,
061 long[] categoryIds) {
062 getService().addAssetEntryAssetCategories(entryId, categoryIds);
063 }
064
065 public static void addAssetEntryAssetCategory(long entryId,
066 com.liferay.portlet.asset.model.AssetCategory assetCategory) {
067 getService().addAssetEntryAssetCategory(entryId, assetCategory);
068 }
069
070 public static void addAssetEntryAssetCategory(long entryId, long categoryId) {
071 getService().addAssetEntryAssetCategory(entryId, categoryId);
072 }
073
074 public static com.liferay.portlet.asset.model.AssetCategory addCategory(
075 long userId, long groupId, long parentCategoryId,
076 java.util.Map<java.util.Locale, java.lang.String> titleMap,
077 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
078 long vocabularyId, java.lang.String[] categoryProperties,
079 com.liferay.portal.service.ServiceContext serviceContext)
080 throws com.liferay.portal.kernel.exception.PortalException {
081 return getService()
082 .addCategory(userId, groupId, parentCategoryId, titleMap,
083 descriptionMap, vocabularyId, categoryProperties, serviceContext);
084 }
085
086 public static com.liferay.portlet.asset.model.AssetCategory addCategory(
087 long userId, long groupId, java.lang.String title, long vocabularyId,
088 com.liferay.portal.service.ServiceContext serviceContext)
089 throws com.liferay.portal.kernel.exception.PortalException {
090 return getService()
091 .addCategory(userId, groupId, title, vocabularyId,
092 serviceContext);
093 }
094
095 public static void addCategoryResources(
096 com.liferay.portlet.asset.model.AssetCategory category,
097 boolean addGroupPermissions, boolean addGuestPermissions)
098 throws com.liferay.portal.kernel.exception.PortalException {
099 getService()
100 .addCategoryResources(category, addGroupPermissions,
101 addGuestPermissions);
102 }
103
104 public static void addCategoryResources(
105 com.liferay.portlet.asset.model.AssetCategory category,
106 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
107 throws com.liferay.portal.kernel.exception.PortalException {
108 getService()
109 .addCategoryResources(category, groupPermissions, guestPermissions);
110 }
111
112 public static void clearAssetEntryAssetCategories(long entryId) {
113 getService().clearAssetEntryAssetCategories(entryId);
114 }
115
116
122 public static com.liferay.portlet.asset.model.AssetCategory createAssetCategory(
123 long categoryId) {
124 return getService().createAssetCategory(categoryId);
125 }
126
127
133 public static com.liferay.portlet.asset.model.AssetCategory deleteAssetCategory(
134 com.liferay.portlet.asset.model.AssetCategory assetCategory) {
135 return getService().deleteAssetCategory(assetCategory);
136 }
137
138
145 public static com.liferay.portlet.asset.model.AssetCategory deleteAssetCategory(
146 long categoryId)
147 throws com.liferay.portal.kernel.exception.PortalException {
148 return getService().deleteAssetCategory(categoryId);
149 }
150
151 public static void deleteAssetEntryAssetCategories(long entryId,
152 java.util.List<com.liferay.portlet.asset.model.AssetCategory> AssetCategories) {
153 getService().deleteAssetEntryAssetCategories(entryId, AssetCategories);
154 }
155
156 public static void deleteAssetEntryAssetCategories(long entryId,
157 long[] categoryIds) {
158 getService().deleteAssetEntryAssetCategories(entryId, categoryIds);
159 }
160
161 public static void deleteAssetEntryAssetCategory(long entryId,
162 com.liferay.portlet.asset.model.AssetCategory assetCategory) {
163 getService().deleteAssetEntryAssetCategory(entryId, assetCategory);
164 }
165
166 public static void deleteAssetEntryAssetCategory(long entryId,
167 long categoryId) {
168 getService().deleteAssetEntryAssetCategory(entryId, categoryId);
169 }
170
171 public static void deleteCategories(
172 java.util.List<com.liferay.portlet.asset.model.AssetCategory> categories)
173 throws com.liferay.portal.kernel.exception.PortalException {
174 getService().deleteCategories(categories);
175 }
176
177 public static void deleteCategories(long[] categoryIds)
178 throws com.liferay.portal.kernel.exception.PortalException {
179 getService().deleteCategories(categoryIds);
180 }
181
182 public static com.liferay.portlet.asset.model.AssetCategory deleteCategory(
183 com.liferay.portlet.asset.model.AssetCategory category)
184 throws com.liferay.portal.kernel.exception.PortalException {
185 return getService().deleteCategory(category);
186 }
187
188 public static com.liferay.portlet.asset.model.AssetCategory deleteCategory(
189 com.liferay.portlet.asset.model.AssetCategory category,
190 boolean skipRebuildTree)
191 throws com.liferay.portal.kernel.exception.PortalException {
192 return getService().deleteCategory(category, skipRebuildTree);
193 }
194
195 public static com.liferay.portlet.asset.model.AssetCategory deleteCategory(
196 long categoryId)
197 throws com.liferay.portal.kernel.exception.PortalException {
198 return getService().deleteCategory(categoryId);
199 }
200
201
204 public static com.liferay.portal.model.PersistedModel deletePersistedModel(
205 com.liferay.portal.model.PersistedModel persistedModel)
206 throws com.liferay.portal.kernel.exception.PortalException {
207 return getService().deletePersistedModel(persistedModel);
208 }
209
210 public static void deleteVocabularyCategories(long vocabularyId)
211 throws com.liferay.portal.kernel.exception.PortalException {
212 getService().deleteVocabularyCategories(vocabularyId);
213 }
214
215 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
216 return getService().dynamicQuery();
217 }
218
219
225 public static <T> java.util.List<T> dynamicQuery(
226 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
227 return getService().dynamicQuery(dynamicQuery);
228 }
229
230
242 public static <T> java.util.List<T> dynamicQuery(
243 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
244 int end) {
245 return getService().dynamicQuery(dynamicQuery, start, end);
246 }
247
248
261 public static <T> java.util.List<T> dynamicQuery(
262 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
263 int end,
264 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
265 return getService()
266 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
267 }
268
269
275 public static long dynamicQueryCount(
276 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
277 return getService().dynamicQueryCount(dynamicQuery);
278 }
279
280
287 public static long dynamicQueryCount(
288 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
289 com.liferay.portal.kernel.dao.orm.Projection projection) {
290 return getService().dynamicQueryCount(dynamicQuery, projection);
291 }
292
293 public static com.liferay.portlet.asset.model.AssetCategory fetchAssetCategory(
294 long categoryId) {
295 return getService().fetchAssetCategory(categoryId);
296 }
297
298
305 public static com.liferay.portlet.asset.model.AssetCategory fetchAssetCategoryByUuidAndGroupId(
306 java.lang.String uuid, long groupId) {
307 return getService().fetchAssetCategoryByUuidAndGroupId(uuid, groupId);
308 }
309
310 public static com.liferay.portlet.asset.model.AssetCategory fetchCategory(
311 long categoryId) {
312 return getService().fetchCategory(categoryId);
313 }
314
315 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
316 return getService().getActionableDynamicQuery();
317 }
318
319
330 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
331 int start, int end) {
332 return getService().getAssetCategories(start, end);
333 }
334
335
342 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategoriesByUuidAndCompanyId(
343 java.lang.String uuid, long companyId) {
344 return getService().getAssetCategoriesByUuidAndCompanyId(uuid, companyId);
345 }
346
347
357 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategoriesByUuidAndCompanyId(
358 java.lang.String uuid, long companyId, int start, int end,
359 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> orderByComparator) {
360 return getService()
361 .getAssetCategoriesByUuidAndCompanyId(uuid, companyId,
362 start, end, orderByComparator);
363 }
364
365
370 public static int getAssetCategoriesCount() {
371 return getService().getAssetCategoriesCount();
372 }
373
374
381 public static com.liferay.portlet.asset.model.AssetCategory getAssetCategory(
382 long categoryId)
383 throws com.liferay.portal.kernel.exception.PortalException {
384 return getService().getAssetCategory(categoryId);
385 }
386
387
395 public static com.liferay.portlet.asset.model.AssetCategory getAssetCategoryByUuidAndGroupId(
396 java.lang.String uuid, long groupId)
397 throws com.liferay.portal.kernel.exception.PortalException {
398 return getService().getAssetCategoryByUuidAndGroupId(uuid, groupId);
399 }
400
401 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
402 long entryId) {
403 return getService().getAssetEntryAssetCategories(entryId);
404 }
405
406 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
407 long entryId, int start, int end) {
408 return getService().getAssetEntryAssetCategories(entryId, start, end);
409 }
410
411 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
412 long entryId, int start, int end,
413 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> orderByComparator) {
414 return getService()
415 .getAssetEntryAssetCategories(entryId, start, end,
416 orderByComparator);
417 }
418
419 public static int getAssetEntryAssetCategoriesCount(long entryId) {
420 return getService().getAssetEntryAssetCategoriesCount(entryId);
421 }
422
423
429 public static long[] getAssetEntryPrimaryKeys(long categoryId) {
430 return getService().getAssetEntryPrimaryKeys(categoryId);
431 }
432
433
438 public static java.lang.String getBeanIdentifier() {
439 return getService().getBeanIdentifier();
440 }
441
442 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories() {
443 return getService().getCategories();
444 }
445
446 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
447 java.lang.String className, long classPK) {
448 return getService().getCategories(className, classPK);
449 }
450
451 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
452 long classNameId, long classPK) {
453 return getService().getCategories(classNameId, classPK);
454 }
455
456 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
457 com.liferay.portal.kernel.search.Hits hits)
458 throws com.liferay.portal.kernel.exception.PortalException {
459 return getService().getCategories(hits);
460 }
461
462 public static com.liferay.portlet.asset.model.AssetCategory getCategory(
463 long categoryId)
464 throws com.liferay.portal.kernel.exception.PortalException {
465 return getService().getCategory(categoryId);
466 }
467
468 public static com.liferay.portlet.asset.model.AssetCategory getCategory(
469 java.lang.String uuid, long groupId)
470 throws com.liferay.portal.kernel.exception.PortalException {
471 return getService().getCategory(uuid, groupId);
472 }
473
474 public static long[] getCategoryIds(java.lang.String className, long classPK) {
475 return getService().getCategoryIds(className, classPK);
476 }
477
478 public static java.lang.String[] getCategoryNames() {
479 return getService().getCategoryNames();
480 }
481
482 public static java.lang.String[] getCategoryNames(
483 java.lang.String className, long classPK) {
484 return getService().getCategoryNames(className, classPK);
485 }
486
487 public static java.lang.String[] getCategoryNames(long classNameId,
488 long classPK) {
489 return getService().getCategoryNames(classNameId, classPK);
490 }
491
492 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
493 long parentCategoryId) {
494 return getService().getChildCategories(parentCategoryId);
495 }
496
497 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
498 long parentCategoryId, int start, int end,
499 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc) {
500 return getService().getChildCategories(parentCategoryId, start, end, obc);
501 }
502
503 public static int getChildCategoriesCount(long parentCategoryId) {
504 return getService().getChildCategoriesCount(parentCategoryId);
505 }
506
507 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getEntryCategories(
508 long entryId) {
509 return getService().getEntryCategories(entryId);
510 }
511
512 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
513 com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
514 return getService().getExportActionableDynamicQuery(portletDataContext);
515 }
516
517 public static com.liferay.portal.model.PersistedModel getPersistedModel(
518 java.io.Serializable primaryKeyObj)
519 throws com.liferay.portal.kernel.exception.PortalException {
520 return getService().getPersistedModel(primaryKeyObj);
521 }
522
523 public static java.util.List<java.lang.Long> getSubcategoryIds(
524 long parentCategoryId) {
525 return getService().getSubcategoryIds(parentCategoryId);
526 }
527
528 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
529 long parentCategoryId, long vocabularyId, int start, int end,
530 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc) {
531 return getService()
532 .getVocabularyCategories(parentCategoryId, vocabularyId,
533 start, end, obc);
534 }
535
536 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
537 long vocabularyId, int start, int end,
538 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc) {
539 return getService()
540 .getVocabularyCategories(vocabularyId, start, end, obc);
541 }
542
543 public static int getVocabularyCategoriesCount(long vocabularyId) {
544 return getService().getVocabularyCategoriesCount(vocabularyId);
545 }
546
547 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
548 long vocabularyId, int start, int end,
549 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc) {
550 return getService()
551 .getVocabularyRootCategories(vocabularyId, start, end, obc);
552 }
553
554 public static int getVocabularyRootCategoriesCount(long vocabularyId) {
555 return getService().getVocabularyRootCategoriesCount(vocabularyId);
556 }
557
558 public static boolean hasAssetEntryAssetCategories(long entryId) {
559 return getService().hasAssetEntryAssetCategories(entryId);
560 }
561
562 public static boolean hasAssetEntryAssetCategory(long entryId,
563 long categoryId) {
564 return getService().hasAssetEntryAssetCategory(entryId, categoryId);
565 }
566
567 public static com.liferay.portlet.asset.model.AssetCategory mergeCategories(
568 long fromCategoryId, long toCategoryId)
569 throws com.liferay.portal.kernel.exception.PortalException {
570 return getService().mergeCategories(fromCategoryId, toCategoryId);
571 }
572
573 public static com.liferay.portlet.asset.model.AssetCategory moveCategory(
574 long categoryId, long parentCategoryId, long vocabularyId,
575 com.liferay.portal.service.ServiceContext serviceContext)
576 throws com.liferay.portal.kernel.exception.PortalException {
577 return getService()
578 .moveCategory(categoryId, parentCategoryId, vocabularyId,
579 serviceContext);
580 }
581
582 public static void rebuildTree(long groupId, boolean force) {
583 getService().rebuildTree(groupId, force);
584 }
585
586 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
587 long groupId, java.lang.String name,
588 java.lang.String[] categoryProperties, int start, int end) {
589 return getService().search(groupId, name, categoryProperties, start, end);
590 }
591
592 public static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.asset.model.AssetCategory> searchCategories(
593 long companyId, long[] groupIds, java.lang.String title,
594 long[] parentCategoryIds, long[] vocabularyIds, int start, int end)
595 throws com.liferay.portal.kernel.exception.PortalException {
596 return getService()
597 .searchCategories(companyId, groupIds, title,
598 parentCategoryIds, vocabularyIds, start, end);
599 }
600
601 public static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.asset.model.AssetCategory> searchCategories(
602 long companyId, long groupIds, java.lang.String title,
603 long vocabularyId, int start, int end)
604 throws com.liferay.portal.kernel.exception.PortalException {
605 return getService()
606 .searchCategories(companyId, groupIds, title, vocabularyId,
607 start, end);
608 }
609
610 public static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.asset.model.AssetCategory> searchCategories(
611 long companyId, long[] groupIds, java.lang.String title,
612 long[] vocabularyIds, int start, int end)
613 throws com.liferay.portal.kernel.exception.PortalException {
614 return getService()
615 .searchCategories(companyId, groupIds, title, vocabularyIds,
616 start, end);
617 }
618
619 public static void setAssetEntryAssetCategories(long entryId,
620 long[] categoryIds) {
621 getService().setAssetEntryAssetCategories(entryId, categoryIds);
622 }
623
624
629 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
630 getService().setBeanIdentifier(beanIdentifier);
631 }
632
633
639 public static com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
640 com.liferay.portlet.asset.model.AssetCategory assetCategory) {
641 return getService().updateAssetCategory(assetCategory);
642 }
643
644 public static com.liferay.portlet.asset.model.AssetCategory updateCategory(
645 long userId, long categoryId, long parentCategoryId,
646 java.util.Map<java.util.Locale, java.lang.String> titleMap,
647 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
648 long vocabularyId, java.lang.String[] categoryProperties,
649 com.liferay.portal.service.ServiceContext serviceContext)
650 throws com.liferay.portal.kernel.exception.PortalException {
651 return getService()
652 .updateCategory(userId, categoryId, parentCategoryId,
653 titleMap, descriptionMap, vocabularyId, categoryProperties,
654 serviceContext);
655 }
656
657 public static AssetCategoryLocalService getService() {
658 if (_service == null) {
659 _service = (AssetCategoryLocalService)PortalBeanLocatorUtil.locate(AssetCategoryLocalService.class.getName());
660
661 ReferenceRegistry.registerReference(AssetCategoryLocalServiceUtil.class,
662 "_service");
663 }
664
665 return _service;
666 }
667
668
671 @Deprecated
672 public void setService(AssetCategoryLocalService service) {
673 }
674
675 private static AssetCategoryLocalService _service;
676 }