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