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