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 com.liferay.portlet.asset.model.AssetCategory deleteCategory(
171 com.liferay.portlet.asset.model.AssetCategory category)
172 throws com.liferay.portal.kernel.exception.PortalException {
173 return getService().deleteCategory(category);
174 }
175
176 public static com.liferay.portlet.asset.model.AssetCategory deleteCategory(
177 com.liferay.portlet.asset.model.AssetCategory category,
178 boolean childCategory)
179 throws com.liferay.portal.kernel.exception.PortalException {
180 return getService().deleteCategory(category, childCategory);
181 }
182
183 public static com.liferay.portlet.asset.model.AssetCategory deleteCategory(
184 long categoryId)
185 throws com.liferay.portal.kernel.exception.PortalException {
186 return getService().deleteCategory(categoryId);
187 }
188
189
192 public static com.liferay.portal.model.PersistedModel deletePersistedModel(
193 com.liferay.portal.model.PersistedModel persistedModel)
194 throws com.liferay.portal.kernel.exception.PortalException {
195 return getService().deletePersistedModel(persistedModel);
196 }
197
198 public static void deleteVocabularyCategories(long vocabularyId)
199 throws com.liferay.portal.kernel.exception.PortalException {
200 getService().deleteVocabularyCategories(vocabularyId);
201 }
202
203 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
204 return getService().dynamicQuery();
205 }
206
207
213 public static <T> java.util.List<T> dynamicQuery(
214 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
215 return getService().dynamicQuery(dynamicQuery);
216 }
217
218
230 public static <T> java.util.List<T> dynamicQuery(
231 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
232 int end) {
233 return getService().dynamicQuery(dynamicQuery, start, end);
234 }
235
236
249 public static <T> java.util.List<T> dynamicQuery(
250 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
251 int end,
252 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
253 return getService()
254 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
255 }
256
257
263 public static long dynamicQueryCount(
264 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
265 return getService().dynamicQueryCount(dynamicQuery);
266 }
267
268
275 public static long dynamicQueryCount(
276 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
277 com.liferay.portal.kernel.dao.orm.Projection projection) {
278 return getService().dynamicQueryCount(dynamicQuery, projection);
279 }
280
281 public static com.liferay.portlet.asset.model.AssetCategory fetchAssetCategory(
282 long categoryId) {
283 return getService().fetchAssetCategory(categoryId);
284 }
285
286
293 public static com.liferay.portlet.asset.model.AssetCategory fetchAssetCategoryByUuidAndGroupId(
294 java.lang.String uuid, long groupId) {
295 return getService().fetchAssetCategoryByUuidAndGroupId(uuid, groupId);
296 }
297
298 public static com.liferay.portlet.asset.model.AssetCategory fetchCategory(
299 long categoryId) {
300 return getService().fetchCategory(categoryId);
301 }
302
303 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
304 return getService().getActionableDynamicQuery();
305 }
306
307
318 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
319 int start, int end) {
320 return getService().getAssetCategories(start, end);
321 }
322
323 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategoriesByUuidAndCompanyId(
324 java.lang.String uuid, long companyId) {
325 return getService().getAssetCategoriesByUuidAndCompanyId(uuid, companyId);
326 }
327
328 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategoriesByUuidAndCompanyId(
329 java.lang.String uuid, long companyId, int start, int end,
330 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> orderByComparator) {
331 return getService()
332 .getAssetCategoriesByUuidAndCompanyId(uuid, companyId,
333 start, end, orderByComparator);
334 }
335
336
341 public static int getAssetCategoriesCount() {
342 return getService().getAssetCategoriesCount();
343 }
344
345
352 public static com.liferay.portlet.asset.model.AssetCategory getAssetCategory(
353 long categoryId)
354 throws com.liferay.portal.kernel.exception.PortalException {
355 return getService().getAssetCategory(categoryId);
356 }
357
358
366 public static com.liferay.portlet.asset.model.AssetCategory getAssetCategoryByUuidAndGroupId(
367 java.lang.String uuid, long groupId)
368 throws com.liferay.portal.kernel.exception.PortalException {
369 return getService().getAssetCategoryByUuidAndGroupId(uuid, groupId);
370 }
371
372 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
373 long entryId) {
374 return getService().getAssetEntryAssetCategories(entryId);
375 }
376
377 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
378 long entryId, int start, int end) {
379 return getService().getAssetEntryAssetCategories(entryId, start, end);
380 }
381
382 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetEntryAssetCategories(
383 long entryId, int start, int end,
384 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> orderByComparator) {
385 return getService()
386 .getAssetEntryAssetCategories(entryId, start, end,
387 orderByComparator);
388 }
389
390 public static int getAssetEntryAssetCategoriesCount(long entryId) {
391 return getService().getAssetEntryAssetCategoriesCount(entryId);
392 }
393
394
400 public static long[] getAssetEntryPrimaryKeys(long categoryId) {
401 return getService().getAssetEntryPrimaryKeys(categoryId);
402 }
403
404
409 public static java.lang.String getBeanIdentifier() {
410 return getService().getBeanIdentifier();
411 }
412
413 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories() {
414 return getService().getCategories();
415 }
416
417 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
418 java.lang.String className, long classPK) {
419 return getService().getCategories(className, classPK);
420 }
421
422 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
423 long classNameId, long classPK) {
424 return getService().getCategories(classNameId, classPK);
425 }
426
427 public static com.liferay.portlet.asset.model.AssetCategory getCategory(
428 long categoryId)
429 throws com.liferay.portal.kernel.exception.PortalException {
430 return getService().getCategory(categoryId);
431 }
432
433 public static com.liferay.portlet.asset.model.AssetCategory getCategory(
434 java.lang.String uuid, long groupId)
435 throws com.liferay.portal.kernel.exception.PortalException {
436 return getService().getCategory(uuid, groupId);
437 }
438
439 public static long[] getCategoryIds(java.lang.String className, long classPK) {
440 return getService().getCategoryIds(className, classPK);
441 }
442
443 public static java.lang.String[] getCategoryNames() {
444 return getService().getCategoryNames();
445 }
446
447 public static java.lang.String[] getCategoryNames(
448 java.lang.String className, long classPK) {
449 return getService().getCategoryNames(className, classPK);
450 }
451
452 public static java.lang.String[] getCategoryNames(long classNameId,
453 long classPK) {
454 return getService().getCategoryNames(classNameId, classPK);
455 }
456
457 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
458 long parentCategoryId) {
459 return getService().getChildCategories(parentCategoryId);
460 }
461
462 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
463 long parentCategoryId, int start, int end,
464 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc) {
465 return getService().getChildCategories(parentCategoryId, start, end, obc);
466 }
467
468 public static int getChildCategoriesCount(long parentCategoryId) {
469 return getService().getChildCategoriesCount(parentCategoryId);
470 }
471
472 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getEntryCategories(
473 long entryId) {
474 return getService().getEntryCategories(entryId);
475 }
476
477 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
478 com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) {
479 return getService().getExportActionableDynamicQuery(portletDataContext);
480 }
481
482 public static com.liferay.portal.model.PersistedModel getPersistedModel(
483 java.io.Serializable primaryKeyObj)
484 throws com.liferay.portal.kernel.exception.PortalException {
485 return getService().getPersistedModel(primaryKeyObj);
486 }
487
488 public static java.util.List<java.lang.Long> getSubcategoryIds(
489 long parentCategoryId) {
490 return getService().getSubcategoryIds(parentCategoryId);
491 }
492
493 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
494 long parentCategoryId, long vocabularyId, int start, int end,
495 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc) {
496 return getService()
497 .getVocabularyCategories(parentCategoryId, vocabularyId,
498 start, end, obc);
499 }
500
501 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
502 long vocabularyId, int start, int end,
503 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc) {
504 return getService()
505 .getVocabularyCategories(vocabularyId, start, end, obc);
506 }
507
508 public static int getVocabularyCategoriesCount(long vocabularyId) {
509 return getService().getVocabularyCategoriesCount(vocabularyId);
510 }
511
512 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
513 long vocabularyId, int start, int end,
514 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc) {
515 return getService()
516 .getVocabularyRootCategories(vocabularyId, start, end, obc);
517 }
518
519 public static int getVocabularyRootCategoriesCount(long vocabularyId) {
520 return getService().getVocabularyRootCategoriesCount(vocabularyId);
521 }
522
523 public static boolean hasAssetEntryAssetCategories(long entryId) {
524 return getService().hasAssetEntryAssetCategories(entryId);
525 }
526
527 public static boolean hasAssetEntryAssetCategory(long entryId,
528 long categoryId) {
529 return getService().hasAssetEntryAssetCategory(entryId, categoryId);
530 }
531
532 public static com.liferay.portlet.asset.model.AssetCategory mergeCategories(
533 long fromCategoryId, long toCategoryId)
534 throws com.liferay.portal.kernel.exception.PortalException {
535 return getService().mergeCategories(fromCategoryId, toCategoryId);
536 }
537
538 public static com.liferay.portlet.asset.model.AssetCategory moveCategory(
539 long categoryId, long parentCategoryId, long vocabularyId,
540 com.liferay.portal.service.ServiceContext serviceContext)
541 throws com.liferay.portal.kernel.exception.PortalException {
542 return getService()
543 .moveCategory(categoryId, parentCategoryId, vocabularyId,
544 serviceContext);
545 }
546
547 public static void rebuildTree(long groupId, boolean force) {
548 getService().rebuildTree(groupId, force);
549 }
550
551 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> search(
552 long groupId, java.lang.String name,
553 java.lang.String[] categoryProperties, int start, int end) {
554 return getService().search(groupId, name, categoryProperties, start, end);
555 }
556
557 public static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.asset.model.AssetCategory> searchCategories(
558 long companyId, long[] groupIds, java.lang.String title,
559 long[] parentCategoryIds, long[] vocabularyIds, int start, int end)
560 throws com.liferay.portal.kernel.exception.PortalException {
561 return getService()
562 .searchCategories(companyId, groupIds, title,
563 parentCategoryIds, vocabularyIds, start, end);
564 }
565
566 public static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.asset.model.AssetCategory> searchCategories(
567 long companyId, long groupIds, java.lang.String title,
568 long vocabularyId, int start, int end)
569 throws com.liferay.portal.kernel.exception.PortalException {
570 return getService()
571 .searchCategories(companyId, groupIds, title, vocabularyId,
572 start, end);
573 }
574
575 public static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.asset.model.AssetCategory> searchCategories(
576 long companyId, long[] groupIds, java.lang.String title,
577 long[] vocabularyIds, int start, int end)
578 throws com.liferay.portal.kernel.exception.PortalException {
579 return getService()
580 .searchCategories(companyId, groupIds, title, vocabularyIds,
581 start, end);
582 }
583
584 public static void setAssetEntryAssetCategories(long entryId,
585 long[] categoryIds) {
586 getService().setAssetEntryAssetCategories(entryId, categoryIds);
587 }
588
589
594 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
595 getService().setBeanIdentifier(beanIdentifier);
596 }
597
598
604 public static com.liferay.portlet.asset.model.AssetCategory updateAssetCategory(
605 com.liferay.portlet.asset.model.AssetCategory assetCategory) {
606 return getService().updateAssetCategory(assetCategory);
607 }
608
609 public static com.liferay.portlet.asset.model.AssetCategory updateCategory(
610 long userId, long categoryId, long parentCategoryId,
611 java.util.Map<java.util.Locale, java.lang.String> titleMap,
612 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
613 long vocabularyId, java.lang.String[] categoryProperties,
614 com.liferay.portal.service.ServiceContext serviceContext)
615 throws com.liferay.portal.kernel.exception.PortalException {
616 return getService()
617 .updateCategory(userId, categoryId, parentCategoryId,
618 titleMap, descriptionMap, vocabularyId, categoryProperties,
619 serviceContext);
620 }
621
622 public static AssetCategoryLocalService getService() {
623 if (_service == null) {
624 _service = (AssetCategoryLocalService)PortalBeanLocatorUtil.locate(AssetCategoryLocalService.class.getName());
625
626 ReferenceRegistry.registerReference(AssetCategoryLocalServiceUtil.class,
627 "_service");
628 }
629
630 return _service;
631 }
632
633
636 @Deprecated
637 public void setService(AssetCategoryLocalService service) {
638 }
639
640 private static AssetCategoryLocalService _service;
641 }