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