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 java.lang.String className, long classPK) throws RemoteException {
248 try {
249 java.util.List<com.liferay.portlet.asset.model.AssetTag> returnValue =
250 AssetTagServiceUtil.getTags(className, classPK);
251
252 return com.liferay.portlet.asset.model.AssetTagSoap.toSoapModels(returnValue);
253 }
254 catch (Exception e) {
255 _log.error(e, e);
256
257 throw new RemoteException(e.getMessage());
258 }
259 }
260
261 public static int getTagsCount(long groupId, long classNameId,
262 java.lang.String name) throws RemoteException {
263 try {
264 int returnValue = AssetTagServiceUtil.getTagsCount(groupId,
265 classNameId, name);
266
267 return returnValue;
268 }
269 catch (Exception e) {
270 _log.error(e, e);
271
272 throw new RemoteException(e.getMessage());
273 }
274 }
275
276 public static int getTagsCount(long groupId, java.lang.String name)
277 throws RemoteException {
278 try {
279 int returnValue = AssetTagServiceUtil.getTagsCount(groupId, name);
280
281 return returnValue;
282 }
283 catch (Exception e) {
284 _log.error(e, e);
285
286 throw new RemoteException(e.getMessage());
287 }
288 }
289
290 public static int getTagsCount(long groupId, java.lang.String name,
291 java.lang.String[] tagProperties) throws RemoteException {
292 try {
293 int returnValue = AssetTagServiceUtil.getTagsCount(groupId, name,
294 tagProperties);
295
296 return returnValue;
297 }
298 catch (Exception e) {
299 _log.error(e, e);
300
301 throw new RemoteException(e.getMessage());
302 }
303 }
304
305 public static void mergeTags(long fromTagId, long toTagId,
306 boolean overrideProperties) throws RemoteException {
307 try {
308 AssetTagServiceUtil.mergeTags(fromTagId, toTagId, overrideProperties);
309 }
310 catch (Exception e) {
311 _log.error(e, e);
312
313 throw new RemoteException(e.getMessage());
314 }
315 }
316
317 public static void mergeTags(long[] fromTagIds, long toTagId,
318 boolean overrideProperties) throws RemoteException {
319 try {
320 AssetTagServiceUtil.mergeTags(fromTagIds, toTagId,
321 overrideProperties);
322 }
323 catch (Exception e) {
324 _log.error(e, e);
325
326 throw new RemoteException(e.getMessage());
327 }
328 }
329
330 public static java.lang.String search(long groupId, java.lang.String name,
331 java.lang.String[] tagProperties, int start, int end)
332 throws RemoteException {
333 try {
334 com.liferay.portal.kernel.json.JSONArray returnValue = AssetTagServiceUtil.search(groupId,
335 name, tagProperties, start, end);
336
337 return returnValue.toString();
338 }
339 catch (Exception e) {
340 _log.error(e, e);
341
342 throw new RemoteException(e.getMessage());
343 }
344 }
345
346 public static com.liferay.portlet.asset.model.AssetTagSoap updateTag(
347 long tagId, java.lang.String name, java.lang.String[] tagProperties,
348 com.liferay.portal.service.ServiceContext serviceContext)
349 throws RemoteException {
350 try {
351 com.liferay.portlet.asset.model.AssetTag returnValue = AssetTagServiceUtil.updateTag(tagId,
352 name, tagProperties, serviceContext);
353
354 return com.liferay.portlet.asset.model.AssetTagSoap.toSoapModel(returnValue);
355 }
356 catch (Exception e) {
357 _log.error(e, e);
358
359 throw new RemoteException(e.getMessage());
360 }
361 }
362
363 private static Log _log = LogFactoryUtil.getLog(AssetTagServiceSoap.class);
364 }