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 AssetVocabularyServiceUtil {
038
043
044
049 public static java.lang.String getBeanIdentifier() {
050 return getService().getBeanIdentifier();
051 }
052
053
058 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059 getService().setBeanIdentifier(beanIdentifier);
060 }
061
062
066 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
067 java.util.Map<java.util.Locale, java.lang.String> titleMap,
068 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
069 java.lang.String settings,
070 com.liferay.portal.service.ServiceContext serviceContext)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException {
073 return getService()
074 .addVocabulary(titleMap, descriptionMap, settings,
075 serviceContext);
076 }
077
078 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
079 java.lang.String title,
080 java.util.Map<java.util.Locale, java.lang.String> titleMap,
081 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
082 java.lang.String settings,
083 com.liferay.portal.service.ServiceContext serviceContext)
084 throws com.liferay.portal.kernel.exception.PortalException,
085 com.liferay.portal.kernel.exception.SystemException {
086 return getService()
087 .addVocabulary(title, titleMap, descriptionMap, settings,
088 serviceContext);
089 }
090
091 public static com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
092 java.lang.String title,
093 com.liferay.portal.service.ServiceContext serviceContext)
094 throws com.liferay.portal.kernel.exception.PortalException,
095 com.liferay.portal.kernel.exception.SystemException {
096 return getService().addVocabulary(title, serviceContext);
097 }
098
099
103 public static void deleteVocabularies(long[] vocabularyIds)
104 throws com.liferay.portal.kernel.exception.PortalException,
105 com.liferay.portal.kernel.exception.SystemException {
106 getService().deleteVocabularies(vocabularyIds);
107 }
108
109 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> deleteVocabularies(
110 long[] vocabularyIds,
111 com.liferay.portal.service.ServiceContext serviceContext)
112 throws com.liferay.portal.kernel.exception.PortalException,
113 com.liferay.portal.kernel.exception.SystemException {
114 return getService().deleteVocabularies(vocabularyIds, serviceContext);
115 }
116
117 public static void deleteVocabulary(long vocabularyId)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException {
120 getService().deleteVocabulary(vocabularyId);
121 }
122
123 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
124 long companyId)
125 throws com.liferay.portal.kernel.exception.PortalException,
126 com.liferay.portal.kernel.exception.SystemException {
127 return getService().getCompanyVocabularies(companyId);
128 }
129
130 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
131 long[] groupIds)
132 throws com.liferay.portal.kernel.exception.PortalException,
133 com.liferay.portal.kernel.exception.SystemException {
134 return getService().getGroupsVocabularies(groupIds);
135 }
136
137 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
138 long[] groupIds, java.lang.String className)
139 throws com.liferay.portal.kernel.exception.PortalException,
140 com.liferay.portal.kernel.exception.SystemException {
141 return getService().getGroupsVocabularies(groupIds, className);
142 }
143
144 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
145 long groupId)
146 throws com.liferay.portal.kernel.exception.PortalException,
147 com.liferay.portal.kernel.exception.SystemException {
148 return getService().getGroupVocabularies(groupId);
149 }
150
151 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
152 long groupId, boolean createDefaultVocabulary)
153 throws com.liferay.portal.kernel.exception.PortalException,
154 com.liferay.portal.kernel.exception.SystemException {
155 return getService()
156 .getGroupVocabularies(groupId, createDefaultVocabulary);
157 }
158
159 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
160 long groupId, int start, int end,
161 com.liferay.portal.kernel.util.OrderByComparator obc)
162 throws com.liferay.portal.kernel.exception.SystemException {
163 return getService().getGroupVocabularies(groupId, start, end, obc);
164 }
165
166 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
167 long groupId, java.lang.String name, int start, int end,
168 com.liferay.portal.kernel.util.OrderByComparator obc)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().getGroupVocabularies(groupId, name, start, end, obc);
171 }
172
173 public static int getGroupVocabulariesCount(long groupId)
174 throws com.liferay.portal.kernel.exception.SystemException {
175 return getService().getGroupVocabulariesCount(groupId);
176 }
177
178 public static int getGroupVocabulariesCount(long groupId,
179 java.lang.String name)
180 throws com.liferay.portal.kernel.exception.SystemException {
181 return getService().getGroupVocabulariesCount(groupId, name);
182 }
183
184 public static com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
185 long groupId, java.lang.String title, int start, int end,
186 boolean addDefaultVocabulary,
187 com.liferay.portal.kernel.util.OrderByComparator obc)
188 throws com.liferay.portal.kernel.exception.PortalException,
189 com.liferay.portal.kernel.exception.SystemException {
190 return getService()
191 .getGroupVocabulariesDisplay(groupId, title, start, end,
192 addDefaultVocabulary, obc);
193 }
194
195 public static com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
196 long groupId, java.lang.String name, int start, int end,
197 com.liferay.portal.kernel.util.OrderByComparator obc)
198 throws com.liferay.portal.kernel.exception.PortalException,
199 com.liferay.portal.kernel.exception.SystemException {
200 return getService()
201 .getGroupVocabulariesDisplay(groupId, name, start, end, obc);
202 }
203
204
207 public static com.liferay.portal.kernel.json.JSONObject getJSONGroupVocabularies(
208 long groupId, java.lang.String name, int start, int end,
209 com.liferay.portal.kernel.util.OrderByComparator obc)
210 throws com.liferay.portal.kernel.exception.PortalException,
211 com.liferay.portal.kernel.exception.SystemException {
212 return getService()
213 .getJSONGroupVocabularies(groupId, name, start, end, obc);
214 }
215
216 public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getVocabularies(
217 long[] vocabularyIds)
218 throws com.liferay.portal.kernel.exception.PortalException,
219 com.liferay.portal.kernel.exception.SystemException {
220 return getService().getVocabularies(vocabularyIds);
221 }
222
223 public static com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
224 long vocabularyId)
225 throws com.liferay.portal.kernel.exception.PortalException,
226 com.liferay.portal.kernel.exception.SystemException {
227 return getService().getVocabulary(vocabularyId);
228 }
229
230
234 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
235 long vocabularyId,
236 java.util.Map<java.util.Locale, java.lang.String> titleMap,
237 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
238 java.lang.String settings,
239 com.liferay.portal.service.ServiceContext serviceContext)
240 throws com.liferay.portal.kernel.exception.PortalException,
241 com.liferay.portal.kernel.exception.SystemException {
242 return getService()
243 .updateVocabulary(vocabularyId, titleMap, descriptionMap,
244 settings, serviceContext);
245 }
246
247 public static com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
248 long vocabularyId, java.lang.String title,
249 java.util.Map<java.util.Locale, java.lang.String> titleMap,
250 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
251 java.lang.String settings,
252 com.liferay.portal.service.ServiceContext serviceContext)
253 throws com.liferay.portal.kernel.exception.PortalException,
254 com.liferay.portal.kernel.exception.SystemException {
255 return getService()
256 .updateVocabulary(vocabularyId, title, titleMap,
257 descriptionMap, settings, serviceContext);
258 }
259
260 public static AssetVocabularyService getService() {
261 if (_service == null) {
262 _service = (AssetVocabularyService)PortalBeanLocatorUtil.locate(AssetVocabularyService.class.getName());
263
264 ReferenceRegistry.registerReference(AssetVocabularyServiceUtil.class,
265 "_service");
266 }
267
268 return _service;
269 }
270
271
274 public void setService(AssetVocabularyService service) {
275 }
276
277 private static AssetVocabularyService _service;
278 }