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