001
014
015 package com.liferay.portlet.asset.service.http;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019 import com.liferay.portal.kernel.util.LocalizationUtil;
020
021 import com.liferay.portlet.asset.service.AssetVocabularyServiceUtil;
022
023 import java.rmi.RemoteException;
024
025 import java.util.Locale;
026 import java.util.Map;
027
028
068 public class AssetVocabularyServiceSoap {
069
073 public static com.liferay.portlet.asset.model.AssetVocabularySoap addVocabulary(
074 java.lang.String[] titleMapLanguageIds,
075 java.lang.String[] titleMapValues,
076 java.lang.String[] descriptionMapLanguageIds,
077 java.lang.String[] descriptionMapValues, java.lang.String settings,
078 com.liferay.portal.service.ServiceContext serviceContext)
079 throws RemoteException {
080 try {
081 Map<Locale, String> titleMap = LocalizationUtil.getLocalizationMap(titleMapLanguageIds,
082 titleMapValues);
083 Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
084 descriptionMapValues);
085
086 com.liferay.portlet.asset.model.AssetVocabulary returnValue = AssetVocabularyServiceUtil.addVocabulary(titleMap,
087 descriptionMap, settings, serviceContext);
088
089 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModel(returnValue);
090 }
091 catch (Exception e) {
092 _log.error(e, e);
093
094 throw new RemoteException(e.getMessage());
095 }
096 }
097
098 public static com.liferay.portlet.asset.model.AssetVocabularySoap addVocabulary(
099 java.lang.String title, java.lang.String[] titleMapLanguageIds,
100 java.lang.String[] titleMapValues,
101 java.lang.String[] descriptionMapLanguageIds,
102 java.lang.String[] descriptionMapValues, java.lang.String settings,
103 com.liferay.portal.service.ServiceContext serviceContext)
104 throws RemoteException {
105 try {
106 Map<Locale, String> titleMap = LocalizationUtil.getLocalizationMap(titleMapLanguageIds,
107 titleMapValues);
108 Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
109 descriptionMapValues);
110
111 com.liferay.portlet.asset.model.AssetVocabulary returnValue = AssetVocabularyServiceUtil.addVocabulary(title,
112 titleMap, descriptionMap, settings, serviceContext);
113
114 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModel(returnValue);
115 }
116 catch (Exception e) {
117 _log.error(e, e);
118
119 throw new RemoteException(e.getMessage());
120 }
121 }
122
123 public static com.liferay.portlet.asset.model.AssetVocabularySoap addVocabulary(
124 java.lang.String title,
125 com.liferay.portal.service.ServiceContext serviceContext)
126 throws RemoteException {
127 try {
128 com.liferay.portlet.asset.model.AssetVocabulary returnValue = AssetVocabularyServiceUtil.addVocabulary(title,
129 serviceContext);
130
131 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModel(returnValue);
132 }
133 catch (Exception e) {
134 _log.error(e, e);
135
136 throw new RemoteException(e.getMessage());
137 }
138 }
139
140
144 public static void deleteVocabularies(long[] vocabularyIds)
145 throws RemoteException {
146 try {
147 AssetVocabularyServiceUtil.deleteVocabularies(vocabularyIds);
148 }
149 catch (Exception e) {
150 _log.error(e, e);
151
152 throw new RemoteException(e.getMessage());
153 }
154 }
155
156 public static com.liferay.portlet.asset.model.AssetVocabularySoap[] deleteVocabularies(
157 long[] vocabularyIds,
158 com.liferay.portal.service.ServiceContext serviceContext)
159 throws RemoteException {
160 try {
161 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> returnValue =
162 AssetVocabularyServiceUtil.deleteVocabularies(vocabularyIds,
163 serviceContext);
164
165 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModels(returnValue);
166 }
167 catch (Exception e) {
168 _log.error(e, e);
169
170 throw new RemoteException(e.getMessage());
171 }
172 }
173
174 public static void deleteVocabulary(long vocabularyId)
175 throws RemoteException {
176 try {
177 AssetVocabularyServiceUtil.deleteVocabulary(vocabularyId);
178 }
179 catch (Exception e) {
180 _log.error(e, e);
181
182 throw new RemoteException(e.getMessage());
183 }
184 }
185
186 public static com.liferay.portlet.asset.model.AssetVocabularySoap[] getCompanyVocabularies(
187 long companyId) throws RemoteException {
188 try {
189 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> returnValue =
190 AssetVocabularyServiceUtil.getCompanyVocabularies(companyId);
191
192 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModels(returnValue);
193 }
194 catch (Exception e) {
195 _log.error(e, e);
196
197 throw new RemoteException(e.getMessage());
198 }
199 }
200
201 public static com.liferay.portlet.asset.model.AssetVocabularySoap[] getGroupsVocabularies(
202 long[] groupIds) throws RemoteException {
203 try {
204 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> returnValue =
205 AssetVocabularyServiceUtil.getGroupsVocabularies(groupIds);
206
207 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModels(returnValue);
208 }
209 catch (Exception e) {
210 _log.error(e, e);
211
212 throw new RemoteException(e.getMessage());
213 }
214 }
215
216 public static com.liferay.portlet.asset.model.AssetVocabularySoap[] getGroupsVocabularies(
217 long[] groupIds, java.lang.String className) throws RemoteException {
218 try {
219 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> returnValue =
220 AssetVocabularyServiceUtil.getGroupsVocabularies(groupIds,
221 className);
222
223 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModels(returnValue);
224 }
225 catch (Exception e) {
226 _log.error(e, e);
227
228 throw new RemoteException(e.getMessage());
229 }
230 }
231
232 public static com.liferay.portlet.asset.model.AssetVocabularySoap[] getGroupVocabularies(
233 long groupId) throws RemoteException {
234 try {
235 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> returnValue =
236 AssetVocabularyServiceUtil.getGroupVocabularies(groupId);
237
238 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModels(returnValue);
239 }
240 catch (Exception e) {
241 _log.error(e, e);
242
243 throw new RemoteException(e.getMessage());
244 }
245 }
246
247 public static com.liferay.portlet.asset.model.AssetVocabularySoap[] getGroupVocabularies(
248 long groupId, boolean createDefaultVocabulary)
249 throws RemoteException {
250 try {
251 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> returnValue =
252 AssetVocabularyServiceUtil.getGroupVocabularies(groupId,
253 createDefaultVocabulary);
254
255 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModels(returnValue);
256 }
257 catch (Exception e) {
258 _log.error(e, e);
259
260 throw new RemoteException(e.getMessage());
261 }
262 }
263
264 public static com.liferay.portlet.asset.model.AssetVocabularySoap[] getGroupVocabularies(
265 long groupId, int start, int end,
266 com.liferay.portal.kernel.util.OrderByComparator obc)
267 throws RemoteException {
268 try {
269 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> returnValue =
270 AssetVocabularyServiceUtil.getGroupVocabularies(groupId, start,
271 end, obc);
272
273 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModels(returnValue);
274 }
275 catch (Exception e) {
276 _log.error(e, e);
277
278 throw new RemoteException(e.getMessage());
279 }
280 }
281
282 public static com.liferay.portlet.asset.model.AssetVocabularySoap[] getGroupVocabularies(
283 long groupId, java.lang.String name, int start, int end,
284 com.liferay.portal.kernel.util.OrderByComparator obc)
285 throws RemoteException {
286 try {
287 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> returnValue =
288 AssetVocabularyServiceUtil.getGroupVocabularies(groupId, name,
289 start, end, obc);
290
291 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModels(returnValue);
292 }
293 catch (Exception e) {
294 _log.error(e, e);
295
296 throw new RemoteException(e.getMessage());
297 }
298 }
299
300 public static int getGroupVocabulariesCount(long groupId)
301 throws RemoteException {
302 try {
303 int returnValue = AssetVocabularyServiceUtil.getGroupVocabulariesCount(groupId);
304
305 return returnValue;
306 }
307 catch (Exception e) {
308 _log.error(e, e);
309
310 throw new RemoteException(e.getMessage());
311 }
312 }
313
314 public static int getGroupVocabulariesCount(long groupId,
315 java.lang.String name) throws RemoteException {
316 try {
317 int returnValue = AssetVocabularyServiceUtil.getGroupVocabulariesCount(groupId,
318 name);
319
320 return returnValue;
321 }
322 catch (Exception e) {
323 _log.error(e, e);
324
325 throw new RemoteException(e.getMessage());
326 }
327 }
328
329 public static com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
330 long groupId, java.lang.String name, int start, int end,
331 boolean addDefaultVocabulary,
332 com.liferay.portal.kernel.util.OrderByComparator obc)
333 throws RemoteException {
334 try {
335 com.liferay.portlet.asset.model.AssetVocabularyDisplay returnValue = AssetVocabularyServiceUtil.getGroupVocabulariesDisplay(groupId,
336 name, start, end, addDefaultVocabulary, obc);
337
338 return returnValue;
339 }
340 catch (Exception e) {
341 _log.error(e, e);
342
343 throw new RemoteException(e.getMessage());
344 }
345 }
346
347 public static com.liferay.portlet.asset.model.AssetVocabularyDisplay getGroupVocabulariesDisplay(
348 long groupId, java.lang.String name, int start, int end,
349 com.liferay.portal.kernel.util.OrderByComparator obc)
350 throws RemoteException {
351 try {
352 com.liferay.portlet.asset.model.AssetVocabularyDisplay returnValue = AssetVocabularyServiceUtil.getGroupVocabulariesDisplay(groupId,
353 name, start, end, obc);
354
355 return returnValue;
356 }
357 catch (Exception e) {
358 _log.error(e, e);
359
360 throw new RemoteException(e.getMessage());
361 }
362 }
363
364
367 public static java.lang.String getJSONGroupVocabularies(long groupId,
368 java.lang.String name, int start, int end,
369 com.liferay.portal.kernel.util.OrderByComparator obc)
370 throws RemoteException {
371 try {
372 com.liferay.portal.kernel.json.JSONObject returnValue = AssetVocabularyServiceUtil.getJSONGroupVocabularies(groupId,
373 name, start, end, obc);
374
375 return returnValue.toString();
376 }
377 catch (Exception e) {
378 _log.error(e, e);
379
380 throw new RemoteException(e.getMessage());
381 }
382 }
383
384 public static com.liferay.portlet.asset.model.AssetVocabularySoap[] getVocabularies(
385 long[] vocabularyIds) throws RemoteException {
386 try {
387 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> returnValue =
388 AssetVocabularyServiceUtil.getVocabularies(vocabularyIds);
389
390 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModels(returnValue);
391 }
392 catch (Exception e) {
393 _log.error(e, e);
394
395 throw new RemoteException(e.getMessage());
396 }
397 }
398
399 public static com.liferay.portlet.asset.model.AssetVocabularySoap getVocabulary(
400 long vocabularyId) throws RemoteException {
401 try {
402 com.liferay.portlet.asset.model.AssetVocabulary returnValue = AssetVocabularyServiceUtil.getVocabulary(vocabularyId);
403
404 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModel(returnValue);
405 }
406 catch (Exception e) {
407 _log.error(e, e);
408
409 throw new RemoteException(e.getMessage());
410 }
411 }
412
413
417 public static com.liferay.portlet.asset.model.AssetVocabularySoap updateVocabulary(
418 long vocabularyId, java.lang.String[] titleMapLanguageIds,
419 java.lang.String[] titleMapValues,
420 java.lang.String[] descriptionMapLanguageIds,
421 java.lang.String[] descriptionMapValues, java.lang.String settings,
422 com.liferay.portal.service.ServiceContext serviceContext)
423 throws RemoteException {
424 try {
425 Map<Locale, String> titleMap = LocalizationUtil.getLocalizationMap(titleMapLanguageIds,
426 titleMapValues);
427 Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
428 descriptionMapValues);
429
430 com.liferay.portlet.asset.model.AssetVocabulary returnValue = AssetVocabularyServiceUtil.updateVocabulary(vocabularyId,
431 titleMap, descriptionMap, settings, serviceContext);
432
433 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModel(returnValue);
434 }
435 catch (Exception e) {
436 _log.error(e, e);
437
438 throw new RemoteException(e.getMessage());
439 }
440 }
441
442 public static com.liferay.portlet.asset.model.AssetVocabularySoap updateVocabulary(
443 long vocabularyId, java.lang.String title,
444 java.lang.String[] titleMapLanguageIds,
445 java.lang.String[] titleMapValues,
446 java.lang.String[] descriptionMapLanguageIds,
447 java.lang.String[] descriptionMapValues, java.lang.String settings,
448 com.liferay.portal.service.ServiceContext serviceContext)
449 throws RemoteException {
450 try {
451 Map<Locale, String> titleMap = LocalizationUtil.getLocalizationMap(titleMapLanguageIds,
452 titleMapValues);
453 Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
454 descriptionMapValues);
455
456 com.liferay.portlet.asset.model.AssetVocabulary returnValue = AssetVocabularyServiceUtil.updateVocabulary(vocabularyId,
457 title, titleMap, descriptionMap, settings, serviceContext);
458
459 return com.liferay.portlet.asset.model.AssetVocabularySoap.toSoapModel(returnValue);
460 }
461 catch (Exception e) {
462 _log.error(e, e);
463
464 throw new RemoteException(e.getMessage());
465 }
466 }
467
468 private static Log _log = LogFactoryUtil.getLog(AssetVocabularyServiceSoap.class);
469 }