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 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
339 long companyId) {
340 return getService().getCompanyVocabularies(companyId);
341 }
342
343 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
344 com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
345 return getService().getExportActionableDynamicQuery(portletDataContext);
346 }
347
348 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
349 long groupId)
350 throws com.liferay.portal.kernel.exception.PortalException {
351 return getService().getGroupVocabularies(groupId);
352 }
353
354 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
355 long groupId, boolean addDefaultVocabulary)
356 throws com.liferay.portal.kernel.exception.PortalException {
357 return getService().getGroupVocabularies(groupId, addDefaultVocabulary);
358 }
359
360 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
361 long groupId, java.lang.String name, int start, int end,
362 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc) {
363 return getService().getGroupVocabularies(groupId, name, start, end, obc);
364 }
365
366 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
367 long[] groupIds) {
368 return getService().getGroupVocabularies(groupIds);
369 }
370
371 public static int getGroupVocabulariesCount(long[] groupIds) {
372 return getService().getGroupVocabulariesCount(groupIds);
373 }
374
375 public static com.liferay.portlet.asset.model.AssetVocabulary getGroupVocabulary(
376 long groupId, java.lang.String name)
377 throws com.liferay.portal.kernel.exception.PortalException {
378 return getService().getGroupVocabulary(groupId, name);
379 }
380
381 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
382 long[] groupIds) {
383 return getService().getGroupsVocabularies(groupIds);
384 }
385
386 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
387 long[] groupIds, java.lang.String className) {
388 return getService().getGroupsVocabularies(groupIds, className);
389 }
390
391 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
392 long[] groupIds, java.lang.String className, long classTypePK) {
393 return getService()
394 .getGroupsVocabularies(groupIds, className, classTypePK);
395 }
396
397 public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
398 return getService().getIndexableActionableDynamicQuery();
399 }
400
401
406 public static java.lang.String getOSGiServiceIdentifier() {
407 return getService().getOSGiServiceIdentifier();
408 }
409
410 public static com.liferay.portal.model.PersistedModel getPersistedModel(
411 java.io.Serializable primaryKeyObj)
412 throws com.liferay.portal.kernel.exception.PortalException {
413 return getService().getPersistedModel(primaryKeyObj);
414 }
415
416 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
417 com.liferay.portal.kernel.search.Hits hits)
418 throws com.liferay.portal.kernel.exception.PortalException {
419 return getService().getVocabularies(hits);
420 }
421
422 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
423 long[] vocabularyIds)
424 throws com.liferay.portal.kernel.exception.PortalException {
425 return getService().getVocabularies(vocabularyIds);
426 }
427
428 public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
429 long vocabularyId)
430 throws com.liferay.portal.kernel.exception.PortalException {
431 return getService().getVocabulary(vocabularyId);
432 }
433
434 public static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.asset.model.AssetVocabulary> searchVocabularies(
435 long companyId, long groupId, java.lang.String title, int start, int end)
436 throws com.liferay.portal.kernel.exception.PortalException {
437 return getService()
438 .searchVocabularies(companyId, groupId, title, start, end);
439 }
440
441 public static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.asset.model.AssetVocabulary> searchVocabularies(
442 long companyId, long groupId, java.lang.String title, int start,
443 int end, com.liferay.portal.kernel.search.Sort sort)
444 throws com.liferay.portal.kernel.exception.PortalException {
445 return getService()
446 .searchVocabularies(companyId, groupId, title, start, end,
447 sort);
448 }
449
450
456 public static com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
457 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary) {
458 return getService().updateAssetVocabulary(assetVocabulary);
459 }
460
461 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
462 long vocabularyId, java.lang.String title,
463 java.util.Map<java.util.Locale, java.lang.String> titleMap,
464 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
465 java.lang.String settings,
466 com.liferay.portal.service.ServiceContext serviceContext)
467 throws com.liferay.portal.kernel.exception.PortalException {
468 return getService()
469 .updateVocabulary(vocabularyId, title, titleMap,
470 descriptionMap, settings, serviceContext);
471 }
472
473 public static AssetVocabularyLocalService getService() {
474 if (_service == null) {
475 _service = (AssetVocabularyLocalService)PortalBeanLocatorUtil.locate(AssetVocabularyLocalService.class.getName());
476
477 ReferenceRegistry.registerReference(AssetVocabularyLocalServiceUtil.class,
478 "_service");
479 }
480
481 return _service;
482 }
483
484 private static AssetVocabularyLocalService _service;
485 }