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, long groupId, java.lang.String title,
063 com.liferay.portal.service.ServiceContext serviceContext)
064 throws com.liferay.portal.kernel.exception.PortalException {
065 return getService().addVocabulary(userId, groupId, title, serviceContext);
066 }
067
068 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
069 long userId, long groupId, 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, groupId, title, titleMap,
077 descriptionMap, settings, serviceContext);
078 }
079
080 public static void addVocabularyResources(
081 com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
082 boolean addGroupPermissions, boolean addGuestPermissions)
083 throws com.liferay.portal.kernel.exception.PortalException {
084 getService()
085 .addVocabularyResources(vocabulary, addGroupPermissions,
086 addGuestPermissions);
087 }
088
089 public static void addVocabularyResources(
090 com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
091 com.liferay.portal.service.permission.ModelPermissions modelPermissions)
092 throws com.liferay.portal.kernel.exception.PortalException {
093 getService().addVocabularyResources(vocabulary, modelPermissions);
094 }
095
096
102 public static com.liferay.portlet.asset.model.AssetVocabulary createAssetVocabulary(
103 long vocabularyId) {
104 return getService().createAssetVocabulary(vocabularyId);
105 }
106
107
113 public static com.liferay.portlet.asset.model.AssetVocabulary deleteAssetVocabulary(
114 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary) {
115 return getService().deleteAssetVocabulary(assetVocabulary);
116 }
117
118
125 public static com.liferay.portlet.asset.model.AssetVocabulary deleteAssetVocabulary(
126 long vocabularyId)
127 throws com.liferay.portal.kernel.exception.PortalException {
128 return getService().deleteAssetVocabulary(vocabularyId);
129 }
130
131
134 public static com.liferay.portal.model.PersistedModel deletePersistedModel(
135 com.liferay.portal.model.PersistedModel persistedModel)
136 throws com.liferay.portal.kernel.exception.PortalException {
137 return getService().deletePersistedModel(persistedModel);
138 }
139
140 public static void deleteVocabularies(long groupId)
141 throws com.liferay.portal.kernel.exception.PortalException {
142 getService().deleteVocabularies(groupId);
143 }
144
145 public static com.liferay.portlet.asset.model.AssetVocabulary deleteVocabulary(
146 com.liferay.portlet.asset.model.AssetVocabulary vocabulary)
147 throws com.liferay.portal.kernel.exception.PortalException {
148 return getService().deleteVocabulary(vocabulary);
149 }
150
151 public static void deleteVocabulary(long vocabularyId)
152 throws com.liferay.portal.kernel.exception.PortalException {
153 getService().deleteVocabulary(vocabularyId);
154 }
155
156 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
157 return getService().dynamicQuery();
158 }
159
160
166 public static <T> java.util.List<T> dynamicQuery(
167 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
168 return getService().dynamicQuery(dynamicQuery);
169 }
170
171
183 public static <T> java.util.List<T> dynamicQuery(
184 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
185 int end) {
186 return getService().dynamicQuery(dynamicQuery, start, end);
187 }
188
189
202 public static <T> java.util.List<T> dynamicQuery(
203 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
204 int end,
205 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
206 return getService()
207 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
208 }
209
210
216 public static long dynamicQueryCount(
217 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
218 return getService().dynamicQueryCount(dynamicQuery);
219 }
220
221
228 public static long dynamicQueryCount(
229 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
230 com.liferay.portal.kernel.dao.orm.Projection projection) {
231 return getService().dynamicQueryCount(dynamicQuery, projection);
232 }
233
234 public static com.liferay.portlet.asset.model.AssetVocabulary fetchAssetVocabulary(
235 long vocabularyId) {
236 return getService().fetchAssetVocabulary(vocabularyId);
237 }
238
239
246 public static com.liferay.portlet.asset.model.AssetVocabulary fetchAssetVocabularyByUuidAndGroupId(
247 java.lang.String uuid, long groupId) {
248 return getService().fetchAssetVocabularyByUuidAndGroupId(uuid, groupId);
249 }
250
251 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
252 return getService().getActionableDynamicQuery();
253 }
254
255
266 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabularies(
267 int start, int end) {
268 return getService().getAssetVocabularies(start, end);
269 }
270
271
278 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabulariesByUuidAndCompanyId(
279 java.lang.String uuid, long companyId) {
280 return getService()
281 .getAssetVocabulariesByUuidAndCompanyId(uuid, companyId);
282 }
283
284
294 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabulariesByUuidAndCompanyId(
295 java.lang.String uuid, long companyId, int start, int end,
296 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator) {
297 return getService()
298 .getAssetVocabulariesByUuidAndCompanyId(uuid, companyId,
299 start, end, orderByComparator);
300 }
301
302
307 public static int getAssetVocabulariesCount() {
308 return getService().getAssetVocabulariesCount();
309 }
310
311
318 public static com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabulary(
319 long vocabularyId)
320 throws com.liferay.portal.kernel.exception.PortalException {
321 return getService().getAssetVocabulary(vocabularyId);
322 }
323
324
332 public static com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabularyByUuidAndGroupId(
333 java.lang.String uuid, long groupId)
334 throws com.liferay.portal.kernel.exception.PortalException {
335 return getService().getAssetVocabularyByUuidAndGroupId(uuid, groupId);
336 }
337
338
343 public static java.lang.String getBeanIdentifier() {
344 return getService().getBeanIdentifier();
345 }
346
347 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
348 long companyId) {
349 return getService().getCompanyVocabularies(companyId);
350 }
351
352 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
353 com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
354 return getService().getExportActionableDynamicQuery(portletDataContext);
355 }
356
357 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
358 long groupId)
359 throws com.liferay.portal.kernel.exception.PortalException {
360 return getService().getGroupVocabularies(groupId);
361 }
362
363 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
364 long groupId, boolean addDefaultVocabulary)
365 throws com.liferay.portal.kernel.exception.PortalException {
366 return getService().getGroupVocabularies(groupId, addDefaultVocabulary);
367 }
368
369 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
370 long groupId, java.lang.String name, int start, int end,
371 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc) {
372 return getService().getGroupVocabularies(groupId, name, start, end, obc);
373 }
374
375 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
376 long[] groupIds) {
377 return getService().getGroupVocabularies(groupIds);
378 }
379
380 public static int getGroupVocabulariesCount(long[] groupIds) {
381 return getService().getGroupVocabulariesCount(groupIds);
382 }
383
384 public static com.liferay.portlet.asset.model.AssetVocabulary getGroupVocabulary(
385 long groupId, java.lang.String name)
386 throws com.liferay.portal.kernel.exception.PortalException {
387 return getService().getGroupVocabulary(groupId, name);
388 }
389
390 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
391 long[] groupIds) {
392 return getService().getGroupsVocabularies(groupIds);
393 }
394
395 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
396 long[] groupIds, java.lang.String className) {
397 return getService().getGroupsVocabularies(groupIds, className);
398 }
399
400 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
401 long[] groupIds, java.lang.String className, long classTypePK) {
402 return getService()
403 .getGroupsVocabularies(groupIds, className, classTypePK);
404 }
405
406 public static com.liferay.portal.model.PersistedModel getPersistedModel(
407 java.io.Serializable primaryKeyObj)
408 throws com.liferay.portal.kernel.exception.PortalException {
409 return getService().getPersistedModel(primaryKeyObj);
410 }
411
412 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
413 com.liferay.portal.kernel.search.Hits hits)
414 throws com.liferay.portal.kernel.exception.PortalException {
415 return getService().getVocabularies(hits);
416 }
417
418 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
419 long[] vocabularyIds)
420 throws com.liferay.portal.kernel.exception.PortalException {
421 return getService().getVocabularies(vocabularyIds);
422 }
423
424 public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
425 long vocabularyId)
426 throws com.liferay.portal.kernel.exception.PortalException {
427 return getService().getVocabulary(vocabularyId);
428 }
429
430 public static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.asset.model.AssetVocabulary> searchVocabularies(
431 long companyId, long groupId, java.lang.String title, int start, int end)
432 throws com.liferay.portal.kernel.exception.PortalException {
433 return getService()
434 .searchVocabularies(companyId, groupId, title, start, end);
435 }
436
437
442 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
443 getService().setBeanIdentifier(beanIdentifier);
444 }
445
446
452 public static com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
453 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary) {
454 return getService().updateAssetVocabulary(assetVocabulary);
455 }
456
457 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
458 long vocabularyId, java.lang.String title,
459 java.util.Map<java.util.Locale, java.lang.String> titleMap,
460 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
461 java.lang.String settings,
462 com.liferay.portal.service.ServiceContext serviceContext)
463 throws com.liferay.portal.kernel.exception.PortalException {
464 return getService()
465 .updateVocabulary(vocabularyId, title, titleMap,
466 descriptionMap, settings, serviceContext);
467 }
468
469 public static AssetVocabularyLocalService getService() {
470 if (_service == null) {
471 _service = (AssetVocabularyLocalService)PortalBeanLocatorUtil.locate(AssetVocabularyLocalService.class.getName());
472
473 ReferenceRegistry.registerReference(AssetVocabularyLocalServiceUtil.class,
474 "_service");
475 }
476
477 return _service;
478 }
479
480
483 @Deprecated
484 public void setService(AssetVocabularyLocalService service) {
485 }
486
487 private static AssetVocabularyLocalService _service;
488 }