001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    import com.liferay.portal.kernel.util.LocalizationUtil;
022    
023    import com.liferay.portlet.asset.service.AssetCategoryServiceUtil;
024    
025    import java.rmi.RemoteException;
026    
027    import java.util.Locale;
028    import java.util.Map;
029    
030    /**
031     * Provides the SOAP utility for the
032     * {@link AssetCategoryServiceUtil} service utility. The
033     * static methods of this class calls the same methods of the service utility.
034     * However, the signatures are different because it is difficult for SOAP to
035     * support certain types.
036     *
037     * <p>
038     * ServiceBuilder follows certain rules in translating the methods. For example,
039     * if the method in the service utility returns a {@link java.util.List}, that
040     * is translated to an array of {@link com.liferay.portlet.asset.model.AssetCategorySoap}.
041     * If the method in the service utility returns a
042     * {@link com.liferay.portlet.asset.model.AssetCategory}, that is translated to a
043     * {@link com.liferay.portlet.asset.model.AssetCategorySoap}. Methods that SOAP cannot
044     * safely wire are skipped.
045     * </p>
046     *
047     * <p>
048     * The benefits of using the SOAP utility is that it is cross platform
049     * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and
050     * even Perl, to call the generated services. One drawback of SOAP is that it is
051     * slow because it needs to serialize all calls into a text format (XML).
052     * </p>
053     *
054     * <p>
055     * You can see a list of services at http://localhost:8080/api/axis. Set the
056     * property <b>axis.servlet.hosts.allowed</b> in portal.properties to configure
057     * security.
058     * </p>
059     *
060     * <p>
061     * The SOAP utility is only generated for remote services.
062     * </p>
063     *
064     * @author Brian Wing Shun Chan
065     * @see AssetCategoryServiceHttp
066     * @see com.liferay.portlet.asset.model.AssetCategorySoap
067     * @see AssetCategoryServiceUtil
068     * @generated
069     */
070    @ProviderType
071    public class AssetCategoryServiceSoap {
072            public static com.liferay.portlet.asset.model.AssetCategorySoap addCategory(
073                    long groupId, long parentCategoryId,
074                    java.lang.String[] titleMapLanguageIds,
075                    java.lang.String[] titleMapValues,
076                    java.lang.String[] descriptionMapLanguageIds,
077                    java.lang.String[] descriptionMapValues, long vocabularyId,
078                    java.lang.String[] categoryProperties,
079                    com.liferay.portal.service.ServiceContext serviceContext)
080                    throws RemoteException {
081                    try {
082                            Map<Locale, String> titleMap = LocalizationUtil.getLocalizationMap(titleMapLanguageIds,
083                                            titleMapValues);
084                            Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
085                                            descriptionMapValues);
086    
087                            com.liferay.portlet.asset.model.AssetCategory returnValue = AssetCategoryServiceUtil.addCategory(groupId,
088                                            parentCategoryId, titleMap, descriptionMap, vocabularyId,
089                                            categoryProperties, serviceContext);
090    
091                            return com.liferay.portlet.asset.model.AssetCategorySoap.toSoapModel(returnValue);
092                    }
093                    catch (Exception e) {
094                            _log.error(e, e);
095    
096                            throw new RemoteException(e.getMessage());
097                    }
098            }
099    
100            public static com.liferay.portlet.asset.model.AssetCategorySoap addCategory(
101                    long groupId, java.lang.String title, long vocabularyId,
102                    com.liferay.portal.service.ServiceContext serviceContext)
103                    throws RemoteException {
104                    try {
105                            com.liferay.portlet.asset.model.AssetCategory returnValue = AssetCategoryServiceUtil.addCategory(groupId,
106                                            title, vocabularyId, serviceContext);
107    
108                            return com.liferay.portlet.asset.model.AssetCategorySoap.toSoapModel(returnValue);
109                    }
110                    catch (Exception e) {
111                            _log.error(e, e);
112    
113                            throw new RemoteException(e.getMessage());
114                    }
115            }
116    
117            public static void deleteCategories(long[] categoryIds)
118                    throws RemoteException {
119                    try {
120                            AssetCategoryServiceUtil.deleteCategories(categoryIds);
121                    }
122                    catch (Exception e) {
123                            _log.error(e, e);
124    
125                            throw new RemoteException(e.getMessage());
126                    }
127            }
128    
129            /**
130            * @deprecated As of 7.0.0, Replaced by {@link #deleteCategories(long[])}
131            */
132            @Deprecated
133            public static com.liferay.portlet.asset.model.AssetCategorySoap[] deleteCategories(
134                    long[] categoryIds,
135                    com.liferay.portal.service.ServiceContext serviceContext)
136                    throws RemoteException {
137                    try {
138                            java.util.List<com.liferay.portlet.asset.model.AssetCategory> returnValue =
139                                    AssetCategoryServiceUtil.deleteCategories(categoryIds,
140                                            serviceContext);
141    
142                            return com.liferay.portlet.asset.model.AssetCategorySoap.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 void deleteCategory(long categoryId)
152                    throws RemoteException {
153                    try {
154                            AssetCategoryServiceUtil.deleteCategory(categoryId);
155                    }
156                    catch (Exception e) {
157                            _log.error(e, e);
158    
159                            throw new RemoteException(e.getMessage());
160                    }
161            }
162    
163            public static com.liferay.portlet.asset.model.AssetCategorySoap fetchCategory(
164                    long categoryId) throws RemoteException {
165                    try {
166                            com.liferay.portlet.asset.model.AssetCategory returnValue = AssetCategoryServiceUtil.fetchCategory(categoryId);
167    
168                            return com.liferay.portlet.asset.model.AssetCategorySoap.toSoapModel(returnValue);
169                    }
170                    catch (Exception e) {
171                            _log.error(e, e);
172    
173                            throw new RemoteException(e.getMessage());
174                    }
175            }
176    
177            public static com.liferay.portlet.asset.model.AssetCategorySoap[] getCategories(
178                    java.lang.String className, long classPK) throws RemoteException {
179                    try {
180                            java.util.List<com.liferay.portlet.asset.model.AssetCategory> returnValue =
181                                    AssetCategoryServiceUtil.getCategories(className, classPK);
182    
183                            return com.liferay.portlet.asset.model.AssetCategorySoap.toSoapModels(returnValue);
184                    }
185                    catch (Exception e) {
186                            _log.error(e, e);
187    
188                            throw new RemoteException(e.getMessage());
189                    }
190            }
191    
192            public static com.liferay.portlet.asset.model.AssetCategorySoap getCategory(
193                    long categoryId) throws RemoteException {
194                    try {
195                            com.liferay.portlet.asset.model.AssetCategory returnValue = AssetCategoryServiceUtil.getCategory(categoryId);
196    
197                            return com.liferay.portlet.asset.model.AssetCategorySoap.toSoapModel(returnValue);
198                    }
199                    catch (Exception e) {
200                            _log.error(e, e);
201    
202                            throw new RemoteException(e.getMessage());
203                    }
204            }
205    
206            public static java.lang.String getCategoryPath(long categoryId)
207                    throws RemoteException {
208                    try {
209                            java.lang.String returnValue = AssetCategoryServiceUtil.getCategoryPath(categoryId);
210    
211                            return returnValue;
212                    }
213                    catch (Exception e) {
214                            _log.error(e, e);
215    
216                            throw new RemoteException(e.getMessage());
217                    }
218            }
219    
220            public static com.liferay.portlet.asset.model.AssetCategorySoap[] getChildCategories(
221                    long parentCategoryId) throws RemoteException {
222                    try {
223                            java.util.List<com.liferay.portlet.asset.model.AssetCategory> returnValue =
224                                    AssetCategoryServiceUtil.getChildCategories(parentCategoryId);
225    
226                            return com.liferay.portlet.asset.model.AssetCategorySoap.toSoapModels(returnValue);
227                    }
228                    catch (Exception e) {
229                            _log.error(e, e);
230    
231                            throw new RemoteException(e.getMessage());
232                    }
233            }
234    
235            public static com.liferay.portlet.asset.model.AssetCategorySoap[] getChildCategories(
236                    long parentCategoryId, int start, int end,
237                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
238                    throws RemoteException {
239                    try {
240                            java.util.List<com.liferay.portlet.asset.model.AssetCategory> returnValue =
241                                    AssetCategoryServiceUtil.getChildCategories(parentCategoryId,
242                                            start, end, obc);
243    
244                            return com.liferay.portlet.asset.model.AssetCategorySoap.toSoapModels(returnValue);
245                    }
246                    catch (Exception e) {
247                            _log.error(e, e);
248    
249                            throw new RemoteException(e.getMessage());
250                    }
251            }
252    
253            /**
254            * @deprecated As of 6.2.0, replaced by {@link #search(long[], String,
255            long[], int, int)}
256            */
257            @Deprecated
258            public static java.lang.String getJSONSearch(long groupId,
259                    java.lang.String name, long[] vocabularyIds, int start, int end)
260                    throws RemoteException {
261                    try {
262                            com.liferay.portal.kernel.json.JSONArray returnValue = AssetCategoryServiceUtil.getJSONSearch(groupId,
263                                            name, vocabularyIds, start, end);
264    
265                            return returnValue.toString();
266                    }
267                    catch (Exception e) {
268                            _log.error(e, e);
269    
270                            throw new RemoteException(e.getMessage());
271                    }
272            }
273    
274            /**
275            * @deprecated As of 6.2.0, replaced by {@link
276            #getVocabularyCategoriesDisplay(long, int, int,
277            OrderByComparator)}
278            */
279            @Deprecated
280            public static java.lang.String getJSONVocabularyCategories(
281                    long vocabularyId, int start, int end,
282                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
283                    throws RemoteException {
284                    try {
285                            com.liferay.portal.kernel.json.JSONObject returnValue = AssetCategoryServiceUtil.getJSONVocabularyCategories(vocabularyId,
286                                            start, end, obc);
287    
288                            return returnValue.toString();
289                    }
290                    catch (Exception e) {
291                            _log.error(e, e);
292    
293                            throw new RemoteException(e.getMessage());
294                    }
295            }
296    
297            /**
298            * @deprecated As of 6.2.0, replaced by {@link
299            #getVocabularyCategoriesDisplay(long, String, long, int, int,
300            OrderByComparator)}
301            */
302            @Deprecated
303            public static java.lang.String getJSONVocabularyCategories(long groupId,
304                    java.lang.String name, long vocabularyId, int start, int end,
305                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
306                    throws RemoteException {
307                    try {
308                            com.liferay.portal.kernel.json.JSONObject returnValue = AssetCategoryServiceUtil.getJSONVocabularyCategories(groupId,
309                                            name, vocabularyId, start, end, obc);
310    
311                            return returnValue.toString();
312                    }
313                    catch (Exception e) {
314                            _log.error(e, e);
315    
316                            throw new RemoteException(e.getMessage());
317                    }
318            }
319    
320            public static com.liferay.portlet.asset.model.AssetCategorySoap[] getVocabularyCategories(
321                    long vocabularyId, int start, int end,
322                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
323                    throws RemoteException {
324                    try {
325                            java.util.List<com.liferay.portlet.asset.model.AssetCategory> returnValue =
326                                    AssetCategoryServiceUtil.getVocabularyCategories(vocabularyId,
327                                            start, end, obc);
328    
329                            return com.liferay.portlet.asset.model.AssetCategorySoap.toSoapModels(returnValue);
330                    }
331                    catch (Exception e) {
332                            _log.error(e, e);
333    
334                            throw new RemoteException(e.getMessage());
335                    }
336            }
337    
338            public static com.liferay.portlet.asset.model.AssetCategorySoap[] getVocabularyCategories(
339                    long parentCategoryId, long vocabularyId, int start, int end,
340                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
341                    throws RemoteException {
342                    try {
343                            java.util.List<com.liferay.portlet.asset.model.AssetCategory> returnValue =
344                                    AssetCategoryServiceUtil.getVocabularyCategories(parentCategoryId,
345                                            vocabularyId, start, end, obc);
346    
347                            return com.liferay.portlet.asset.model.AssetCategorySoap.toSoapModels(returnValue);
348                    }
349                    catch (Exception e) {
350                            _log.error(e, e);
351    
352                            throw new RemoteException(e.getMessage());
353                    }
354            }
355    
356            public static com.liferay.portlet.asset.model.AssetCategorySoap[] getVocabularyCategories(
357                    long groupId, long parentCategoryId, long vocabularyId, int start,
358                    int end,
359                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
360                    throws RemoteException {
361                    try {
362                            java.util.List<com.liferay.portlet.asset.model.AssetCategory> returnValue =
363                                    AssetCategoryServiceUtil.getVocabularyCategories(groupId,
364                                            parentCategoryId, vocabularyId, start, end, obc);
365    
366                            return com.liferay.portlet.asset.model.AssetCategorySoap.toSoapModels(returnValue);
367                    }
368                    catch (Exception e) {
369                            _log.error(e, e);
370    
371                            throw new RemoteException(e.getMessage());
372                    }
373            }
374    
375            public static com.liferay.portlet.asset.model.AssetCategorySoap[] getVocabularyCategories(
376                    long groupId, java.lang.String name, long vocabularyId, int start,
377                    int end,
378                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
379                    throws RemoteException {
380                    try {
381                            java.util.List<com.liferay.portlet.asset.model.AssetCategory> returnValue =
382                                    AssetCategoryServiceUtil.getVocabularyCategories(groupId, name,
383                                            vocabularyId, start, end, obc);
384    
385                            return com.liferay.portlet.asset.model.AssetCategorySoap.toSoapModels(returnValue);
386                    }
387                    catch (Exception e) {
388                            _log.error(e, e);
389    
390                            throw new RemoteException(e.getMessage());
391                    }
392            }
393    
394            public static int getVocabularyCategoriesCount(long groupId,
395                    long vocabularyId) throws RemoteException {
396                    try {
397                            int returnValue = AssetCategoryServiceUtil.getVocabularyCategoriesCount(groupId,
398                                            vocabularyId);
399    
400                            return returnValue;
401                    }
402                    catch (Exception e) {
403                            _log.error(e, e);
404    
405                            throw new RemoteException(e.getMessage());
406                    }
407            }
408    
409            public static int getVocabularyCategoriesCount(long groupId,
410                    long parentCategory, long vocabularyId) throws RemoteException {
411                    try {
412                            int returnValue = AssetCategoryServiceUtil.getVocabularyCategoriesCount(groupId,
413                                            parentCategory, vocabularyId);
414    
415                            return returnValue;
416                    }
417                    catch (Exception e) {
418                            _log.error(e, e);
419    
420                            throw new RemoteException(e.getMessage());
421                    }
422            }
423    
424            public static int getVocabularyCategoriesCount(long groupId,
425                    java.lang.String name, long vocabularyId) throws RemoteException {
426                    try {
427                            int returnValue = AssetCategoryServiceUtil.getVocabularyCategoriesCount(groupId,
428                                            name, vocabularyId);
429    
430                            return returnValue;
431                    }
432                    catch (Exception e) {
433                            _log.error(e, e);
434    
435                            throw new RemoteException(e.getMessage());
436                    }
437            }
438    
439            public static com.liferay.portlet.asset.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(
440                    long vocabularyId, int start, int end,
441                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
442                    throws RemoteException {
443                    try {
444                            com.liferay.portlet.asset.model.AssetCategoryDisplay returnValue = AssetCategoryServiceUtil.getVocabularyCategoriesDisplay(vocabularyId,
445                                            start, end, obc);
446    
447                            return returnValue;
448                    }
449                    catch (Exception e) {
450                            _log.error(e, e);
451    
452                            throw new RemoteException(e.getMessage());
453                    }
454            }
455    
456            public static com.liferay.portlet.asset.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(
457                    long groupId, java.lang.String name, long vocabularyId, int start,
458                    int end,
459                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
460                    throws RemoteException {
461                    try {
462                            com.liferay.portlet.asset.model.AssetCategoryDisplay returnValue = AssetCategoryServiceUtil.getVocabularyCategoriesDisplay(groupId,
463                                            name, vocabularyId, start, end, obc);
464    
465                            return returnValue;
466                    }
467                    catch (Exception e) {
468                            _log.error(e, e);
469    
470                            throw new RemoteException(e.getMessage());
471                    }
472            }
473    
474            /**
475            * @deprecated As of 6.2.0, replaced by {@link
476            #getVocabularyRootCategories(long, long, int, int,
477            OrderByComparator)}
478            */
479            @Deprecated
480            public static com.liferay.portlet.asset.model.AssetCategorySoap[] getVocabularyRootCategories(
481                    long vocabularyId, int start, int end,
482                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
483                    throws RemoteException {
484                    try {
485                            java.util.List<com.liferay.portlet.asset.model.AssetCategory> returnValue =
486                                    AssetCategoryServiceUtil.getVocabularyRootCategories(vocabularyId,
487                                            start, end, obc);
488    
489                            return com.liferay.portlet.asset.model.AssetCategorySoap.toSoapModels(returnValue);
490                    }
491                    catch (Exception e) {
492                            _log.error(e, e);
493    
494                            throw new RemoteException(e.getMessage());
495                    }
496            }
497    
498            public static com.liferay.portlet.asset.model.AssetCategorySoap[] getVocabularyRootCategories(
499                    long groupId, long vocabularyId, int start, int end,
500                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
501                    throws RemoteException {
502                    try {
503                            java.util.List<com.liferay.portlet.asset.model.AssetCategory> returnValue =
504                                    AssetCategoryServiceUtil.getVocabularyRootCategories(groupId,
505                                            vocabularyId, start, end, obc);
506    
507                            return com.liferay.portlet.asset.model.AssetCategorySoap.toSoapModels(returnValue);
508                    }
509                    catch (Exception e) {
510                            _log.error(e, e);
511    
512                            throw new RemoteException(e.getMessage());
513                    }
514            }
515    
516            public static int getVocabularyRootCategoriesCount(long groupId,
517                    long vocabularyId) throws RemoteException {
518                    try {
519                            int returnValue = AssetCategoryServiceUtil.getVocabularyRootCategoriesCount(groupId,
520                                            vocabularyId);
521    
522                            return returnValue;
523                    }
524                    catch (Exception e) {
525                            _log.error(e, e);
526    
527                            throw new RemoteException(e.getMessage());
528                    }
529            }
530    
531            public static com.liferay.portlet.asset.model.AssetCategorySoap moveCategory(
532                    long categoryId, long parentCategoryId, long vocabularyId,
533                    com.liferay.portal.service.ServiceContext serviceContext)
534                    throws RemoteException {
535                    try {
536                            com.liferay.portlet.asset.model.AssetCategory returnValue = AssetCategoryServiceUtil.moveCategory(categoryId,
537                                            parentCategoryId, vocabularyId, serviceContext);
538    
539                            return com.liferay.portlet.asset.model.AssetCategorySoap.toSoapModel(returnValue);
540                    }
541                    catch (Exception e) {
542                            _log.error(e, e);
543    
544                            throw new RemoteException(e.getMessage());
545                    }
546            }
547    
548            public static com.liferay.portlet.asset.model.AssetCategorySoap[] search(
549                    long groupId, java.lang.String keywords, long vocabularyId, int start,
550                    int end,
551                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetCategory> obc)
552                    throws RemoteException {
553                    try {
554                            java.util.List<com.liferay.portlet.asset.model.AssetCategory> returnValue =
555                                    AssetCategoryServiceUtil.search(groupId, keywords,
556                                            vocabularyId, start, end, obc);
557    
558                            return com.liferay.portlet.asset.model.AssetCategorySoap.toSoapModels(returnValue);
559                    }
560                    catch (Exception e) {
561                            _log.error(e, e);
562    
563                            throw new RemoteException(e.getMessage());
564                    }
565            }
566    
567            public static java.lang.String search(long groupId, java.lang.String name,
568                    java.lang.String[] categoryProperties, int start, int end)
569                    throws RemoteException {
570                    try {
571                            com.liferay.portal.kernel.json.JSONArray returnValue = AssetCategoryServiceUtil.search(groupId,
572                                            name, categoryProperties, start, end);
573    
574                            return returnValue.toString();
575                    }
576                    catch (Exception e) {
577                            _log.error(e, e);
578    
579                            throw new RemoteException(e.getMessage());
580                    }
581            }
582    
583            public static java.lang.String search(long[] groupIds,
584                    java.lang.String name, long[] vocabularyIds, int start, int end)
585                    throws RemoteException {
586                    try {
587                            com.liferay.portal.kernel.json.JSONArray returnValue = AssetCategoryServiceUtil.search(groupIds,
588                                            name, vocabularyIds, start, end);
589    
590                            return returnValue.toString();
591                    }
592                    catch (Exception e) {
593                            _log.error(e, e);
594    
595                            throw new RemoteException(e.getMessage());
596                    }
597            }
598    
599            public static com.liferay.portlet.asset.model.AssetCategoryDisplay searchCategoriesDisplay(
600                    long groupId, java.lang.String title, long vocabularyId, int start,
601                    int end) throws RemoteException {
602                    try {
603                            com.liferay.portlet.asset.model.AssetCategoryDisplay returnValue = AssetCategoryServiceUtil.searchCategoriesDisplay(groupId,
604                                            title, vocabularyId, start, end);
605    
606                            return returnValue;
607                    }
608                    catch (Exception e) {
609                            _log.error(e, e);
610    
611                            throw new RemoteException(e.getMessage());
612                    }
613            }
614    
615            public static com.liferay.portlet.asset.model.AssetCategoryDisplay searchCategoriesDisplay(
616                    long groupId, java.lang.String title, long parentCategoryId,
617                    long vocabularyId, int start, int end) throws RemoteException {
618                    try {
619                            com.liferay.portlet.asset.model.AssetCategoryDisplay returnValue = AssetCategoryServiceUtil.searchCategoriesDisplay(groupId,
620                                            title, parentCategoryId, vocabularyId, start, end);
621    
622                            return returnValue;
623                    }
624                    catch (Exception e) {
625                            _log.error(e, e);
626    
627                            throw new RemoteException(e.getMessage());
628                    }
629            }
630    
631            public static com.liferay.portlet.asset.model.AssetCategoryDisplay searchCategoriesDisplay(
632                    long groupId, java.lang.String title, long vocabularyId,
633                    long parentCategoryId, int start, int end,
634                    com.liferay.portal.kernel.search.Sort sort) throws RemoteException {
635                    try {
636                            com.liferay.portlet.asset.model.AssetCategoryDisplay returnValue = AssetCategoryServiceUtil.searchCategoriesDisplay(groupId,
637                                            title, vocabularyId, parentCategoryId, start, end, sort);
638    
639                            return returnValue;
640                    }
641                    catch (Exception e) {
642                            _log.error(e, e);
643    
644                            throw new RemoteException(e.getMessage());
645                    }
646            }
647    
648            public static com.liferay.portlet.asset.model.AssetCategoryDisplay searchCategoriesDisplay(
649                    long[] groupIds, java.lang.String title, long[] vocabularyIds,
650                    int start, int end) throws RemoteException {
651                    try {
652                            com.liferay.portlet.asset.model.AssetCategoryDisplay returnValue = AssetCategoryServiceUtil.searchCategoriesDisplay(groupIds,
653                                            title, vocabularyIds, start, end);
654    
655                            return returnValue;
656                    }
657                    catch (Exception e) {
658                            _log.error(e, e);
659    
660                            throw new RemoteException(e.getMessage());
661                    }
662            }
663    
664            public static com.liferay.portlet.asset.model.AssetCategoryDisplay searchCategoriesDisplay(
665                    long[] groupIds, java.lang.String title, long[] parentCategoryIds,
666                    long[] vocabularyIds, int start, int end) throws RemoteException {
667                    try {
668                            com.liferay.portlet.asset.model.AssetCategoryDisplay returnValue = AssetCategoryServiceUtil.searchCategoriesDisplay(groupIds,
669                                            title, parentCategoryIds, vocabularyIds, start, end);
670    
671                            return returnValue;
672                    }
673                    catch (Exception e) {
674                            _log.error(e, e);
675    
676                            throw new RemoteException(e.getMessage());
677                    }
678            }
679    
680            public static com.liferay.portlet.asset.model.AssetCategoryDisplay searchCategoriesDisplay(
681                    long[] groupIds, java.lang.String title, long[] vocabularyIds,
682                    long[] parentCategoryIds, int start, int end,
683                    com.liferay.portal.kernel.search.Sort sort) throws RemoteException {
684                    try {
685                            com.liferay.portlet.asset.model.AssetCategoryDisplay returnValue = AssetCategoryServiceUtil.searchCategoriesDisplay(groupIds,
686                                            title, vocabularyIds, parentCategoryIds, start, end, sort);
687    
688                            return returnValue;
689                    }
690                    catch (Exception e) {
691                            _log.error(e, e);
692    
693                            throw new RemoteException(e.getMessage());
694                    }
695            }
696    
697            public static com.liferay.portlet.asset.model.AssetCategorySoap updateCategory(
698                    long categoryId, long parentCategoryId,
699                    java.lang.String[] titleMapLanguageIds,
700                    java.lang.String[] titleMapValues,
701                    java.lang.String[] descriptionMapLanguageIds,
702                    java.lang.String[] descriptionMapValues, long vocabularyId,
703                    java.lang.String[] categoryProperties,
704                    com.liferay.portal.service.ServiceContext serviceContext)
705                    throws RemoteException {
706                    try {
707                            Map<Locale, String> titleMap = LocalizationUtil.getLocalizationMap(titleMapLanguageIds,
708                                            titleMapValues);
709                            Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
710                                            descriptionMapValues);
711    
712                            com.liferay.portlet.asset.model.AssetCategory returnValue = AssetCategoryServiceUtil.updateCategory(categoryId,
713                                            parentCategoryId, titleMap, descriptionMap, vocabularyId,
714                                            categoryProperties, serviceContext);
715    
716                            return com.liferay.portlet.asset.model.AssetCategorySoap.toSoapModel(returnValue);
717                    }
718                    catch (Exception e) {
719                            _log.error(e, e);
720    
721                            throw new RemoteException(e.getMessage());
722                    }
723            }
724    
725            private static Log _log = LogFactoryUtil.getLog(AssetCategoryServiceSoap.class);
726    }