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 AssetVocabularyLocalServiceUtil {
038
043
044
050 public static com.liferay.portlet.asset.model.AssetVocabulary addAssetVocabulary(
051 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary) {
052 return getService().addAssetVocabulary(assetVocabulary);
053 }
054
055 public static com.liferay.portlet.asset.model.AssetVocabulary addDefaultVocabulary(
056 long groupId)
057 throws com.liferay.portal.kernel.exception.PortalException {
058 return getService().addDefaultVocabulary(groupId);
059 }
060
061 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
062 long userId, java.lang.String title,
063 com.liferay.portal.service.ServiceContext serviceContext)
064 throws com.liferay.portal.kernel.exception.PortalException {
065 return getService().addVocabulary(userId, title, serviceContext);
066 }
067
068 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
069 long userId, java.lang.String title,
070 java.util.Map<java.util.Locale, java.lang.String> titleMap,
071 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
072 java.lang.String settings,
073 com.liferay.portal.service.ServiceContext serviceContext)
074 throws com.liferay.portal.kernel.exception.PortalException {
075 return getService()
076 .addVocabulary(userId, title, titleMap, descriptionMap,
077 settings, serviceContext);
078 }
079
080
083 @Deprecated
084 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
085 long userId,
086 java.util.Map<java.util.Locale, java.lang.String> titleMap,
087 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
088 java.lang.String settings,
089 com.liferay.portal.service.ServiceContext serviceContext)
090 throws com.liferay.portal.kernel.exception.PortalException {
091 return getService()
092 .addVocabulary(userId, titleMap, descriptionMap, settings,
093 serviceContext);
094 }
095
096 public static void addVocabularyResources(
097 com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
098 boolean addGroupPermissions, boolean addGuestPermissions)
099 throws com.liferay.portal.kernel.exception.PortalException {
100 getService()
101 .addVocabularyResources(vocabulary, addGroupPermissions,
102 addGuestPermissions);
103 }
104
105 public static void addVocabularyResources(
106 com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
107 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
108 throws com.liferay.portal.kernel.exception.PortalException {
109 getService()
110 .addVocabularyResources(vocabulary, groupPermissions,
111 guestPermissions);
112 }
113
114
120 public static com.liferay.portlet.asset.model.AssetVocabulary createAssetVocabulary(
121 long vocabularyId) {
122 return getService().createAssetVocabulary(vocabularyId);
123 }
124
125
131 public static com.liferay.portlet.asset.model.AssetVocabulary deleteAssetVocabulary(
132 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary) {
133 return getService().deleteAssetVocabulary(assetVocabulary);
134 }
135
136
143 public static com.liferay.portlet.asset.model.AssetVocabulary deleteAssetVocabulary(
144 long vocabularyId)
145 throws com.liferay.portal.kernel.exception.PortalException {
146 return getService().deleteAssetVocabulary(vocabularyId);
147 }
148
149
152 public static com.liferay.portal.model.PersistedModel deletePersistedModel(
153 com.liferay.portal.model.PersistedModel persistedModel)
154 throws com.liferay.portal.kernel.exception.PortalException {
155 return getService().deletePersistedModel(persistedModel);
156 }
157
158 public static void deleteVocabularies(long groupId)
159 throws com.liferay.portal.kernel.exception.PortalException {
160 getService().deleteVocabularies(groupId);
161 }
162
163 public static void deleteVocabulary(
164 com.liferay.portlet.asset.model.AssetVocabulary vocabulary)
165 throws com.liferay.portal.kernel.exception.PortalException {
166 getService().deleteVocabulary(vocabulary);
167 }
168
169 public static void deleteVocabulary(long vocabularyId)
170 throws com.liferay.portal.kernel.exception.PortalException {
171 getService().deleteVocabulary(vocabularyId);
172 }
173
174 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
175 return getService().dynamicQuery();
176 }
177
178
184 public static <T> java.util.List<T> dynamicQuery(
185 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
186 return getService().dynamicQuery(dynamicQuery);
187 }
188
189
201 public static <T> java.util.List<T> dynamicQuery(
202 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
203 int end) {
204 return getService().dynamicQuery(dynamicQuery, start, end);
205 }
206
207
220 public static <T> java.util.List<T> dynamicQuery(
221 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
222 int end,
223 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
224 return getService()
225 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
226 }
227
228
234 public static long dynamicQueryCount(
235 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
236 return getService().dynamicQueryCount(dynamicQuery);
237 }
238
239
246 public static long dynamicQueryCount(
247 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
248 com.liferay.portal.kernel.dao.orm.Projection projection) {
249 return getService().dynamicQueryCount(dynamicQuery, projection);
250 }
251
252 public static com.liferay.portlet.asset.model.AssetVocabulary fetchAssetVocabulary(
253 long vocabularyId) {
254 return getService().fetchAssetVocabulary(vocabularyId);
255 }
256
257
264 public static com.liferay.portlet.asset.model.AssetVocabulary fetchAssetVocabularyByUuidAndGroupId(
265 java.lang.String uuid, long groupId) {
266 return getService().fetchAssetVocabularyByUuidAndGroupId(uuid, groupId);
267 }
268
269 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
270 return getService().getActionableDynamicQuery();
271 }
272
273
284 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabularies(
285 int start, int end) {
286 return getService().getAssetVocabularies(start, end);
287 }
288
289
296 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabulariesByUuidAndCompanyId(
297 java.lang.String uuid, long companyId) {
298 return getService()
299 .getAssetVocabulariesByUuidAndCompanyId(uuid, companyId);
300 }
301
302
312 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabulariesByUuidAndCompanyId(
313 java.lang.String uuid, long companyId, int start, int end,
314 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator) {
315 return getService()
316 .getAssetVocabulariesByUuidAndCompanyId(uuid, companyId,
317 start, end, orderByComparator);
318 }
319
320
325 public static int getAssetVocabulariesCount() {
326 return getService().getAssetVocabulariesCount();
327 }
328
329
336 public static com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabulary(
337 long vocabularyId)
338 throws com.liferay.portal.kernel.exception.PortalException {
339 return getService().getAssetVocabulary(vocabularyId);
340 }
341
342
350 public static com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabularyByUuidAndGroupId(
351 java.lang.String uuid, long groupId)
352 throws com.liferay.portal.kernel.exception.PortalException {
353 return getService().getAssetVocabularyByUuidAndGroupId(uuid, groupId);
354 }
355
356
361 public static java.lang.String getBeanIdentifier() {
362 return getService().getBeanIdentifier();
363 }
364
365 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
366 long companyId) {
367 return getService().getCompanyVocabularies(companyId);
368 }
369
370 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
371 com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) {
372 return getService().getExportActionableDynamicQuery(portletDataContext);
373 }
374
375 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
376 long groupId)
377 throws com.liferay.portal.kernel.exception.PortalException {
378 return getService().getGroupVocabularies(groupId);
379 }
380
381 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
382 long groupId, boolean addDefaultVocabulary)
383 throws com.liferay.portal.kernel.exception.PortalException {
384 return getService().getGroupVocabularies(groupId, addDefaultVocabulary);
385 }
386
387 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
388 long groupId, java.lang.String name, int start, int end,
389 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc) {
390 return getService().getGroupVocabularies(groupId, name, start, end, obc);
391 }
392
393 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
394 long[] groupIds) {
395 return getService().getGroupVocabularies(groupIds);
396 }
397
398 public static int getGroupVocabulariesCount(long[] groupIds) {
399 return getService().getGroupVocabulariesCount(groupIds);
400 }
401
402 public static com.liferay.portlet.asset.model.AssetVocabulary getGroupVocabulary(
403 long groupId, java.lang.String name)
404 throws com.liferay.portal.kernel.exception.PortalException {
405 return getService().getGroupVocabulary(groupId, name);
406 }
407
408 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
409 long[] groupIds) {
410 return getService().getGroupsVocabularies(groupIds);
411 }
412
413 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
414 long[] groupIds, java.lang.String className) {
415 return getService().getGroupsVocabularies(groupIds, className);
416 }
417
418 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
419 long[] groupIds, java.lang.String className, long classTypePK) {
420 return getService()
421 .getGroupsVocabularies(groupIds, className, classTypePK);
422 }
423
424 public static com.liferay.portal.model.PersistedModel getPersistedModel(
425 java.io.Serializable primaryKeyObj)
426 throws com.liferay.portal.kernel.exception.PortalException {
427 return getService().getPersistedModel(primaryKeyObj);
428 }
429
430 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
431 long[] vocabularyIds)
432 throws com.liferay.portal.kernel.exception.PortalException {
433 return getService().getVocabularies(vocabularyIds);
434 }
435
436 public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
437 long vocabularyId)
438 throws com.liferay.portal.kernel.exception.PortalException {
439 return getService().getVocabulary(vocabularyId);
440 }
441
442 public static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.asset.model.AssetVocabulary> searchVocabularies(
443 long companyId, long groupId, java.lang.String title, int start, int end)
444 throws com.liferay.portal.kernel.exception.PortalException {
445 return getService()
446 .searchVocabularies(companyId, groupId, title, start, end);
447 }
448
449
454 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
455 getService().setBeanIdentifier(beanIdentifier);
456 }
457
458
464 public static com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
465 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary) {
466 return getService().updateAssetVocabulary(assetVocabulary);
467 }
468
469 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
470 long vocabularyId, java.lang.String title,
471 java.util.Map<java.util.Locale, java.lang.String> titleMap,
472 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
473 java.lang.String settings,
474 com.liferay.portal.service.ServiceContext serviceContext)
475 throws com.liferay.portal.kernel.exception.PortalException {
476 return getService()
477 .updateVocabulary(vocabularyId, title, titleMap,
478 descriptionMap, settings, serviceContext);
479 }
480
481
484 @Deprecated
485 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
486 long vocabularyId,
487 java.util.Map<java.util.Locale, java.lang.String> titleMap,
488 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
489 java.lang.String settings,
490 com.liferay.portal.service.ServiceContext serviceContext)
491 throws com.liferay.portal.kernel.exception.PortalException {
492 return getService()
493 .updateVocabulary(vocabularyId, titleMap, descriptionMap,
494 settings, serviceContext);
495 }
496
497 public static AssetVocabularyLocalService getService() {
498 if (_service == null) {
499 _service = (AssetVocabularyLocalService)PortalBeanLocatorUtil.locate(AssetVocabularyLocalService.class.getName());
500
501 ReferenceRegistry.registerReference(AssetVocabularyLocalServiceUtil.class,
502 "_service");
503 }
504
505 return _service;
506 }
507
508
511 @Deprecated
512 public void setService(AssetVocabularyLocalService service) {
513 }
514
515 private static AssetVocabularyLocalService _service;
516 }