001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
036 public class AssetVocabularyServiceUtil {
037 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
038 java.util.Map<java.util.Locale, java.lang.String> titleMap,
039 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
040 java.lang.String settings,
041 com.liferay.portal.service.ServiceContext serviceContext)
042 throws com.liferay.portal.kernel.exception.PortalException,
043 com.liferay.portal.kernel.exception.SystemException {
044 return getService()
045 .addVocabulary(titleMap, descriptionMap, settings,
046 serviceContext);
047 }
048
049 public static void deleteVocabulary(long vocabularyId)
050 throws com.liferay.portal.kernel.exception.PortalException,
051 com.liferay.portal.kernel.exception.SystemException {
052 getService().deleteVocabulary(vocabularyId);
053 }
054
055 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
056 long companyId)
057 throws com.liferay.portal.kernel.exception.PortalException,
058 com.liferay.portal.kernel.exception.SystemException {
059 return getService().getCompanyVocabularies(companyId);
060 }
061
062 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
063 long[] groupIds)
064 throws com.liferay.portal.kernel.exception.PortalException,
065 com.liferay.portal.kernel.exception.SystemException {
066 return getService().getGroupsVocabularies(groupIds);
067 }
068
069 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
070 long groupId)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException {
073 return getService().getGroupVocabularies(groupId);
074 }
075
076 public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
077 long vocabularyId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 return getService().getVocabulary(vocabularyId);
081 }
082
083 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
084 long vocabularyId,
085 java.util.Map<java.util.Locale, java.lang.String> titleMap,
086 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
087 java.lang.String settings,
088 com.liferay.portal.service.ServiceContext serviceContext)
089 throws com.liferay.portal.kernel.exception.PortalException,
090 com.liferay.portal.kernel.exception.SystemException {
091 return getService()
092 .updateVocabulary(vocabularyId, titleMap, descriptionMap,
093 settings, serviceContext);
094 }
095
096 public static AssetVocabularyService getService() {
097 if (_service == null) {
098 _service = (AssetVocabularyService)PortalBeanLocatorUtil.locate(AssetVocabularyService.class.getName());
099 }
100
101 return _service;
102 }
103
104 public void setService(AssetVocabularyService service) {
105 _service = service;
106 }
107
108 private static AssetVocabularyService _service;
109 }