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[] groupIds, java.lang.String name, int start, int end)
270 throws RemoteException {
271 try {
272 java.util.List<com.liferay.portlet.asset.model.AssetTag> returnValue =
273 AssetTagServiceUtil.getTags(groupIds, name, start, end);
274
275 return com.liferay.portlet.asset.model.AssetTagSoap.toSoapModels(returnValue);
276 }
277 catch (Exception e) {
278 _log.error(e, e);
279
280 throw new RemoteException(e.getMessage());
281 }
282 }
283
284 public static com.liferay.portlet.asset.model.AssetTagSoap[] getTags(
285 java.lang.String className, long classPK) throws RemoteException {
286 try {
287 java.util.List<com.liferay.portlet.asset.model.AssetTag> returnValue =
288 AssetTagServiceUtil.getTags(className, classPK);
289
290 return com.liferay.portlet.asset.model.AssetTagSoap.toSoapModels(returnValue);
291 }
292 catch (Exception e) {
293 _log.error(e, e);
294
295 throw new RemoteException(e.getMessage());
296 }
297 }
298
299 public static int getTagsCount(long groupId, java.lang.String name)
300 throws RemoteException {
301 try {
302 int returnValue = AssetTagServiceUtil.getTagsCount(groupId, name);
303
304 return returnValue;
305 }
306 catch (Exception e) {
307 _log.error(e, e);
308
309 throw new RemoteException(e.getMessage());
310 }
311 }
312
313 public static int getVisibleAssetsTagsCount(long groupId, long classNameId,
314 java.lang.String name) throws RemoteException {
315 try {
316 int returnValue = AssetTagServiceUtil.getVisibleAssetsTagsCount(groupId,
317 classNameId, name);
318
319 return returnValue;
320 }
321 catch (Exception e) {
322 _log.error(e, e);
323
324 throw new RemoteException(e.getMessage());
325 }
326 }
327
328 public static int getVisibleAssetsTagsCount(long groupId,
329 java.lang.String name) throws RemoteException {
330 try {
331 int returnValue = AssetTagServiceUtil.getVisibleAssetsTagsCount(groupId,
332 name);
333
334 return returnValue;
335 }
336 catch (Exception e) {
337 _log.error(e, e);
338
339 throw new RemoteException(e.getMessage());
340 }
341 }
342
343 public static void mergeTags(long fromTagId, long toTagId)
344 throws RemoteException {
345 try {
346 AssetTagServiceUtil.mergeTags(fromTagId, toTagId);
347 }
348 catch (Exception e) {
349 _log.error(e, e);
350
351 throw new RemoteException(e.getMessage());
352 }
353 }
354
355 public static void mergeTags(long[] fromTagIds, long toTagId)
356 throws RemoteException {
357 try {
358 AssetTagServiceUtil.mergeTags(fromTagIds, toTagId);
359 }
360 catch (Exception e) {
361 _log.error(e, e);
362
363 throw new RemoteException(e.getMessage());
364 }
365 }
366
367 public static java.lang.String search(long groupId, java.lang.String name,
368 int start, int end) throws RemoteException {
369 try {
370 com.liferay.portal.kernel.json.JSONArray returnValue = AssetTagServiceUtil.search(groupId,
371 name, start, end);
372
373 return returnValue.toString();
374 }
375 catch (Exception e) {
376 _log.error(e, e);
377
378 throw new RemoteException(e.getMessage());
379 }
380 }
381
382 public static java.lang.String search(long[] groupIds,
383 java.lang.String name, int start, int end) throws RemoteException {
384 try {
385 com.liferay.portal.kernel.json.JSONArray returnValue = AssetTagServiceUtil.search(groupIds,
386 name, start, end);
387
388 return returnValue.toString();
389 }
390 catch (Exception e) {
391 _log.error(e, e);
392
393 throw new RemoteException(e.getMessage());
394 }
395 }
396
397 public static com.liferay.portlet.asset.model.AssetTagSoap updateTag(
398 long tagId, java.lang.String name,
399 com.liferay.portal.service.ServiceContext serviceContext)
400 throws RemoteException {
401 try {
402 com.liferay.portlet.asset.model.AssetTag returnValue = AssetTagServiceUtil.updateTag(tagId,
403 name, serviceContext);
404
405 return com.liferay.portlet.asset.model.AssetTagSoap.toSoapModel(returnValue);
406 }
407 catch (Exception e) {
408 _log.error(e, e);
409
410 throw new RemoteException(e.getMessage());
411 }
412 }
413
414 private static Log _log = LogFactoryUtil.getLog(AssetTagServiceSoap.class);
415 }