001
014
015 package com.liferay.asset.kernel.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 public static boolean hasAssetEntryAssetCategories(long entryId) {
044 return getService().hasAssetEntryAssetCategories(entryId);
045 }
046
047 public static boolean hasAssetEntryAssetCategory(long entryId,
048 long categoryId) {
049 return getService().hasAssetEntryAssetCategory(entryId, categoryId);
050 }
051
052
058 public static com.liferay.asset.kernel.model.AssetCategory addAssetCategory(
059 com.liferay.asset.kernel.model.AssetCategory assetCategory) {
060 return getService().addAssetCategory(assetCategory);
061 }
062
063 public static com.liferay.asset.kernel.model.AssetCategory addCategory(
064 long userId, long groupId, java.lang.String title, long vocabularyId,
065 com.liferay.portal.kernel.service.ServiceContext serviceContext)
066 throws com.liferay.portal.kernel.exception.PortalException {
067 return getService()
068 .addCategory(userId, groupId, title, vocabularyId,
069 serviceContext);
070 }
071
072 public static com.liferay.asset.kernel.model.AssetCategory addCategory(
073 long userId, long groupId, long parentCategoryId,
074 java.util.Map<java.util.Locale, java.lang.String> titleMap,
075 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
076 long vocabularyId, java.lang.String[] categoryProperties,
077 com.liferay.portal.kernel.service.ServiceContext serviceContext)
078 throws com.liferay.portal.kernel.exception.PortalException {
079 return getService()
080 .addCategory(userId, groupId, parentCategoryId, titleMap,
081 descriptionMap, vocabularyId, categoryProperties, serviceContext);
082 }
083
084
090 public static com.liferay.asset.kernel.model.AssetCategory createAssetCategory(
091 long categoryId) {
092 return getService().createAssetCategory(categoryId);
093 }
094
095
101 public static com.liferay.asset.kernel.model.AssetCategory deleteAssetCategory(
102 com.liferay.asset.kernel.model.AssetCategory assetCategory) {
103 return getService().deleteAssetCategory(assetCategory);
104 }
105
106
113 public static com.liferay.asset.kernel.model.AssetCategory deleteAssetCategory(
114 long categoryId)
115 throws com.liferay.portal.kernel.exception.PortalException {
116 return getService().deleteAssetCategory(categoryId);
117 }
118
119 public static com.liferay.asset.kernel.model.AssetCategory deleteCategory(
120 com.liferay.asset.kernel.model.AssetCategory category)
121 throws com.liferay.portal.kernel.exception.PortalException {
122 return getService().deleteCategory(category);
123 }
124
125 public static com.liferay.asset.kernel.model.AssetCategory deleteCategory(
126 com.liferay.asset.kernel.model.AssetCategory category,
127 boolean skipRebuildTree)
128 throws com.liferay.portal.kernel.exception.PortalException {
129 return getService().deleteCategory(category, skipRebuildTree);
130 }
131
132 public static com.liferay.asset.kernel.model.AssetCategory deleteCategory(
133 long categoryId)
134 throws com.liferay.portal.kernel.exception.PortalException {
135 return getService().deleteCategory(categoryId);
136 }
137
138 public static com.liferay.asset.kernel.model.AssetCategory fetchAssetCategory(
139 long categoryId) {
140 return getService().fetchAssetCategory(categoryId);
141 }
142
143
150 public static com.liferay.asset.kernel.model.AssetCategory fetchAssetCategoryByUuidAndGroupId(
151 java.lang.String uuid, long groupId) {
152 return getService().fetchAssetCategoryByUuidAndGroupId(uuid, groupId);
153 }
154
155 public static com.liferay.asset.kernel.model.AssetCategory fetchCategory(
156 long categoryId) {
157 return getService().fetchCategory(categoryId);
158 }
159
160
167 public static com.liferay.asset.kernel.model.AssetCategory getAssetCategory(
168 long categoryId)
169 throws com.liferay.portal.kernel.exception.PortalException {
170 return getService().getAssetCategory(categoryId);
171 }
172
173
181 public static com.liferay.asset.kernel.model.AssetCategory getAssetCategoryByUuidAndGroupId(
182 java.lang.String uuid, long groupId)
183 throws com.liferay.portal.kernel.exception.PortalException {
184 return getService().getAssetCategoryByUuidAndGroupId(uuid, groupId);
185 }
186
187 public static com.liferay.asset.kernel.model.AssetCategory getCategory(
188 java.lang.String uuid, long groupId)
189 throws com.liferay.portal.kernel.exception.PortalException {
190 return getService().getCategory(uuid, groupId);
191 }
192
193 public static com.liferay.asset.kernel.model.AssetCategory getCategory(
194 long categoryId)
195 throws com.liferay.portal.kernel.exception.PortalException {
196 return getService().getCategory(categoryId);
197 }
198
199 public static com.liferay.asset.kernel.model.AssetCategory mergeCategories(
200 long fromCategoryId, long toCategoryId)
201 throws com.liferay.portal.kernel.exception.PortalException {
202 return getService().mergeCategories(fromCategoryId, toCategoryId);
203 }
204
205 public static com.liferay.asset.kernel.model.AssetCategory moveCategory(
206 long categoryId, long parentCategoryId, long vocabularyId,
207 com.liferay.portal.kernel.service.ServiceContext serviceContext)
208 throws com.liferay.portal.kernel.exception.PortalException {
209 return getService()
210 .moveCategory(categoryId, parentCategoryId, vocabularyId,
211 serviceContext);
212 }
213
214
220 public static com.liferay.asset.kernel.model.AssetCategory updateAssetCategory(
221 com.liferay.asset.kernel.model.AssetCategory assetCategory) {
222 return getService().updateAssetCategory(assetCategory);
223 }
224
225 public static com.liferay.asset.kernel.model.AssetCategory updateCategory(
226 long userId, long categoryId, long parentCategoryId,
227 java.util.Map<java.util.Locale, java.lang.String> titleMap,
228 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
229 long vocabularyId, java.lang.String[] categoryProperties,
230 com.liferay.portal.kernel.service.ServiceContext serviceContext)
231 throws com.liferay.portal.kernel.exception.PortalException {
232 return getService()
233 .updateCategory(userId, categoryId, parentCategoryId,
234 titleMap, descriptionMap, vocabularyId, categoryProperties,
235 serviceContext);
236 }
237
238 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
239 return getService().getActionableDynamicQuery();
240 }
241
242 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
243 return getService().dynamicQuery();
244 }
245
246 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
247 com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) {
248 return getService().getExportActionableDynamicQuery(portletDataContext);
249 }
250
251 public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
252 return getService().getIndexableActionableDynamicQuery();
253 }
254
255
258 public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
259 com.liferay.portal.kernel.model.PersistedModel persistedModel)
260 throws com.liferay.portal.kernel.exception.PortalException {
261 return getService().deletePersistedModel(persistedModel);
262 }
263
264 public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
265 java.io.Serializable primaryKeyObj)
266 throws com.liferay.portal.kernel.exception.PortalException {
267 return getService().getPersistedModel(primaryKeyObj);
268 }
269
270 public static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetCategory> searchCategories(
271 long companyId, long groupIds, java.lang.String title,
272 long vocabularyId, int start, int end)
273 throws com.liferay.portal.kernel.exception.PortalException {
274 return getService()
275 .searchCategories(companyId, groupIds, title, vocabularyId,
276 start, end);
277 }
278
279 public static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetCategory> searchCategories(
280 long companyId, long[] groupIds, java.lang.String title,
281 long[] parentCategoryIds, long[] vocabularyIds, int start, int end)
282 throws com.liferay.portal.kernel.exception.PortalException {
283 return getService()
284 .searchCategories(companyId, groupIds, title,
285 parentCategoryIds, vocabularyIds, start, end);
286 }
287
288 public static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetCategory> searchCategories(
289 long companyId, long[] groupIds, java.lang.String title,
290 long[] vocabularyIds, int start, int end)
291 throws com.liferay.portal.kernel.exception.PortalException {
292 return getService()
293 .searchCategories(companyId, groupIds, title, vocabularyIds,
294 start, end);
295 }
296
297 public static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetCategory> searchCategories(
298 long companyId, long[] groupIds, java.lang.String title,
299 long[] vocabularyIds, long[] parentCategoryIds, int start, int end,
300 com.liferay.portal.kernel.search.Sort sort)
301 throws com.liferay.portal.kernel.exception.PortalException {
302 return getService()
303 .searchCategories(companyId, groupIds, title, vocabularyIds,
304 parentCategoryIds, start, end, sort);
305 }
306
307
312 public static int getAssetCategoriesCount() {
313 return getService().getAssetCategoriesCount();
314 }
315
316 public static int getAssetEntryAssetCategoriesCount(long entryId) {
317 return getService().getAssetEntryAssetCategoriesCount(entryId);
318 }
319
320 public static int getChildCategoriesCount(long parentCategoryId) {
321 return getService().getChildCategoriesCount(parentCategoryId);
322 }
323
324 public static int getVocabularyCategoriesCount(long vocabularyId) {
325 return getService().getVocabularyCategoriesCount(vocabularyId);
326 }
327
328 public static int getVocabularyRootCategoriesCount(long vocabularyId) {
329 return getService().getVocabularyRootCategoriesCount(vocabularyId);
330 }
331
332
337 public static java.lang.String getOSGiServiceIdentifier() {
338 return getService().getOSGiServiceIdentifier();
339 }
340
341 public static java.lang.String[] getCategoryNames() {
342 return getService().getCategoryNames();
343 }
344
345 public static java.lang.String[] getCategoryNames(
346 java.lang.String className, long classPK) {
347 return getService().getCategoryNames(className, classPK);
348 }
349
350 public static java.lang.String[] getCategoryNames(long classNameId,
351 long classPK) {
352 return getService().getCategoryNames(classNameId, classPK);
353 }
354
355
361 public static <T> java.util.List<T> dynamicQuery(
362 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
363 return getService().dynamicQuery(dynamicQuery);
364 }
365
366
378 public static <T> java.util.List<T> dynamicQuery(
379 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
380 int end) {
381 return getService().dynamicQuery(dynamicQuery, start, end);
382 }
383
384
397 public static <T> java.util.List<T> dynamicQuery(
398 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
399 int end,
400 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
401 return getService()
402 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
403 }
404
405
416 public static java.util.List<com.liferay.asset.kernel.model.AssetCategory> getAssetCategories(
417 int start, int end) {
418 return getService().getAssetCategories(start, end);
419 }
420
421
428 public static java.util.List<com.liferay.asset.kernel.model.AssetCategory> getAssetCategoriesByUuidAndCompanyId(
429 java.lang.String uuid, long companyId) {
430 return getService().getAssetCategoriesByUuidAndCompanyId(uuid, companyId);
431 }
432
433
443 public static java.util.List<com.liferay.asset.kernel.model.AssetCategory> getAssetCategoriesByUuidAndCompanyId(
444 java.lang.String uuid, long companyId, int start, int end,
445 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> orderByComparator) {
446 return getService()
447 .getAssetCategoriesByUuidAndCompanyId(uuid, companyId,
448 start, end, orderByComparator);
449 }
450
451 public static java.util.List<com.liferay.asset.kernel.model.AssetCategory> getAssetEntryAssetCategories(
452 long entryId) {
453 return getService().getAssetEntryAssetCategories(entryId);
454 }
455
456 public static java.util.List<com.liferay.asset.kernel.model.AssetCategory> getAssetEntryAssetCategories(
457 long entryId, int start, int end) {
458 return getService().getAssetEntryAssetCategories(entryId, start, end);
459 }
460
461 public static java.util.List<com.liferay.asset.kernel.model.AssetCategory> getAssetEntryAssetCategories(
462 long entryId, int start, int end,
463 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> orderByComparator) {
464 return getService()
465 .getAssetEntryAssetCategories(entryId, start, end,
466 orderByComparator);
467 }
468
469 public static java.util.List<com.liferay.asset.kernel.model.AssetCategory> getCategories() {
470 return getService().getCategories();
471 }
472
473 public static java.util.List<com.liferay.asset.kernel.model.AssetCategory> getCategories(
474 com.liferay.portal.kernel.search.Hits hits)
475 throws com.liferay.portal.kernel.exception.PortalException {
476 return getService().getCategories(hits);
477 }
478
479 public static java.util.List<com.liferay.asset.kernel.model.AssetCategory> getCategories(
480 java.lang.String className, long classPK) {
481 return getService().getCategories(className, classPK);
482 }
483
484 public static java.util.List<com.liferay.asset.kernel.model.AssetCategory> getCategories(
485 long classNameId, long classPK) {
486 return getService().getCategories(classNameId, classPK);
487 }
488
489 public static java.util.List<com.liferay.asset.kernel.model.AssetCategory> getChildCategories(
490 long parentCategoryId) {
491 return getService().getChildCategories(parentCategoryId);
492 }
493
494 public static java.util.List<com.liferay.asset.kernel.model.AssetCategory> getChildCategories(
495 long parentCategoryId, int start, int end,
496 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc) {
497 return getService().getChildCategories(parentCategoryId, start, end, obc);
498 }
499
500 public static java.util.List<com.liferay.asset.kernel.model.AssetCategory> getEntryCategories(
501 long entryId) {
502 return getService().getEntryCategories(entryId);
503 }
504
505 public static java.util.List<java.lang.Long> getSubcategoryIds(
506 long parentCategoryId) {
507 return getService().getSubcategoryIds(parentCategoryId);
508 }
509
510 public static java.util.List<com.liferay.asset.kernel.model.AssetCategory> getVocabularyCategories(
511 long parentCategoryId, long vocabularyId, int start, int end,
512 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc) {
513 return getService()
514 .getVocabularyCategories(parentCategoryId, vocabularyId,
515 start, end, obc);
516 }
517
518 public static java.util.List<com.liferay.asset.kernel.model.AssetCategory> getVocabularyCategories(
519 long vocabularyId, int start, int end,
520 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc) {
521 return getService()
522 .getVocabularyCategories(vocabularyId, start, end, obc);
523 }
524
525 public static java.util.List<com.liferay.asset.kernel.model.AssetCategory> getVocabularyRootCategories(
526 long vocabularyId, int start, int end,
527 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc) {
528 return getService()
529 .getVocabularyRootCategories(vocabularyId, start, end, obc);
530 }
531
532 public static java.util.List<com.liferay.asset.kernel.model.AssetCategory> search(
533 long groupId, java.lang.String name,
534 java.lang.String[] categoryProperties, int start, int end) {
535 return getService().search(groupId, name, categoryProperties, start, end);
536 }
537
538
544 public static long dynamicQueryCount(
545 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
546 return getService().dynamicQueryCount(dynamicQuery);
547 }
548
549
556 public static long dynamicQueryCount(
557 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
558 com.liferay.portal.kernel.dao.orm.Projection projection) {
559 return getService().dynamicQueryCount(dynamicQuery, projection);
560 }
561
562
568 public static long[] getAssetEntryPrimaryKeys(long categoryId) {
569 return getService().getAssetEntryPrimaryKeys(categoryId);
570 }
571
572 public static long[] getCategoryIds(java.lang.String className, long classPK) {
573 return getService().getCategoryIds(className, classPK);
574 }
575
576 public static void addAssetEntryAssetCategories(long entryId,
577 java.util.List<com.liferay.asset.kernel.model.AssetCategory> assetCategories) {
578 getService().addAssetEntryAssetCategories(entryId, assetCategories);
579 }
580
581 public static void addAssetEntryAssetCategories(long entryId,
582 long[] categoryIds) {
583 getService().addAssetEntryAssetCategories(entryId, categoryIds);
584 }
585
586 public static void addAssetEntryAssetCategory(long entryId,
587 com.liferay.asset.kernel.model.AssetCategory assetCategory) {
588 getService().addAssetEntryAssetCategory(entryId, assetCategory);
589 }
590
591 public static void addAssetEntryAssetCategory(long entryId, long categoryId) {
592 getService().addAssetEntryAssetCategory(entryId, categoryId);
593 }
594
595 public static void addCategoryResources(
596 com.liferay.asset.kernel.model.AssetCategory category,
597 boolean addGroupPermissions, boolean addGuestPermissions)
598 throws com.liferay.portal.kernel.exception.PortalException {
599 getService()
600 .addCategoryResources(category, addGroupPermissions,
601 addGuestPermissions);
602 }
603
604 public static void addCategoryResources(
605 com.liferay.asset.kernel.model.AssetCategory category,
606 com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions)
607 throws com.liferay.portal.kernel.exception.PortalException {
608 getService().addCategoryResources(category, modelPermissions);
609 }
610
611 public static void clearAssetEntryAssetCategories(long entryId) {
612 getService().clearAssetEntryAssetCategories(entryId);
613 }
614
615 public static void deleteAssetEntryAssetCategories(long entryId,
616 java.util.List<com.liferay.asset.kernel.model.AssetCategory> assetCategories) {
617 getService().deleteAssetEntryAssetCategories(entryId, assetCategories);
618 }
619
620 public static void deleteAssetEntryAssetCategories(long entryId,
621 long[] categoryIds) {
622 getService().deleteAssetEntryAssetCategories(entryId, categoryIds);
623 }
624
625 public static void deleteAssetEntryAssetCategory(long entryId,
626 com.liferay.asset.kernel.model.AssetCategory assetCategory) {
627 getService().deleteAssetEntryAssetCategory(entryId, assetCategory);
628 }
629
630 public static void deleteAssetEntryAssetCategory(long entryId,
631 long categoryId) {
632 getService().deleteAssetEntryAssetCategory(entryId, categoryId);
633 }
634
635 public static void deleteCategories(
636 java.util.List<com.liferay.asset.kernel.model.AssetCategory> categories)
637 throws com.liferay.portal.kernel.exception.PortalException {
638 getService().deleteCategories(categories);
639 }
640
641 public static void deleteCategories(long[] categoryIds)
642 throws com.liferay.portal.kernel.exception.PortalException {
643 getService().deleteCategories(categoryIds);
644 }
645
646 public static void deleteVocabularyCategories(long vocabularyId)
647 throws com.liferay.portal.kernel.exception.PortalException {
648 getService().deleteVocabularyCategories(vocabularyId);
649 }
650
651 public static void rebuildTree(long groupId, boolean force) {
652 getService().rebuildTree(groupId, force);
653 }
654
655 public static void setAssetEntryAssetCategories(long entryId,
656 long[] categoryIds) {
657 getService().setAssetEntryAssetCategories(entryId, categoryIds);
658 }
659
660 public static AssetCategoryLocalService getService() {
661 if (_service == null) {
662 _service = (AssetCategoryLocalService)PortalBeanLocatorUtil.locate(AssetCategoryLocalService.class.getName());
663
664 ReferenceRegistry.registerReference(AssetCategoryLocalServiceUtil.class,
665 "_service");
666 }
667
668 return _service;
669 }
670
671 private static AssetCategoryLocalService _service;
672 }