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
040 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
041 java.util.Map<java.util.Locale, java.lang.String> titleMap,
042 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
043 java.lang.String settings,
044 com.liferay.portal.service.ServiceContext serviceContext)
045 throws com.liferay.portal.kernel.exception.PortalException,
046 com.liferay.portal.kernel.exception.SystemException {
047 return getService()
048 .addVocabulary(titleMap, descriptionMap, settings,
049 serviceContext);
050 }
051
052 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
053 java.lang.String title,
054 java.util.Map<java.util.Locale, java.lang.String> titleMap,
055 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
056 java.lang.String settings,
057 com.liferay.portal.service.ServiceContext serviceContext)
058 throws com.liferay.portal.kernel.exception.PortalException,
059 com.liferay.portal.kernel.exception.SystemException {
060 return getService()
061 .addVocabulary(title, titleMap, descriptionMap, settings,
062 serviceContext);
063 }
064
065 public static void deleteVocabulary(long vocabularyId)
066 throws com.liferay.portal.kernel.exception.PortalException,
067 com.liferay.portal.kernel.exception.SystemException {
068 getService().deleteVocabulary(vocabularyId);
069 }
070
071 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
072 long companyId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 return getService().getCompanyVocabularies(companyId);
076 }
077
078 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
079 long[] groupIds)
080 throws com.liferay.portal.kernel.exception.PortalException,
081 com.liferay.portal.kernel.exception.SystemException {
082 return getService().getGroupsVocabularies(groupIds);
083 }
084
085 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
086 long groupId)
087 throws com.liferay.portal.kernel.exception.PortalException,
088 com.liferay.portal.kernel.exception.SystemException {
089 return getService().getGroupVocabularies(groupId);
090 }
091
092 public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
093 long vocabularyId)
094 throws com.liferay.portal.kernel.exception.PortalException,
095 com.liferay.portal.kernel.exception.SystemException {
096 return getService().getVocabulary(vocabularyId);
097 }
098
099
102 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
103 long vocabularyId,
104 java.util.Map<java.util.Locale, java.lang.String> titleMap,
105 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
106 java.lang.String settings,
107 com.liferay.portal.service.ServiceContext serviceContext)
108 throws com.liferay.portal.kernel.exception.PortalException,
109 com.liferay.portal.kernel.exception.SystemException {
110 return getService()
111 .updateVocabulary(vocabularyId, titleMap, descriptionMap,
112 settings, serviceContext);
113 }
114
115 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
116 long vocabularyId, java.lang.String title,
117 java.util.Map<java.util.Locale, java.lang.String> titleMap,
118 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
119 java.lang.String settings,
120 com.liferay.portal.service.ServiceContext serviceContext)
121 throws com.liferay.portal.kernel.exception.PortalException,
122 com.liferay.portal.kernel.exception.SystemException {
123 return getService()
124 .updateVocabulary(vocabularyId, title, titleMap,
125 descriptionMap, settings, serviceContext);
126 }
127
128 public static AssetVocabularyService getService() {
129 if (_service == null) {
130 _service = (AssetVocabularyService)PortalBeanLocatorUtil.locate(AssetVocabularyService.class.getName());
131 }
132
133 return _service;
134 }
135
136 public void setService(AssetVocabularyService service) {
137 _service = service;
138 }
139
140 private static AssetVocabularyService _service;
141 }