1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.journal.service.http;
24  
25  import com.liferay.portal.kernel.log.Log;
26  import com.liferay.portal.kernel.log.LogFactoryUtil;
27  import com.liferay.portal.kernel.util.BooleanWrapper;
28  import com.liferay.portal.kernel.util.DoubleWrapper;
29  import com.liferay.portal.kernel.util.IntegerWrapper;
30  import com.liferay.portal.kernel.util.LongWrapper;
31  import com.liferay.portal.kernel.util.MethodWrapper;
32  import com.liferay.portal.kernel.util.NullWrapper;
33  import com.liferay.portal.security.auth.HttpPrincipal;
34  import com.liferay.portal.service.http.TunnelUtil;
35  
36  import com.liferay.portlet.journal.service.JournalArticleServiceUtil;
37  
38  /**
39   * <a href="JournalArticleServiceHttp.java.html"><b><i>View Source</i></b></a>
40   *
41   * <p>
42   * ServiceBuilder generated this class. Modifications in this class will be
43   * overwritten the next time is generated.
44   * </p>
45   *
46   * <p>
47   * This class provides a HTTP utility for the
48   * <code>com.liferay.portlet.journal.service.JournalArticleServiceUtil</code> service
49   * utility. The static methods of this class calls the same methods of the
50   * service utility. However, the signatures are different because it requires an
51   * additional <code>com.liferay.portal.security.auth.HttpPrincipal</code>
52   * parameter.
53   * </p>
54   *
55   * <p>
56   * The benefits of using the HTTP utility is that it is fast and allows for
57   * tunneling without the cost of serializing to text. The drawback is that it
58   * only works with Java.
59   * </p>
60   *
61   * <p>
62   * Set the property <code>tunnel.servlet.hosts.allowed</code> in
63   * portal.properties to configure security.
64   * </p>
65   *
66   * <p>
67   * The HTTP utility is only generated for remote services.
68   * </p>
69   *
70   * @author Brian Wing Shun Chan
71   *
72   * @see com.liferay.portal.security.auth.HttpPrincipal
73   * @see com.liferay.portlet.journal.service.JournalArticleServiceUtil
74   * @see com.liferay.portlet.journal.service.http.JournalArticleServiceSoap
75   *
76   */
77  public class JournalArticleServiceHttp {
78      public static com.liferay.portlet.journal.model.JournalArticle addArticle(
79          HttpPrincipal httpPrincipal, java.lang.String articleId,
80          boolean autoArticleId, long plid, java.lang.String title,
81          java.lang.String description, java.lang.String content,
82          java.lang.String type, java.lang.String structureId,
83          java.lang.String templateId, int displayDateMonth, int displayDateDay,
84          int displayDateYear, int displayDateHour, int displayDateMinute,
85          int expirationDateMonth, int expirationDateDay, int expirationDateYear,
86          int expirationDateHour, int expirationDateMinute, boolean neverExpire,
87          int reviewDateMonth, int reviewDateDay, int reviewDateYear,
88          int reviewDateHour, int reviewDateMinute, boolean neverReview,
89          boolean indexable, java.lang.String articleURL,
90          java.lang.String[] tagsEntries, boolean addCommunityPermissions,
91          boolean addGuestPermissions)
92          throws com.liferay.portal.PortalException,
93              com.liferay.portal.SystemException {
94          try {
95              Object paramObj0 = articleId;
96  
97              if (articleId == null) {
98                  paramObj0 = new NullWrapper("java.lang.String");
99              }
100 
101             Object paramObj1 = new BooleanWrapper(autoArticleId);
102 
103             Object paramObj2 = new LongWrapper(plid);
104 
105             Object paramObj3 = title;
106 
107             if (title == null) {
108                 paramObj3 = new NullWrapper("java.lang.String");
109             }
110 
111             Object paramObj4 = description;
112 
113             if (description == null) {
114                 paramObj4 = new NullWrapper("java.lang.String");
115             }
116 
117             Object paramObj5 = content;
118 
119             if (content == null) {
120                 paramObj5 = new NullWrapper("java.lang.String");
121             }
122 
123             Object paramObj6 = type;
124 
125             if (type == null) {
126                 paramObj6 = new NullWrapper("java.lang.String");
127             }
128 
129             Object paramObj7 = structureId;
130 
131             if (structureId == null) {
132                 paramObj7 = new NullWrapper("java.lang.String");
133             }
134 
135             Object paramObj8 = templateId;
136 
137             if (templateId == null) {
138                 paramObj8 = new NullWrapper("java.lang.String");
139             }
140 
141             Object paramObj9 = new IntegerWrapper(displayDateMonth);
142 
143             Object paramObj10 = new IntegerWrapper(displayDateDay);
144 
145             Object paramObj11 = new IntegerWrapper(displayDateYear);
146 
147             Object paramObj12 = new IntegerWrapper(displayDateHour);
148 
149             Object paramObj13 = new IntegerWrapper(displayDateMinute);
150 
151             Object paramObj14 = new IntegerWrapper(expirationDateMonth);
152 
153             Object paramObj15 = new IntegerWrapper(expirationDateDay);
154 
155             Object paramObj16 = new IntegerWrapper(expirationDateYear);
156 
157             Object paramObj17 = new IntegerWrapper(expirationDateHour);
158 
159             Object paramObj18 = new IntegerWrapper(expirationDateMinute);
160 
161             Object paramObj19 = new BooleanWrapper(neverExpire);
162 
163             Object paramObj20 = new IntegerWrapper(reviewDateMonth);
164 
165             Object paramObj21 = new IntegerWrapper(reviewDateDay);
166 
167             Object paramObj22 = new IntegerWrapper(reviewDateYear);
168 
169             Object paramObj23 = new IntegerWrapper(reviewDateHour);
170 
171             Object paramObj24 = new IntegerWrapper(reviewDateMinute);
172 
173             Object paramObj25 = new BooleanWrapper(neverReview);
174 
175             Object paramObj26 = new BooleanWrapper(indexable);
176 
177             Object paramObj27 = articleURL;
178 
179             if (articleURL == null) {
180                 paramObj27 = new NullWrapper("java.lang.String");
181             }
182 
183             Object paramObj28 = tagsEntries;
184 
185             if (tagsEntries == null) {
186                 paramObj28 = new NullWrapper("[Ljava.lang.String;");
187             }
188 
189             Object paramObj29 = new BooleanWrapper(addCommunityPermissions);
190 
191             Object paramObj30 = new BooleanWrapper(addGuestPermissions);
192 
193             MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
194                     "addArticle",
195                     new Object[] {
196                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
197                         paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
198                         paramObj10, paramObj11, paramObj12, paramObj13,
199                         paramObj14, paramObj15, paramObj16, paramObj17,
200                         paramObj18, paramObj19, paramObj20, paramObj21,
201                         paramObj22, paramObj23, paramObj24, paramObj25,
202                         paramObj26, paramObj27, paramObj28, paramObj29,
203                         paramObj30
204                     });
205 
206             Object returnObj = null;
207 
208             try {
209                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
210             }
211             catch (Exception e) {
212                 if (e instanceof com.liferay.portal.PortalException) {
213                     throw (com.liferay.portal.PortalException)e;
214                 }
215 
216                 if (e instanceof com.liferay.portal.SystemException) {
217                     throw (com.liferay.portal.SystemException)e;
218                 }
219 
220                 throw new com.liferay.portal.SystemException(e);
221             }
222 
223             return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
224         }
225         catch (com.liferay.portal.SystemException se) {
226             _log.error(se, se);
227 
228             throw se;
229         }
230     }
231 
232     public static com.liferay.portlet.journal.model.JournalArticle addArticle(
233         HttpPrincipal httpPrincipal, java.lang.String articleId,
234         boolean autoArticleId, long plid, java.lang.String title,
235         java.lang.String description, java.lang.String content,
236         java.lang.String type, java.lang.String structureId,
237         java.lang.String templateId, int displayDateMonth, int displayDateDay,
238         int displayDateYear, int displayDateHour, int displayDateMinute,
239         int expirationDateMonth, int expirationDateDay, int expirationDateYear,
240         int expirationDateHour, int expirationDateMinute, boolean neverExpire,
241         int reviewDateMonth, int reviewDateDay, int reviewDateYear,
242         int reviewDateHour, int reviewDateMinute, boolean neverReview,
243         boolean indexable, boolean smallImage, java.lang.String smallImageURL,
244         java.io.File smallFile, java.util.Map<String, byte[]> images,
245         java.lang.String articleURL, javax.portlet.PortletPreferences prefs,
246         java.lang.String[] tagsEntries, boolean addCommunityPermissions,
247         boolean addGuestPermissions)
248         throws com.liferay.portal.PortalException,
249             com.liferay.portal.SystemException {
250         try {
251             Object paramObj0 = articleId;
252 
253             if (articleId == null) {
254                 paramObj0 = new NullWrapper("java.lang.String");
255             }
256 
257             Object paramObj1 = new BooleanWrapper(autoArticleId);
258 
259             Object paramObj2 = new LongWrapper(plid);
260 
261             Object paramObj3 = title;
262 
263             if (title == null) {
264                 paramObj3 = new NullWrapper("java.lang.String");
265             }
266 
267             Object paramObj4 = description;
268 
269             if (description == null) {
270                 paramObj4 = new NullWrapper("java.lang.String");
271             }
272 
273             Object paramObj5 = content;
274 
275             if (content == null) {
276                 paramObj5 = new NullWrapper("java.lang.String");
277             }
278 
279             Object paramObj6 = type;
280 
281             if (type == null) {
282                 paramObj6 = new NullWrapper("java.lang.String");
283             }
284 
285             Object paramObj7 = structureId;
286 
287             if (structureId == null) {
288                 paramObj7 = new NullWrapper("java.lang.String");
289             }
290 
291             Object paramObj8 = templateId;
292 
293             if (templateId == null) {
294                 paramObj8 = new NullWrapper("java.lang.String");
295             }
296 
297             Object paramObj9 = new IntegerWrapper(displayDateMonth);
298 
299             Object paramObj10 = new IntegerWrapper(displayDateDay);
300 
301             Object paramObj11 = new IntegerWrapper(displayDateYear);
302 
303             Object paramObj12 = new IntegerWrapper(displayDateHour);
304 
305             Object paramObj13 = new IntegerWrapper(displayDateMinute);
306 
307             Object paramObj14 = new IntegerWrapper(expirationDateMonth);
308 
309             Object paramObj15 = new IntegerWrapper(expirationDateDay);
310 
311             Object paramObj16 = new IntegerWrapper(expirationDateYear);
312 
313             Object paramObj17 = new IntegerWrapper(expirationDateHour);
314 
315             Object paramObj18 = new IntegerWrapper(expirationDateMinute);
316 
317             Object paramObj19 = new BooleanWrapper(neverExpire);
318 
319             Object paramObj20 = new IntegerWrapper(reviewDateMonth);
320 
321             Object paramObj21 = new IntegerWrapper(reviewDateDay);
322 
323             Object paramObj22 = new IntegerWrapper(reviewDateYear);
324 
325             Object paramObj23 = new IntegerWrapper(reviewDateHour);
326 
327             Object paramObj24 = new IntegerWrapper(reviewDateMinute);
328 
329             Object paramObj25 = new BooleanWrapper(neverReview);
330 
331             Object paramObj26 = new BooleanWrapper(indexable);
332 
333             Object paramObj27 = new BooleanWrapper(smallImage);
334 
335             Object paramObj28 = smallImageURL;
336 
337             if (smallImageURL == null) {
338                 paramObj28 = new NullWrapper("java.lang.String");
339             }
340 
341             Object paramObj29 = smallFile;
342 
343             if (smallFile == null) {
344                 paramObj29 = new NullWrapper("java.io.File");
345             }
346 
347             Object paramObj30 = images;
348 
349             if (images == null) {
350                 paramObj30 = new NullWrapper("java.util.Map");
351             }
352 
353             Object paramObj31 = articleURL;
354 
355             if (articleURL == null) {
356                 paramObj31 = new NullWrapper("java.lang.String");
357             }
358 
359             Object paramObj32 = prefs;
360 
361             if (prefs == null) {
362                 paramObj32 = new NullWrapper("javax.portlet.PortletPreferences");
363             }
364 
365             Object paramObj33 = tagsEntries;
366 
367             if (tagsEntries == null) {
368                 paramObj33 = new NullWrapper("[Ljava.lang.String;");
369             }
370 
371             Object paramObj34 = new BooleanWrapper(addCommunityPermissions);
372 
373             Object paramObj35 = new BooleanWrapper(addGuestPermissions);
374 
375             MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
376                     "addArticle",
377                     new Object[] {
378                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
379                         paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
380                         paramObj10, paramObj11, paramObj12, paramObj13,
381                         paramObj14, paramObj15, paramObj16, paramObj17,
382                         paramObj18, paramObj19, paramObj20, paramObj21,
383                         paramObj22, paramObj23, paramObj24, paramObj25,
384                         paramObj26, paramObj27, paramObj28, paramObj29,
385                         paramObj30, paramObj31, paramObj32, paramObj33,
386                         paramObj34, paramObj35
387                     });
388 
389             Object returnObj = null;
390 
391             try {
392                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
393             }
394             catch (Exception e) {
395                 if (e instanceof com.liferay.portal.PortalException) {
396                     throw (com.liferay.portal.PortalException)e;
397                 }
398 
399                 if (e instanceof com.liferay.portal.SystemException) {
400                     throw (com.liferay.portal.SystemException)e;
401                 }
402 
403                 throw new com.liferay.portal.SystemException(e);
404             }
405 
406             return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
407         }
408         catch (com.liferay.portal.SystemException se) {
409             _log.error(se, se);
410 
411             throw se;
412         }
413     }
414 
415     public static com.liferay.portlet.journal.model.JournalArticle addArticle(
416         HttpPrincipal httpPrincipal, java.lang.String articleId,
417         boolean autoArticleId, long plid, java.lang.String title,
418         java.lang.String description, java.lang.String content,
419         java.lang.String type, java.lang.String structureId,
420         java.lang.String templateId, int displayDateMonth, int displayDateDay,
421         int displayDateYear, int displayDateHour, int displayDateMinute,
422         int expirationDateMonth, int expirationDateDay, int expirationDateYear,
423         int expirationDateHour, int expirationDateMinute, boolean neverExpire,
424         int reviewDateMonth, int reviewDateDay, int reviewDateYear,
425         int reviewDateHour, int reviewDateMinute, boolean neverReview,
426         boolean indexable, java.lang.String articleURL,
427         java.lang.String[] tagsEntries,
428         java.lang.String[] communityPermissions,
429         java.lang.String[] guestPermissions)
430         throws com.liferay.portal.PortalException,
431             com.liferay.portal.SystemException {
432         try {
433             Object paramObj0 = articleId;
434 
435             if (articleId == null) {
436                 paramObj0 = new NullWrapper("java.lang.String");
437             }
438 
439             Object paramObj1 = new BooleanWrapper(autoArticleId);
440 
441             Object paramObj2 = new LongWrapper(plid);
442 
443             Object paramObj3 = title;
444 
445             if (title == null) {
446                 paramObj3 = new NullWrapper("java.lang.String");
447             }
448 
449             Object paramObj4 = description;
450 
451             if (description == null) {
452                 paramObj4 = new NullWrapper("java.lang.String");
453             }
454 
455             Object paramObj5 = content;
456 
457             if (content == null) {
458                 paramObj5 = new NullWrapper("java.lang.String");
459             }
460 
461             Object paramObj6 = type;
462 
463             if (type == null) {
464                 paramObj6 = new NullWrapper("java.lang.String");
465             }
466 
467             Object paramObj7 = structureId;
468 
469             if (structureId == null) {
470                 paramObj7 = new NullWrapper("java.lang.String");
471             }
472 
473             Object paramObj8 = templateId;
474 
475             if (templateId == null) {
476                 paramObj8 = new NullWrapper("java.lang.String");
477             }
478 
479             Object paramObj9 = new IntegerWrapper(displayDateMonth);
480 
481             Object paramObj10 = new IntegerWrapper(displayDateDay);
482 
483             Object paramObj11 = new IntegerWrapper(displayDateYear);
484 
485             Object paramObj12 = new IntegerWrapper(displayDateHour);
486 
487             Object paramObj13 = new IntegerWrapper(displayDateMinute);
488 
489             Object paramObj14 = new IntegerWrapper(expirationDateMonth);
490 
491             Object paramObj15 = new IntegerWrapper(expirationDateDay);
492 
493             Object paramObj16 = new IntegerWrapper(expirationDateYear);
494 
495             Object paramObj17 = new IntegerWrapper(expirationDateHour);
496 
497             Object paramObj18 = new IntegerWrapper(expirationDateMinute);
498 
499             Object paramObj19 = new BooleanWrapper(neverExpire);
500 
501             Object paramObj20 = new IntegerWrapper(reviewDateMonth);
502 
503             Object paramObj21 = new IntegerWrapper(reviewDateDay);
504 
505             Object paramObj22 = new IntegerWrapper(reviewDateYear);
506 
507             Object paramObj23 = new IntegerWrapper(reviewDateHour);
508 
509             Object paramObj24 = new IntegerWrapper(reviewDateMinute);
510 
511             Object paramObj25 = new BooleanWrapper(neverReview);
512 
513             Object paramObj26 = new BooleanWrapper(indexable);
514 
515             Object paramObj27 = articleURL;
516 
517             if (articleURL == null) {
518                 paramObj27 = new NullWrapper("java.lang.String");
519             }
520 
521             Object paramObj28 = tagsEntries;
522 
523             if (tagsEntries == null) {
524                 paramObj28 = new NullWrapper("[Ljava.lang.String;");
525             }
526 
527             Object paramObj29 = communityPermissions;
528 
529             if (communityPermissions == null) {
530                 paramObj29 = new NullWrapper("[Ljava.lang.String;");
531             }
532 
533             Object paramObj30 = guestPermissions;
534 
535             if (guestPermissions == null) {
536                 paramObj30 = new NullWrapper("[Ljava.lang.String;");
537             }
538 
539             MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
540                     "addArticle",
541                     new Object[] {
542                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
543                         paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
544                         paramObj10, paramObj11, paramObj12, paramObj13,
545                         paramObj14, paramObj15, paramObj16, paramObj17,
546                         paramObj18, paramObj19, paramObj20, paramObj21,
547                         paramObj22, paramObj23, paramObj24, paramObj25,
548                         paramObj26, paramObj27, paramObj28, paramObj29,
549                         paramObj30
550                     });
551 
552             Object returnObj = null;
553 
554             try {
555                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
556             }
557             catch (Exception e) {
558                 if (e instanceof com.liferay.portal.PortalException) {
559                     throw (com.liferay.portal.PortalException)e;
560                 }
561 
562                 if (e instanceof com.liferay.portal.SystemException) {
563                     throw (com.liferay.portal.SystemException)e;
564                 }
565 
566                 throw new com.liferay.portal.SystemException(e);
567             }
568 
569             return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
570         }
571         catch (com.liferay.portal.SystemException se) {
572             _log.error(se, se);
573 
574             throw se;
575         }
576     }
577 
578     public static com.liferay.portlet.journal.model.JournalArticle addArticle(
579         HttpPrincipal httpPrincipal, java.lang.String articleId,
580         boolean autoArticleId, long plid, java.lang.String title,
581         java.lang.String description, java.lang.String content,
582         java.lang.String type, java.lang.String structureId,
583         java.lang.String templateId, int displayDateMonth, int displayDateDay,
584         int displayDateYear, int displayDateHour, int displayDateMinute,
585         int expirationDateMonth, int expirationDateDay, int expirationDateYear,
586         int expirationDateHour, int expirationDateMinute, boolean neverExpire,
587         int reviewDateMonth, int reviewDateDay, int reviewDateYear,
588         int reviewDateHour, int reviewDateMinute, boolean neverReview,
589         boolean indexable, boolean smallImage, java.lang.String smallImageURL,
590         java.io.File smallFile, java.util.Map<String, byte[]> images,
591         java.lang.String articleURL, javax.portlet.PortletPreferences prefs,
592         java.lang.String[] tagsEntries,
593         java.lang.String[] communityPermissions,
594         java.lang.String[] guestPermissions)
595         throws com.liferay.portal.PortalException,
596             com.liferay.portal.SystemException {
597         try {
598             Object paramObj0 = articleId;
599 
600             if (articleId == null) {
601                 paramObj0 = new NullWrapper("java.lang.String");
602             }
603 
604             Object paramObj1 = new BooleanWrapper(autoArticleId);
605 
606             Object paramObj2 = new LongWrapper(plid);
607 
608             Object paramObj3 = title;
609 
610             if (title == null) {
611                 paramObj3 = new NullWrapper("java.lang.String");
612             }
613 
614             Object paramObj4 = description;
615 
616             if (description == null) {
617                 paramObj4 = new NullWrapper("java.lang.String");
618             }
619 
620             Object paramObj5 = content;
621 
622             if (content == null) {
623                 paramObj5 = new NullWrapper("java.lang.String");
624             }
625 
626             Object paramObj6 = type;
627 
628             if (type == null) {
629                 paramObj6 = new NullWrapper("java.lang.String");
630             }
631 
632             Object paramObj7 = structureId;
633 
634             if (structureId == null) {
635                 paramObj7 = new NullWrapper("java.lang.String");
636             }
637 
638             Object paramObj8 = templateId;
639 
640             if (templateId == null) {
641                 paramObj8 = new NullWrapper("java.lang.String");
642             }
643 
644             Object paramObj9 = new IntegerWrapper(displayDateMonth);
645 
646             Object paramObj10 = new IntegerWrapper(displayDateDay);
647 
648             Object paramObj11 = new IntegerWrapper(displayDateYear);
649 
650             Object paramObj12 = new IntegerWrapper(displayDateHour);
651 
652             Object paramObj13 = new IntegerWrapper(displayDateMinute);
653 
654             Object paramObj14 = new IntegerWrapper(expirationDateMonth);
655 
656             Object paramObj15 = new IntegerWrapper(expirationDateDay);
657 
658             Object paramObj16 = new IntegerWrapper(expirationDateYear);
659 
660             Object paramObj17 = new IntegerWrapper(expirationDateHour);
661 
662             Object paramObj18 = new IntegerWrapper(expirationDateMinute);
663 
664             Object paramObj19 = new BooleanWrapper(neverExpire);
665 
666             Object paramObj20 = new IntegerWrapper(reviewDateMonth);
667 
668             Object paramObj21 = new IntegerWrapper(reviewDateDay);
669 
670             Object paramObj22 = new IntegerWrapper(reviewDateYear);
671 
672             Object paramObj23 = new IntegerWrapper(reviewDateHour);
673 
674             Object paramObj24 = new IntegerWrapper(reviewDateMinute);
675 
676             Object paramObj25 = new BooleanWrapper(neverReview);
677 
678             Object paramObj26 = new BooleanWrapper(indexable);
679 
680             Object paramObj27 = new BooleanWrapper(smallImage);
681 
682             Object paramObj28 = smallImageURL;
683 
684             if (smallImageURL == null) {
685                 paramObj28 = new NullWrapper("java.lang.String");
686             }
687 
688             Object paramObj29 = smallFile;
689 
690             if (smallFile == null) {
691                 paramObj29 = new NullWrapper("java.io.File");
692             }
693 
694             Object paramObj30 = images;
695 
696             if (images == null) {
697                 paramObj30 = new NullWrapper("java.util.Map");
698             }
699 
700             Object paramObj31 = articleURL;
701 
702             if (articleURL == null) {
703                 paramObj31 = new NullWrapper("java.lang.String");
704             }
705 
706             Object paramObj32 = prefs;
707 
708             if (prefs == null) {
709                 paramObj32 = new NullWrapper("javax.portlet.PortletPreferences");
710             }
711 
712             Object paramObj33 = tagsEntries;
713 
714             if (tagsEntries == null) {
715                 paramObj33 = new NullWrapper("[Ljava.lang.String;");
716             }
717 
718             Object paramObj34 = communityPermissions;
719 
720             if (communityPermissions == null) {
721                 paramObj34 = new NullWrapper("[Ljava.lang.String;");
722             }
723 
724             Object paramObj35 = guestPermissions;
725 
726             if (guestPermissions == null) {
727                 paramObj35 = new NullWrapper("[Ljava.lang.String;");
728             }
729 
730             MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
731                     "addArticle",
732                     new Object[] {
733                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
734                         paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
735                         paramObj10, paramObj11, paramObj12, paramObj13,
736                         paramObj14, paramObj15, paramObj16, paramObj17,
737                         paramObj18, paramObj19, paramObj20, paramObj21,
738                         paramObj22, paramObj23, paramObj24, paramObj25,
739                         paramObj26, paramObj27, paramObj28, paramObj29,
740                         paramObj30, paramObj31, paramObj32, paramObj33,
741                         paramObj34, paramObj35
742                     });
743 
744             Object returnObj = null;
745 
746             try {
747                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
748             }
749             catch (Exception e) {
750                 if (e instanceof com.liferay.portal.PortalException) {
751                     throw (com.liferay.portal.PortalException)e;
752                 }
753 
754                 if (e instanceof com.liferay.portal.SystemException) {
755                     throw (com.liferay.portal.SystemException)e;
756                 }
757 
758                 throw new com.liferay.portal.SystemException(e);
759             }
760 
761             return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
762         }
763         catch (com.liferay.portal.SystemException se) {
764             _log.error(se, se);
765 
766             throw se;
767         }
768     }
769 
770     public static com.liferay.portlet.journal.model.JournalArticle approveArticle(
771         HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
772         double version, long plid, java.lang.String articleURL,
773         javax.portlet.PortletPreferences prefs)
774         throws com.liferay.portal.PortalException,
775             com.liferay.portal.SystemException {
776         try {
777             Object paramObj0 = new LongWrapper(groupId);
778 
779             Object paramObj1 = articleId;
780 
781             if (articleId == null) {
782                 paramObj1 = new NullWrapper("java.lang.String");
783             }
784 
785             Object paramObj2 = new DoubleWrapper(version);
786 
787             Object paramObj3 = new LongWrapper(plid);
788 
789             Object paramObj4 = articleURL;
790 
791             if (articleURL == null) {
792                 paramObj4 = new NullWrapper("java.lang.String");
793             }
794 
795             Object paramObj5 = prefs;
796 
797             if (prefs == null) {
798                 paramObj5 = new NullWrapper("javax.portlet.PortletPreferences");
799             }
800 
801             MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
802                     "approveArticle",
803                     new Object[] {
804                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
805                         paramObj5
806                     });
807 
808             Object returnObj = null;
809 
810             try {
811                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
812             }
813             catch (Exception e) {
814                 if (e instanceof com.liferay.portal.PortalException) {
815                     throw (com.liferay.portal.PortalException)e;
816                 }
817 
818                 if (e instanceof com.liferay.portal.SystemException) {
819                     throw (com.liferay.portal.SystemException)e;
820                 }
821 
822                 throw new com.liferay.portal.SystemException(e);
823             }
824 
825             return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
826         }
827         catch (com.liferay.portal.SystemException se) {
828             _log.error(se, se);
829 
830             throw se;
831         }
832     }
833 
834     public static com.liferay.portlet.journal.model.JournalArticle copyArticle(
835         HttpPrincipal httpPrincipal, long groupId,
836         java.lang.String oldArticleId, java.lang.String newArticleId,
837         boolean autoArticleId, double version)
838         throws com.liferay.portal.PortalException,
839             com.liferay.portal.SystemException {
840         try {
841             Object paramObj0 = new LongWrapper(groupId);
842 
843             Object paramObj1 = oldArticleId;
844 
845             if (oldArticleId == null) {
846                 paramObj1 = new NullWrapper("java.lang.String");
847             }
848 
849             Object paramObj2 = newArticleId;
850 
851             if (newArticleId == null) {
852                 paramObj2 = new NullWrapper("java.lang.String");
853             }
854 
855             Object paramObj3 = new BooleanWrapper(autoArticleId);
856 
857             Object paramObj4 = new DoubleWrapper(version);
858 
859             MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
860                     "copyArticle",
861                     new Object[] {
862                         paramObj0, paramObj1, paramObj2, paramObj3, paramObj4
863                     });
864 
865             Object returnObj = null;
866 
867             try {
868                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
869             }
870             catch (Exception e) {
871                 if (e instanceof com.liferay.portal.PortalException) {
872                     throw (com.liferay.portal.PortalException)e;
873                 }
874 
875                 if (e instanceof com.liferay.portal.SystemException) {
876                     throw (com.liferay.portal.SystemException)e;
877                 }
878 
879                 throw new com.liferay.portal.SystemException(e);
880             }
881 
882             return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
883         }
884         catch (com.liferay.portal.SystemException se) {
885             _log.error(se, se);
886 
887             throw se;
888         }
889     }
890 
891     public static com.liferay.portlet.journal.model.JournalArticle getArticle(
892         HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
893         double version)
894         throws com.liferay.portal.PortalException,
895             com.liferay.portal.SystemException {
896         try {
897             Object paramObj0 = new LongWrapper(groupId);
898 
899             Object paramObj1 = articleId;
900 
901             if (articleId == null) {
902                 paramObj1 = new NullWrapper("java.lang.String");
903             }
904 
905             Object paramObj2 = new DoubleWrapper(version);
906 
907             MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
908                     "getArticle",
909                     new Object[] { paramObj0, paramObj1, paramObj2 });
910 
911             Object returnObj = null;
912 
913             try {
914                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
915             }
916             catch (Exception e) {
917                 if (e instanceof com.liferay.portal.PortalException) {
918                     throw (com.liferay.portal.PortalException)e;
919                 }
920 
921                 if (e instanceof com.liferay.portal.SystemException) {
922                     throw (com.liferay.portal.SystemException)e;
923                 }
924 
925                 throw new com.liferay.portal.SystemException(e);
926             }
927 
928             return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
929         }
930         catch (com.liferay.portal.SystemException se) {
931             _log.error(se, se);
932 
933             throw se;
934         }
935     }
936 
937     public static java.lang.String getArticleContent(
938         HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
939         java.lang.String languageId,
940         com.liferay.portal.theme.ThemeDisplay themeDisplay)
941         throws com.liferay.portal.PortalException,
942             com.liferay.portal.SystemException {
943         try {
944             Object paramObj0 = new LongWrapper(groupId);
945 
946             Object paramObj1 = articleId;
947 
948             if (articleId == null) {
949                 paramObj1 = new NullWrapper("java.lang.String");
950             }
951 
952             Object paramObj2 = languageId;
953 
954             if (languageId == null) {
955                 paramObj2 = new NullWrapper("java.lang.String");
956             }
957 
958             Object paramObj3 = themeDisplay;
959 
960             if (themeDisplay == null) {
961                 paramObj3 = new NullWrapper(
962                         "com.liferay.portal.theme.ThemeDisplay");
963             }
964 
965             MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
966                     "getArticleContent",
967                     new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
968 
969             Object returnObj = null;
970 
971             try {
972                 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
973             }
974             catch (Exception e) {
975                 if (e instanceof com.liferay.portal.PortalException) {
976                     throw (com.liferay.portal.PortalException)e;
977                 }
978 
979                 if (e instanceof com.liferay.portal.SystemException) {
980                     throw (com.liferay.portal.SystemException)e;
981                 }
982 
983                 throw new com.liferay.portal.SystemException(e);
984             }
985 
986             return (java.lang.String)returnObj;
987         }
988         catch (com.liferay.portal.SystemException se) {
989             _log.error(se, se);
990 
991             throw se;
992         }
993     }
994 
995     public static java.lang.String getArticleContent(
996         HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
997         double version, java.lang.String languageId,
998         com.liferay.portal.theme.ThemeDisplay themeDisplay)
999         throws com.liferay.portal.PortalException,
1000            com.liferay.portal.SystemException {
1001        try {
1002            Object paramObj0 = new LongWrapper(groupId);
1003
1004            Object paramObj1 = articleId;
1005
1006            if (articleId == null) {
1007                paramObj1 = new NullWrapper("java.lang.String");
1008            }
1009
1010            Object paramObj2 = new DoubleWrapper(version);
1011
1012            Object paramObj3 = languageId;
1013
1014            if (languageId == null) {
1015                paramObj3 = new NullWrapper("java.lang.String");
1016            }
1017
1018            Object paramObj4 = themeDisplay;
1019
1020            if (themeDisplay == null) {
1021                paramObj4 = new NullWrapper(
1022                        "com.liferay.portal.theme.ThemeDisplay");
1023            }
1024
1025            MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
1026                    "getArticleContent",
1027                    new Object[] {
1028                        paramObj0, paramObj1, paramObj2, paramObj3, paramObj4
1029                    });
1030
1031            Object returnObj = null;
1032
1033            try {
1034                returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1035            }
1036            catch (Exception e) {
1037                if (e instanceof com.liferay.portal.PortalException) {
1038                    throw (com.liferay.portal.PortalException)e;
1039                }
1040
1041                if (e instanceof com.liferay.portal.SystemException) {
1042                    throw (com.liferay.portal.SystemException)e;
1043                }
1044
1045                throw new com.liferay.portal.SystemException(e);
1046            }
1047
1048            return (java.lang.String)returnObj;
1049        }
1050        catch (com.liferay.portal.SystemException se) {
1051            _log.error(se, se);
1052
1053            throw se;
1054        }
1055    }
1056
1057    public static void deleteArticle(HttpPrincipal httpPrincipal, long groupId,
1058        java.lang.String articleId, double version,
1059        java.lang.String articleURL, javax.portlet.PortletPreferences prefs)
1060        throws com.liferay.portal.PortalException,
1061            com.liferay.portal.SystemException {
1062        try {
1063            Object paramObj0 = new LongWrapper(groupId);
1064
1065            Object paramObj1 = articleId;
1066
1067            if (articleId == null) {
1068                paramObj1 = new NullWrapper("java.lang.String");
1069            }
1070
1071            Object paramObj2 = new DoubleWrapper(version);
1072
1073            Object paramObj3 = articleURL;
1074
1075            if (articleURL == null) {
1076                paramObj3 = new NullWrapper("java.lang.String");
1077            }
1078
1079            Object paramObj4 = prefs;
1080
1081            if (prefs == null) {
1082                paramObj4 = new NullWrapper("javax.portlet.PortletPreferences");
1083            }
1084
1085            MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
1086                    "deleteArticle",
1087                    new Object[] {
1088                        paramObj0, paramObj1, paramObj2, paramObj3, paramObj4
1089                    });
1090
1091            try {
1092                TunnelUtil.invoke(httpPrincipal, methodWrapper);
1093            }
1094            catch (Exception e) {
1095                if (e instanceof com.liferay.portal.PortalException) {
1096                    throw (com.liferay.portal.PortalException)e;
1097                }
1098
1099                if (e instanceof com.liferay.portal.SystemException) {
1100                    throw (com.liferay.portal.SystemException)e;
1101                }
1102
1103                throw new com.liferay.portal.SystemException(e);
1104            }
1105        }
1106        catch (com.liferay.portal.SystemException se) {
1107            _log.error(se, se);
1108
1109            throw se;
1110        }
1111    }
1112
1113    public static void expireArticle(HttpPrincipal httpPrincipal, long groupId,
1114        java.lang.String articleId, double version,
1115        java.lang.String articleURL, javax.portlet.PortletPreferences prefs)
1116        throws com.liferay.portal.PortalException,
1117            com.liferay.portal.SystemException {
1118        try {
1119            Object paramObj0 = new LongWrapper(groupId);
1120
1121            Object paramObj1 = articleId;
1122
1123            if (articleId == null) {
1124                paramObj1 = new NullWrapper("java.lang.String");
1125            }
1126
1127            Object paramObj2 = new DoubleWrapper(version);
1128
1129            Object paramObj3 = articleURL;
1130
1131            if (articleURL == null) {
1132                paramObj3 = new NullWrapper("java.lang.String");
1133            }
1134
1135            Object paramObj4 = prefs;
1136
1137            if (prefs == null) {
1138                paramObj4 = new NullWrapper("javax.portlet.PortletPreferences");
1139            }
1140
1141            MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
1142                    "expireArticle",
1143                    new Object[] {
1144                        paramObj0, paramObj1, paramObj2, paramObj3, paramObj4
1145                    });
1146
1147            try {
1148                TunnelUtil.invoke(httpPrincipal, methodWrapper);
1149            }
1150            catch (Exception e) {
1151                if (e instanceof com.liferay.portal.PortalException) {
1152                    throw (com.liferay.portal.PortalException)e;
1153                }
1154
1155                if (e instanceof com.liferay.portal.SystemException) {
1156                    throw (com.liferay.portal.SystemException)e;
1157                }
1158
1159                throw new com.liferay.portal.SystemException(e);
1160            }
1161        }
1162        catch (com.liferay.portal.SystemException se) {
1163            _log.error(se, se);
1164
1165            throw se;
1166        }
1167    }
1168
1169    public static void removeArticleLocale(HttpPrincipal httpPrincipal,
1170        long companyId, java.lang.String languageId)
1171        throws com.liferay.portal.PortalException,
1172            com.liferay.portal.SystemException {
1173        try {
1174            Object paramObj0 = new LongWrapper(companyId);
1175
1176            Object paramObj1 = languageId;
1177
1178            if (languageId == null) {
1179                paramObj1 = new NullWrapper("java.lang.String");
1180            }
1181
1182            MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
1183                    "removeArticleLocale", new Object[] { paramObj0, paramObj1 });
1184
1185            try {
1186                TunnelUtil.invoke(httpPrincipal, methodWrapper);
1187            }
1188            catch (Exception e) {
1189                if (e instanceof com.liferay.portal.PortalException) {
1190                    throw (com.liferay.portal.PortalException)e;
1191                }
1192
1193                if (e instanceof com.liferay.portal.SystemException) {
1194                    throw (com.liferay.portal.SystemException)e;
1195                }
1196
1197                throw new com.liferay.portal.SystemException(e);
1198            }
1199        }
1200        catch (com.liferay.portal.SystemException se) {
1201            _log.error(se, se);
1202
1203            throw se;
1204        }
1205    }
1206
1207    public static com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
1208        HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
1209        double version, java.lang.String languageId)
1210        throws com.liferay.portal.PortalException,
1211            com.liferay.portal.SystemException {
1212        try {
1213            Object paramObj0 = new LongWrapper(groupId);
1214
1215            Object paramObj1 = articleId;
1216
1217            if (articleId == null) {
1218                paramObj1 = new NullWrapper("java.lang.String");
1219            }
1220
1221            Object paramObj2 = new DoubleWrapper(version);
1222
1223            Object paramObj3 = languageId;
1224
1225            if (languageId == null) {
1226                paramObj3 = new NullWrapper("java.lang.String");
1227            }
1228
1229            MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
1230                    "removeArticleLocale",
1231                    new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
1232
1233            Object returnObj = null;
1234
1235            try {
1236                returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1237            }
1238            catch (Exception e) {
1239                if (e instanceof com.liferay.portal.PortalException) {
1240                    throw (com.liferay.portal.PortalException)e;
1241                }
1242
1243                if (e instanceof com.liferay.portal.SystemException) {
1244                    throw (com.liferay.portal.SystemException)e;
1245                }
1246
1247                throw new com.liferay.portal.SystemException(e);
1248            }
1249
1250            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1251        }
1252        catch (com.liferay.portal.SystemException se) {
1253            _log.error(se, se);
1254
1255            throw se;
1256        }
1257    }
1258
1259    public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
1260        HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
1261        double version, boolean incrementVersion, java.lang.String title,
1262        java.lang.String description, java.lang.String content,
1263        java.lang.String type, java.lang.String structureId,
1264        java.lang.String templateId, int displayDateMonth, int displayDateDay,
1265        int displayDateYear, int displayDateHour, int displayDateMinute,
1266        int expirationDateMonth, int expirationDateDay, int expirationDateYear,
1267        int expirationDateHour, int expirationDateMinute, boolean neverExpire,
1268        int reviewDateMonth, int reviewDateDay, int reviewDateYear,
1269        int reviewDateHour, int reviewDateMinute, boolean neverReview,
1270        boolean indexable, boolean smallImage, java.lang.String smallImageURL,
1271        java.io.File smallFile, java.util.Map<String, byte[]> images,
1272        java.lang.String articleURL, javax.portlet.PortletPreferences prefs,
1273        java.lang.String[] tagsEntries)
1274        throws com.liferay.portal.PortalException,
1275            com.liferay.portal.SystemException {
1276        try {
1277            Object paramObj0 = new LongWrapper(groupId);
1278
1279            Object paramObj1 = articleId;
1280
1281            if (articleId == null) {
1282                paramObj1 = new NullWrapper("java.lang.String");
1283            }
1284
1285            Object paramObj2 = new DoubleWrapper(version);
1286
1287            Object paramObj3 = new BooleanWrapper(incrementVersion);
1288
1289            Object paramObj4 = title;
1290
1291            if (title == null) {
1292                paramObj4 = new NullWrapper("java.lang.String");
1293            }
1294
1295            Object paramObj5 = description;
1296
1297            if (description == null) {
1298                paramObj5 = new NullWrapper("java.lang.String");
1299            }
1300
1301            Object paramObj6 = content;
1302
1303            if (content == null) {
1304                paramObj6 = new NullWrapper("java.lang.String");
1305            }
1306
1307            Object paramObj7 = type;
1308
1309            if (type == null) {
1310                paramObj7 = new NullWrapper("java.lang.String");
1311            }
1312
1313            Object paramObj8 = structureId;
1314
1315            if (structureId == null) {
1316                paramObj8 = new NullWrapper("java.lang.String");
1317            }
1318
1319            Object paramObj9 = templateId;
1320
1321            if (templateId == null) {
1322                paramObj9 = new NullWrapper("java.lang.String");
1323            }
1324
1325            Object paramObj10 = new IntegerWrapper(displayDateMonth);
1326
1327            Object paramObj11 = new IntegerWrapper(displayDateDay);
1328
1329            Object paramObj12 = new IntegerWrapper(displayDateYear);
1330
1331            Object paramObj13 = new IntegerWrapper(displayDateHour);
1332
1333            Object paramObj14 = new IntegerWrapper(displayDateMinute);
1334
1335            Object paramObj15 = new IntegerWrapper(expirationDateMonth);
1336
1337            Object paramObj16 = new IntegerWrapper(expirationDateDay);
1338
1339            Object paramObj17 = new IntegerWrapper(expirationDateYear);
1340
1341            Object paramObj18 = new IntegerWrapper(expirationDateHour);
1342
1343            Object paramObj19 = new IntegerWrapper(expirationDateMinute);
1344
1345            Object paramObj20 = new BooleanWrapper(neverExpire);
1346
1347            Object paramObj21 = new IntegerWrapper(reviewDateMonth);
1348
1349            Object paramObj22 = new IntegerWrapper(reviewDateDay);
1350
1351            Object paramObj23 = new IntegerWrapper(reviewDateYear);
1352
1353            Object paramObj24 = new IntegerWrapper(reviewDateHour);
1354
1355            Object paramObj25 = new IntegerWrapper(reviewDateMinute);
1356
1357            Object paramObj26 = new BooleanWrapper(neverReview);
1358
1359            Object paramObj27 = new BooleanWrapper(indexable);
1360
1361            Object paramObj28 = new BooleanWrapper(smallImage);
1362
1363            Object paramObj29 = smallImageURL;
1364
1365            if (smallImageURL == null) {
1366                paramObj29 = new NullWrapper("java.lang.String");
1367            }
1368
1369            Object paramObj30 = smallFile;
1370
1371            if (smallFile == null) {
1372                paramObj30 = new NullWrapper("java.io.File");
1373            }
1374
1375            Object paramObj31 = images;
1376
1377            if (images == null) {
1378                paramObj31 = new NullWrapper("java.util.Map");
1379            }
1380
1381            Object paramObj32 = articleURL;
1382
1383            if (articleURL == null) {
1384                paramObj32 = new NullWrapper("java.lang.String");
1385            }
1386
1387            Object paramObj33 = prefs;
1388
1389            if (prefs == null) {
1390                paramObj33 = new NullWrapper("javax.portlet.PortletPreferences");
1391            }
1392
1393            Object paramObj34 = tagsEntries;
1394
1395            if (tagsEntries == null) {
1396                paramObj34 = new NullWrapper("[Ljava.lang.String;");
1397            }
1398
1399            MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
1400                    "updateArticle",
1401                    new Object[] {
1402                        paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1403                        paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
1404                        paramObj10, paramObj11, paramObj12, paramObj13,
1405                        paramObj14, paramObj15, paramObj16, paramObj17,
1406                        paramObj18, paramObj19, paramObj20, paramObj21,
1407                        paramObj22, paramObj23, paramObj24, paramObj25,
1408                        paramObj26, paramObj27, paramObj28, paramObj29,
1409                        paramObj30, paramObj31, paramObj32, paramObj33,
1410                        paramObj34
1411                    });
1412
1413            Object returnObj = null;
1414
1415            try {
1416                returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1417            }
1418            catch (Exception e) {
1419                if (e instanceof com.liferay.portal.PortalException) {
1420                    throw (com.liferay.portal.PortalException)e;
1421                }
1422
1423                if (e instanceof com.liferay.portal.SystemException) {
1424                    throw (com.liferay.portal.SystemException)e;
1425                }
1426
1427                throw new com.liferay.portal.SystemException(e);
1428            }
1429
1430            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1431        }
1432        catch (com.liferay.portal.SystemException se) {
1433            _log.error(se, se);
1434
1435            throw se;
1436        }
1437    }
1438
1439    public static com.liferay.portlet.journal.model.JournalArticle updateContent(
1440        HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
1441        double version, java.lang.String content)
1442        throws com.liferay.portal.PortalException,
1443            com.liferay.portal.SystemException {
1444        try {
1445            Object paramObj0 = new LongWrapper(groupId);
1446
1447            Object paramObj1 = articleId;
1448
1449            if (articleId == null) {
1450                paramObj1 = new NullWrapper("java.lang.String");
1451            }
1452
1453            Object paramObj2 = new DoubleWrapper(version);
1454
1455            Object paramObj3 = content;
1456
1457            if (content == null) {
1458                paramObj3 = new NullWrapper("java.lang.String");
1459            }
1460
1461            MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
1462                    "updateContent",
1463                    new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
1464
1465            Object returnObj = null;
1466
1467            try {
1468                returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1469            }
1470            catch (Exception e) {
1471                if (e instanceof com.liferay.portal.PortalException) {
1472                    throw (com.liferay.portal.PortalException)e;
1473                }
1474
1475                if (e instanceof com.liferay.portal.SystemException) {
1476                    throw (com.liferay.portal.SystemException)e;
1477                }
1478
1479                throw new com.liferay.portal.SystemException(e);
1480            }
1481
1482            return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1483        }
1484        catch (com.liferay.portal.SystemException se) {
1485            _log.error(se, se);
1486
1487            throw se;
1488        }
1489    }
1490
1491    private static Log _log = LogFactoryUtil.getLog(JournalArticleServiceHttp.class);
1492}