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 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabulariesByUuidAndCompanyId(
290 java.lang.String uuid, long companyId) {
291 return getService()
292 .getAssetVocabulariesByUuidAndCompanyId(uuid, companyId);
293 }
294
295 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabulariesByUuidAndCompanyId(
296 java.lang.String uuid, long companyId, int start, int end,
297 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator) {
298 return getService()
299 .getAssetVocabulariesByUuidAndCompanyId(uuid, companyId,
300 start, end, orderByComparator);
301 }
302
303
308 public static int getAssetVocabulariesCount() {
309 return getService().getAssetVocabulariesCount();
310 }
311
312
319 public static com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabulary(
320 long vocabularyId)
321 throws com.liferay.portal.kernel.exception.PortalException {
322 return getService().getAssetVocabulary(vocabularyId);
323 }
324
325
333 public static com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabularyByUuidAndGroupId(
334 java.lang.String uuid, long groupId)
335 throws com.liferay.portal.kernel.exception.PortalException {
336 return getService().getAssetVocabularyByUuidAndGroupId(uuid, groupId);
337 }
338
339
344 public static java.lang.String getBeanIdentifier() {
345 return getService().getBeanIdentifier();
346 }
347
348 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
349 long companyId) {
350 return getService().getCompanyVocabularies(companyId);
351 }
352
353 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
354 com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) {
355 return getService().getExportActionableDynamicQuery(portletDataContext);
356 }
357
358 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
359 long groupId)
360 throws com.liferay.portal.kernel.exception.PortalException {
361 return getService().getGroupVocabularies(groupId);
362 }
363
364 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
365 long groupId, boolean addDefaultVocabulary)
366 throws com.liferay.portal.kernel.exception.PortalException {
367 return getService().getGroupVocabularies(groupId, addDefaultVocabulary);
368 }
369
370 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
371 long groupId, java.lang.String name, int start, int end,
372 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc) {
373 return getService().getGroupVocabularies(groupId, name, start, end, obc);
374 }
375
376 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
377 long[] groupIds) {
378 return getService().getGroupVocabularies(groupIds);
379 }
380
381 public static int getGroupVocabulariesCount(long[] groupIds) {
382 return getService().getGroupVocabulariesCount(groupIds);
383 }
384
385 public static com.liferay.portlet.asset.model.AssetVocabulary getGroupVocabulary(
386 long groupId, java.lang.String name)
387 throws com.liferay.portal.kernel.exception.PortalException {
388 return getService().getGroupVocabulary(groupId, name);
389 }
390
391 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
392 long[] groupIds) {
393 return getService().getGroupsVocabularies(groupIds);
394 }
395
396 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
397 long[] groupIds, java.lang.String className) {
398 return getService().getGroupsVocabularies(groupIds, className);
399 }
400
401 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
402 long[] groupIds, java.lang.String className, long classTypePK) {
403 return getService()
404 .getGroupsVocabularies(groupIds, className, classTypePK);
405 }
406
407 public static com.liferay.portal.model.PersistedModel getPersistedModel(
408 java.io.Serializable primaryKeyObj)
409 throws com.liferay.portal.kernel.exception.PortalException {
410 return getService().getPersistedModel(primaryKeyObj);
411 }
412
413 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
414 long[] vocabularyIds)
415 throws com.liferay.portal.kernel.exception.PortalException {
416 return getService().getVocabularies(vocabularyIds);
417 }
418
419 public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
420 long vocabularyId)
421 throws com.liferay.portal.kernel.exception.PortalException {
422 return getService().getVocabulary(vocabularyId);
423 }
424
425 public static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.asset.model.AssetVocabulary> searchVocabularies(
426 long companyId, long groupId, java.lang.String title, int start, int end)
427 throws com.liferay.portal.kernel.exception.PortalException {
428 return getService()
429 .searchVocabularies(companyId, groupId, title, start, end);
430 }
431
432
437 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
438 getService().setBeanIdentifier(beanIdentifier);
439 }
440
441
447 public static com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
448 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary) {
449 return getService().updateAssetVocabulary(assetVocabulary);
450 }
451
452 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
453 long vocabularyId, java.lang.String title,
454 java.util.Map<java.util.Locale, java.lang.String> titleMap,
455 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
456 java.lang.String settings,
457 com.liferay.portal.service.ServiceContext serviceContext)
458 throws com.liferay.portal.kernel.exception.PortalException {
459 return getService()
460 .updateVocabulary(vocabularyId, title, titleMap,
461 descriptionMap, settings, serviceContext);
462 }
463
464
467 @Deprecated
468 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
469 long vocabularyId,
470 java.util.Map<java.util.Locale, java.lang.String> titleMap,
471 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
472 java.lang.String settings,
473 com.liferay.portal.service.ServiceContext serviceContext)
474 throws com.liferay.portal.kernel.exception.PortalException {
475 return getService()
476 .updateVocabulary(vocabularyId, titleMap, descriptionMap,
477 settings, serviceContext);
478 }
479
480 public static AssetVocabularyLocalService getService() {
481 if (_service == null) {
482 _service = (AssetVocabularyLocalService)PortalBeanLocatorUtil.locate(AssetVocabularyLocalService.class.getName());
483
484 ReferenceRegistry.registerReference(AssetVocabularyLocalServiceUtil.class,
485 "_service");
486 }
487
488 return _service;
489 }
490
491
494 @Deprecated
495 public void setService(AssetVocabularyLocalService service) {
496 }
497
498 private static AssetVocabularyLocalService _service;
499 }