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, java.lang.String structureId, int start, int end,
341                    com.liferay.portal.kernel.util.OrderByComparator obc)
342                    throws RemoteException {
343                    try {
344                            java.util.List<com.liferay.portlet.journal.model.JournalArticle> returnValue =
345                                    JournalArticleServiceUtil.getArticlesByStructureId(groupId,
346                                            structureId, start, end, obc);
347    
348                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModels(returnValue);
349                    }
350                    catch (Exception e) {
351                            _log.error(e, e);
352    
353                            throw new RemoteException(e.getMessage());
354                    }
355            }
356    
357            public static com.liferay.portlet.journal.model.JournalArticleSoap[] getArticlesByUserId(
358                    long groupId, long userId, long classNameId, int start, int end,
359                    com.liferay.portal.kernel.util.OrderByComparator obc)
360                    throws RemoteException {
361                    try {
362                            java.util.List<com.liferay.portlet.journal.model.JournalArticle> returnValue =
363                                    JournalArticleServiceUtil.getArticlesByUserId(groupId, userId,
364                                            classNameId, start, end, obc);
365    
366                            return com.liferay.portlet.journal.model.JournalArticleSoap.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 int getArticlesCount(long groupId, long folderId)
376                    throws RemoteException {
377                    try {
378                            int returnValue = JournalArticleServiceUtil.getArticlesCount(groupId,
379                                            folderId);
380    
381                            return returnValue;
382                    }
383                    catch (Exception e) {
384                            _log.error(e, e);
385    
386                            throw new RemoteException(e.getMessage());
387                    }
388            }
389    
390            public static int getArticlesCountByArticleId(long groupId,
391                    java.lang.String articleId) throws RemoteException {
392                    try {
393                            int returnValue = JournalArticleServiceUtil.getArticlesCountByArticleId(groupId,
394                                            articleId);
395    
396                            return returnValue;
397                    }
398                    catch (Exception e) {
399                            _log.error(e, e);
400    
401                            throw new RemoteException(e.getMessage());
402                    }
403            }
404    
405            public static int getArticlesCountByStructureId(long groupId,
406                    java.lang.String structureId) throws RemoteException {
407                    try {
408                            int returnValue = JournalArticleServiceUtil.getArticlesCountByStructureId(groupId,
409                                            structureId);
410    
411                            return returnValue;
412                    }
413                    catch (Exception e) {
414                            _log.error(e, e);
415    
416                            throw new RemoteException(e.getMessage());
417                    }
418            }
419    
420            public static int getArticlesCountByUserId(long groupId, long userId,
421                    long classNameId) throws RemoteException {
422                    try {
423                            int returnValue = JournalArticleServiceUtil.getArticlesCountByUserId(groupId,
424                                            userId, classNameId);
425    
426                            return returnValue;
427                    }
428                    catch (Exception e) {
429                            _log.error(e, e);
430    
431                            throw new RemoteException(e.getMessage());
432                    }
433            }
434    
435            public static com.liferay.portlet.journal.model.JournalArticleSoap getDisplayArticleByUrlTitle(
436                    long groupId, java.lang.String urlTitle) throws RemoteException {
437                    try {
438                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getDisplayArticleByUrlTitle(groupId,
439                                            urlTitle);
440    
441                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
442                    }
443                    catch (Exception e) {
444                            _log.error(e, e);
445    
446                            throw new RemoteException(e.getMessage());
447                    }
448            }
449    
450            public static int getFoldersAndArticlesCount(long groupId, Long[] folderIds)
451                    throws RemoteException {
452                    try {
453                            int returnValue = JournalArticleServiceUtil.getFoldersAndArticlesCount(groupId,
454                                            ListUtil.toList(folderIds));
455    
456                            return returnValue;
457                    }
458                    catch (Exception e) {
459                            _log.error(e, e);
460    
461                            throw new RemoteException(e.getMessage());
462                    }
463            }
464    
465            public static com.liferay.portlet.journal.model.JournalArticleSoap getLatestArticle(
466                    long resourcePrimKey) throws RemoteException {
467                    try {
468                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getLatestArticle(resourcePrimKey);
469    
470                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
471                    }
472                    catch (Exception e) {
473                            _log.error(e, e);
474    
475                            throw new RemoteException(e.getMessage());
476                    }
477            }
478    
479            public static com.liferay.portlet.journal.model.JournalArticleSoap getLatestArticle(
480                    long groupId, java.lang.String articleId, int status)
481                    throws RemoteException {
482                    try {
483                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getLatestArticle(groupId,
484                                            articleId, status);
485    
486                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
487                    }
488                    catch (Exception e) {
489                            _log.error(e, e);
490    
491                            throw new RemoteException(e.getMessage());
492                    }
493            }
494    
495            public static com.liferay.portlet.journal.model.JournalArticleSoap getLatestArticle(
496                    long groupId, java.lang.String className, long classPK)
497                    throws RemoteException {
498                    try {
499                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getLatestArticle(groupId,
500                                            className, classPK);
501    
502                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
503                    }
504                    catch (Exception e) {
505                            _log.error(e, e);
506    
507                            throw new RemoteException(e.getMessage());
508                    }
509            }
510    
511            public static void moveArticle(long groupId, java.lang.String articleId,
512                    long newFolderId) throws RemoteException {
513                    try {
514                            JournalArticleServiceUtil.moveArticle(groupId, articleId,
515                                    newFolderId);
516                    }
517                    catch (Exception e) {
518                            _log.error(e, e);
519    
520                            throw new RemoteException(e.getMessage());
521                    }
522            }
523    
524            public static void removeArticleLocale(long companyId,
525                    java.lang.String languageId) throws RemoteException {
526                    try {
527                            JournalArticleServiceUtil.removeArticleLocale(companyId, languageId);
528                    }
529                    catch (Exception e) {
530                            _log.error(e, e);
531    
532                            throw new RemoteException(e.getMessage());
533                    }
534            }
535    
536            public static com.liferay.portlet.journal.model.JournalArticleSoap removeArticleLocale(
537                    long groupId, java.lang.String articleId, double version,
538                    java.lang.String languageId) throws RemoteException {
539                    try {
540                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.removeArticleLocale(groupId,
541                                            articleId, version, languageId);
542    
543                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
544                    }
545                    catch (Exception e) {
546                            _log.error(e, e);
547    
548                            throw new RemoteException(e.getMessage());
549                    }
550            }
551    
552            public static com.liferay.portlet.journal.model.JournalArticleSoap[] search(
553                    long companyId, long groupId, Long[] folderIds, long classNameId,
554                    java.lang.String keywords, java.lang.Double version,
555                    java.lang.String type, java.lang.String structureId,
556                    java.lang.String templateId, java.util.Date displayDateGT,
557                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
558                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
559                    throws RemoteException {
560                    try {
561                            java.util.List<com.liferay.portlet.journal.model.JournalArticle> returnValue =
562                                    JournalArticleServiceUtil.search(companyId, groupId,
563                                            ListUtil.toList(folderIds), classNameId, keywords, version,
564                                            type, structureId, templateId, displayDateGT,
565                                            displayDateLT, status, reviewDate, start, end, obc);
566    
567                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModels(returnValue);
568                    }
569                    catch (Exception e) {
570                            _log.error(e, e);
571    
572                            throw new RemoteException(e.getMessage());
573                    }
574            }
575    
576            public static com.liferay.portlet.journal.model.JournalArticleSoap[] search(
577                    long companyId, long groupId, Long[] folderIds, long classNameId,
578                    java.lang.String articleId, java.lang.Double version,
579                    java.lang.String title, java.lang.String description,
580                    java.lang.String content, java.lang.String type,
581                    java.lang.String structureId, java.lang.String templateId,
582                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
583                    java.util.Date reviewDate, boolean andOperator, int start, int end,
584                    com.liferay.portal.kernel.util.OrderByComparator obc)
585                    throws RemoteException {
586                    try {
587                            java.util.List<com.liferay.portlet.journal.model.JournalArticle> returnValue =
588                                    JournalArticleServiceUtil.search(companyId, groupId,
589                                            ListUtil.toList(folderIds), classNameId, articleId,
590                                            version, title, description, content, type, structureId,
591                                            templateId, displayDateGT, displayDateLT, status,
592                                            reviewDate, andOperator, start, end, obc);
593    
594                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModels(returnValue);
595                    }
596                    catch (Exception e) {
597                            _log.error(e, e);
598    
599                            throw new RemoteException(e.getMessage());
600                    }
601            }
602    
603            public static com.liferay.portlet.journal.model.JournalArticleSoap[] search(
604                    long companyId, long groupId, Long[] folderIds, long classNameId,
605                    java.lang.String articleId, java.lang.Double version,
606                    java.lang.String title, java.lang.String description,
607                    java.lang.String content, java.lang.String type,
608                    java.lang.String[] structureIds, java.lang.String[] templateIds,
609                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
610                    java.util.Date reviewDate, boolean andOperator, int start, int end,
611                    com.liferay.portal.kernel.util.OrderByComparator obc)
612                    throws RemoteException {
613                    try {
614                            java.util.List<com.liferay.portlet.journal.model.JournalArticle> returnValue =
615                                    JournalArticleServiceUtil.search(companyId, groupId,
616                                            ListUtil.toList(folderIds), classNameId, articleId,
617                                            version, title, description, content, type, structureIds,
618                                            templateIds, displayDateGT, displayDateLT, status,
619                                            reviewDate, andOperator, start, end, obc);
620    
621                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModels(returnValue);
622                    }
623                    catch (Exception e) {
624                            _log.error(e, e);
625    
626                            throw new RemoteException(e.getMessage());
627                    }
628            }
629    
630            public static int searchCount(long companyId, long groupId,
631                    Long[] folderIds, long classNameId, java.lang.String keywords,
632                    java.lang.Double version, java.lang.String type,
633                    java.lang.String structureId, java.lang.String templateId,
634                    java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
635                    java.util.Date reviewDate) throws RemoteException {
636                    try {
637                            int returnValue = JournalArticleServiceUtil.searchCount(companyId,
638                                            groupId, ListUtil.toList(folderIds), classNameId, keywords,
639                                            version, type, structureId, templateId, displayDateGT,
640                                            displayDateLT, status, reviewDate);
641    
642                            return returnValue;
643                    }
644                    catch (Exception e) {
645                            _log.error(e, e);
646    
647                            throw new RemoteException(e.getMessage());
648                    }
649            }
650    
651            public static int searchCount(long companyId, long groupId,
652                    Long[] folderIds, long classNameId, java.lang.String articleId,
653                    java.lang.Double version, java.lang.String title,
654                    java.lang.String description, java.lang.String content,
655                    java.lang.String type, java.lang.String structureId,
656                    java.lang.String templateId, java.util.Date displayDateGT,
657                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
658                    boolean andOperator) throws RemoteException {
659                    try {
660                            int returnValue = JournalArticleServiceUtil.searchCount(companyId,
661                                            groupId, ListUtil.toList(folderIds), classNameId,
662                                            articleId, version, title, description, content, type,
663                                            structureId, templateId, displayDateGT, displayDateLT,
664                                            status, reviewDate, andOperator);
665    
666                            return returnValue;
667                    }
668                    catch (Exception e) {
669                            _log.error(e, e);
670    
671                            throw new RemoteException(e.getMessage());
672                    }
673            }
674    
675            public static int searchCount(long companyId, long groupId,
676                    Long[] folderIds, long classNameId, java.lang.String articleId,
677                    java.lang.Double version, java.lang.String title,
678                    java.lang.String description, java.lang.String content,
679                    java.lang.String type, java.lang.String[] structureIds,
680                    java.lang.String[] templateIds, java.util.Date displayDateGT,
681                    java.util.Date displayDateLT, int status, java.util.Date reviewDate,
682                    boolean andOperator) throws RemoteException {
683                    try {
684                            int returnValue = JournalArticleServiceUtil.searchCount(companyId,
685                                            groupId, ListUtil.toList(folderIds), classNameId,
686                                            articleId, version, title, description, content, type,
687                                            structureIds, templateIds, displayDateGT, displayDateLT,
688                                            status, reviewDate, andOperator);
689    
690                            return returnValue;
691                    }
692                    catch (Exception e) {
693                            _log.error(e, e);
694    
695                            throw new RemoteException(e.getMessage());
696                    }
697            }
698    
699            public static void subscribe(long groupId) throws RemoteException {
700                    try {
701                            JournalArticleServiceUtil.subscribe(groupId);
702                    }
703                    catch (Exception e) {
704                            _log.error(e, e);
705    
706                            throw new RemoteException(e.getMessage());
707                    }
708            }
709    
710            public static void unsubscribe(long groupId) throws RemoteException {
711                    try {
712                            JournalArticleServiceUtil.unsubscribe(groupId);
713                    }
714                    catch (Exception e) {
715                            _log.error(e, e);
716    
717                            throw new RemoteException(e.getMessage());
718                    }
719            }
720    
721            public static com.liferay.portlet.journal.model.JournalArticleSoap updateArticle(
722                    long userId, long groupId, long folderId, java.lang.String articleId,
723                    double version, java.lang.String[] titleMapLanguageIds,
724                    java.lang.String[] titleMapValues,
725                    java.lang.String[] descriptionMapLanguageIds,
726                    java.lang.String[] descriptionMapValues, java.lang.String content,
727                    java.lang.String layoutUuid,
728                    com.liferay.portal.service.ServiceContext serviceContext)
729                    throws RemoteException {
730                    try {
731                            Map<Locale, String> titleMap = LocalizationUtil.getLocalizationMap(titleMapLanguageIds,
732                                            titleMapValues);
733                            Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
734                                            descriptionMapValues);
735    
736                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.updateArticle(userId,
737                                            groupId, folderId, articleId, version, titleMap,
738                                            descriptionMap, content, layoutUuid, serviceContext);
739    
740                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
741                    }
742                    catch (Exception e) {
743                            _log.error(e, e);
744    
745                            throw new RemoteException(e.getMessage());
746                    }
747            }
748    
749            public static com.liferay.portlet.journal.model.JournalArticleSoap updateArticle(
750                    long groupId, long folderId, java.lang.String articleId,
751                    double version, java.lang.String content,
752                    com.liferay.portal.service.ServiceContext serviceContext)
753                    throws RemoteException {
754                    try {
755                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.updateArticle(groupId,
756                                            folderId, articleId, version, content, serviceContext);
757    
758                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
759                    }
760                    catch (Exception e) {
761                            _log.error(e, e);
762    
763                            throw new RemoteException(e.getMessage());
764                    }
765            }
766    
767            public static com.liferay.portlet.journal.model.JournalArticleSoap updateContent(
768                    long groupId, java.lang.String articleId, double version,
769                    java.lang.String content) throws RemoteException {
770                    try {
771                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.updateContent(groupId,
772                                            articleId, version, content);
773    
774                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
775                    }
776                    catch (Exception e) {
777                            _log.error(e, e);
778    
779                            throw new RemoteException(e.getMessage());
780                    }
781            }
782    
783            public static com.liferay.portlet.journal.model.JournalArticleSoap updateStatus(
784                    long groupId, java.lang.String articleId, double version, int status,
785                    java.lang.String articleURL,
786                    com.liferay.portal.service.ServiceContext serviceContext)
787                    throws RemoteException {
788                    try {
789                            com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.updateStatus(groupId,
790                                            articleId, version, status, articleURL, serviceContext);
791    
792                            return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
793                    }
794                    catch (Exception e) {
795                            _log.error(e, e);
796    
797                            throw new RemoteException(e.getMessage());
798                    }
799            }
800    
801            private static Log _log = LogFactoryUtil.getLog(JournalArticleServiceSoap.class);
802    }