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