001    /**
002     * Copyright (c) 2000-2012 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.journal.service.http;
016    
017    import com.liferay.portal.kernel.log.Log;
018    import com.liferay.portal.kernel.log.LogFactoryUtil;
019    import com.liferay.portal.kernel.util.ListUtil;
020    import com.liferay.portal.kernel.util.LocalizationUtil;
021    
022    import com.liferay.portlet.journal.service.JournalArticleServiceUtil;
023    
024    import java.rmi.RemoteException;
025    
026    import java.util.Locale;
027    import java.util.Map;
028    
029    /**
030     * <p>
031     * This class provides a SOAP utility for the
032     * {@link com.liferay.portlet.journal.service.JournalArticleServiceUtil} 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     * </p>
037     *
038     * <p>
039     * ServiceBuilder follows certain rules in translating the methods. For example,
040     * if the method in the service utility returns a {@link java.util.List}, that
041     * is translated to an array of {@link com.liferay.portlet.journal.model.JournalArticleSoap}.
042     * If the method in the service utility returns a
043     * {@link com.liferay.portlet.journal.model.JournalArticle}, that is translated to a
044     * {@link com.liferay.portlet.journal.model.JournalArticleSoap}. Methods that SOAP cannot
045     * safely wire are skipped.
046     * </p>
047     *
048     * <p>
049     * The benefits of using the SOAP utility is that it is cross platform
050     * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and
051     * even Perl, to call the generated services. One drawback of SOAP is that it is
052     * slow because it needs to serialize all calls into a text format (XML).
053     * </p>
054     *
055     * <p>
056     * You can see a list of services at http://localhost:8080/api/axis. Set the
057     * property <b>axis.servlet.hosts.allowed</b> in portal.properties to configure
058     * security.
059     * </p>
060     *
061     * <p>
062     * The SOAP utility is only generated for remote services.
063     * </p>
064     *
065     * @author    Brian Wing Shun Chan
066     * @see       JournalArticleServiceHttp
067     * @see       com.liferay.portlet.journal.model.JournalArticleSoap
068     * @see       com.liferay.portlet.journal.service.JournalArticleServiceUtil
069     * @generated
070     */
071    public class JournalArticleServiceSoap {
072            public static com.liferay.portlet.journal.model.JournalArticleSoap addArticle(
073                    long groupId, long folderId, long classNameId, long classPK,
074                    java.lang.String articleId, boolean autoArticleId,
075                    java.lang.String[] titleMapLanguageIds,
076                    java.lang.String[] titleMapValues,
077                    java.lang.String[] descriptionMapLanguageIds,
078                    java.lang.String[] descriptionMapValues, java.lang.String content,
079                    java.lang.String type, java.lang.String structureId,
080                    java.lang.String templateId, java.lang.String layoutUuid,
081                    int displayDateMonth, int displayDateDay, int displayDateYear,
082                    int displayDateHour, int displayDateMinute, int expirationDateMonth,
083                    int expirationDateDay, int expirationDateYear, int expirationDateHour,
084                    int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
085                    int reviewDateDay, int reviewDateYear, int reviewDateHour,
086                    int reviewDateMinute, boolean neverReview, boolean indexable,
087                    java.lang.String articleURL,
088                    com.liferay.portal.service.ServiceContext serviceContext)
089                    throws RemoteException {
090                    try {
091                            Map<Locale, String> titleMap = LocalizationUtil.getLocalizationMap(titleMapLanguageIds,
092                                            titleMapValues);
093                            Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
094                                            descriptionMapValues);
095    
096                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.addArticle(groupId,
097                                            folderId, classNameId, classPK, articleId, autoArticleId,
098                                            titleMap, descriptionMap, content, type, structureId,
099                                            templateId, layoutUuid, displayDateMonth, displayDateDay,
100                                            displayDateYear, displayDateHour, displayDateMinute,
101                                            expirationDateMonth, expirationDateDay, expirationDateYear,
102                                            expirationDateHour, expirationDateMinute, neverExpire,
103                                            reviewDateMonth, reviewDateDay, reviewDateYear,
104                                            reviewDateHour, reviewDateMinute, neverReview, indexable,
105                                            articleURL, serviceContext);
106    
107                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
108                    }
109                    catch (Exception e) {
110                            _log.error(e, e);
111    
112                            throw new RemoteException(e.getMessage());
113                    }
114            }
115    
116            public static com.liferay.portlet.journal.model.JournalArticleSoap copyArticle(
117                    long groupId, java.lang.String oldArticleId,
118                    java.lang.String newArticleId, boolean autoArticleId, double version)
119                    throws RemoteException {
120                    try {
121                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.copyArticle(groupId,
122                                            oldArticleId, newArticleId, autoArticleId, version);
123    
124                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
125                    }
126                    catch (Exception e) {
127                            _log.error(e, e);
128    
129                            throw new RemoteException(e.getMessage());
130                    }
131            }
132    
133            public static void deleteArticle(long groupId, java.lang.String articleId,
134                    double version, java.lang.String articleURL,
135                    com.liferay.portal.service.ServiceContext serviceContext)
136                    throws RemoteException {
137                    try {
138                            JournalArticleServiceUtil.deleteArticle(groupId, articleId,
139                                    version, articleURL, serviceContext);
140                    }
141                    catch (Exception e) {
142                            _log.error(e, e);
143    
144                            throw new RemoteException(e.getMessage());
145                    }
146            }
147    
148            public static void deleteArticle(long groupId, java.lang.String articleId,
149                    java.lang.String articleURL,
150                    com.liferay.portal.service.ServiceContext serviceContext)
151                    throws RemoteException {
152                    try {
153                            JournalArticleServiceUtil.deleteArticle(groupId, articleId,
154                                    articleURL, serviceContext);
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.journal.model.JournalArticleSoap expireArticle(
164                    long groupId, java.lang.String articleId, double version,
165                    java.lang.String articleURL,
166                    com.liferay.portal.service.ServiceContext serviceContext)
167                    throws RemoteException {
168                    try {
169                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.expireArticle(groupId,
170                                            articleId, version, articleURL, serviceContext);
171    
172                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
173                    }
174                    catch (Exception e) {
175                            _log.error(e, e);
176    
177                            throw new RemoteException(e.getMessage());
178                    }
179            }
180    
181            public static void expireArticle(long groupId, java.lang.String articleId,
182                    java.lang.String articleURL,
183                    com.liferay.portal.service.ServiceContext serviceContext)
184                    throws RemoteException {
185                    try {
186                            JournalArticleServiceUtil.expireArticle(groupId, articleId,
187                                    articleURL, serviceContext);
188                    }
189                    catch (Exception e) {
190                            _log.error(e, e);
191    
192                            throw new RemoteException(e.getMessage());
193                    }
194            }
195    
196            public static com.liferay.portlet.journal.model.JournalArticleSoap getArticle(
197                    long id) throws RemoteException {
198                    try {
199                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getArticle(id);
200    
201                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
202                    }
203                    catch (Exception e) {
204                            _log.error(e, e);
205    
206                            throw new RemoteException(e.getMessage());
207                    }
208            }
209    
210            public static com.liferay.portlet.journal.model.JournalArticleSoap getArticle(
211                    long groupId, java.lang.String articleId) throws RemoteException {
212                    try {
213                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getArticle(groupId,
214                                            articleId);
215    
216                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
217                    }
218                    catch (Exception e) {
219                            _log.error(e, e);
220    
221                            throw new RemoteException(e.getMessage());
222                    }
223            }
224    
225            public static com.liferay.portlet.journal.model.JournalArticleSoap getArticle(
226                    long groupId, java.lang.String articleId, double version)
227                    throws RemoteException {
228                    try {
229                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getArticle(groupId,
230                                            articleId, version);
231    
232                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
233                    }
234                    catch (Exception e) {
235                            _log.error(e, e);
236    
237                            throw new RemoteException(e.getMessage());
238                    }
239            }
240    
241            public static com.liferay.portlet.journal.model.JournalArticleSoap getArticle(
242                    long groupId, java.lang.String className, long classPK)
243                    throws RemoteException {
244                    try {
245                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getArticle(groupId,
246                                            className, classPK);
247    
248                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
249                    }
250                    catch (Exception e) {
251                            _log.error(e, e);
252    
253                            throw new RemoteException(e.getMessage());
254                    }
255            }
256    
257            public static com.liferay.portlet.journal.model.JournalArticleSoap getArticleByUrlTitle(
258                    long groupId, java.lang.String urlTitle) throws RemoteException {
259                    try {
260                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getArticleByUrlTitle(groupId,
261                                            urlTitle);
262    
263                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
264                    }
265                    catch (Exception e) {
266                            _log.error(e, e);
267    
268                            throw new RemoteException(e.getMessage());
269                    }
270            }
271    
272            public static com.liferay.portlet.journal.model.JournalArticleSoap[] getArticles(
273                    long groupId, long folderId) throws RemoteException {
274                    try {
275                            java.util.List<com.liferay.portlet.journal.model.JournalArticle> returnValue =
276                                    JournalArticleServiceUtil.getArticles(groupId, folderId);
277    
278                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModels(returnValue);
279                    }
280                    catch (Exception e) {
281                            _log.error(e, e);
282    
283                            throw new RemoteException(e.getMessage());
284                    }
285            }
286    
287            public static com.liferay.portlet.journal.model.JournalArticleSoap[] getArticles(
288                    long groupId, long folderId, int start, int end,
289                    com.liferay.portal.kernel.util.OrderByComparator obc)
290                    throws RemoteException {
291                    try {
292                            java.util.List<com.liferay.portlet.journal.model.JournalArticle> returnValue =
293                                    JournalArticleServiceUtil.getArticles(groupId, folderId, start,
294                                            end, obc);
295    
296                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModels(returnValue);
297                    }
298                    catch (Exception e) {
299                            _log.error(e, e);
300    
301                            throw new RemoteException(e.getMessage());
302                    }
303            }
304    
305            public static com.liferay.portlet.journal.model.JournalArticleSoap[] getArticlesByArticleId(
306                    long groupId, java.lang.String articleId, int start, int end,
307                    com.liferay.portal.kernel.util.OrderByComparator obc)
308                    throws RemoteException {
309                    try {
310                            java.util.List<com.liferay.portlet.journal.model.JournalArticle> returnValue =
311                                    JournalArticleServiceUtil.getArticlesByArticleId(groupId,
312                                            articleId, start, end, obc);
313    
314                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModels(returnValue);
315                    }
316                    catch (Exception e) {
317                            _log.error(e, e);
318    
319                            throw new RemoteException(e.getMessage());
320                    }
321            }
322    
323            public static com.liferay.portlet.journal.model.JournalArticleSoap[] getArticlesByLayoutUuid(
324                    long groupId, java.lang.String layoutUuid) throws RemoteException {
325                    try {
326                            java.util.List<com.liferay.portlet.journal.model.JournalArticle> returnValue =
327                                    JournalArticleServiceUtil.getArticlesByLayoutUuid(groupId,
328                                            layoutUuid);
329    
330                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModels(returnValue);
331                    }
332                    catch (Exception e) {
333                            _log.error(e, e);
334    
335                            throw new RemoteException(e.getMessage());
336                    }
337            }
338    
339            public static com.liferay.portlet.journal.model.JournalArticleSoap[] getArticlesByStructureId(
340                    long groupId, long classNameId, java.lang.String structureId,
341                    int status, int start, int end,
342                    com.liferay.portal.kernel.util.OrderByComparator obc)
343                    throws RemoteException {
344                    try {
345                            java.util.List<com.liferay.portlet.journal.model.JournalArticle> returnValue =
346                                    JournalArticleServiceUtil.getArticlesByStructureId(groupId,
347                                            classNameId, structureId, status, start, end, obc);
348    
349                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModels(returnValue);
350                    }
351                    catch (Exception e) {
352                            _log.error(e, e);
353    
354                            throw new RemoteException(e.getMessage());
355                    }
356            }
357    
358            public static com.liferay.portlet.journal.model.JournalArticleSoap[] getArticlesByStructureId(
359                    long groupId, java.lang.String structureId, int start, int end,
360                    com.liferay.portal.kernel.util.OrderByComparator obc)
361                    throws RemoteException {
362                    try {
363                            java.util.List<com.liferay.portlet.journal.model.JournalArticle> returnValue =
364                                    JournalArticleServiceUtil.getArticlesByStructureId(groupId,
365                                            structureId, start, end, obc);
366    
367                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModels(returnValue);
368                    }
369                    catch (Exception e) {
370                            _log.error(e, e);
371    
372                            throw new RemoteException(e.getMessage());
373                    }
374            }
375    
376            public static com.liferay.portlet.journal.model.JournalArticleSoap[] getArticlesByUserId(
377                    long groupId, long userId, long classNameId, int start, int end,
378                    com.liferay.portal.kernel.util.OrderByComparator obc)
379                    throws RemoteException {
380                    try {
381                            java.util.List<com.liferay.portlet.journal.model.JournalArticle> returnValue =
382                                    JournalArticleServiceUtil.getArticlesByUserId(groupId, userId,
383                                            classNameId, start, end, obc);
384    
385                            return com.liferay.portlet.journal.model.JournalArticleSoap.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 getArticlesCount(long groupId, long folderId)
395                    throws RemoteException {
396                    try {
397                            int returnValue = JournalArticleServiceUtil.getArticlesCount(groupId,
398                                            folderId);
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 getArticlesCountByArticleId(long groupId,
410                    java.lang.String articleId) throws RemoteException {
411                    try {
412                            int returnValue = JournalArticleServiceUtil.getArticlesCountByArticleId(groupId,
413                                            articleId);
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 getArticlesCountByStructureId(long groupId,
425                    long classNameId, java.lang.String structureId, int status)
426                    throws RemoteException {
427                    try {
428                            int returnValue = JournalArticleServiceUtil.getArticlesCountByStructureId(groupId,
429                                            classNameId, structureId, status);
430    
431                            return returnValue;
432                    }
433                    catch (Exception e) {
434                            _log.error(e, e);
435    
436                            throw new RemoteException(e.getMessage());
437                    }
438            }
439    
440            public static int getArticlesCountByStructureId(long groupId,
441                    java.lang.String structureId) throws RemoteException {
442                    try {
443                            int returnValue = JournalArticleServiceUtil.getArticlesCountByStructureId(groupId,
444                                            structureId);
445    
446                            return returnValue;
447                    }
448                    catch (Exception e) {
449                            _log.error(e, e);
450    
451                            throw new RemoteException(e.getMessage());
452                    }
453            }
454    
455            public static int getArticlesCountByUserId(long groupId, long userId,
456                    long classNameId) throws RemoteException {
457                    try {
458                            int returnValue = JournalArticleServiceUtil.getArticlesCountByUserId(groupId,
459                                            userId, classNameId);
460    
461                            return returnValue;
462                    }
463                    catch (Exception e) {
464                            _log.error(e, e);
465    
466                            throw new RemoteException(e.getMessage());
467                    }
468            }
469    
470            public static com.liferay.portlet.journal.model.JournalArticleSoap getDisplayArticleByUrlTitle(
471                    long groupId, java.lang.String urlTitle) throws RemoteException {
472                    try {
473                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getDisplayArticleByUrlTitle(groupId,
474                                            urlTitle);
475    
476                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
477                    }
478                    catch (Exception e) {
479                            _log.error(e, e);
480    
481                            throw new RemoteException(e.getMessage());
482                    }
483            }
484    
485            public static int getFoldersAndArticlesCount(long groupId, Long[] folderIds)
486                    throws RemoteException {
487                    try {
488                            int returnValue = JournalArticleServiceUtil.getFoldersAndArticlesCount(groupId,
489                                            ListUtil.toList(folderIds));
490    
491                            return returnValue;
492                    }
493                    catch (Exception e) {
494                            _log.error(e, e);
495    
496                            throw new RemoteException(e.getMessage());
497                    }
498            }
499    
500            public static com.liferay.portlet.journal.model.JournalArticleSoap getLatestArticle(
501                    long resourcePrimKey) throws RemoteException {
502                    try {
503                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getLatestArticle(resourcePrimKey);
504    
505                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
506                    }
507                    catch (Exception e) {
508                            _log.error(e, e);
509    
510                            throw new RemoteException(e.getMessage());
511                    }
512            }
513    
514            public static com.liferay.portlet.journal.model.JournalArticleSoap getLatestArticle(
515                    long groupId, java.lang.String articleId, int status)
516                    throws RemoteException {
517                    try {
518                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getLatestArticle(groupId,
519                                            articleId, status);
520    
521                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
522                    }
523                    catch (Exception e) {
524                            _log.error(e, e);
525    
526                            throw new RemoteException(e.getMessage());
527                    }
528            }
529    
530            public static com.liferay.portlet.journal.model.JournalArticleSoap getLatestArticle(
531                    long groupId, java.lang.String className, long classPK)
532                    throws RemoteException {
533                    try {
534                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getLatestArticle(groupId,
535                                            className, classPK);
536    
537                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
538                    }
539                    catch (Exception e) {
540                            _log.error(e, e);
541    
542                            throw new RemoteException(e.getMessage());
543                    }
544            }
545    
546            public static void moveArticle(long groupId, java.lang.String articleId,
547                    long newFolderId) throws RemoteException {
548                    try {
549                            JournalArticleServiceUtil.moveArticle(groupId, articleId,
550                                    newFolderId);
551                    }
552                    catch (Exception e) {
553                            _log.error(e, e);
554    
555                            throw new RemoteException(e.getMessage());
556                    }
557            }
558    
559            public static com.liferay.portlet.journal.model.JournalArticleSoap moveArticleToTrash(
560                    long groupId, java.lang.String articleId) throws RemoteException {
561                    try {
562                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.moveArticleToTrash(groupId,
563                                            articleId);
564    
565                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
566                    }
567                    catch (Exception e) {
568                            _log.error(e, e);
569    
570                            throw new RemoteException(e.getMessage());
571                    }
572            }
573    
574            public static void removeArticleLocale(long companyId,
575                    java.lang.String languageId) throws RemoteException {
576                    try {
577                            JournalArticleServiceUtil.removeArticleLocale(companyId, languageId);
578                    }
579                    catch (Exception e) {
580                            _log.error(e, e);
581    
582                            throw new RemoteException(e.getMessage());
583                    }
584            }
585    
586            public static com.liferay.portlet.journal.model.JournalArticleSoap removeArticleLocale(
587                    long groupId, java.lang.String articleId, double version,
588                    java.lang.String languageId) throws RemoteException {
589                    try {
590                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.removeArticleLocale(groupId,
591                                            articleId, version, languageId);
592    
593                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
594                    }
595                    catch (Exception e) {
596                            _log.error(e, e);
597    
598                            throw new RemoteException(e.getMessage());
599                    }
600            }
601    
602            public static void restoreArticleFromTrash(long resourcePrimKey)
603                    throws RemoteException {
604                    try {
605                            JournalArticleServiceUtil.restoreArticleFromTrash(resourcePrimKey);
606                    }
607                    catch (Exception e) {
608                            _log.error(e, e);
609    
610                            throw new RemoteException(e.getMessage());
611                    }
612            }
613    
614            public static void restoreArticleFromTrash(long groupId,
615                    java.lang.String articleId) throws RemoteException {
616                    try {
617                            JournalArticleServiceUtil.restoreArticleFromTrash(groupId, articleId);
618                    }
619                    catch (Exception e) {
620                            _log.error(e, e);
621    
622                            throw new RemoteException(e.getMessage());
623                    }
624            }
625    
626            public static com.liferay.portlet.journal.model.JournalArticleSoap[] search(
627                    long companyId, long groupId, Long[] folderIds, long classNameId,
628                    java.lang.String keywords, java.lang.Double version,
629                    java.lang.String type, java.lang.String structureId,
630                    java.lang.String templateId, java.util.Date displayDateGT,
631                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
632                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
633                    throws RemoteException {
634                    try {
635                            java.util.List<com.liferay.portlet.journal.model.JournalArticle> returnValue =
636                                    JournalArticleServiceUtil.search(companyId, groupId,
637                                            ListUtil.toList(folderIds), classNameId, keywords, version,
638                                            type, structureId, templateId, displayDateGT,
639                                            displayDateLT, status, reviewDate, start, end, obc);
640    
641                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModels(returnValue);
642                    }
643                    catch (Exception e) {
644                            _log.error(e, e);
645    
646                            throw new RemoteException(e.getMessage());
647                    }
648            }
649    
650            public static com.liferay.portlet.journal.model.JournalArticleSoap[] search(
651                    long companyId, long groupId, Long[] folderIds, long classNameId,
652                    java.lang.String articleId, java.lang.Double version,
653                    java.lang.String title, java.lang.String description,
654                    java.lang.String content, java.lang.String type,
655                    java.lang.String structureId, java.lang.String templateId,
656                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
657                    java.util.Date reviewDate, boolean andOperator, int start, int end,
658                    com.liferay.portal.kernel.util.OrderByComparator obc)
659                    throws RemoteException {
660                    try {
661                            java.util.List<com.liferay.portlet.journal.model.JournalArticle> returnValue =
662                                    JournalArticleServiceUtil.search(companyId, groupId,
663                                            ListUtil.toList(folderIds), classNameId, articleId,
664                                            version, title, description, content, type, structureId,
665                                            templateId, displayDateGT, displayDateLT, status,
666                                            reviewDate, andOperator, start, end, obc);
667    
668                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModels(returnValue);
669                    }
670                    catch (Exception e) {
671                            _log.error(e, e);
672    
673                            throw new RemoteException(e.getMessage());
674                    }
675            }
676    
677            public static com.liferay.portlet.journal.model.JournalArticleSoap[] search(
678                    long companyId, long groupId, Long[] folderIds, long classNameId,
679                    java.lang.String articleId, java.lang.Double version,
680                    java.lang.String title, java.lang.String description,
681                    java.lang.String content, java.lang.String type,
682                    java.lang.String[] structureIds, java.lang.String[] templateIds,
683                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
684                    java.util.Date reviewDate, boolean andOperator, int start, int end,
685                    com.liferay.portal.kernel.util.OrderByComparator obc)
686                    throws RemoteException {
687                    try {
688                            java.util.List<com.liferay.portlet.journal.model.JournalArticle> returnValue =
689                                    JournalArticleServiceUtil.search(companyId, groupId,
690                                            ListUtil.toList(folderIds), classNameId, articleId,
691                                            version, title, description, content, type, structureIds,
692                                            templateIds, displayDateGT, displayDateLT, status,
693                                            reviewDate, andOperator, start, end, obc);
694    
695                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModels(returnValue);
696                    }
697                    catch (Exception e) {
698                            _log.error(e, e);
699    
700                            throw new RemoteException(e.getMessage());
701                    }
702            }
703    
704            public static int searchCount(long companyId, long groupId,
705                    Long[] folderIds, long classNameId, java.lang.String keywords,
706                    java.lang.Double version, java.lang.String type,
707                    java.lang.String structureId, java.lang.String templateId,
708                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
709                    java.util.Date reviewDate) throws RemoteException {
710                    try {
711                            int returnValue = JournalArticleServiceUtil.searchCount(companyId,
712                                            groupId, ListUtil.toList(folderIds), classNameId, keywords,
713                                            version, type, structureId, templateId, displayDateGT,
714                                            displayDateLT, status, reviewDate);
715    
716                            return returnValue;
717                    }
718                    catch (Exception e) {
719                            _log.error(e, e);
720    
721                            throw new RemoteException(e.getMessage());
722                    }
723            }
724    
725            public static int searchCount(long companyId, long groupId,
726                    Long[] folderIds, long classNameId, java.lang.String articleId,
727                    java.lang.Double version, java.lang.String title,
728                    java.lang.String description, java.lang.String content,
729                    java.lang.String type, java.lang.String structureId,
730                    java.lang.String templateId, java.util.Date displayDateGT,
731                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
732                    boolean andOperator) throws RemoteException {
733                    try {
734                            int returnValue = JournalArticleServiceUtil.searchCount(companyId,
735                                            groupId, ListUtil.toList(folderIds), classNameId,
736                                            articleId, version, title, description, content, type,
737                                            structureId, templateId, displayDateGT, displayDateLT,
738                                            status, reviewDate, andOperator);
739    
740                            return returnValue;
741                    }
742                    catch (Exception e) {
743                            _log.error(e, e);
744    
745                            throw new RemoteException(e.getMessage());
746                    }
747            }
748    
749            public static int searchCount(long companyId, long groupId,
750                    Long[] folderIds, long classNameId, java.lang.String articleId,
751                    java.lang.Double version, java.lang.String title,
752                    java.lang.String description, java.lang.String content,
753                    java.lang.String type, java.lang.String[] structureIds,
754                    java.lang.String[] templateIds, java.util.Date displayDateGT,
755                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
756                    boolean andOperator) throws RemoteException {
757                    try {
758                            int returnValue = JournalArticleServiceUtil.searchCount(companyId,
759                                            groupId, ListUtil.toList(folderIds), classNameId,
760                                            articleId, version, title, description, content, type,
761                                            structureIds, templateIds, displayDateGT, displayDateLT,
762                                            status, reviewDate, andOperator);
763    
764                            return returnValue;
765                    }
766                    catch (Exception e) {
767                            _log.error(e, e);
768    
769                            throw new RemoteException(e.getMessage());
770                    }
771            }
772    
773            public static void subscribe(long groupId) throws RemoteException {
774                    try {
775                            JournalArticleServiceUtil.subscribe(groupId);
776                    }
777                    catch (Exception e) {
778                            _log.error(e, e);
779    
780                            throw new RemoteException(e.getMessage());
781                    }
782            }
783    
784            public static void unsubscribe(long groupId) throws RemoteException {
785                    try {
786                            JournalArticleServiceUtil.unsubscribe(groupId);
787                    }
788                    catch (Exception e) {
789                            _log.error(e, e);
790    
791                            throw new RemoteException(e.getMessage());
792                    }
793            }
794    
795            public static com.liferay.portlet.journal.model.JournalArticleSoap updateArticle(
796                    long userId, long groupId, long folderId, java.lang.String articleId,
797                    double version, java.lang.String[] titleMapLanguageIds,
798                    java.lang.String[] titleMapValues,
799                    java.lang.String[] descriptionMapLanguageIds,
800                    java.lang.String[] descriptionMapValues, java.lang.String content,
801                    java.lang.String layoutUuid,
802                    com.liferay.portal.service.ServiceContext serviceContext)
803                    throws RemoteException {
804                    try {
805                            Map<Locale, String> titleMap = LocalizationUtil.getLocalizationMap(titleMapLanguageIds,
806                                            titleMapValues);
807                            Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
808                                            descriptionMapValues);
809    
810                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.updateArticle(userId,
811                                            groupId, folderId, articleId, version, titleMap,
812                                            descriptionMap, content, layoutUuid, serviceContext);
813    
814                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
815                    }
816                    catch (Exception e) {
817                            _log.error(e, e);
818    
819                            throw new RemoteException(e.getMessage());
820                    }
821            }
822    
823            public static com.liferay.portlet.journal.model.JournalArticleSoap updateArticle(
824                    long groupId, long folderId, java.lang.String articleId,
825                    double version, java.lang.String content,
826                    com.liferay.portal.service.ServiceContext serviceContext)
827                    throws RemoteException {
828                    try {
829                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.updateArticle(groupId,
830                                            folderId, articleId, version, content, serviceContext);
831    
832                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
833                    }
834                    catch (Exception e) {
835                            _log.error(e, e);
836    
837                            throw new RemoteException(e.getMessage());
838                    }
839            }
840    
841            public static com.liferay.portlet.journal.model.JournalArticleSoap updateContent(
842                    long groupId, java.lang.String articleId, double version,
843                    java.lang.String content) throws RemoteException {
844                    try {
845                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.updateContent(groupId,
846                                            articleId, version, content);
847    
848                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
849                    }
850                    catch (Exception e) {
851                            _log.error(e, e);
852    
853                            throw new RemoteException(e.getMessage());
854                    }
855            }
856    
857            public static com.liferay.portlet.journal.model.JournalArticleSoap updateStatus(
858                    long groupId, java.lang.String articleId, double version, int status,
859                    java.lang.String articleURL,
860                    com.liferay.portal.service.ServiceContext serviceContext)
861                    throws RemoteException {
862                    try {
863                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.updateStatus(groupId,
864                                            articleId, version, status, articleURL, serviceContext);
865    
866                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
867                    }
868                    catch (Exception e) {
869                            _log.error(e, e);
870    
871                            throw new RemoteException(e.getMessage());
872                    }
873            }
874    
875            private static Log _log = LogFactoryUtil.getLog(JournalArticleServiceSoap.class);
876    }