001
014
015 package com.liferay.portlet.asset.service.http;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.log.Log;
020 import com.liferay.portal.kernel.log.LogFactoryUtil;
021
022 import com.liferay.portlet.asset.service.AssetTagServiceUtil;
023
024 import java.rmi.RemoteException;
025
026
066 @ProviderType
067 public class AssetTagServiceSoap {
068 public static com.liferay.portlet.asset.model.AssetTagSoap addTag(
069 long groupId, java.lang.String name,
070 com.liferay.portal.service.ServiceContext serviceContext)
071 throws RemoteException {
072 try {
073 com.liferay.portlet.asset.model.AssetTag returnValue = AssetTagServiceUtil.addTag(groupId,
074 name, serviceContext);
075
076 return com.liferay.portlet.asset.model.AssetTagSoap.toSoapModel(returnValue);
077 }
078 catch (Exception e) {
079 _log.error(e, e);
080
081 throw new RemoteException(e.getMessage());
082 }
083 }
084
085 public static void deleteTag(long tagId) throws RemoteException {
086 try {
087 AssetTagServiceUtil.deleteTag(tagId);
088 }
089 catch (Exception e) {
090 _log.error(e, e);
091
092 throw new RemoteException(e.getMessage());
093 }
094 }
095
096 public static void deleteTags(long[] tagIds) throws RemoteException {
097 try {
098 AssetTagServiceUtil.deleteTags(tagIds);
099 }
100 catch (Exception e) {
101 _log.error(e, e);
102
103 throw new RemoteException(e.getMessage());
104 }
105 }
106
107 public static com.liferay.portlet.asset.model.AssetTagSoap[] getGroupsTags(
108 long[] groupIds) throws RemoteException {
109 try {
110 java.util.List<com.liferay.portlet.asset.model.AssetTag> returnValue =
111 AssetTagServiceUtil.getGroupsTags(groupIds);
112
113 return com.liferay.portlet.asset.model.AssetTagSoap.toSoapModels(returnValue);
114 }
115 catch (Exception e) {
116 _log.error(e, e);
117
118 throw new RemoteException(e.getMessage());
119 }
120 }
121
122 public static com.liferay.portlet.asset.model.AssetTagSoap[] getGroupTags(
123 long groupId) throws RemoteException {
124 try {
125 java.util.List<com.liferay.portlet.asset.model.AssetTag> returnValue =
126 AssetTagServiceUtil.getGroupTags(groupId);
127
128 return com.liferay.portlet.asset.model.AssetTagSoap.toSoapModels(returnValue);
129 }
130 catch (Exception e) {
131 _log.error(e, e);
132
133 throw new RemoteException(e.getMessage());
134 }
135 }
136
137 public static com.liferay.portlet.asset.model.AssetTagSoap[] getGroupTags(
138 long groupId, int start, int end,
139 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc)
140 throws RemoteException {
141 try {
142 java.util.List<com.liferay.portlet.asset.model.AssetTag> returnValue =
143 AssetTagServiceUtil.getGroupTags(groupId, start, end, obc);
144
145 return com.liferay.portlet.asset.model.AssetTagSoap.toSoapModels(returnValue);
146 }
147 catch (Exception e) {
148 _log.error(e, e);
149
150 throw new RemoteException(e.getMessage());
151 }
152 }
153
154 public static int getGroupTagsCount(long groupId) throws RemoteException {
155 try {
156 int returnValue = AssetTagServiceUtil.getGroupTagsCount(groupId);
157
158 return returnValue;
159 }
160 catch (Exception e) {
161 _log.error(e, e);
162
163 throw new RemoteException(e.getMessage());
164 }
165 }
166
167 public static com.liferay.portlet.asset.model.AssetTagDisplay getGroupTagsDisplay(
168 long groupId, java.lang.String name, int start, int end)
169 throws RemoteException {
170 try {
171 com.liferay.portlet.asset.model.AssetTagDisplay returnValue = AssetTagServiceUtil.getGroupTagsDisplay(groupId,
172 name, start, end);
173
174 return returnValue;
175 }
176 catch (Exception e) {
177 _log.error(e, e);
178
179 throw new RemoteException(e.getMessage());
180 }
181 }
182
183
187 @Deprecated
188 public static java.lang.String getJSONGroupTags(long groupId,
189 java.lang.String name, int start, int end) throws RemoteException {
190 try {
191 com.liferay.portal.kernel.json.JSONObject returnValue = AssetTagServiceUtil.getJSONGroupTags(groupId,
192 name, start, end);
193
194 return returnValue.toString();
195 }
196 catch (Exception e) {
197 _log.error(e, e);
198
199 throw new RemoteException(e.getMessage());
200 }
201 }
202
203 public static com.liferay.portlet.asset.model.AssetTagSoap getTag(
204 long tagId) throws RemoteException {
205 try {
206 com.liferay.portlet.asset.model.AssetTag returnValue = AssetTagServiceUtil.getTag(tagId);
207
208 return com.liferay.portlet.asset.model.AssetTagSoap.toSoapModel(returnValue);
209 }
210 catch (Exception e) {
211 _log.error(e, e);
212
213 throw new RemoteException(e.getMessage());
214 }
215 }
216
217 public static com.liferay.portlet.asset.model.AssetTagSoap[] getTags(
218 long groupId, long classNameId, java.lang.String name)
219 throws RemoteException {
220 try {
221 java.util.List<com.liferay.portlet.asset.model.AssetTag> returnValue =
222 AssetTagServiceUtil.getTags(groupId, classNameId, name);
223
224 return com.liferay.portlet.asset.model.AssetTagSoap.toSoapModels(returnValue);
225 }
226 catch (Exception e) {
227 _log.error(e, e);
228
229 throw new RemoteException(e.getMessage());
230 }
231 }
232
233 public static com.liferay.portlet.asset.model.AssetTagSoap[] getTags(
234 long groupId, long classNameId, java.lang.String name, int start,
235 int end,
236 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc)
237 throws RemoteException {
238 try {
239 java.util.List<com.liferay.portlet.asset.model.AssetTag> returnValue =
240 AssetTagServiceUtil.getTags(groupId, classNameId, name, start,
241 end, obc);
242
243 return com.liferay.portlet.asset.model.AssetTagSoap.toSoapModels(returnValue);
244 }
245 catch (Exception e) {
246 _log.error(e, e);
247
248 throw new RemoteException(e.getMessage());
249 }
250 }
251
252 public static com.liferay.portlet.asset.model.AssetTagSoap[] getTags(
253 long groupId, java.lang.String name, int start, int end)
254 throws RemoteException {
255 try {
256 java.util.List<com.liferay.portlet.asset.model.AssetTag> returnValue =
257 AssetTagServiceUtil.getTags(groupId, name, start, end);
258
259 return com.liferay.portlet.asset.model.AssetTagSoap.toSoapModels(returnValue);
260 }
261 catch (Exception e) {
262 _log.error(e, e);
263
264 throw new RemoteException(e.getMessage());
265 }
266 }
267
268 public static com.liferay.portlet.asset.model.AssetTagSoap[] getTags(
269 long groupId, java.lang.String name, int start, int end,
270 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc)
271 throws RemoteException {
272 try {
273 java.util.List<com.liferay.portlet.asset.model.AssetTag> returnValue =
274 AssetTagServiceUtil.getTags(groupId, name, start, end, obc);
275
276 return com.liferay.portlet.asset.model.AssetTagSoap.toSoapModels(returnValue);
277 }
278 catch (Exception e) {
279 _log.error(e, e);
280
281 throw new RemoteException(e.getMessage());
282 }
283 }
284
285 public static com.liferay.portlet.asset.model.AssetTagSoap[] getTags(
286 long[] groupIds, java.lang.String name, int start, int end)
287 throws RemoteException {
288 try {
289 java.util.List<com.liferay.portlet.asset.model.AssetTag> returnValue =
290 AssetTagServiceUtil.getTags(groupIds, name, start, end);
291
292 return com.liferay.portlet.asset.model.AssetTagSoap.toSoapModels(returnValue);
293 }
294 catch (Exception e) {
295 _log.error(e, e);
296
297 throw new RemoteException(e.getMessage());
298 }
299 }
300
301 public static com.liferay.portlet.asset.model.AssetTagSoap[] getTags(
302 long[] groupIds, java.lang.String name, int start, int end,
303 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc)
304 throws RemoteException {
305 try {
306 java.util.List<com.liferay.portlet.asset.model.AssetTag> returnValue =
307 AssetTagServiceUtil.getTags(groupIds, name, start, end, obc);
308
309 return com.liferay.portlet.asset.model.AssetTagSoap.toSoapModels(returnValue);
310 }
311 catch (Exception e) {
312 _log.error(e, e);
313
314 throw new RemoteException(e.getMessage());
315 }
316 }
317
318 public static com.liferay.portlet.asset.model.AssetTagSoap[] getTags(
319 java.lang.String className, long classPK) throws RemoteException {
320 try {
321 java.util.List<com.liferay.portlet.asset.model.AssetTag> returnValue =
322 AssetTagServiceUtil.getTags(className, classPK);
323
324 return com.liferay.portlet.asset.model.AssetTagSoap.toSoapModels(returnValue);
325 }
326 catch (Exception e) {
327 _log.error(e, e);
328
329 throw new RemoteException(e.getMessage());
330 }
331 }
332
333 public static int getTagsCount(long groupId, java.lang.String name)
334 throws RemoteException {
335 try {
336 int returnValue = AssetTagServiceUtil.getTagsCount(groupId, name);
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 int getVisibleAssetsTagsCount(long groupId, long classNameId,
348 java.lang.String name) throws RemoteException {
349 try {
350 int returnValue = AssetTagServiceUtil.getVisibleAssetsTagsCount(groupId,
351 classNameId, name);
352
353 return returnValue;
354 }
355 catch (Exception e) {
356 _log.error(e, e);
357
358 throw new RemoteException(e.getMessage());
359 }
360 }
361
362 public static int getVisibleAssetsTagsCount(long groupId,
363 java.lang.String name) throws RemoteException {
364 try {
365 int returnValue = AssetTagServiceUtil.getVisibleAssetsTagsCount(groupId,
366 name);
367
368 return returnValue;
369 }
370 catch (Exception e) {
371 _log.error(e, e);
372
373 throw new RemoteException(e.getMessage());
374 }
375 }
376
377 public static void mergeTags(long fromTagId, long toTagId)
378 throws RemoteException {
379 try {
380 AssetTagServiceUtil.mergeTags(fromTagId, toTagId);
381 }
382 catch (Exception e) {
383 _log.error(e, e);
384
385 throw new RemoteException(e.getMessage());
386 }
387 }
388
389 public static void mergeTags(long[] fromTagIds, long toTagId)
390 throws RemoteException {
391 try {
392 AssetTagServiceUtil.mergeTags(fromTagIds, toTagId);
393 }
394 catch (Exception e) {
395 _log.error(e, e);
396
397 throw new RemoteException(e.getMessage());
398 }
399 }
400
401 public static java.lang.String search(long groupId, java.lang.String name,
402 int start, int end) throws RemoteException {
403 try {
404 com.liferay.portal.kernel.json.JSONArray returnValue = AssetTagServiceUtil.search(groupId,
405 name, start, end);
406
407 return returnValue.toString();
408 }
409 catch (Exception e) {
410 _log.error(e, e);
411
412 throw new RemoteException(e.getMessage());
413 }
414 }
415
416 public static java.lang.String search(long[] groupIds,
417 java.lang.String name, int start, int end) throws RemoteException {
418 try {
419 com.liferay.portal.kernel.json.JSONArray returnValue = AssetTagServiceUtil.search(groupIds,
420 name, start, end);
421
422 return returnValue.toString();
423 }
424 catch (Exception e) {
425 _log.error(e, e);
426
427 throw new RemoteException(e.getMessage());
428 }
429 }
430
431 public static com.liferay.portlet.asset.model.AssetTagSoap updateTag(
432 long tagId, java.lang.String name,
433 com.liferay.portal.service.ServiceContext serviceContext)
434 throws RemoteException {
435 try {
436 com.liferay.portlet.asset.model.AssetTag returnValue = AssetTagServiceUtil.updateTag(tagId,
437 name, serviceContext);
438
439 return com.liferay.portlet.asset.model.AssetTagSoap.toSoapModel(returnValue);
440 }
441 catch (Exception e) {
442 _log.error(e, e);
443
444 throw new RemoteException(e.getMessage());
445 }
446 }
447
448 private static Log _log = LogFactoryUtil.getLog(AssetTagServiceSoap.class);
449 }