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