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