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> getArticlesByArticleId(
623 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
624 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
625 throws com.liferay.portal.kernel.exception.SystemException {
626 try {
627 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
628 "getArticlesByArticleId",
629 _getArticlesByArticleIdParameterTypes14);
630
631 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
632 articleId, start, end, obc);
633
634 Object returnObj = null;
635
636 try {
637 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
638 }
639 catch (Exception e) {
640 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
641 throw (com.liferay.portal.kernel.exception.SystemException)e;
642 }
643
644 throw new com.liferay.portal.kernel.exception.SystemException(e);
645 }
646
647 return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
648 }
649 catch (com.liferay.portal.kernel.exception.SystemException se) {
650 _log.error(se, se);
651
652 throw se;
653 }
654 }
655
656 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByLayoutUuid(
657 HttpPrincipal httpPrincipal, long groupId, java.lang.String layoutUuid)
658 throws com.liferay.portal.kernel.exception.SystemException {
659 try {
660 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
661 "getArticlesByLayoutUuid",
662 _getArticlesByLayoutUuidParameterTypes15);
663
664 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
665 layoutUuid);
666
667 Object returnObj = null;
668
669 try {
670 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
671 }
672 catch (Exception e) {
673 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
674 throw (com.liferay.portal.kernel.exception.SystemException)e;
675 }
676
677 throw new com.liferay.portal.kernel.exception.SystemException(e);
678 }
679
680 return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
681 }
682 catch (com.liferay.portal.kernel.exception.SystemException se) {
683 _log.error(se, se);
684
685 throw se;
686 }
687 }
688
689 public static int getArticlesCountByArticleId(HttpPrincipal httpPrincipal,
690 long groupId, java.lang.String articleId)
691 throws com.liferay.portal.kernel.exception.SystemException {
692 try {
693 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
694 "getArticlesCountByArticleId",
695 _getArticlesCountByArticleIdParameterTypes16);
696
697 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
698 articleId);
699
700 Object returnObj = null;
701
702 try {
703 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
704 }
705 catch (Exception e) {
706 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
707 throw (com.liferay.portal.kernel.exception.SystemException)e;
708 }
709
710 throw new com.liferay.portal.kernel.exception.SystemException(e);
711 }
712
713 return ((Integer)returnObj).intValue();
714 }
715 catch (com.liferay.portal.kernel.exception.SystemException se) {
716 _log.error(se, se);
717
718 throw se;
719 }
720 }
721
722 public static com.liferay.portlet.journal.model.JournalArticle getDisplayArticleByUrlTitle(
723 HttpPrincipal httpPrincipal, long groupId, java.lang.String urlTitle)
724 throws com.liferay.portal.kernel.exception.PortalException,
725 com.liferay.portal.kernel.exception.SystemException {
726 try {
727 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
728 "getDisplayArticleByUrlTitle",
729 _getDisplayArticleByUrlTitleParameterTypes17);
730
731 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
732 urlTitle);
733
734 Object returnObj = null;
735
736 try {
737 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
738 }
739 catch (Exception e) {
740 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
741 throw (com.liferay.portal.kernel.exception.PortalException)e;
742 }
743
744 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
745 throw (com.liferay.portal.kernel.exception.SystemException)e;
746 }
747
748 throw new com.liferay.portal.kernel.exception.SystemException(e);
749 }
750
751 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
752 }
753 catch (com.liferay.portal.kernel.exception.SystemException se) {
754 _log.error(se, se);
755
756 throw se;
757 }
758 }
759
760 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
761 HttpPrincipal httpPrincipal, long resourcePrimKey)
762 throws com.liferay.portal.kernel.exception.PortalException,
763 com.liferay.portal.kernel.exception.SystemException {
764 try {
765 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
766 "getLatestArticle", _getLatestArticleParameterTypes18);
767
768 MethodHandler methodHandler = new MethodHandler(methodKey,
769 resourcePrimKey);
770
771 Object returnObj = null;
772
773 try {
774 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
775 }
776 catch (Exception e) {
777 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
778 throw (com.liferay.portal.kernel.exception.PortalException)e;
779 }
780
781 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
782 throw (com.liferay.portal.kernel.exception.SystemException)e;
783 }
784
785 throw new com.liferay.portal.kernel.exception.SystemException(e);
786 }
787
788 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
789 }
790 catch (com.liferay.portal.kernel.exception.SystemException se) {
791 _log.error(se, se);
792
793 throw se;
794 }
795 }
796
797 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
798 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
799 int status)
800 throws com.liferay.portal.kernel.exception.PortalException,
801 com.liferay.portal.kernel.exception.SystemException {
802 try {
803 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
804 "getLatestArticle", _getLatestArticleParameterTypes19);
805
806 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
807 articleId, status);
808
809 Object returnObj = null;
810
811 try {
812 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
813 }
814 catch (Exception e) {
815 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
816 throw (com.liferay.portal.kernel.exception.PortalException)e;
817 }
818
819 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
820 throw (com.liferay.portal.kernel.exception.SystemException)e;
821 }
822
823 throw new com.liferay.portal.kernel.exception.SystemException(e);
824 }
825
826 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
827 }
828 catch (com.liferay.portal.kernel.exception.SystemException se) {
829 _log.error(se, se);
830
831 throw se;
832 }
833 }
834
835 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
836 HttpPrincipal httpPrincipal, long groupId, java.lang.String className,
837 long classPK)
838 throws com.liferay.portal.kernel.exception.PortalException,
839 com.liferay.portal.kernel.exception.SystemException {
840 try {
841 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
842 "getLatestArticle", _getLatestArticleParameterTypes20);
843
844 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
845 className, classPK);
846
847 Object returnObj = null;
848
849 try {
850 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
851 }
852 catch (Exception e) {
853 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
854 throw (com.liferay.portal.kernel.exception.PortalException)e;
855 }
856
857 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
858 throw (com.liferay.portal.kernel.exception.SystemException)e;
859 }
860
861 throw new com.liferay.portal.kernel.exception.SystemException(e);
862 }
863
864 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
865 }
866 catch (com.liferay.portal.kernel.exception.SystemException se) {
867 _log.error(se, se);
868
869 throw se;
870 }
871 }
872
873 public static void removeArticleLocale(HttpPrincipal httpPrincipal,
874 long companyId, java.lang.String languageId)
875 throws com.liferay.portal.kernel.exception.PortalException,
876 com.liferay.portal.kernel.exception.SystemException {
877 try {
878 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
879 "removeArticleLocale", _removeArticleLocaleParameterTypes21);
880
881 MethodHandler methodHandler = new MethodHandler(methodKey,
882 companyId, languageId);
883
884 try {
885 TunnelUtil.invoke(httpPrincipal, methodHandler);
886 }
887 catch (Exception e) {
888 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
889 throw (com.liferay.portal.kernel.exception.PortalException)e;
890 }
891
892 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
893 throw (com.liferay.portal.kernel.exception.SystemException)e;
894 }
895
896 throw new com.liferay.portal.kernel.exception.SystemException(e);
897 }
898 }
899 catch (com.liferay.portal.kernel.exception.SystemException se) {
900 _log.error(se, se);
901
902 throw se;
903 }
904 }
905
906 public static com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
907 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
908 double version, java.lang.String languageId)
909 throws com.liferay.portal.kernel.exception.PortalException,
910 com.liferay.portal.kernel.exception.SystemException {
911 try {
912 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
913 "removeArticleLocale", _removeArticleLocaleParameterTypes22);
914
915 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
916 articleId, version, languageId);
917
918 Object returnObj = null;
919
920 try {
921 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
922 }
923 catch (Exception e) {
924 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
925 throw (com.liferay.portal.kernel.exception.PortalException)e;
926 }
927
928 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
929 throw (com.liferay.portal.kernel.exception.SystemException)e;
930 }
931
932 throw new com.liferay.portal.kernel.exception.SystemException(e);
933 }
934
935 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
936 }
937 catch (com.liferay.portal.kernel.exception.SystemException se) {
938 _log.error(se, se);
939
940 throw se;
941 }
942 }
943
944 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
945 HttpPrincipal httpPrincipal, long companyId, long groupId,
946 long classNameId, java.lang.String keywords, java.lang.Double version,
947 java.lang.String type, java.lang.String structureId,
948 java.lang.String templateId, java.util.Date displayDateGT,
949 java.util.Date displayDateLT, int status, java.util.Date reviewDate,
950 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
951 throws com.liferay.portal.kernel.exception.SystemException {
952 try {
953 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
954 "search", _searchParameterTypes23);
955
956 MethodHandler methodHandler = new MethodHandler(methodKey,
957 companyId, groupId, classNameId, keywords, version, type,
958 structureId, templateId, displayDateGT, displayDateLT,
959 status, reviewDate, start, end, obc);
960
961 Object returnObj = null;
962
963 try {
964 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
965 }
966 catch (Exception e) {
967 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
968 throw (com.liferay.portal.kernel.exception.SystemException)e;
969 }
970
971 throw new com.liferay.portal.kernel.exception.SystemException(e);
972 }
973
974 return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
975 }
976 catch (com.liferay.portal.kernel.exception.SystemException se) {
977 _log.error(se, se);
978
979 throw se;
980 }
981 }
982
983 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
984 HttpPrincipal httpPrincipal, long companyId, long groupId,
985 long classNameId, java.lang.String articleId, java.lang.Double version,
986 java.lang.String title, java.lang.String description,
987 java.lang.String content, java.lang.String type,
988 java.lang.String structureId, java.lang.String templateId,
989 java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
990 java.util.Date reviewDate, boolean andOperator, int start, int end,
991 com.liferay.portal.kernel.util.OrderByComparator obc)
992 throws com.liferay.portal.kernel.exception.SystemException {
993 try {
994 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
995 "search", _searchParameterTypes24);
996
997 MethodHandler methodHandler = new MethodHandler(methodKey,
998 companyId, groupId, classNameId, articleId, version, title,
999 description, content, type, structureId, templateId,
1000 displayDateGT, displayDateLT, status, reviewDate,
1001 andOperator, start, end, obc);
1002
1003 Object returnObj = null;
1004
1005 try {
1006 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1007 }
1008 catch (Exception e) {
1009 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1010 throw (com.liferay.portal.kernel.exception.SystemException)e;
1011 }
1012
1013 throw new com.liferay.portal.kernel.exception.SystemException(e);
1014 }
1015
1016 return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
1017 }
1018 catch (com.liferay.portal.kernel.exception.SystemException se) {
1019 _log.error(se, se);
1020
1021 throw se;
1022 }
1023 }
1024
1025 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
1026 HttpPrincipal httpPrincipal, long companyId, long groupId,
1027 long classNameId, java.lang.String articleId, java.lang.Double version,
1028 java.lang.String title, java.lang.String description,
1029 java.lang.String content, java.lang.String type,
1030 java.lang.String[] structureIds, java.lang.String[] templateIds,
1031 java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
1032 java.util.Date reviewDate, boolean andOperator, int start, int end,
1033 com.liferay.portal.kernel.util.OrderByComparator obc)
1034 throws com.liferay.portal.kernel.exception.SystemException {
1035 try {
1036 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
1037 "search", _searchParameterTypes25);
1038
1039 MethodHandler methodHandler = new MethodHandler(methodKey,
1040 companyId, groupId, classNameId, articleId, version, title,
1041 description, content, type, structureIds, templateIds,
1042 displayDateGT, displayDateLT, status, reviewDate,
1043 andOperator, start, end, obc);
1044
1045 Object returnObj = null;
1046
1047 try {
1048 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1049 }
1050 catch (Exception e) {
1051 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1052 throw (com.liferay.portal.kernel.exception.SystemException)e;
1053 }
1054
1055 throw new com.liferay.portal.kernel.exception.SystemException(e);
1056 }
1057
1058 return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
1059 }
1060 catch (com.liferay.portal.kernel.exception.SystemException se) {
1061 _log.error(se, se);
1062
1063 throw se;
1064 }
1065 }
1066
1067 public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
1068 long groupId, long classNameId, java.lang.String keywords,
1069 java.lang.Double version, java.lang.String type,
1070 java.lang.String structureId, java.lang.String templateId,
1071 java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
1072 java.util.Date reviewDate)
1073 throws com.liferay.portal.kernel.exception.SystemException {
1074 try {
1075 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
1076 "searchCount", _searchCountParameterTypes26);
1077
1078 MethodHandler methodHandler = new MethodHandler(methodKey,
1079 companyId, groupId, classNameId, keywords, version, type,
1080 structureId, templateId, displayDateGT, displayDateLT,
1081 status, reviewDate);
1082
1083 Object returnObj = null;
1084
1085 try {
1086 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1087 }
1088 catch (Exception e) {
1089 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1090 throw (com.liferay.portal.kernel.exception.SystemException)e;
1091 }
1092
1093 throw new com.liferay.portal.kernel.exception.SystemException(e);
1094 }
1095
1096 return ((Integer)returnObj).intValue();
1097 }
1098 catch (com.liferay.portal.kernel.exception.SystemException se) {
1099 _log.error(se, se);
1100
1101 throw se;
1102 }
1103 }
1104
1105 public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
1106 long groupId, long classNameId, java.lang.String articleId,
1107 java.lang.Double version, java.lang.String title,
1108 java.lang.String description, java.lang.String content,
1109 java.lang.String type, java.lang.String structureId,
1110 java.lang.String templateId, java.util.Date displayDateGT,
1111 java.util.Date displayDateLT, int status, java.util.Date reviewDate,
1112 boolean andOperator)
1113 throws com.liferay.portal.kernel.exception.SystemException {
1114 try {
1115 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
1116 "searchCount", _searchCountParameterTypes27);
1117
1118 MethodHandler methodHandler = new MethodHandler(methodKey,
1119 companyId, groupId, classNameId, articleId, version, title,
1120 description, content, type, structureId, templateId,
1121 displayDateGT, displayDateLT, status, reviewDate,
1122 andOperator);
1123
1124 Object returnObj = null;
1125
1126 try {
1127 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1128 }
1129 catch (Exception e) {
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 return ((Integer)returnObj).intValue();
1138 }
1139 catch (com.liferay.portal.kernel.exception.SystemException se) {
1140 _log.error(se, se);
1141
1142 throw se;
1143 }
1144 }
1145
1146 public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
1147 long groupId, long classNameId, java.lang.String articleId,
1148 java.lang.Double version, java.lang.String title,
1149 java.lang.String description, java.lang.String content,
1150 java.lang.String type, java.lang.String[] structureIds,
1151 java.lang.String[] templateIds, java.util.Date displayDateGT,
1152 java.util.Date displayDateLT, int status, java.util.Date reviewDate,
1153 boolean andOperator)
1154 throws com.liferay.portal.kernel.exception.SystemException {
1155 try {
1156 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
1157 "searchCount", _searchCountParameterTypes28);
1158
1159 MethodHandler methodHandler = new MethodHandler(methodKey,
1160 companyId, groupId, classNameId, articleId, version, title,
1161 description, content, type, structureIds, templateIds,
1162 displayDateGT, displayDateLT, status, reviewDate,
1163 andOperator);
1164
1165 Object returnObj = null;
1166
1167 try {
1168 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1169 }
1170 catch (Exception e) {
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 ((Integer)returnObj).intValue();
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 void subscribe(HttpPrincipal httpPrincipal, long groupId)
1188 throws com.liferay.portal.kernel.exception.PortalException,
1189 com.liferay.portal.kernel.exception.SystemException {
1190 try {
1191 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
1192 "subscribe", _subscribeParameterTypes29);
1193
1194 MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
1195
1196 try {
1197 TunnelUtil.invoke(httpPrincipal, methodHandler);
1198 }
1199 catch (Exception e) {
1200 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1201 throw (com.liferay.portal.kernel.exception.PortalException)e;
1202 }
1203
1204 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1205 throw (com.liferay.portal.kernel.exception.SystemException)e;
1206 }
1207
1208 throw new com.liferay.portal.kernel.exception.SystemException(e);
1209 }
1210 }
1211 catch (com.liferay.portal.kernel.exception.SystemException se) {
1212 _log.error(se, se);
1213
1214 throw se;
1215 }
1216 }
1217
1218 public static void unsubscribe(HttpPrincipal httpPrincipal, long groupId)
1219 throws com.liferay.portal.kernel.exception.PortalException,
1220 com.liferay.portal.kernel.exception.SystemException {
1221 try {
1222 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
1223 "unsubscribe", _unsubscribeParameterTypes30);
1224
1225 MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
1226
1227 try {
1228 TunnelUtil.invoke(httpPrincipal, methodHandler);
1229 }
1230 catch (Exception e) {
1231 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1232 throw (com.liferay.portal.kernel.exception.PortalException)e;
1233 }
1234
1235 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1236 throw (com.liferay.portal.kernel.exception.SystemException)e;
1237 }
1238
1239 throw new com.liferay.portal.kernel.exception.SystemException(e);
1240 }
1241 }
1242 catch (com.liferay.portal.kernel.exception.SystemException se) {
1243 _log.error(se, se);
1244
1245 throw se;
1246 }
1247 }
1248
1249 public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
1250 HttpPrincipal httpPrincipal, long userId, long groupId,
1251 java.lang.String articleId, double version,
1252 java.util.Map<java.util.Locale, java.lang.String> titleMap,
1253 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1254 java.lang.String content, java.lang.String layoutUuid,
1255 com.liferay.portal.service.ServiceContext serviceContext)
1256 throws com.liferay.portal.kernel.exception.PortalException,
1257 com.liferay.portal.kernel.exception.SystemException {
1258 try {
1259 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
1260 "updateArticle", _updateArticleParameterTypes31);
1261
1262 MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1263 groupId, articleId, version, titleMap, descriptionMap,
1264 content, layoutUuid, serviceContext);
1265
1266 Object returnObj = null;
1267
1268 try {
1269 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1270 }
1271 catch (Exception e) {
1272 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1273 throw (com.liferay.portal.kernel.exception.PortalException)e;
1274 }
1275
1276 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1277 throw (com.liferay.portal.kernel.exception.SystemException)e;
1278 }
1279
1280 throw new com.liferay.portal.kernel.exception.SystemException(e);
1281 }
1282
1283 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1284 }
1285 catch (com.liferay.portal.kernel.exception.SystemException se) {
1286 _log.error(se, se);
1287
1288 throw se;
1289 }
1290 }
1291
1292 public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
1293 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
1294 double version,
1295 java.util.Map<java.util.Locale, java.lang.String> titleMap,
1296 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1297 java.lang.String content, java.lang.String type,
1298 java.lang.String structureId, java.lang.String templateId,
1299 java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
1300 int displayDateYear, int displayDateHour, int displayDateMinute,
1301 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
1302 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
1303 int reviewDateMonth, int reviewDateDay, int reviewDateYear,
1304 int reviewDateHour, int reviewDateMinute, boolean neverReview,
1305 boolean indexable, boolean smallImage, java.lang.String smallImageURL,
1306 java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
1307 java.lang.String articleURL,
1308 com.liferay.portal.service.ServiceContext serviceContext)
1309 throws com.liferay.portal.kernel.exception.PortalException,
1310 com.liferay.portal.kernel.exception.SystemException {
1311 try {
1312 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
1313 "updateArticle", _updateArticleParameterTypes32);
1314
1315 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1316 articleId, version, titleMap, descriptionMap, content,
1317 type, structureId, templateId, layoutUuid,
1318 displayDateMonth, displayDateDay, displayDateYear,
1319 displayDateHour, displayDateMinute, expirationDateMonth,
1320 expirationDateDay, expirationDateYear, expirationDateHour,
1321 expirationDateMinute, neverExpire, reviewDateMonth,
1322 reviewDateDay, reviewDateYear, reviewDateHour,
1323 reviewDateMinute, neverReview, indexable, smallImage,
1324 smallImageURL, smallFile, images, articleURL, serviceContext);
1325
1326 Object returnObj = null;
1327
1328 try {
1329 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1330 }
1331 catch (Exception e) {
1332 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1333 throw (com.liferay.portal.kernel.exception.PortalException)e;
1334 }
1335
1336 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1337 throw (com.liferay.portal.kernel.exception.SystemException)e;
1338 }
1339
1340 throw new com.liferay.portal.kernel.exception.SystemException(e);
1341 }
1342
1343 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1344 }
1345 catch (com.liferay.portal.kernel.exception.SystemException se) {
1346 _log.error(se, se);
1347
1348 throw se;
1349 }
1350 }
1351
1352 public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
1353 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
1354 double version, java.lang.String content,
1355 com.liferay.portal.service.ServiceContext serviceContext)
1356 throws com.liferay.portal.kernel.exception.PortalException,
1357 com.liferay.portal.kernel.exception.SystemException {
1358 try {
1359 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
1360 "updateArticle", _updateArticleParameterTypes33);
1361
1362 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1363 articleId, version, content, serviceContext);
1364
1365 Object returnObj = null;
1366
1367 try {
1368 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1369 }
1370 catch (Exception e) {
1371 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1372 throw (com.liferay.portal.kernel.exception.PortalException)e;
1373 }
1374
1375 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1376 throw (com.liferay.portal.kernel.exception.SystemException)e;
1377 }
1378
1379 throw new com.liferay.portal.kernel.exception.SystemException(e);
1380 }
1381
1382 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1383 }
1384 catch (com.liferay.portal.kernel.exception.SystemException se) {
1385 _log.error(se, se);
1386
1387 throw se;
1388 }
1389 }
1390
1391 public static com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
1392 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
1393 double version, java.util.Locale locale, java.lang.String title,
1394 java.lang.String description, java.lang.String content,
1395 java.util.Map<java.lang.String, byte[]> images)
1396 throws com.liferay.portal.kernel.exception.PortalException,
1397 com.liferay.portal.kernel.exception.SystemException {
1398 try {
1399 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
1400 "updateArticleTranslation",
1401 _updateArticleTranslationParameterTypes34);
1402
1403 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1404 articleId, version, locale, title, description, content,
1405 images);
1406
1407 Object returnObj = null;
1408
1409 try {
1410 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1411 }
1412 catch (Exception e) {
1413 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1414 throw (com.liferay.portal.kernel.exception.PortalException)e;
1415 }
1416
1417 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1418 throw (com.liferay.portal.kernel.exception.SystemException)e;
1419 }
1420
1421 throw new com.liferay.portal.kernel.exception.SystemException(e);
1422 }
1423
1424 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1425 }
1426 catch (com.liferay.portal.kernel.exception.SystemException se) {
1427 _log.error(se, se);
1428
1429 throw se;
1430 }
1431 }
1432
1433 public static com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
1434 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
1435 double version, java.util.Locale locale, java.lang.String title,
1436 java.lang.String description, java.lang.String content,
1437 java.util.Map<java.lang.String, byte[]> images,
1438 com.liferay.portal.service.ServiceContext serviceContext)
1439 throws com.liferay.portal.kernel.exception.PortalException,
1440 com.liferay.portal.kernel.exception.SystemException {
1441 try {
1442 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
1443 "updateArticleTranslation",
1444 _updateArticleTranslationParameterTypes35);
1445
1446 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1447 articleId, version, locale, title, description, content,
1448 images, serviceContext);
1449
1450 Object returnObj = null;
1451
1452 try {
1453 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1454 }
1455 catch (Exception e) {
1456 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1457 throw (com.liferay.portal.kernel.exception.PortalException)e;
1458 }
1459
1460 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1461 throw (com.liferay.portal.kernel.exception.SystemException)e;
1462 }
1463
1464 throw new com.liferay.portal.kernel.exception.SystemException(e);
1465 }
1466
1467 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1468 }
1469 catch (com.liferay.portal.kernel.exception.SystemException se) {
1470 _log.error(se, se);
1471
1472 throw se;
1473 }
1474 }
1475
1476 public static com.liferay.portlet.journal.model.JournalArticle updateContent(
1477 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
1478 double version, java.lang.String content)
1479 throws com.liferay.portal.kernel.exception.PortalException,
1480 com.liferay.portal.kernel.exception.SystemException {
1481 try {
1482 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
1483 "updateContent", _updateContentParameterTypes36);
1484
1485 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1486 articleId, version, content);
1487
1488 Object returnObj = null;
1489
1490 try {
1491 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1492 }
1493 catch (Exception e) {
1494 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1495 throw (com.liferay.portal.kernel.exception.PortalException)e;
1496 }
1497
1498 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1499 throw (com.liferay.portal.kernel.exception.SystemException)e;
1500 }
1501
1502 throw new com.liferay.portal.kernel.exception.SystemException(e);
1503 }
1504
1505 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1506 }
1507 catch (com.liferay.portal.kernel.exception.SystemException se) {
1508 _log.error(se, se);
1509
1510 throw se;
1511 }
1512 }
1513
1514 public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
1515 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
1516 double version, int status, java.lang.String articleURL,
1517 com.liferay.portal.service.ServiceContext serviceContext)
1518 throws com.liferay.portal.kernel.exception.PortalException,
1519 com.liferay.portal.kernel.exception.SystemException {
1520 try {
1521 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class.getName(),
1522 "updateStatus", _updateStatusParameterTypes37);
1523
1524 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1525 articleId, version, status, articleURL, serviceContext);
1526
1527 Object returnObj = null;
1528
1529 try {
1530 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1531 }
1532 catch (Exception e) {
1533 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1534 throw (com.liferay.portal.kernel.exception.PortalException)e;
1535 }
1536
1537 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1538 throw (com.liferay.portal.kernel.exception.SystemException)e;
1539 }
1540
1541 throw new com.liferay.portal.kernel.exception.SystemException(e);
1542 }
1543
1544 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1545 }
1546 catch (com.liferay.portal.kernel.exception.SystemException se) {
1547 _log.error(se, se);
1548
1549 throw se;
1550 }
1551 }
1552
1553 private static Log _log = LogFactoryUtil.getLog(JournalArticleServiceHttp.class);
1554 private static final Class<?>[] _addArticleParameterTypes0 = new Class[] {
1555 long.class, long.class, long.class, java.lang.String.class,
1556 boolean.class, java.util.Map.class, java.util.Map.class,
1557 java.lang.String.class, java.lang.String.class,
1558 java.lang.String.class, java.lang.String.class,
1559 java.lang.String.class, int.class, int.class, int.class, int.class,
1560 int.class, int.class, int.class, int.class, int.class, int.class,
1561 boolean.class, int.class, int.class, int.class, int.class, int.class,
1562 boolean.class, boolean.class, boolean.class, java.lang.String.class,
1563 java.io.File.class, java.util.Map.class, java.lang.String.class,
1564 com.liferay.portal.service.ServiceContext.class
1565 };
1566 private static final Class<?>[] _addArticleParameterTypes1 = new Class[] {
1567 long.class, long.class, long.class, java.lang.String.class,
1568 boolean.class, java.util.Map.class, java.util.Map.class,
1569 java.lang.String.class, java.lang.String.class,
1570 java.lang.String.class, java.lang.String.class,
1571 java.lang.String.class, int.class, int.class, int.class, int.class,
1572 int.class, int.class, int.class, int.class, int.class, int.class,
1573 boolean.class, int.class, int.class, int.class, int.class, int.class,
1574 boolean.class, boolean.class, java.lang.String.class,
1575 com.liferay.portal.service.ServiceContext.class
1576 };
1577 private static final Class<?>[] _copyArticleParameterTypes2 = new Class[] {
1578 long.class, java.lang.String.class, java.lang.String.class,
1579 boolean.class, double.class
1580 };
1581 private static final Class<?>[] _deleteArticleParameterTypes3 = new Class[] {
1582 long.class, java.lang.String.class, double.class,
1583 java.lang.String.class,
1584 com.liferay.portal.service.ServiceContext.class
1585 };
1586 private static final Class<?>[] _deleteArticleParameterTypes4 = new Class[] {
1587 long.class, java.lang.String.class, java.lang.String.class,
1588 com.liferay.portal.service.ServiceContext.class
1589 };
1590 private static final Class<?>[] _expireArticleParameterTypes5 = new Class[] {
1591 long.class, java.lang.String.class, double.class,
1592 java.lang.String.class,
1593 com.liferay.portal.service.ServiceContext.class
1594 };
1595 private static final Class<?>[] _expireArticleParameterTypes6 = new Class[] {
1596 long.class, java.lang.String.class, java.lang.String.class,
1597 com.liferay.portal.service.ServiceContext.class
1598 };
1599 private static final Class<?>[] _getArticleParameterTypes7 = new Class[] {
1600 long.class
1601 };
1602 private static final Class<?>[] _getArticleParameterTypes8 = new Class[] {
1603 long.class, java.lang.String.class
1604 };
1605 private static final Class<?>[] _getArticleParameterTypes9 = new Class[] {
1606 long.class, java.lang.String.class, double.class
1607 };
1608 private static final Class<?>[] _getArticleParameterTypes10 = new Class[] {
1609 long.class, java.lang.String.class, long.class
1610 };
1611 private static final Class<?>[] _getArticleByUrlTitleParameterTypes11 = new Class[] {
1612 long.class, java.lang.String.class
1613 };
1614 private static final Class<?>[] _getArticleContentParameterTypes12 = new Class[] {
1615 long.class, java.lang.String.class, double.class,
1616 java.lang.String.class, com.liferay.portal.theme.ThemeDisplay.class
1617 };
1618 private static final Class<?>[] _getArticleContentParameterTypes13 = new Class[] {
1619 long.class, java.lang.String.class, java.lang.String.class,
1620 com.liferay.portal.theme.ThemeDisplay.class
1621 };
1622 private static final Class<?>[] _getArticlesByArticleIdParameterTypes14 = new Class[] {
1623 long.class, java.lang.String.class, int.class, int.class,
1624 com.liferay.portal.kernel.util.OrderByComparator.class
1625 };
1626 private static final Class<?>[] _getArticlesByLayoutUuidParameterTypes15 = new Class[] {
1627 long.class, java.lang.String.class
1628 };
1629 private static final Class<?>[] _getArticlesCountByArticleIdParameterTypes16 =
1630 new Class[] { long.class, java.lang.String.class };
1631 private static final Class<?>[] _getDisplayArticleByUrlTitleParameterTypes17 =
1632 new Class[] { long.class, java.lang.String.class };
1633 private static final Class<?>[] _getLatestArticleParameterTypes18 = new Class[] {
1634 long.class
1635 };
1636 private static final Class<?>[] _getLatestArticleParameterTypes19 = new Class[] {
1637 long.class, java.lang.String.class, int.class
1638 };
1639 private static final Class<?>[] _getLatestArticleParameterTypes20 = new Class[] {
1640 long.class, java.lang.String.class, long.class
1641 };
1642 private static final Class<?>[] _removeArticleLocaleParameterTypes21 = new Class[] {
1643 long.class, java.lang.String.class
1644 };
1645 private static final Class<?>[] _removeArticleLocaleParameterTypes22 = new Class[] {
1646 long.class, java.lang.String.class, double.class,
1647 java.lang.String.class
1648 };
1649 private static final Class<?>[] _searchParameterTypes23 = new Class[] {
1650 long.class, long.class, long.class, java.lang.String.class,
1651 java.lang.Double.class, java.lang.String.class,
1652 java.lang.String.class, java.lang.String.class, java.util.Date.class,
1653 java.util.Date.class, int.class, java.util.Date.class, int.class,
1654 int.class, com.liferay.portal.kernel.util.OrderByComparator.class
1655 };
1656 private static final Class<?>[] _searchParameterTypes24 = new Class[] {
1657 long.class, long.class, long.class, java.lang.String.class,
1658 java.lang.Double.class, java.lang.String.class,
1659 java.lang.String.class, java.lang.String.class,
1660 java.lang.String.class, java.lang.String.class,
1661 java.lang.String.class, java.util.Date.class, java.util.Date.class,
1662 int.class, java.util.Date.class, boolean.class, int.class, int.class,
1663 com.liferay.portal.kernel.util.OrderByComparator.class
1664 };
1665 private static final Class<?>[] _searchParameterTypes25 = new Class[] {
1666 long.class, long.class, long.class, java.lang.String.class,
1667 java.lang.Double.class, java.lang.String.class,
1668 java.lang.String.class, java.lang.String.class,
1669 java.lang.String.class, java.lang.String[].class,
1670 java.lang.String[].class, java.util.Date.class, java.util.Date.class,
1671 int.class, java.util.Date.class, boolean.class, int.class, int.class,
1672 com.liferay.portal.kernel.util.OrderByComparator.class
1673 };
1674 private static final Class<?>[] _searchCountParameterTypes26 = new Class[] {
1675 long.class, long.class, long.class, java.lang.String.class,
1676 java.lang.Double.class, java.lang.String.class,
1677 java.lang.String.class, java.lang.String.class, java.util.Date.class,
1678 java.util.Date.class, int.class, java.util.Date.class
1679 };
1680 private static final Class<?>[] _searchCountParameterTypes27 = new Class[] {
1681 long.class, long.class, long.class, java.lang.String.class,
1682 java.lang.Double.class, java.lang.String.class,
1683 java.lang.String.class, java.lang.String.class,
1684 java.lang.String.class, java.lang.String.class,
1685 java.lang.String.class, java.util.Date.class, java.util.Date.class,
1686 int.class, java.util.Date.class, boolean.class
1687 };
1688 private static final Class<?>[] _searchCountParameterTypes28 = new Class[] {
1689 long.class, long.class, long.class, java.lang.String.class,
1690 java.lang.Double.class, java.lang.String.class,
1691 java.lang.String.class, java.lang.String.class,
1692 java.lang.String.class, java.lang.String[].class,
1693 java.lang.String[].class, java.util.Date.class, java.util.Date.class,
1694 int.class, java.util.Date.class, boolean.class
1695 };
1696 private static final Class<?>[] _subscribeParameterTypes29 = new Class[] {
1697 long.class
1698 };
1699 private static final Class<?>[] _unsubscribeParameterTypes30 = new Class[] {
1700 long.class
1701 };
1702 private static final Class<?>[] _updateArticleParameterTypes31 = new Class[] {
1703 long.class, long.class, java.lang.String.class, double.class,
1704 java.util.Map.class, java.util.Map.class, java.lang.String.class,
1705 java.lang.String.class,
1706 com.liferay.portal.service.ServiceContext.class
1707 };
1708 private static final Class<?>[] _updateArticleParameterTypes32 = new Class[] {
1709 long.class, java.lang.String.class, double.class,
1710 java.util.Map.class, java.util.Map.class, java.lang.String.class,
1711 java.lang.String.class, java.lang.String.class,
1712 java.lang.String.class, java.lang.String.class, int.class, int.class,
1713 int.class, int.class, int.class, int.class, int.class, int.class,
1714 int.class, int.class, boolean.class, int.class, int.class, int.class,
1715 int.class, int.class, boolean.class, boolean.class, boolean.class,
1716 java.lang.String.class, java.io.File.class, java.util.Map.class,
1717 java.lang.String.class,
1718 com.liferay.portal.service.ServiceContext.class
1719 };
1720 private static final Class<?>[] _updateArticleParameterTypes33 = new Class[] {
1721 long.class, java.lang.String.class, double.class,
1722 java.lang.String.class,
1723 com.liferay.portal.service.ServiceContext.class
1724 };
1725 private static final Class<?>[] _updateArticleTranslationParameterTypes34 = new Class[] {
1726 long.class, java.lang.String.class, double.class,
1727 java.util.Locale.class, java.lang.String.class,
1728 java.lang.String.class, java.lang.String.class, java.util.Map.class
1729 };
1730 private static final Class<?>[] _updateArticleTranslationParameterTypes35 = new Class[] {
1731 long.class, java.lang.String.class, double.class,
1732 java.util.Locale.class, java.lang.String.class,
1733 java.lang.String.class, java.lang.String.class, java.util.Map.class,
1734 com.liferay.portal.service.ServiceContext.class
1735 };
1736 private static final Class<?>[] _updateContentParameterTypes36 = new Class[] {
1737 long.class, java.lang.String.class, double.class,
1738 java.lang.String.class
1739 };
1740 private static final Class<?>[] _updateStatusParameterTypes37 = new Class[] {
1741 long.class, java.lang.String.class, double.class, int.class,
1742 java.lang.String.class,
1743 com.liferay.portal.service.ServiceContext.class
1744 };
1745 }