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