1
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
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 com.liferay.portal.service.ServiceContext serviceContext)
91 throws com.liferay.portal.PortalException,
92 com.liferay.portal.SystemException {
93 try {
94 Object paramObj0 = new LongWrapper(groupId);
95
96 Object paramObj1 = articleId;
97
98 if (articleId == null) {
99 paramObj1 = new NullWrapper("java.lang.String");
100 }
101
102 Object paramObj2 = new BooleanWrapper(autoArticleId);
103
104 Object paramObj3 = title;
105
106 if (title == null) {
107 paramObj3 = new NullWrapper("java.lang.String");
108 }
109
110 Object paramObj4 = description;
111
112 if (description == null) {
113 paramObj4 = new NullWrapper("java.lang.String");
114 }
115
116 Object paramObj5 = content;
117
118 if (content == null) {
119 paramObj5 = new NullWrapper("java.lang.String");
120 }
121
122 Object paramObj6 = type;
123
124 if (type == null) {
125 paramObj6 = new NullWrapper("java.lang.String");
126 }
127
128 Object paramObj7 = structureId;
129
130 if (structureId == null) {
131 paramObj7 = new NullWrapper("java.lang.String");
132 }
133
134 Object paramObj8 = templateId;
135
136 if (templateId == null) {
137 paramObj8 = new NullWrapper("java.lang.String");
138 }
139
140 Object paramObj9 = new IntegerWrapper(displayDateMonth);
141
142 Object paramObj10 = new IntegerWrapper(displayDateDay);
143
144 Object paramObj11 = new IntegerWrapper(displayDateYear);
145
146 Object paramObj12 = new IntegerWrapper(displayDateHour);
147
148 Object paramObj13 = new IntegerWrapper(displayDateMinute);
149
150 Object paramObj14 = new IntegerWrapper(expirationDateMonth);
151
152 Object paramObj15 = new IntegerWrapper(expirationDateDay);
153
154 Object paramObj16 = new IntegerWrapper(expirationDateYear);
155
156 Object paramObj17 = new IntegerWrapper(expirationDateHour);
157
158 Object paramObj18 = new IntegerWrapper(expirationDateMinute);
159
160 Object paramObj19 = new BooleanWrapper(neverExpire);
161
162 Object paramObj20 = new IntegerWrapper(reviewDateMonth);
163
164 Object paramObj21 = new IntegerWrapper(reviewDateDay);
165
166 Object paramObj22 = new IntegerWrapper(reviewDateYear);
167
168 Object paramObj23 = new IntegerWrapper(reviewDateHour);
169
170 Object paramObj24 = new IntegerWrapper(reviewDateMinute);
171
172 Object paramObj25 = new BooleanWrapper(neverReview);
173
174 Object paramObj26 = new BooleanWrapper(indexable);
175
176 Object paramObj27 = articleURL;
177
178 if (articleURL == null) {
179 paramObj27 = new NullWrapper("java.lang.String");
180 }
181
182 Object paramObj28 = serviceContext;
183
184 if (serviceContext == null) {
185 paramObj28 = new NullWrapper(
186 "com.liferay.portal.service.ServiceContext");
187 }
188
189 MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
190 "addArticle",
191 new Object[] {
192 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
193 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
194 paramObj10, paramObj11, paramObj12, paramObj13,
195 paramObj14, paramObj15, paramObj16, paramObj17,
196 paramObj18, paramObj19, paramObj20, paramObj21,
197 paramObj22, paramObj23, paramObj24, paramObj25,
198 paramObj26, paramObj27, paramObj28
199 });
200
201 Object returnObj = null;
202
203 try {
204 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
205 }
206 catch (Exception e) {
207 if (e instanceof com.liferay.portal.PortalException) {
208 throw (com.liferay.portal.PortalException)e;
209 }
210
211 if (e instanceof com.liferay.portal.SystemException) {
212 throw (com.liferay.portal.SystemException)e;
213 }
214
215 throw new com.liferay.portal.SystemException(e);
216 }
217
218 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
219 }
220 catch (com.liferay.portal.SystemException se) {
221 _log.error(se, se);
222
223 throw se;
224 }
225 }
226
227 public static com.liferay.portlet.journal.model.JournalArticle addArticle(
228 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
229 boolean autoArticleId, java.lang.String title,
230 java.lang.String description, java.lang.String content,
231 java.lang.String type, java.lang.String structureId,
232 java.lang.String templateId, int displayDateMonth, int displayDateDay,
233 int displayDateYear, int displayDateHour, int displayDateMinute,
234 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
235 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
236 int reviewDateMonth, int reviewDateDay, int reviewDateYear,
237 int reviewDateHour, int reviewDateMinute, boolean neverReview,
238 boolean indexable, boolean smallImage, java.lang.String smallImageURL,
239 java.io.File smallFile, java.util.Map<String, byte[]> images,
240 java.lang.String articleURL,
241 com.liferay.portal.service.ServiceContext serviceContext)
242 throws com.liferay.portal.PortalException,
243 com.liferay.portal.SystemException {
244 try {
245 Object paramObj0 = new LongWrapper(groupId);
246
247 Object paramObj1 = articleId;
248
249 if (articleId == null) {
250 paramObj1 = new NullWrapper("java.lang.String");
251 }
252
253 Object paramObj2 = new BooleanWrapper(autoArticleId);
254
255 Object paramObj3 = title;
256
257 if (title == null) {
258 paramObj3 = new NullWrapper("java.lang.String");
259 }
260
261 Object paramObj4 = description;
262
263 if (description == null) {
264 paramObj4 = new NullWrapper("java.lang.String");
265 }
266
267 Object paramObj5 = content;
268
269 if (content == null) {
270 paramObj5 = new NullWrapper("java.lang.String");
271 }
272
273 Object paramObj6 = type;
274
275 if (type == null) {
276 paramObj6 = new NullWrapper("java.lang.String");
277 }
278
279 Object paramObj7 = structureId;
280
281 if (structureId == null) {
282 paramObj7 = new NullWrapper("java.lang.String");
283 }
284
285 Object paramObj8 = templateId;
286
287 if (templateId == null) {
288 paramObj8 = new NullWrapper("java.lang.String");
289 }
290
291 Object paramObj9 = new IntegerWrapper(displayDateMonth);
292
293 Object paramObj10 = new IntegerWrapper(displayDateDay);
294
295 Object paramObj11 = new IntegerWrapper(displayDateYear);
296
297 Object paramObj12 = new IntegerWrapper(displayDateHour);
298
299 Object paramObj13 = new IntegerWrapper(displayDateMinute);
300
301 Object paramObj14 = new IntegerWrapper(expirationDateMonth);
302
303 Object paramObj15 = new IntegerWrapper(expirationDateDay);
304
305 Object paramObj16 = new IntegerWrapper(expirationDateYear);
306
307 Object paramObj17 = new IntegerWrapper(expirationDateHour);
308
309 Object paramObj18 = new IntegerWrapper(expirationDateMinute);
310
311 Object paramObj19 = new BooleanWrapper(neverExpire);
312
313 Object paramObj20 = new IntegerWrapper(reviewDateMonth);
314
315 Object paramObj21 = new IntegerWrapper(reviewDateDay);
316
317 Object paramObj22 = new IntegerWrapper(reviewDateYear);
318
319 Object paramObj23 = new IntegerWrapper(reviewDateHour);
320
321 Object paramObj24 = new IntegerWrapper(reviewDateMinute);
322
323 Object paramObj25 = new BooleanWrapper(neverReview);
324
325 Object paramObj26 = new BooleanWrapper(indexable);
326
327 Object paramObj27 = new BooleanWrapper(smallImage);
328
329 Object paramObj28 = smallImageURL;
330
331 if (smallImageURL == null) {
332 paramObj28 = new NullWrapper("java.lang.String");
333 }
334
335 Object paramObj29 = smallFile;
336
337 if (smallFile == null) {
338 paramObj29 = new NullWrapper("java.io.File");
339 }
340
341 Object paramObj30 = images;
342
343 if (images == null) {
344 paramObj30 = new NullWrapper("java.util.Map");
345 }
346
347 Object paramObj31 = articleURL;
348
349 if (articleURL == null) {
350 paramObj31 = new NullWrapper("java.lang.String");
351 }
352
353 Object paramObj32 = serviceContext;
354
355 if (serviceContext == null) {
356 paramObj32 = new NullWrapper(
357 "com.liferay.portal.service.ServiceContext");
358 }
359
360 MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
361 "addArticle",
362 new Object[] {
363 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
364 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
365 paramObj10, paramObj11, paramObj12, paramObj13,
366 paramObj14, paramObj15, paramObj16, paramObj17,
367 paramObj18, paramObj19, paramObj20, paramObj21,
368 paramObj22, paramObj23, paramObj24, paramObj25,
369 paramObj26, paramObj27, paramObj28, paramObj29,
370 paramObj30, paramObj31, paramObj32
371 });
372
373 Object returnObj = null;
374
375 try {
376 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
377 }
378 catch (Exception e) {
379 if (e instanceof com.liferay.portal.PortalException) {
380 throw (com.liferay.portal.PortalException)e;
381 }
382
383 if (e instanceof com.liferay.portal.SystemException) {
384 throw (com.liferay.portal.SystemException)e;
385 }
386
387 throw new com.liferay.portal.SystemException(e);
388 }
389
390 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
391 }
392 catch (com.liferay.portal.SystemException se) {
393 _log.error(se, se);
394
395 throw se;
396 }
397 }
398
399 public static com.liferay.portlet.journal.model.JournalArticle approveArticle(
400 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
401 double version, java.lang.String articleURL,
402 com.liferay.portal.service.ServiceContext serviceContext)
403 throws com.liferay.portal.PortalException,
404 com.liferay.portal.SystemException {
405 try {
406 Object paramObj0 = new LongWrapper(groupId);
407
408 Object paramObj1 = articleId;
409
410 if (articleId == null) {
411 paramObj1 = new NullWrapper("java.lang.String");
412 }
413
414 Object paramObj2 = new DoubleWrapper(version);
415
416 Object paramObj3 = articleURL;
417
418 if (articleURL == null) {
419 paramObj3 = new NullWrapper("java.lang.String");
420 }
421
422 Object paramObj4 = serviceContext;
423
424 if (serviceContext == null) {
425 paramObj4 = new NullWrapper(
426 "com.liferay.portal.service.ServiceContext");
427 }
428
429 MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
430 "approveArticle",
431 new Object[] {
432 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4
433 });
434
435 Object returnObj = null;
436
437 try {
438 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
439 }
440 catch (Exception e) {
441 if (e instanceof com.liferay.portal.PortalException) {
442 throw (com.liferay.portal.PortalException)e;
443 }
444
445 if (e instanceof com.liferay.portal.SystemException) {
446 throw (com.liferay.portal.SystemException)e;
447 }
448
449 throw new com.liferay.portal.SystemException(e);
450 }
451
452 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
453 }
454 catch (com.liferay.portal.SystemException se) {
455 _log.error(se, se);
456
457 throw se;
458 }
459 }
460
461 public static com.liferay.portlet.journal.model.JournalArticle copyArticle(
462 HttpPrincipal httpPrincipal, long groupId,
463 java.lang.String oldArticleId, java.lang.String newArticleId,
464 boolean autoArticleId, double version)
465 throws com.liferay.portal.PortalException,
466 com.liferay.portal.SystemException {
467 try {
468 Object paramObj0 = new LongWrapper(groupId);
469
470 Object paramObj1 = oldArticleId;
471
472 if (oldArticleId == null) {
473 paramObj1 = new NullWrapper("java.lang.String");
474 }
475
476 Object paramObj2 = newArticleId;
477
478 if (newArticleId == null) {
479 paramObj2 = new NullWrapper("java.lang.String");
480 }
481
482 Object paramObj3 = new BooleanWrapper(autoArticleId);
483
484 Object paramObj4 = new DoubleWrapper(version);
485
486 MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
487 "copyArticle",
488 new Object[] {
489 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4
490 });
491
492 Object returnObj = null;
493
494 try {
495 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
496 }
497 catch (Exception e) {
498 if (e instanceof com.liferay.portal.PortalException) {
499 throw (com.liferay.portal.PortalException)e;
500 }
501
502 if (e instanceof com.liferay.portal.SystemException) {
503 throw (com.liferay.portal.SystemException)e;
504 }
505
506 throw new com.liferay.portal.SystemException(e);
507 }
508
509 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
510 }
511 catch (com.liferay.portal.SystemException se) {
512 _log.error(se, se);
513
514 throw se;
515 }
516 }
517
518 public static com.liferay.portlet.journal.model.JournalArticle getArticle(
519 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId)
520 throws com.liferay.portal.PortalException,
521 com.liferay.portal.SystemException {
522 try {
523 Object paramObj0 = new LongWrapper(groupId);
524
525 Object paramObj1 = articleId;
526
527 if (articleId == null) {
528 paramObj1 = new NullWrapper("java.lang.String");
529 }
530
531 MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
532 "getArticle", new Object[] { paramObj0, paramObj1 });
533
534 Object returnObj = null;
535
536 try {
537 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
538 }
539 catch (Exception e) {
540 if (e instanceof com.liferay.portal.PortalException) {
541 throw (com.liferay.portal.PortalException)e;
542 }
543
544 if (e instanceof com.liferay.portal.SystemException) {
545 throw (com.liferay.portal.SystemException)e;
546 }
547
548 throw new com.liferay.portal.SystemException(e);
549 }
550
551 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
552 }
553 catch (com.liferay.portal.SystemException se) {
554 _log.error(se, se);
555
556 throw se;
557 }
558 }
559
560 public static com.liferay.portlet.journal.model.JournalArticle getArticle(
561 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
562 double version)
563 throws com.liferay.portal.PortalException,
564 com.liferay.portal.SystemException {
565 try {
566 Object paramObj0 = new LongWrapper(groupId);
567
568 Object paramObj1 = articleId;
569
570 if (articleId == null) {
571 paramObj1 = new NullWrapper("java.lang.String");
572 }
573
574 Object paramObj2 = new DoubleWrapper(version);
575
576 MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
577 "getArticle",
578 new Object[] { paramObj0, paramObj1, paramObj2 });
579
580 Object returnObj = null;
581
582 try {
583 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
584 }
585 catch (Exception e) {
586 if (e instanceof com.liferay.portal.PortalException) {
587 throw (com.liferay.portal.PortalException)e;
588 }
589
590 if (e instanceof com.liferay.portal.SystemException) {
591 throw (com.liferay.portal.SystemException)e;
592 }
593
594 throw new com.liferay.portal.SystemException(e);
595 }
596
597 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
598 }
599 catch (com.liferay.portal.SystemException se) {
600 _log.error(se, se);
601
602 throw se;
603 }
604 }
605
606 public static com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
607 HttpPrincipal httpPrincipal, long groupId, java.lang.String urlTitle)
608 throws com.liferay.portal.PortalException,
609 com.liferay.portal.SystemException {
610 try {
611 Object paramObj0 = new LongWrapper(groupId);
612
613 Object paramObj1 = urlTitle;
614
615 if (urlTitle == null) {
616 paramObj1 = new NullWrapper("java.lang.String");
617 }
618
619 MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
620 "getArticleByUrlTitle",
621 new Object[] { paramObj0, paramObj1 });
622
623 Object returnObj = null;
624
625 try {
626 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
627 }
628 catch (Exception e) {
629 if (e instanceof com.liferay.portal.PortalException) {
630 throw (com.liferay.portal.PortalException)e;
631 }
632
633 if (e instanceof com.liferay.portal.SystemException) {
634 throw (com.liferay.portal.SystemException)e;
635 }
636
637 throw new com.liferay.portal.SystemException(e);
638 }
639
640 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
641 }
642 catch (com.liferay.portal.SystemException se) {
643 _log.error(se, se);
644
645 throw se;
646 }
647 }
648
649 public static java.lang.String getArticleContent(
650 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
651 java.lang.String languageId,
652 com.liferay.portal.theme.ThemeDisplay themeDisplay)
653 throws com.liferay.portal.PortalException,
654 com.liferay.portal.SystemException {
655 try {
656 Object paramObj0 = new LongWrapper(groupId);
657
658 Object paramObj1 = articleId;
659
660 if (articleId == null) {
661 paramObj1 = new NullWrapper("java.lang.String");
662 }
663
664 Object paramObj2 = languageId;
665
666 if (languageId == null) {
667 paramObj2 = new NullWrapper("java.lang.String");
668 }
669
670 Object paramObj3 = themeDisplay;
671
672 if (themeDisplay == null) {
673 paramObj3 = new NullWrapper(
674 "com.liferay.portal.theme.ThemeDisplay");
675 }
676
677 MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
678 "getArticleContent",
679 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
680
681 Object returnObj = null;
682
683 try {
684 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
685 }
686 catch (Exception e) {
687 if (e instanceof com.liferay.portal.PortalException) {
688 throw (com.liferay.portal.PortalException)e;
689 }
690
691 if (e instanceof com.liferay.portal.SystemException) {
692 throw (com.liferay.portal.SystemException)e;
693 }
694
695 throw new com.liferay.portal.SystemException(e);
696 }
697
698 return (java.lang.String)returnObj;
699 }
700 catch (com.liferay.portal.SystemException se) {
701 _log.error(se, se);
702
703 throw se;
704 }
705 }
706
707 public static java.lang.String getArticleContent(
708 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
709 double version, java.lang.String languageId,
710 com.liferay.portal.theme.ThemeDisplay themeDisplay)
711 throws com.liferay.portal.PortalException,
712 com.liferay.portal.SystemException {
713 try {
714 Object paramObj0 = new LongWrapper(groupId);
715
716 Object paramObj1 = articleId;
717
718 if (articleId == null) {
719 paramObj1 = new NullWrapper("java.lang.String");
720 }
721
722 Object paramObj2 = new DoubleWrapper(version);
723
724 Object paramObj3 = languageId;
725
726 if (languageId == null) {
727 paramObj3 = new NullWrapper("java.lang.String");
728 }
729
730 Object paramObj4 = themeDisplay;
731
732 if (themeDisplay == null) {
733 paramObj4 = new NullWrapper(
734 "com.liferay.portal.theme.ThemeDisplay");
735 }
736
737 MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
738 "getArticleContent",
739 new Object[] {
740 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4
741 });
742
743 Object returnObj = null;
744
745 try {
746 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
747 }
748 catch (Exception e) {
749 if (e instanceof com.liferay.portal.PortalException) {
750 throw (com.liferay.portal.PortalException)e;
751 }
752
753 if (e instanceof com.liferay.portal.SystemException) {
754 throw (com.liferay.portal.SystemException)e;
755 }
756
757 throw new com.liferay.portal.SystemException(e);
758 }
759
760 return (java.lang.String)returnObj;
761 }
762 catch (com.liferay.portal.SystemException se) {
763 _log.error(se, se);
764
765 throw se;
766 }
767 }
768
769 public static void deleteArticle(HttpPrincipal httpPrincipal, long groupId,
770 java.lang.String articleId, double version,
771 java.lang.String articleURL,
772 com.liferay.portal.service.ServiceContext serviceContext)
773 throws com.liferay.portal.PortalException,
774 com.liferay.portal.SystemException {
775 try {
776 Object paramObj0 = new LongWrapper(groupId);
777
778 Object paramObj1 = articleId;
779
780 if (articleId == null) {
781 paramObj1 = new NullWrapper("java.lang.String");
782 }
783
784 Object paramObj2 = new DoubleWrapper(version);
785
786 Object paramObj3 = articleURL;
787
788 if (articleURL == null) {
789 paramObj3 = new NullWrapper("java.lang.String");
790 }
791
792 Object paramObj4 = serviceContext;
793
794 if (serviceContext == null) {
795 paramObj4 = new NullWrapper(
796 "com.liferay.portal.service.ServiceContext");
797 }
798
799 MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
800 "deleteArticle",
801 new Object[] {
802 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4
803 });
804
805 try {
806 TunnelUtil.invoke(httpPrincipal, methodWrapper);
807 }
808 catch (Exception e) {
809 if (e instanceof com.liferay.portal.PortalException) {
810 throw (com.liferay.portal.PortalException)e;
811 }
812
813 if (e instanceof com.liferay.portal.SystemException) {
814 throw (com.liferay.portal.SystemException)e;
815 }
816
817 throw new com.liferay.portal.SystemException(e);
818 }
819 }
820 catch (com.liferay.portal.SystemException se) {
821 _log.error(se, se);
822
823 throw se;
824 }
825 }
826
827 public static void expireArticle(HttpPrincipal httpPrincipal, long groupId,
828 java.lang.String articleId, double version,
829 java.lang.String articleURL,
830 com.liferay.portal.service.ServiceContext serviceContext)
831 throws com.liferay.portal.PortalException,
832 com.liferay.portal.SystemException {
833 try {
834 Object paramObj0 = new LongWrapper(groupId);
835
836 Object paramObj1 = articleId;
837
838 if (articleId == null) {
839 paramObj1 = new NullWrapper("java.lang.String");
840 }
841
842 Object paramObj2 = new DoubleWrapper(version);
843
844 Object paramObj3 = articleURL;
845
846 if (articleURL == null) {
847 paramObj3 = new NullWrapper("java.lang.String");
848 }
849
850 Object paramObj4 = serviceContext;
851
852 if (serviceContext == null) {
853 paramObj4 = new NullWrapper(
854 "com.liferay.portal.service.ServiceContext");
855 }
856
857 MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
858 "expireArticle",
859 new Object[] {
860 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4
861 });
862
863 try {
864 TunnelUtil.invoke(httpPrincipal, methodWrapper);
865 }
866 catch (Exception e) {
867 if (e instanceof com.liferay.portal.PortalException) {
868 throw (com.liferay.portal.PortalException)e;
869 }
870
871 if (e instanceof com.liferay.portal.SystemException) {
872 throw (com.liferay.portal.SystemException)e;
873 }
874
875 throw new com.liferay.portal.SystemException(e);
876 }
877 }
878 catch (com.liferay.portal.SystemException se) {
879 _log.error(se, se);
880
881 throw se;
882 }
883 }
884
885 public static void removeArticleLocale(HttpPrincipal httpPrincipal,
886 long companyId, java.lang.String languageId)
887 throws com.liferay.portal.PortalException,
888 com.liferay.portal.SystemException {
889 try {
890 Object paramObj0 = new LongWrapper(companyId);
891
892 Object paramObj1 = languageId;
893
894 if (languageId == null) {
895 paramObj1 = new NullWrapper("java.lang.String");
896 }
897
898 MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
899 "removeArticleLocale", new Object[] { paramObj0, paramObj1 });
900
901 try {
902 TunnelUtil.invoke(httpPrincipal, methodWrapper);
903 }
904 catch (Exception e) {
905 if (e instanceof com.liferay.portal.PortalException) {
906 throw (com.liferay.portal.PortalException)e;
907 }
908
909 if (e instanceof com.liferay.portal.SystemException) {
910 throw (com.liferay.portal.SystemException)e;
911 }
912
913 throw new com.liferay.portal.SystemException(e);
914 }
915 }
916 catch (com.liferay.portal.SystemException se) {
917 _log.error(se, se);
918
919 throw se;
920 }
921 }
922
923 public static com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
924 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
925 double version, java.lang.String languageId)
926 throws com.liferay.portal.PortalException,
927 com.liferay.portal.SystemException {
928 try {
929 Object paramObj0 = new LongWrapper(groupId);
930
931 Object paramObj1 = articleId;
932
933 if (articleId == null) {
934 paramObj1 = new NullWrapper("java.lang.String");
935 }
936
937 Object paramObj2 = new DoubleWrapper(version);
938
939 Object paramObj3 = languageId;
940
941 if (languageId == null) {
942 paramObj3 = new NullWrapper("java.lang.String");
943 }
944
945 MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
946 "removeArticleLocale",
947 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
948
949 Object returnObj = null;
950
951 try {
952 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
953 }
954 catch (Exception e) {
955 if (e instanceof com.liferay.portal.PortalException) {
956 throw (com.liferay.portal.PortalException)e;
957 }
958
959 if (e instanceof com.liferay.portal.SystemException) {
960 throw (com.liferay.portal.SystemException)e;
961 }
962
963 throw new com.liferay.portal.SystemException(e);
964 }
965
966 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
967 }
968 catch (com.liferay.portal.SystemException se) {
969 _log.error(se, se);
970
971 throw se;
972 }
973 }
974
975 public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
976 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
977 double version, boolean incrementVersion, java.lang.String content)
978 throws com.liferay.portal.PortalException,
979 com.liferay.portal.SystemException {
980 try {
981 Object paramObj0 = new LongWrapper(groupId);
982
983 Object paramObj1 = articleId;
984
985 if (articleId == null) {
986 paramObj1 = new NullWrapper("java.lang.String");
987 }
988
989 Object paramObj2 = new DoubleWrapper(version);
990
991 Object paramObj3 = new BooleanWrapper(incrementVersion);
992
993 Object paramObj4 = content;
994
995 if (content == null) {
996 paramObj4 = new NullWrapper("java.lang.String");
997 }
998
999 MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
1000 "updateArticle",
1001 new Object[] {
1002 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4
1003 });
1004
1005 Object returnObj = null;
1006
1007 try {
1008 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1009 }
1010 catch (Exception e) {
1011 if (e instanceof com.liferay.portal.PortalException) {
1012 throw (com.liferay.portal.PortalException)e;
1013 }
1014
1015 if (e instanceof com.liferay.portal.SystemException) {
1016 throw (com.liferay.portal.SystemException)e;
1017 }
1018
1019 throw new com.liferay.portal.SystemException(e);
1020 }
1021
1022 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1023 }
1024 catch (com.liferay.portal.SystemException se) {
1025 _log.error(se, se);
1026
1027 throw se;
1028 }
1029 }
1030
1031 public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
1032 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
1033 double version, boolean incrementVersion, java.lang.String title,
1034 java.lang.String description, java.lang.String content,
1035 java.lang.String type, java.lang.String structureId,
1036 java.lang.String templateId, int displayDateMonth, int displayDateDay,
1037 int displayDateYear, int displayDateHour, int displayDateMinute,
1038 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
1039 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
1040 int reviewDateMonth, int reviewDateDay, int reviewDateYear,
1041 int reviewDateHour, int reviewDateMinute, boolean neverReview,
1042 boolean indexable, boolean smallImage, java.lang.String smallImageURL,
1043 java.io.File smallFile, java.util.Map<String, byte[]> images,
1044 java.lang.String articleURL,
1045 com.liferay.portal.service.ServiceContext serviceContext)
1046 throws com.liferay.portal.PortalException,
1047 com.liferay.portal.SystemException {
1048 try {
1049 Object paramObj0 = new LongWrapper(groupId);
1050
1051 Object paramObj1 = articleId;
1052
1053 if (articleId == null) {
1054 paramObj1 = new NullWrapper("java.lang.String");
1055 }
1056
1057 Object paramObj2 = new DoubleWrapper(version);
1058
1059 Object paramObj3 = new BooleanWrapper(incrementVersion);
1060
1061 Object paramObj4 = title;
1062
1063 if (title == null) {
1064 paramObj4 = new NullWrapper("java.lang.String");
1065 }
1066
1067 Object paramObj5 = description;
1068
1069 if (description == null) {
1070 paramObj5 = new NullWrapper("java.lang.String");
1071 }
1072
1073 Object paramObj6 = content;
1074
1075 if (content == null) {
1076 paramObj6 = new NullWrapper("java.lang.String");
1077 }
1078
1079 Object paramObj7 = type;
1080
1081 if (type == null) {
1082 paramObj7 = new NullWrapper("java.lang.String");
1083 }
1084
1085 Object paramObj8 = structureId;
1086
1087 if (structureId == null) {
1088 paramObj8 = new NullWrapper("java.lang.String");
1089 }
1090
1091 Object paramObj9 = templateId;
1092
1093 if (templateId == null) {
1094 paramObj9 = new NullWrapper("java.lang.String");
1095 }
1096
1097 Object paramObj10 = new IntegerWrapper(displayDateMonth);
1098
1099 Object paramObj11 = new IntegerWrapper(displayDateDay);
1100
1101 Object paramObj12 = new IntegerWrapper(displayDateYear);
1102
1103 Object paramObj13 = new IntegerWrapper(displayDateHour);
1104
1105 Object paramObj14 = new IntegerWrapper(displayDateMinute);
1106
1107 Object paramObj15 = new IntegerWrapper(expirationDateMonth);
1108
1109 Object paramObj16 = new IntegerWrapper(expirationDateDay);
1110
1111 Object paramObj17 = new IntegerWrapper(expirationDateYear);
1112
1113 Object paramObj18 = new IntegerWrapper(expirationDateHour);
1114
1115 Object paramObj19 = new IntegerWrapper(expirationDateMinute);
1116
1117 Object paramObj20 = new BooleanWrapper(neverExpire);
1118
1119 Object paramObj21 = new IntegerWrapper(reviewDateMonth);
1120
1121 Object paramObj22 = new IntegerWrapper(reviewDateDay);
1122
1123 Object paramObj23 = new IntegerWrapper(reviewDateYear);
1124
1125 Object paramObj24 = new IntegerWrapper(reviewDateHour);
1126
1127 Object paramObj25 = new IntegerWrapper(reviewDateMinute);
1128
1129 Object paramObj26 = new BooleanWrapper(neverReview);
1130
1131 Object paramObj27 = new BooleanWrapper(indexable);
1132
1133 Object paramObj28 = new BooleanWrapper(smallImage);
1134
1135 Object paramObj29 = smallImageURL;
1136
1137 if (smallImageURL == null) {
1138 paramObj29 = new NullWrapper("java.lang.String");
1139 }
1140
1141 Object paramObj30 = smallFile;
1142
1143 if (smallFile == null) {
1144 paramObj30 = new NullWrapper("java.io.File");
1145 }
1146
1147 Object paramObj31 = images;
1148
1149 if (images == null) {
1150 paramObj31 = new NullWrapper("java.util.Map");
1151 }
1152
1153 Object paramObj32 = articleURL;
1154
1155 if (articleURL == null) {
1156 paramObj32 = new NullWrapper("java.lang.String");
1157 }
1158
1159 Object paramObj33 = serviceContext;
1160
1161 if (serviceContext == null) {
1162 paramObj33 = new NullWrapper(
1163 "com.liferay.portal.service.ServiceContext");
1164 }
1165
1166 MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
1167 "updateArticle",
1168 new Object[] {
1169 paramObj0, paramObj1, paramObj2, paramObj3, paramObj4,
1170 paramObj5, paramObj6, paramObj7, paramObj8, paramObj9,
1171 paramObj10, paramObj11, paramObj12, paramObj13,
1172 paramObj14, paramObj15, paramObj16, paramObj17,
1173 paramObj18, paramObj19, paramObj20, paramObj21,
1174 paramObj22, paramObj23, paramObj24, paramObj25,
1175 paramObj26, paramObj27, paramObj28, paramObj29,
1176 paramObj30, paramObj31, paramObj32, paramObj33
1177 });
1178
1179 Object returnObj = null;
1180
1181 try {
1182 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1183 }
1184 catch (Exception e) {
1185 if (e instanceof com.liferay.portal.PortalException) {
1186 throw (com.liferay.portal.PortalException)e;
1187 }
1188
1189 if (e instanceof com.liferay.portal.SystemException) {
1190 throw (com.liferay.portal.SystemException)e;
1191 }
1192
1193 throw new com.liferay.portal.SystemException(e);
1194 }
1195
1196 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1197 }
1198 catch (com.liferay.portal.SystemException se) {
1199 _log.error(se, se);
1200
1201 throw se;
1202 }
1203 }
1204
1205 public static com.liferay.portlet.journal.model.JournalArticle updateContent(
1206 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
1207 double version, java.lang.String content)
1208 throws com.liferay.portal.PortalException,
1209 com.liferay.portal.SystemException {
1210 try {
1211 Object paramObj0 = new LongWrapper(groupId);
1212
1213 Object paramObj1 = articleId;
1214
1215 if (articleId == null) {
1216 paramObj1 = new NullWrapper("java.lang.String");
1217 }
1218
1219 Object paramObj2 = new DoubleWrapper(version);
1220
1221 Object paramObj3 = content;
1222
1223 if (content == null) {
1224 paramObj3 = new NullWrapper("java.lang.String");
1225 }
1226
1227 MethodWrapper methodWrapper = new MethodWrapper(JournalArticleServiceUtil.class.getName(),
1228 "updateContent",
1229 new Object[] { paramObj0, paramObj1, paramObj2, paramObj3 });
1230
1231 Object returnObj = null;
1232
1233 try {
1234 returnObj = TunnelUtil.invoke(httpPrincipal, methodWrapper);
1235 }
1236 catch (Exception e) {
1237 if (e instanceof com.liferay.portal.PortalException) {
1238 throw (com.liferay.portal.PortalException)e;
1239 }
1240
1241 if (e instanceof com.liferay.portal.SystemException) {
1242 throw (com.liferay.portal.SystemException)e;
1243 }
1244
1245 throw new com.liferay.portal.SystemException(e);
1246 }
1247
1248 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1249 }
1250 catch (com.liferay.portal.SystemException se) {
1251 _log.error(se, se);
1252
1253 throw se;
1254 }
1255 }
1256
1257 private static Log _log = LogFactoryUtil.getLog(JournalArticleServiceHttp.class);
1258}