001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
034 public class AssetVocabularyLocalServiceUtil {
035
040
041
048 public static com.liferay.portlet.asset.model.AssetVocabulary addAssetVocabulary(
049 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addAssetVocabulary(assetVocabulary);
052 }
053
054
060 public static com.liferay.portlet.asset.model.AssetVocabulary createAssetVocabulary(
061 long vocabularyId) {
062 return getService().createAssetVocabulary(vocabularyId);
063 }
064
065
073 public static com.liferay.portlet.asset.model.AssetVocabulary deleteAssetVocabulary(
074 long vocabularyId)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 return getService().deleteAssetVocabulary(vocabularyId);
078 }
079
080
087 public static com.liferay.portlet.asset.model.AssetVocabulary deleteAssetVocabulary(
088 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
089 throws com.liferay.portal.kernel.exception.SystemException {
090 return getService().deleteAssetVocabulary(assetVocabulary);
091 }
092
093 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
094 return getService().dynamicQuery();
095 }
096
097
104 @SuppressWarnings("rawtypes")
105 public static java.util.List dynamicQuery(
106 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().dynamicQuery(dynamicQuery);
109 }
110
111
124 @SuppressWarnings("rawtypes")
125 public static java.util.List dynamicQuery(
126 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
127 int end) throws com.liferay.portal.kernel.exception.SystemException {
128 return getService().dynamicQuery(dynamicQuery, start, end);
129 }
130
131
145 @SuppressWarnings("rawtypes")
146 public static java.util.List dynamicQuery(
147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148 int end,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.kernel.exception.SystemException {
151 return getService()
152 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
153 }
154
155
162 public static long dynamicQueryCount(
163 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return getService().dynamicQueryCount(dynamicQuery);
166 }
167
168
176 public static long dynamicQueryCount(
177 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
178 com.liferay.portal.kernel.dao.orm.Projection projection)
179 throws com.liferay.portal.kernel.exception.SystemException {
180 return getService().dynamicQueryCount(dynamicQuery, projection);
181 }
182
183 public static com.liferay.portlet.asset.model.AssetVocabulary fetchAssetVocabulary(
184 long vocabularyId)
185 throws com.liferay.portal.kernel.exception.SystemException {
186 return getService().fetchAssetVocabulary(vocabularyId);
187 }
188
189
197 public static com.liferay.portlet.asset.model.AssetVocabulary fetchAssetVocabularyByUuidAndCompanyId(
198 java.lang.String uuid, long companyId)
199 throws com.liferay.portal.kernel.exception.SystemException {
200 return getService()
201 .fetchAssetVocabularyByUuidAndCompanyId(uuid, companyId);
202 }
203
204
212 public static com.liferay.portlet.asset.model.AssetVocabulary fetchAssetVocabularyByUuidAndGroupId(
213 java.lang.String uuid, long groupId)
214 throws com.liferay.portal.kernel.exception.SystemException {
215 return getService().fetchAssetVocabularyByUuidAndGroupId(uuid, groupId);
216 }
217
218
226 public static com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabulary(
227 long vocabularyId)
228 throws com.liferay.portal.kernel.exception.PortalException,
229 com.liferay.portal.kernel.exception.SystemException {
230 return getService().getAssetVocabulary(vocabularyId);
231 }
232
233 public static com.liferay.portal.model.PersistedModel getPersistedModel(
234 java.io.Serializable primaryKeyObj)
235 throws com.liferay.portal.kernel.exception.PortalException,
236 com.liferay.portal.kernel.exception.SystemException {
237 return getService().getPersistedModel(primaryKeyObj);
238 }
239
240
249 public static com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabularyByUuidAndCompanyId(
250 java.lang.String uuid, long companyId)
251 throws com.liferay.portal.kernel.exception.PortalException,
252 com.liferay.portal.kernel.exception.SystemException {
253 return getService().getAssetVocabularyByUuidAndCompanyId(uuid, companyId);
254 }
255
256
265 public static com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabularyByUuidAndGroupId(
266 java.lang.String uuid, long groupId)
267 throws com.liferay.portal.kernel.exception.PortalException,
268 com.liferay.portal.kernel.exception.SystemException {
269 return getService().getAssetVocabularyByUuidAndGroupId(uuid, groupId);
270 }
271
272
284 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getAssetVocabularies(
285 int start, int end)
286 throws com.liferay.portal.kernel.exception.SystemException {
287 return getService().getAssetVocabularies(start, end);
288 }
289
290
296 public static int getAssetVocabulariesCount()
297 throws com.liferay.portal.kernel.exception.SystemException {
298 return getService().getAssetVocabulariesCount();
299 }
300
301
308 public static com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
309 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
310 throws com.liferay.portal.kernel.exception.SystemException {
311 return getService().updateAssetVocabulary(assetVocabulary);
312 }
313
314
319 public static java.lang.String getBeanIdentifier() {
320 return getService().getBeanIdentifier();
321 }
322
323
328 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
329 getService().setBeanIdentifier(beanIdentifier);
330 }
331
332 public static com.liferay.portlet.asset.model.AssetVocabulary addDefaultVocabulary(
333 long groupId)
334 throws com.liferay.portal.kernel.exception.PortalException,
335 com.liferay.portal.kernel.exception.SystemException {
336 return getService().addDefaultVocabulary(groupId);
337 }
338
339
342 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
343 long userId,
344 java.util.Map<java.util.Locale, java.lang.String> titleMap,
345 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
346 java.lang.String settings,
347 com.liferay.portal.service.ServiceContext serviceContext)
348 throws com.liferay.portal.kernel.exception.PortalException,
349 com.liferay.portal.kernel.exception.SystemException {
350 return getService()
351 .addVocabulary(userId, titleMap, descriptionMap, settings,
352 serviceContext);
353 }
354
355 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
356 long userId, java.lang.String title,
357 java.util.Map<java.util.Locale, java.lang.String> titleMap,
358 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
359 java.lang.String settings,
360 com.liferay.portal.service.ServiceContext serviceContext)
361 throws com.liferay.portal.kernel.exception.PortalException,
362 com.liferay.portal.kernel.exception.SystemException {
363 return getService()
364 .addVocabulary(userId, title, titleMap, descriptionMap,
365 settings, serviceContext);
366 }
367
368 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
369 long userId, java.lang.String title,
370 com.liferay.portal.service.ServiceContext serviceContext)
371 throws com.liferay.portal.kernel.exception.PortalException,
372 com.liferay.portal.kernel.exception.SystemException {
373 return getService().addVocabulary(userId, title, serviceContext);
374 }
375
376 public static void addVocabularyResources(
377 com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
378 boolean addGroupPermissions, boolean addGuestPermissions)
379 throws com.liferay.portal.kernel.exception.PortalException,
380 com.liferay.portal.kernel.exception.SystemException {
381 getService()
382 .addVocabularyResources(vocabulary, addGroupPermissions,
383 addGuestPermissions);
384 }
385
386 public static void addVocabularyResources(
387 com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
388 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
389 throws com.liferay.portal.kernel.exception.PortalException,
390 com.liferay.portal.kernel.exception.SystemException {
391 getService()
392 .addVocabularyResources(vocabulary, groupPermissions,
393 guestPermissions);
394 }
395
396 public static void deleteVocabularies(long groupId)
397 throws com.liferay.portal.kernel.exception.PortalException,
398 com.liferay.portal.kernel.exception.SystemException {
399 getService().deleteVocabularies(groupId);
400 }
401
402 public static void deleteVocabulary(
403 com.liferay.portlet.asset.model.AssetVocabulary vocabulary)
404 throws com.liferay.portal.kernel.exception.PortalException,
405 com.liferay.portal.kernel.exception.SystemException {
406 getService().deleteVocabulary(vocabulary);
407 }
408
409 public static void deleteVocabulary(long vocabularyId)
410 throws com.liferay.portal.kernel.exception.PortalException,
411 com.liferay.portal.kernel.exception.SystemException {
412 getService().deleteVocabulary(vocabularyId);
413 }
414
415 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
416 long companyId)
417 throws com.liferay.portal.kernel.exception.SystemException {
418 return getService().getCompanyVocabularies(companyId);
419 }
420
421 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
422 long[] groupIds)
423 throws com.liferay.portal.kernel.exception.PortalException,
424 com.liferay.portal.kernel.exception.SystemException {
425 return getService().getGroupsVocabularies(groupIds);
426 }
427
428 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
429 long[] groupIds, java.lang.String className)
430 throws com.liferay.portal.kernel.exception.PortalException,
431 com.liferay.portal.kernel.exception.SystemException {
432 return getService().getGroupsVocabularies(groupIds, className);
433 }
434
435 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
436 long groupId)
437 throws com.liferay.portal.kernel.exception.PortalException,
438 com.liferay.portal.kernel.exception.SystemException {
439 return getService().getGroupVocabularies(groupId);
440 }
441
442 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
443 long groupId, boolean addDefaultVocabulary)
444 throws com.liferay.portal.kernel.exception.PortalException,
445 com.liferay.portal.kernel.exception.SystemException {
446 return getService().getGroupVocabularies(groupId, addDefaultVocabulary);
447 }
448
449 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
450 long groupId, java.lang.String name, int start, int end,
451 com.liferay.portal.kernel.util.OrderByComparator obc)
452 throws com.liferay.portal.kernel.exception.SystemException {
453 return getService().getGroupVocabularies(groupId, name, start, end, obc);
454 }
455
456 public static com.liferay.portlet.asset.model.AssetVocabulary getGroupVocabulary(
457 long groupId, java.lang.String name)
458 throws com.liferay.portal.kernel.exception.PortalException,
459 com.liferay.portal.kernel.exception.SystemException {
460 return getService().getGroupVocabulary(groupId, name);
461 }
462
463 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
464 long[] vocabularyIds)
465 throws com.liferay.portal.kernel.exception.PortalException,
466 com.liferay.portal.kernel.exception.SystemException {
467 return getService().getVocabularies(vocabularyIds);
468 }
469
470 public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
471 long vocabularyId)
472 throws com.liferay.portal.kernel.exception.PortalException,
473 com.liferay.portal.kernel.exception.SystemException {
474 return getService().getVocabulary(vocabularyId);
475 }
476
477
480 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
481 long vocabularyId,
482 java.util.Map<java.util.Locale, java.lang.String> titleMap,
483 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
484 java.lang.String settings,
485 com.liferay.portal.service.ServiceContext serviceContext)
486 throws com.liferay.portal.kernel.exception.PortalException,
487 com.liferay.portal.kernel.exception.SystemException {
488 return getService()
489 .updateVocabulary(vocabularyId, titleMap, descriptionMap,
490 settings, serviceContext);
491 }
492
493 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
494 long vocabularyId, java.lang.String title,
495 java.util.Map<java.util.Locale, java.lang.String> titleMap,
496 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
497 java.lang.String settings,
498 com.liferay.portal.service.ServiceContext serviceContext)
499 throws com.liferay.portal.kernel.exception.PortalException,
500 com.liferay.portal.kernel.exception.SystemException {
501 return getService()
502 .updateVocabulary(vocabularyId, title, titleMap,
503 descriptionMap, settings, serviceContext);
504 }
505
506 public static AssetVocabularyLocalService getService() {
507 if (_service == null) {
508 _service = (AssetVocabularyLocalService)PortalBeanLocatorUtil.locate(AssetVocabularyLocalService.class.getName());
509
510 ReferenceRegistry.registerReference(AssetVocabularyLocalServiceUtil.class,
511 "_service");
512 }
513
514 return _service;
515 }
516
517
520 public void setService(AssetVocabularyLocalService service) {
521 }
522
523 private static AssetVocabularyLocalService _service;
524 }