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 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
092 throws com.liferay.portal.kernel.exception.PortalException {
093 getService()
094 .addVocabularyResources(vocabulary, groupPermissions,
095 guestPermissions);
096 }
097
098
104 public static com.liferay.portlet.asset.model.AssetVocabulary createAssetVocabulary(
105 long vocabularyId) {
106 return getService().createAssetVocabulary(vocabularyId);
107 }
108
109
115 public static com.liferay.portlet.asset.model.AssetVocabulary deleteAssetVocabulary(
116 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary) {
117 return getService().deleteAssetVocabulary(assetVocabulary);
118 }
119
120
127 public static com.liferay.portlet.asset.model.AssetVocabulary deleteAssetVocabulary(
128 long vocabularyId)
129 throws com.liferay.portal.kernel.exception.PortalException {
130 return getService().deleteAssetVocabulary(vocabularyId);
131 }
132
133
136 public static com.liferay.portal.model.PersistedModel deletePersistedModel(
137 com.liferay.portal.model.PersistedModel persistedModel)
138 throws com.liferay.portal.kernel.exception.PortalException {
139 return getService().deletePersistedModel(persistedModel);
140 }
141
142 public static void deleteVocabularies(long groupId)
143 throws com.liferay.portal.kernel.exception.PortalException {
144 getService().deleteVocabularies(groupId);
145 }
146
147 public static void deleteVocabulary(
148 com.liferay.portlet.asset.model.AssetVocabulary vocabulary)
149 throws com.liferay.portal.kernel.exception.PortalException {
150 getService().deleteVocabulary(vocabulary);
151 }
152
153 public static void deleteVocabulary(long vocabularyId)
154 throws com.liferay.portal.kernel.exception.PortalException {
155 getService().deleteVocabulary(vocabularyId);
156 }
157
158 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
159 return getService().dynamicQuery();
160 }
161
162
168 public static <T> java.util.List<T> dynamicQuery(
169 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
170 return getService().dynamicQuery(dynamicQuery);
171 }
172
173
185 public static <T> java.util.List<T> dynamicQuery(
186 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
187 int end) {
188 return getService().dynamicQuery(dynamicQuery, start, end);
189 }
190
191
204 public static <T> java.util.List<T> dynamicQuery(
205 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
206 int end,
207 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
208 return getService()
209 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
210 }
211
212
218 public static long dynamicQueryCount(
219 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
220 return getService().dynamicQueryCount(dynamicQuery);
221 }
222
223
230 public static long dynamicQueryCount(
231 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
232 com.liferay.portal.kernel.dao.orm.Projection projection) {
233 return getService().dynamicQueryCount(dynamicQuery, projection);
234 }
235
236 public static com.liferay.portlet.asset.model.AssetVocabulary fetchAssetVocabulary(
237 long vocabularyId) {
238 return getService().fetchAssetVocabulary(vocabularyId);
239 }
240
241
248 public static com.liferay.portlet.asset.model.AssetVocabulary fetchAssetVocabularyByUuidAndGroupId(
249 java.lang.String uuid, long groupId) {
250 return getService().fetchAssetVocabularyByUuidAndGroupId(uuid, groupId);
251 }
252
253 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
254 return getService().getActionableDynamicQuery();
255 }
256
257
268 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabularies(
269 int start, int end) {
270 return getService().getAssetVocabularies(start, end);
271 }
272
273
280 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabulariesByUuidAndCompanyId(
281 java.lang.String uuid, long companyId) {
282 return getService()
283 .getAssetVocabulariesByUuidAndCompanyId(uuid, companyId);
284 }
285
286
296 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabulariesByUuidAndCompanyId(
297 java.lang.String uuid, long companyId, int start, int end,
298 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator) {
299 return getService()
300 .getAssetVocabulariesByUuidAndCompanyId(uuid, companyId,
301 start, end, orderByComparator);
302 }
303
304
309 public static int getAssetVocabulariesCount() {
310 return getService().getAssetVocabulariesCount();
311 }
312
313
320 public static com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabulary(
321 long vocabularyId)
322 throws com.liferay.portal.kernel.exception.PortalException {
323 return getService().getAssetVocabulary(vocabularyId);
324 }
325
326
334 public static com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabularyByUuidAndGroupId(
335 java.lang.String uuid, long groupId)
336 throws com.liferay.portal.kernel.exception.PortalException {
337 return getService().getAssetVocabularyByUuidAndGroupId(uuid, groupId);
338 }
339
340
345 public static java.lang.String getBeanIdentifier() {
346 return getService().getBeanIdentifier();
347 }
348
349 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
350 long companyId) {
351 return getService().getCompanyVocabularies(companyId);
352 }
353
354 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
355 com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
356 return getService().getExportActionableDynamicQuery(portletDataContext);
357 }
358
359 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
360 long groupId)
361 throws com.liferay.portal.kernel.exception.PortalException {
362 return getService().getGroupVocabularies(groupId);
363 }
364
365 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
366 long groupId, boolean addDefaultVocabulary)
367 throws com.liferay.portal.kernel.exception.PortalException {
368 return getService().getGroupVocabularies(groupId, addDefaultVocabulary);
369 }
370
371 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
372 long groupId, java.lang.String name, int start, int end,
373 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> obc) {
374 return getService().getGroupVocabularies(groupId, name, start, end, obc);
375 }
376
377 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
378 long[] groupIds) {
379 return getService().getGroupVocabularies(groupIds);
380 }
381
382 public static int getGroupVocabulariesCount(long[] groupIds) {
383 return getService().getGroupVocabulariesCount(groupIds);
384 }
385
386 public static com.liferay.portlet.asset.model.AssetVocabulary getGroupVocabulary(
387 long groupId, java.lang.String name)
388 throws com.liferay.portal.kernel.exception.PortalException {
389 return getService().getGroupVocabulary(groupId, name);
390 }
391
392 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
393 long[] groupIds) {
394 return getService().getGroupsVocabularies(groupIds);
395 }
396
397 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
398 long[] groupIds, java.lang.String className) {
399 return getService().getGroupsVocabularies(groupIds, className);
400 }
401
402 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
403 long[] groupIds, java.lang.String className, long classTypePK) {
404 return getService()
405 .getGroupsVocabularies(groupIds, className, classTypePK);
406 }
407
408 public static com.liferay.portal.model.PersistedModel getPersistedModel(
409 java.io.Serializable primaryKeyObj)
410 throws com.liferay.portal.kernel.exception.PortalException {
411 return getService().getPersistedModel(primaryKeyObj);
412 }
413
414 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
415 com.liferay.portal.kernel.search.Hits hits)
416 throws com.liferay.portal.kernel.exception.PortalException {
417 return getService().getVocabularies(hits);
418 }
419
420 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
421 long[] vocabularyIds)
422 throws com.liferay.portal.kernel.exception.PortalException {
423 return getService().getVocabularies(vocabularyIds);
424 }
425
426 public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
427 long vocabularyId)
428 throws com.liferay.portal.kernel.exception.PortalException {
429 return getService().getVocabulary(vocabularyId);
430 }
431
432 public static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portlet.asset.model.AssetVocabulary> searchVocabularies(
433 long companyId, long groupId, java.lang.String title, int start, int end)
434 throws com.liferay.portal.kernel.exception.PortalException {
435 return getService()
436 .searchVocabularies(companyId, groupId, title, start, end);
437 }
438
439
444 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
445 getService().setBeanIdentifier(beanIdentifier);
446 }
447
448
454 public static com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
455 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary) {
456 return getService().updateAssetVocabulary(assetVocabulary);
457 }
458
459 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
460 long vocabularyId, java.lang.String title,
461 java.util.Map<java.util.Locale, java.lang.String> titleMap,
462 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
463 java.lang.String settings,
464 com.liferay.portal.service.ServiceContext serviceContext)
465 throws com.liferay.portal.kernel.exception.PortalException {
466 return getService()
467 .updateVocabulary(vocabularyId, title, titleMap,
468 descriptionMap, settings, serviceContext);
469 }
470
471 public static AssetVocabularyLocalService getService() {
472 if (_service == null) {
473 _service = (AssetVocabularyLocalService)PortalBeanLocatorUtil.locate(AssetVocabularyLocalService.class.getName());
474
475 ReferenceRegistry.registerReference(AssetVocabularyLocalServiceUtil.class,
476 "_service");
477 }
478
479 return _service;
480 }
481
482
485 @Deprecated
486 public void setService(AssetVocabularyLocalService service) {
487 }
488
489 private static AssetVocabularyLocalService _service;
490 }