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