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
020 import com.liferay.portlet.asset.service.AssetTagServiceUtil;
021
022 import java.rmi.RemoteException;
023
024
064 public class AssetTagServiceSoap {
065 public static com.liferay.portlet.asset.model.AssetTagSoap addTag(
066 java.lang.String name, java.lang.String[] tagProperties,
067 com.liferay.portal.service.ServiceContext serviceContext)
068 throws RemoteException {
069 try {
070 com.liferay.portlet.asset.model.AssetTag returnValue = AssetTagServiceUtil.addTag(name,
071 tagProperties, serviceContext);
072
073 return com.liferay.portlet.asset.model.AssetTagSoap.toSoapModel(returnValue);
074 }
075 catch (Exception e) {
076 _log.error(e, e);
077
078 throw new RemoteException(e.getMessage());
079 }
080 }
081
082 public static void deleteTag(long tagId) throws RemoteException {
083 try {
084 AssetTagServiceUtil.deleteTag(tagId);
085 }
086 catch (Exception e) {
087 _log.error(e, e);
088
089 throw new RemoteException(e.getMessage());
090 }
091 }
092
093 public static void deleteTags(long[] tagIds) throws RemoteException {
094 try {
095 AssetTagServiceUtil.deleteTags(tagIds);
096 }
097 catch (Exception e) {
098 _log.error(e, e);
099
100 throw new RemoteException(e.getMessage());
101 }
102 }
103
104 public static com.liferay.portlet.asset.model.AssetTagSoap[] getGroupsTags(
105 long[] groupIds) throws RemoteException {
106 try {
107 java.util.List<com.liferay.portlet.asset.model.AssetTag> returnValue =
108 AssetTagServiceUtil.getGroupsTags(groupIds);
109
110 return com.liferay.portlet.asset.model.AssetTagSoap.toSoapModels(returnValue);
111 }
112 catch (Exception e) {
113 _log.error(e, e);
114
115 throw new RemoteException(e.getMessage());
116 }
117 }
118
119 public static com.liferay.portlet.asset.model.AssetTagSoap[] getGroupTags(
120 long groupId) throws RemoteException {
121 try {
122 java.util.List<com.liferay.portlet.asset.model.AssetTag> returnValue =
123 AssetTagServiceUtil.getGroupTags(groupId);
124
125 return com.liferay.portlet.asset.model.AssetTagSoap.toSoapModels(returnValue);
126 }
127 catch (Exception e) {
128 _log.error(e, e);
129
130 throw new RemoteException(e.getMessage());
131 }
132 }
133
134 public static com.liferay.portlet.asset.model.AssetTagSoap[] getGroupTags(
135 long groupId, int start, int end,
136 com.liferay.portal.kernel.util.OrderByComparator obc)
137 throws RemoteException {
138 try {
139 java.util.List<com.liferay.portlet.asset.model.AssetTag> returnValue =
140 AssetTagServiceUtil.getGroupTags(groupId, start, end, obc);
141
142 return com.liferay.portlet.asset.model.AssetTagSoap.toSoapModels(returnValue);
143 }
144 catch (Exception e) {
145 _log.error(e, e);
146
147 throw new RemoteException(e.getMessage());
148 }
149 }
150
151 public static int getGroupTagsCount(long groupId) throws RemoteException {
152 try {
153 int returnValue = AssetTagServiceUtil.getGroupTagsCount(groupId);
154
155 return returnValue;
156 }
157 catch (Exception e) {
158 _log.error(e, e);
159
160 throw new RemoteException(e.getMessage());
161 }
162 }
163
164 public static com.liferay.portlet.asset.model.AssetTagDisplay getGroupTagsDisplay(
165 long groupId, java.lang.String name, int start, int end)
166 throws RemoteException {
167 try {
168 com.liferay.portlet.asset.model.AssetTagDisplay returnValue = AssetTagServiceUtil.getGroupTagsDisplay(groupId,
169 name, start, end);
170
171 return returnValue;
172 }
173 catch (Exception e) {
174 _log.error(e, e);
175
176 throw new RemoteException(e.getMessage());
177 }
178 }
179
180
184 public static java.lang.String getJSONGroupTags(long groupId,
185 java.lang.String name, int start, int end) throws RemoteException {
186 try {
187 com.liferay.portal.kernel.json.JSONObject returnValue = AssetTagServiceUtil.getJSONGroupTags(groupId,
188 name, start, end);
189
190 return returnValue.toString();
191 }
192 catch (Exception e) {
193 _log.error(e, e);
194
195 throw new RemoteException(e.getMessage());
196 }
197 }
198
199 public static com.liferay.portlet.asset.model.AssetTagSoap getTag(
200 long tagId) throws RemoteException {
201 try {
202 com.liferay.portlet.asset.model.AssetTag returnValue = AssetTagServiceUtil.getTag(tagId);
203
204 return com.liferay.portlet.asset.model.AssetTagSoap.toSoapModel(returnValue);
205 }
206 catch (Exception e) {
207 _log.error(e, e);
208
209 throw new RemoteException(e.getMessage());
210 }
211 }
212
213 public static com.liferay.portlet.asset.model.AssetTagSoap[] getTags(
214 long groupId, long classNameId, java.lang.String name)
215 throws RemoteException {
216 try {
217 java.util.List<com.liferay.portlet.asset.model.AssetTag> returnValue =
218 AssetTagServiceUtil.getTags(groupId, classNameId, name);
219
220 return com.liferay.portlet.asset.model.AssetTagSoap.toSoapModels(returnValue);
221 }
222 catch (Exception e) {
223 _log.error(e, e);
224
225 throw new RemoteException(e.getMessage());
226 }
227 }
228
229 public static com.liferay.portlet.asset.model.AssetTagSoap[] getTags(
230 long groupId, long classNameId, java.lang.String name, int start,
231 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
232 throws RemoteException {
233 try {
234 java.util.List<com.liferay.portlet.asset.model.AssetTag> returnValue =
235 AssetTagServiceUtil.getTags(groupId, classNameId, name, start,
236 end, obc);
237
238 return com.liferay.portlet.asset.model.AssetTagSoap.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.AssetTagSoap[] getTags(
248 long groupId, java.lang.String name, java.lang.String[] tagProperties,
249 int start, int end) throws RemoteException {
250 try {
251 java.util.List<com.liferay.portlet.asset.model.AssetTag> returnValue =
252 AssetTagServiceUtil.getTags(groupId, name, tagProperties,
253 start, end);
254
255 return com.liferay.portlet.asset.model.AssetTagSoap.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.AssetTagSoap[] getTags(
265 long[] groupIds, java.lang.String name,
266 java.lang.String[] tagProperties, int start, int end)
267 throws RemoteException {
268 try {
269 java.util.List<com.liferay.portlet.asset.model.AssetTag> returnValue =
270 AssetTagServiceUtil.getTags(groupIds, name, tagProperties,
271 start, end);
272
273 return com.liferay.portlet.asset.model.AssetTagSoap.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.AssetTagSoap[] getTags(
283 java.lang.String className, long classPK) throws RemoteException {
284 try {
285 java.util.List<com.liferay.portlet.asset.model.AssetTag> returnValue =
286 AssetTagServiceUtil.getTags(className, classPK);
287
288 return com.liferay.portlet.asset.model.AssetTagSoap.toSoapModels(returnValue);
289 }
290 catch (Exception e) {
291 _log.error(e, e);
292
293 throw new RemoteException(e.getMessage());
294 }
295 }
296
297 public static int getTagsCount(long groupId, long classNameId,
298 java.lang.String name) throws RemoteException {
299 try {
300 int returnValue = AssetTagServiceUtil.getTagsCount(groupId,
301 classNameId, name);
302
303 return returnValue;
304 }
305 catch (Exception e) {
306 _log.error(e, e);
307
308 throw new RemoteException(e.getMessage());
309 }
310 }
311
312 public static int getTagsCount(long groupId, java.lang.String name)
313 throws RemoteException {
314 try {
315 int returnValue = AssetTagServiceUtil.getTagsCount(groupId, name);
316
317 return returnValue;
318 }
319 catch (Exception e) {
320 _log.error(e, e);
321
322 throw new RemoteException(e.getMessage());
323 }
324 }
325
326 public static int getTagsCount(long groupId, java.lang.String name,
327 java.lang.String[] tagProperties) throws RemoteException {
328 try {
329 int returnValue = AssetTagServiceUtil.getTagsCount(groupId, name,
330 tagProperties);
331
332 return returnValue;
333 }
334 catch (Exception e) {
335 _log.error(e, e);
336
337 throw new RemoteException(e.getMessage());
338 }
339 }
340
341 public static void mergeTags(long fromTagId, long toTagId,
342 boolean overrideProperties) throws RemoteException {
343 try {
344 AssetTagServiceUtil.mergeTags(fromTagId, toTagId, overrideProperties);
345 }
346 catch (Exception e) {
347 _log.error(e, e);
348
349 throw new RemoteException(e.getMessage());
350 }
351 }
352
353 public static void mergeTags(long[] fromTagIds, long toTagId,
354 boolean overrideProperties) throws RemoteException {
355 try {
356 AssetTagServiceUtil.mergeTags(fromTagIds, toTagId,
357 overrideProperties);
358 }
359 catch (Exception e) {
360 _log.error(e, e);
361
362 throw new RemoteException(e.getMessage());
363 }
364 }
365
366 public static java.lang.String search(long groupId, java.lang.String name,
367 java.lang.String[] tagProperties, int start, int end)
368 throws RemoteException {
369 try {
370 com.liferay.portal.kernel.json.JSONArray returnValue = AssetTagServiceUtil.search(groupId,
371 name, tagProperties, 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, java.lang.String[] tagProperties, int start,
384 int end) throws RemoteException {
385 try {
386 com.liferay.portal.kernel.json.JSONArray returnValue = AssetTagServiceUtil.search(groupIds,
387 name, tagProperties, start, end);
388
389 return returnValue.toString();
390 }
391 catch (Exception e) {
392 _log.error(e, e);
393
394 throw new RemoteException(e.getMessage());
395 }
396 }
397
398 public static com.liferay.portlet.asset.model.AssetTagSoap updateTag(
399 long tagId, java.lang.String name, java.lang.String[] tagProperties,
400 com.liferay.portal.service.ServiceContext serviceContext)
401 throws RemoteException {
402 try {
403 com.liferay.portlet.asset.model.AssetTag returnValue = AssetTagServiceUtil.updateTag(tagId,
404 name, tagProperties, serviceContext);
405
406 return com.liferay.portlet.asset.model.AssetTagSoap.toSoapModel(returnValue);
407 }
408 catch (Exception e) {
409 _log.error(e, e);
410
411 throw new RemoteException(e.getMessage());
412 }
413 }
414
415 private static Log _log = LogFactoryUtil.getLog(AssetTagServiceSoap.class);
416 }