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
033 public class AssetVocabularyServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
054 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055 getService().setBeanIdentifier(beanIdentifier);
056 }
057
058
061 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
062 java.util.Map<java.util.Locale, java.lang.String> titleMap,
063 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
064 java.lang.String settings,
065 com.liferay.portal.service.ServiceContext serviceContext)
066 throws com.liferay.portal.kernel.exception.PortalException,
067 com.liferay.portal.kernel.exception.SystemException {
068 return getService()
069 .addVocabulary(titleMap, descriptionMap, settings,
070 serviceContext);
071 }
072
073 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
074 java.lang.String title,
075 java.util.Map<java.util.Locale, java.lang.String> titleMap,
076 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
077 java.lang.String settings,
078 com.liferay.portal.service.ServiceContext serviceContext)
079 throws com.liferay.portal.kernel.exception.PortalException,
080 com.liferay.portal.kernel.exception.SystemException {
081 return getService()
082 .addVocabulary(title, titleMap, descriptionMap, settings,
083 serviceContext);
084 }
085
086 public static void deleteVocabularies(long[] vocabularyIds)
087 throws com.liferay.portal.kernel.exception.PortalException,
088 com.liferay.portal.kernel.exception.SystemException {
089 getService().deleteVocabularies(vocabularyIds);
090 }
091
092 public static void deleteVocabulary(long vocabularyId)
093 throws com.liferay.portal.kernel.exception.PortalException,
094 com.liferay.portal.kernel.exception.SystemException {
095 getService().deleteVocabulary(vocabularyId);
096 }
097
098 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
099 long companyId)
100 throws com.liferay.portal.kernel.exception.PortalException,
101 com.liferay.portal.kernel.exception.SystemException {
102 return getService().getCompanyVocabularies(companyId);
103 }
104
105 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
106 long[] groupIds)
107 throws com.liferay.portal.kernel.exception.PortalException,
108 com.liferay.portal.kernel.exception.SystemException {
109 return getService().getGroupsVocabularies(groupIds);
110 }
111
112 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
113 long[] groupIds, java.lang.String className)
114 throws com.liferay.portal.kernel.exception.PortalException,
115 com.liferay.portal.kernel.exception.SystemException {
116 return getService().getGroupsVocabularies(groupIds, className);
117 }
118
119 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
120 long groupId)
121 throws com.liferay.portal.kernel.exception.PortalException,
122 com.liferay.portal.kernel.exception.SystemException {
123 return getService().getGroupVocabularies(groupId);
124 }
125
126 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
127 long groupId, boolean createDefaultVocabulary)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException {
130 return getService()
131 .getGroupVocabularies(groupId, createDefaultVocabulary);
132 }
133
134 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
135 long groupId, int start, int end,
136 com.liferay.portal.kernel.util.OrderByComparator obc)
137 throws com.liferay.portal.kernel.exception.SystemException {
138 return getService().getGroupVocabularies(groupId, start, end, obc);
139 }
140
141 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
142 long groupId, java.lang.String name, int start, int end,
143 com.liferay.portal.kernel.util.OrderByComparator obc)
144 throws com.liferay.portal.kernel.exception.SystemException {
145 return getService().getGroupVocabularies(groupId, name, start, end, obc);
146 }
147
148 public static int getGroupVocabulariesCount(long groupId)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getService().getGroupVocabulariesCount(groupId);
151 }
152
153 public static int getGroupVocabulariesCount(long groupId,
154 java.lang.String name)
155 throws com.liferay.portal.kernel.exception.SystemException {
156 return getService().getGroupVocabulariesCount(groupId, name);
157 }
158
159 public static com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
160 long groupId, java.lang.String name, int start, int end,
161 com.liferay.portal.kernel.util.OrderByComparator obc)
162 throws com.liferay.portal.kernel.exception.PortalException,
163 com.liferay.portal.kernel.exception.SystemException {
164 return getService()
165 .getJSONGroupVocabularies(groupId, name, start, end, obc);
166 }
167
168 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
169 long[] vocabularyIds)
170 throws com.liferay.portal.kernel.exception.PortalException,
171 com.liferay.portal.kernel.exception.SystemException {
172 return getService().getVocabularies(vocabularyIds);
173 }
174
175 public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
176 long vocabularyId)
177 throws com.liferay.portal.kernel.exception.PortalException,
178 com.liferay.portal.kernel.exception.SystemException {
179 return getService().getVocabulary(vocabularyId);
180 }
181
182
185 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
186 long vocabularyId,
187 java.util.Map<java.util.Locale, java.lang.String> titleMap,
188 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
189 java.lang.String settings,
190 com.liferay.portal.service.ServiceContext serviceContext)
191 throws com.liferay.portal.kernel.exception.PortalException,
192 com.liferay.portal.kernel.exception.SystemException {
193 return getService()
194 .updateVocabulary(vocabularyId, titleMap, descriptionMap,
195 settings, serviceContext);
196 }
197
198 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
199 long vocabularyId, java.lang.String title,
200 java.util.Map<java.util.Locale, java.lang.String> titleMap,
201 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
202 java.lang.String settings,
203 com.liferay.portal.service.ServiceContext serviceContext)
204 throws com.liferay.portal.kernel.exception.PortalException,
205 com.liferay.portal.kernel.exception.SystemException {
206 return getService()
207 .updateVocabulary(vocabularyId, title, titleMap,
208 descriptionMap, settings, serviceContext);
209 }
210
211 public static AssetVocabularyService getService() {
212 if (_service == null) {
213 _service = (AssetVocabularyService)PortalBeanLocatorUtil.locate(AssetVocabularyService.class.getName());
214
215 ReferenceRegistry.registerReference(AssetVocabularyServiceUtil.class,
216 "_service");
217 }
218
219 return _service;
220 }
221
222
225 public void setService(AssetVocabularyService service) {
226 }
227
228 private static AssetVocabularyService _service;
229 }