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 folderId,
059 long classNameId, long classPK, java.lang.String articleId,
060 boolean autoArticleId,
061 java.util.Map<java.util.Locale, java.lang.String> titleMap,
062 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
063 java.lang.String content, java.lang.String type,
064 java.lang.String structureId, java.lang.String templateId,
065 java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
066 int displayDateYear, int displayDateHour, int displayDateMinute,
067 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
068 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
069 int reviewDateMonth, int reviewDateDay, int reviewDateYear,
070 int reviewDateHour, int reviewDateMinute, boolean neverReview,
071 boolean indexable, boolean smallImage, java.lang.String smallImageURL,
072 java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
073 java.lang.String articleURL,
074 com.liferay.portal.service.ServiceContext serviceContext)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 try {
078 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
079 "addArticle", _addArticleParameterTypes0);
080
081 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
082 folderId, classNameId, classPK, articleId, autoArticleId,
083 titleMap, descriptionMap, content, type, structureId,
084 templateId, layoutUuid, displayDateMonth, displayDateDay,
085 displayDateYear, displayDateHour, displayDateMinute,
086 expirationDateMonth, expirationDateDay, expirationDateYear,
087 expirationDateHour, expirationDateMinute, neverExpire,
088 reviewDateMonth, reviewDateDay, reviewDateYear,
089 reviewDateHour, reviewDateMinute, neverReview, indexable,
090 smallImage, smallImageURL, smallFile, images, articleURL,
091 serviceContext);
092
093 Object returnObj = null;
094
095 try {
096 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
097 }
098 catch (Exception e) {
099 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
100 throw (com.liferay.portal.kernel.exception.PortalException)e;
101 }
102
103 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
104 throw (com.liferay.portal.kernel.exception.SystemException)e;
105 }
106
107 throw new com.liferay.portal.kernel.exception.SystemException(e);
108 }
109
110 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
111 }
112 catch (com.liferay.portal.kernel.exception.SystemException se) {
113 _log.error(se, se);
114
115 throw se;
116 }
117 }
118
119 public static com.liferay.portlet.journal.model.JournalArticle addArticle(
120 HttpPrincipal httpPrincipal, long groupId, long folderId,
121 long classNameId, long classPK, java.lang.String articleId,
122 boolean autoArticleId,
123 java.util.Map<java.util.Locale, java.lang.String> titleMap,
124 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
125 java.lang.String content, java.lang.String type,
126 java.lang.String structureId, java.lang.String templateId,
127 java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
128 int displayDateYear, int displayDateHour, int displayDateMinute,
129 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
130 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
131 int reviewDateMonth, int reviewDateDay, int reviewDateYear,
132 int reviewDateHour, int reviewDateMinute, boolean neverReview,
133 boolean indexable, java.lang.String articleURL,
134 com.liferay.portal.service.ServiceContext serviceContext)
135 throws com.liferay.portal.kernel.exception.PortalException,
136 com.liferay.portal.kernel.exception.SystemException {
137 try {
138 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
139 "addArticle", _addArticleParameterTypes1);
140
141 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
142 folderId, classNameId, classPK, articleId, autoArticleId,
143 titleMap, descriptionMap, content, type, structureId,
144 templateId, layoutUuid, displayDateMonth, displayDateDay,
145 displayDateYear, displayDateHour, displayDateMinute,
146 expirationDateMonth, expirationDateDay, expirationDateYear,
147 expirationDateHour, expirationDateMinute, neverExpire,
148 reviewDateMonth, reviewDateDay, reviewDateYear,
149 reviewDateHour, reviewDateMinute, neverReview, indexable,
150 articleURL, serviceContext);
151
152 Object returnObj = null;
153
154 try {
155 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
156 }
157 catch (Exception e) {
158 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
159 throw (com.liferay.portal.kernel.exception.PortalException)e;
160 }
161
162 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
163 throw (com.liferay.portal.kernel.exception.SystemException)e;
164 }
165
166 throw new com.liferay.portal.kernel.exception.SystemException(e);
167 }
168
169 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
170 }
171 catch (com.liferay.portal.kernel.exception.SystemException se) {
172 _log.error(se, se);
173
174 throw se;
175 }
176 }
177
178 public static com.liferay.portlet.journal.model.JournalArticle copyArticle(
179 HttpPrincipal httpPrincipal, long groupId,
180 java.lang.String oldArticleId, java.lang.String newArticleId,
181 boolean autoArticleId, double version)
182 throws com.liferay.portal.kernel.exception.PortalException,
183 com.liferay.portal.kernel.exception.SystemException {
184 try {
185 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
186 "copyArticle", _copyArticleParameterTypes2);
187
188 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
189 oldArticleId, newArticleId, autoArticleId, version);
190
191 Object returnObj = null;
192
193 try {
194 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
195 }
196 catch (Exception e) {
197 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
198 throw (com.liferay.portal.kernel.exception.PortalException)e;
199 }
200
201 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
202 throw (com.liferay.portal.kernel.exception.SystemException)e;
203 }
204
205 throw new com.liferay.portal.kernel.exception.SystemException(e);
206 }
207
208 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
209 }
210 catch (com.liferay.portal.kernel.exception.SystemException se) {
211 _log.error(se, se);
212
213 throw se;
214 }
215 }
216
217 public static void deleteArticle(HttpPrincipal httpPrincipal, long groupId,
218 java.lang.String articleId, double version,
219 java.lang.String articleURL,
220 com.liferay.portal.service.ServiceContext serviceContext)
221 throws com.liferay.portal.kernel.exception.PortalException,
222 com.liferay.portal.kernel.exception.SystemException {
223 try {
224 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
225 "deleteArticle", _deleteArticleParameterTypes3);
226
227 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
228 articleId, version, articleURL, serviceContext);
229
230 try {
231 TunnelUtil.invoke(httpPrincipal, methodHandler);
232 }
233 catch (Exception e) {
234 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
235 throw (com.liferay.portal.kernel.exception.PortalException)e;
236 }
237
238 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
239 throw (com.liferay.portal.kernel.exception.SystemException)e;
240 }
241
242 throw new com.liferay.portal.kernel.exception.SystemException(e);
243 }
244 }
245 catch (com.liferay.portal.kernel.exception.SystemException se) {
246 _log.error(se, se);
247
248 throw se;
249 }
250 }
251
252 public static void deleteArticle(HttpPrincipal httpPrincipal, long groupId,
253 java.lang.String articleId, java.lang.String articleURL,
254 com.liferay.portal.service.ServiceContext serviceContext)
255 throws com.liferay.portal.kernel.exception.PortalException,
256 com.liferay.portal.kernel.exception.SystemException {
257 try {
258 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
259 "deleteArticle", _deleteArticleParameterTypes4);
260
261 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
262 articleId, articleURL, serviceContext);
263
264 try {
265 TunnelUtil.invoke(httpPrincipal, methodHandler);
266 }
267 catch (Exception e) {
268 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
269 throw (com.liferay.portal.kernel.exception.PortalException)e;
270 }
271
272 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
273 throw (com.liferay.portal.kernel.exception.SystemException)e;
274 }
275
276 throw new com.liferay.portal.kernel.exception.SystemException(e);
277 }
278 }
279 catch (com.liferay.portal.kernel.exception.SystemException se) {
280 _log.error(se, se);
281
282 throw se;
283 }
284 }
285
286 public static com.liferay.portlet.journal.model.JournalArticle expireArticle(
287 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
288 double version, java.lang.String articleURL,
289 com.liferay.portal.service.ServiceContext serviceContext)
290 throws com.liferay.portal.kernel.exception.PortalException,
291 com.liferay.portal.kernel.exception.SystemException {
292 try {
293 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
294 "expireArticle", _expireArticleParameterTypes5);
295
296 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
297 articleId, version, articleURL, serviceContext);
298
299 Object returnObj = null;
300
301 try {
302 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
303 }
304 catch (Exception e) {
305 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
306 throw (com.liferay.portal.kernel.exception.PortalException)e;
307 }
308
309 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
310 throw (com.liferay.portal.kernel.exception.SystemException)e;
311 }
312
313 throw new com.liferay.portal.kernel.exception.SystemException(e);
314 }
315
316 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
317 }
318 catch (com.liferay.portal.kernel.exception.SystemException se) {
319 _log.error(se, se);
320
321 throw se;
322 }
323 }
324
325 public static void expireArticle(HttpPrincipal httpPrincipal, long groupId,
326 java.lang.String articleId, java.lang.String articleURL,
327 com.liferay.portal.service.ServiceContext serviceContext)
328 throws com.liferay.portal.kernel.exception.PortalException,
329 com.liferay.portal.kernel.exception.SystemException {
330 try {
331 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
332 "expireArticle", _expireArticleParameterTypes6);
333
334 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
335 articleId, articleURL, serviceContext);
336
337 try {
338 TunnelUtil.invoke(httpPrincipal, methodHandler);
339 }
340 catch (Exception e) {
341 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
342 throw (com.liferay.portal.kernel.exception.PortalException)e;
343 }
344
345 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
346 throw (com.liferay.portal.kernel.exception.SystemException)e;
347 }
348
349 throw new com.liferay.portal.kernel.exception.SystemException(e);
350 }
351 }
352 catch (com.liferay.portal.kernel.exception.SystemException se) {
353 _log.error(se, se);
354
355 throw se;
356 }
357 }
358
359 public static com.liferay.portlet.journal.model.JournalArticle getArticle(
360 HttpPrincipal httpPrincipal, long id)
361 throws com.liferay.portal.kernel.exception.PortalException,
362 com.liferay.portal.kernel.exception.SystemException {
363 try {
364 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
365 "getArticle", _getArticleParameterTypes7);
366
367 MethodHandler methodHandler = new MethodHandler(methodKey, id);
368
369 Object returnObj = null;
370
371 try {
372 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
373 }
374 catch (Exception e) {
375 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
376 throw (com.liferay.portal.kernel.exception.PortalException)e;
377 }
378
379 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
380 throw (com.liferay.portal.kernel.exception.SystemException)e;
381 }
382
383 throw new com.liferay.portal.kernel.exception.SystemException(e);
384 }
385
386 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
387 }
388 catch (com.liferay.portal.kernel.exception.SystemException se) {
389 _log.error(se, se);
390
391 throw se;
392 }
393 }
394
395 public static com.liferay.portlet.journal.model.JournalArticle getArticle(
396 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId)
397 throws com.liferay.portal.kernel.exception.PortalException,
398 com.liferay.portal.kernel.exception.SystemException {
399 try {
400 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
401 "getArticle", _getArticleParameterTypes8);
402
403 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
404 articleId);
405
406 Object returnObj = null;
407
408 try {
409 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
410 }
411 catch (Exception e) {
412 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
413 throw (com.liferay.portal.kernel.exception.PortalException)e;
414 }
415
416 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
417 throw (com.liferay.portal.kernel.exception.SystemException)e;
418 }
419
420 throw new com.liferay.portal.kernel.exception.SystemException(e);
421 }
422
423 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
424 }
425 catch (com.liferay.portal.kernel.exception.SystemException se) {
426 _log.error(se, se);
427
428 throw se;
429 }
430 }
431
432 public static com.liferay.portlet.journal.model.JournalArticle getArticle(
433 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
434 double version)
435 throws com.liferay.portal.kernel.exception.PortalException,
436 com.liferay.portal.kernel.exception.SystemException {
437 try {
438 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
439 "getArticle", _getArticleParameterTypes9);
440
441 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
442 articleId, version);
443
444 Object returnObj = null;
445
446 try {
447 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
448 }
449 catch (Exception e) {
450 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
451 throw (com.liferay.portal.kernel.exception.PortalException)e;
452 }
453
454 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
455 throw (com.liferay.portal.kernel.exception.SystemException)e;
456 }
457
458 throw new com.liferay.portal.kernel.exception.SystemException(e);
459 }
460
461 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
462 }
463 catch (com.liferay.portal.kernel.exception.SystemException se) {
464 _log.error(se, se);
465
466 throw se;
467 }
468 }
469
470 public static com.liferay.portlet.journal.model.JournalArticle getArticle(
471 HttpPrincipal httpPrincipal, long groupId, java.lang.String className,
472 long classPK)
473 throws com.liferay.portal.kernel.exception.PortalException,
474 com.liferay.portal.kernel.exception.SystemException {
475 try {
476 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
477 "getArticle", _getArticleParameterTypes10);
478
479 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
480 className, classPK);
481
482 Object returnObj = null;
483
484 try {
485 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
486 }
487 catch (Exception e) {
488 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
489 throw (com.liferay.portal.kernel.exception.PortalException)e;
490 }
491
492 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
493 throw (com.liferay.portal.kernel.exception.SystemException)e;
494 }
495
496 throw new com.liferay.portal.kernel.exception.SystemException(e);
497 }
498
499 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
500 }
501 catch (com.liferay.portal.kernel.exception.SystemException se) {
502 _log.error(se, se);
503
504 throw se;
505 }
506 }
507
508 public static com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
509 HttpPrincipal httpPrincipal, long groupId, java.lang.String urlTitle)
510 throws com.liferay.portal.kernel.exception.PortalException,
511 com.liferay.portal.kernel.exception.SystemException {
512 try {
513 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
514 "getArticleByUrlTitle",
515 _getArticleByUrlTitleParameterTypes11);
516
517 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
518 urlTitle);
519
520 Object returnObj = null;
521
522 try {
523 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
524 }
525 catch (Exception e) {
526 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
527 throw (com.liferay.portal.kernel.exception.PortalException)e;
528 }
529
530 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
531 throw (com.liferay.portal.kernel.exception.SystemException)e;
532 }
533
534 throw new com.liferay.portal.kernel.exception.SystemException(e);
535 }
536
537 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
538 }
539 catch (com.liferay.portal.kernel.exception.SystemException se) {
540 _log.error(se, se);
541
542 throw se;
543 }
544 }
545
546 public static java.lang.String getArticleContent(
547 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
548 double version, java.lang.String languageId,
549 com.liferay.portal.theme.ThemeDisplay themeDisplay)
550 throws com.liferay.portal.kernel.exception.PortalException,
551 com.liferay.portal.kernel.exception.SystemException {
552 try {
553 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
554 "getArticleContent", _getArticleContentParameterTypes12);
555
556 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
557 articleId, version, languageId, themeDisplay);
558
559 Object returnObj = null;
560
561 try {
562 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
563 }
564 catch (Exception e) {
565 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
566 throw (com.liferay.portal.kernel.exception.PortalException)e;
567 }
568
569 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
570 throw (com.liferay.portal.kernel.exception.SystemException)e;
571 }
572
573 throw new com.liferay.portal.kernel.exception.SystemException(e);
574 }
575
576 return (java.lang.String)returnObj;
577 }
578 catch (com.liferay.portal.kernel.exception.SystemException se) {
579 _log.error(se, se);
580
581 throw se;
582 }
583 }
584
585 public static java.lang.String getArticleContent(
586 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
587 java.lang.String languageId,
588 com.liferay.portal.theme.ThemeDisplay themeDisplay)
589 throws com.liferay.portal.kernel.exception.PortalException,
590 com.liferay.portal.kernel.exception.SystemException {
591 try {
592 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
593 "getArticleContent", _getArticleContentParameterTypes13);
594
595 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
596 articleId, languageId, themeDisplay);
597
598 Object returnObj = null;
599
600 try {
601 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
602 }
603 catch (Exception e) {
604 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
605 throw (com.liferay.portal.kernel.exception.PortalException)e;
606 }
607
608 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
609 throw (com.liferay.portal.kernel.exception.SystemException)e;
610 }
611
612 throw new com.liferay.portal.kernel.exception.SystemException(e);
613 }
614
615 return (java.lang.String)returnObj;
616 }
617 catch (com.liferay.portal.kernel.exception.SystemException se) {
618 _log.error(se, se);
619
620 throw se;
621 }
622 }
623
624 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticles(
625 HttpPrincipal httpPrincipal, long groupId, long folderId)
626 throws com.liferay.portal.kernel.exception.SystemException {
627 try {
628 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
629 "getArticles", _getArticlesParameterTypes14);
630
631 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
632 folderId);
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> getArticles(
657 HttpPrincipal httpPrincipal, long groupId, long folderId, int start,
658 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
659 throws com.liferay.portal.kernel.exception.SystemException {
660 try {
661 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
662 "getArticles", _getArticlesParameterTypes15);
663
664 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
665 folderId, start, end, obc);
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 java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByArticleId(
690 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
691 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
692 throws com.liferay.portal.kernel.exception.SystemException {
693 try {
694 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
695 "getArticlesByArticleId",
696 _getArticlesByArticleIdParameterTypes16);
697
698 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
699 articleId, start, end, obc);
700
701 Object returnObj = null;
702
703 try {
704 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
705 }
706 catch (Exception e) {
707 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
708 throw (com.liferay.portal.kernel.exception.SystemException)e;
709 }
710
711 throw new com.liferay.portal.kernel.exception.SystemException(e);
712 }
713
714 return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
715 }
716 catch (com.liferay.portal.kernel.exception.SystemException se) {
717 _log.error(se, se);
718
719 throw se;
720 }
721 }
722
723 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByLayoutUuid(
724 HttpPrincipal httpPrincipal, long groupId, java.lang.String layoutUuid)
725 throws com.liferay.portal.kernel.exception.SystemException {
726 try {
727 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
728 "getArticlesByLayoutUuid",
729 _getArticlesByLayoutUuidParameterTypes17);
730
731 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
732 layoutUuid);
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.SystemException) {
741 throw (com.liferay.portal.kernel.exception.SystemException)e;
742 }
743
744 throw new com.liferay.portal.kernel.exception.SystemException(e);
745 }
746
747 return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
748 }
749 catch (com.liferay.portal.kernel.exception.SystemException se) {
750 _log.error(se, se);
751
752 throw se;
753 }
754 }
755
756 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByStructureId(
757 HttpPrincipal httpPrincipal, long groupId, long classNameId,
758 java.lang.String structureId, int status, int start, int end,
759 com.liferay.portal.kernel.util.OrderByComparator obc)
760 throws com.liferay.portal.kernel.exception.SystemException {
761 try {
762 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
763 "getArticlesByStructureId",
764 _getArticlesByStructureIdParameterTypes18);
765
766 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
767 classNameId, structureId, status, start, end, obc);
768
769 Object returnObj = null;
770
771 try {
772 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
773 }
774 catch (Exception e) {
775 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
776 throw (com.liferay.portal.kernel.exception.SystemException)e;
777 }
778
779 throw new com.liferay.portal.kernel.exception.SystemException(e);
780 }
781
782 return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
783 }
784 catch (com.liferay.portal.kernel.exception.SystemException se) {
785 _log.error(se, se);
786
787 throw se;
788 }
789 }
790
791 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByStructureId(
792 HttpPrincipal httpPrincipal, long groupId,
793 java.lang.String structureId, int start, int end,
794 com.liferay.portal.kernel.util.OrderByComparator obc)
795 throws com.liferay.portal.kernel.exception.SystemException {
796 try {
797 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
798 "getArticlesByStructureId",
799 _getArticlesByStructureIdParameterTypes19);
800
801 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
802 structureId, start, end, obc);
803
804 Object returnObj = null;
805
806 try {
807 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
808 }
809 catch (Exception e) {
810 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
811 throw (com.liferay.portal.kernel.exception.SystemException)e;
812 }
813
814 throw new com.liferay.portal.kernel.exception.SystemException(e);
815 }
816
817 return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
818 }
819 catch (com.liferay.portal.kernel.exception.SystemException se) {
820 _log.error(se, se);
821
822 throw se;
823 }
824 }
825
826 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> getArticlesByUserId(
827 HttpPrincipal httpPrincipal, long groupId, long userId,
828 long classNameId, int start, int end,
829 com.liferay.portal.kernel.util.OrderByComparator obc)
830 throws com.liferay.portal.kernel.exception.SystemException {
831 try {
832 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
833 "getArticlesByUserId", _getArticlesByUserIdParameterTypes20);
834
835 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
836 userId, classNameId, start, end, obc);
837
838 Object returnObj = null;
839
840 try {
841 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
842 }
843 catch (Exception e) {
844 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
845 throw (com.liferay.portal.kernel.exception.SystemException)e;
846 }
847
848 throw new com.liferay.portal.kernel.exception.SystemException(e);
849 }
850
851 return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
852 }
853 catch (com.liferay.portal.kernel.exception.SystemException se) {
854 _log.error(se, se);
855
856 throw se;
857 }
858 }
859
860 public static int getArticlesCount(HttpPrincipal httpPrincipal,
861 long groupId, long folderId)
862 throws com.liferay.portal.kernel.exception.SystemException {
863 try {
864 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
865 "getArticlesCount", _getArticlesCountParameterTypes21);
866
867 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
868 folderId);
869
870 Object returnObj = null;
871
872 try {
873 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
874 }
875 catch (Exception e) {
876 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
877 throw (com.liferay.portal.kernel.exception.SystemException)e;
878 }
879
880 throw new com.liferay.portal.kernel.exception.SystemException(e);
881 }
882
883 return ((Integer)returnObj).intValue();
884 }
885 catch (com.liferay.portal.kernel.exception.SystemException se) {
886 _log.error(se, se);
887
888 throw se;
889 }
890 }
891
892 public static int getArticlesCountByArticleId(HttpPrincipal httpPrincipal,
893 long groupId, java.lang.String articleId)
894 throws com.liferay.portal.kernel.exception.SystemException {
895 try {
896 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
897 "getArticlesCountByArticleId",
898 _getArticlesCountByArticleIdParameterTypes22);
899
900 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
901 articleId);
902
903 Object returnObj = null;
904
905 try {
906 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
907 }
908 catch (Exception e) {
909 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
910 throw (com.liferay.portal.kernel.exception.SystemException)e;
911 }
912
913 throw new com.liferay.portal.kernel.exception.SystemException(e);
914 }
915
916 return ((Integer)returnObj).intValue();
917 }
918 catch (com.liferay.portal.kernel.exception.SystemException se) {
919 _log.error(se, se);
920
921 throw se;
922 }
923 }
924
925 public static int getArticlesCountByStructureId(
926 HttpPrincipal httpPrincipal, long groupId, long classNameId,
927 java.lang.String structureId, int status)
928 throws com.liferay.portal.kernel.exception.SystemException {
929 try {
930 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
931 "getArticlesCountByStructureId",
932 _getArticlesCountByStructureIdParameterTypes23);
933
934 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
935 classNameId, structureId, status);
936
937 Object returnObj = null;
938
939 try {
940 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
941 }
942 catch (Exception e) {
943 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
944 throw (com.liferay.portal.kernel.exception.SystemException)e;
945 }
946
947 throw new com.liferay.portal.kernel.exception.SystemException(e);
948 }
949
950 return ((Integer)returnObj).intValue();
951 }
952 catch (com.liferay.portal.kernel.exception.SystemException se) {
953 _log.error(se, se);
954
955 throw se;
956 }
957 }
958
959 public static int getArticlesCountByStructureId(
960 HttpPrincipal httpPrincipal, long groupId, java.lang.String structureId)
961 throws com.liferay.portal.kernel.exception.SystemException {
962 try {
963 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
964 "getArticlesCountByStructureId",
965 _getArticlesCountByStructureIdParameterTypes24);
966
967 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
968 structureId);
969
970 Object returnObj = null;
971
972 try {
973 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
974 }
975 catch (Exception e) {
976 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
977 throw (com.liferay.portal.kernel.exception.SystemException)e;
978 }
979
980 throw new com.liferay.portal.kernel.exception.SystemException(e);
981 }
982
983 return ((Integer)returnObj).intValue();
984 }
985 catch (com.liferay.portal.kernel.exception.SystemException se) {
986 _log.error(se, se);
987
988 throw se;
989 }
990 }
991
992 public static int getArticlesCountByUserId(HttpPrincipal httpPrincipal,
993 long groupId, long userId, long classNameId)
994 throws com.liferay.portal.kernel.exception.SystemException {
995 try {
996 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
997 "getArticlesCountByUserId",
998 _getArticlesCountByUserIdParameterTypes25);
999
1000 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1001 userId, classNameId);
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 ((Integer)returnObj).intValue();
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 com.liferay.portlet.journal.model.JournalArticle getDisplayArticleByUrlTitle(
1026 HttpPrincipal httpPrincipal, long groupId, java.lang.String urlTitle)
1027 throws com.liferay.portal.kernel.exception.PortalException,
1028 com.liferay.portal.kernel.exception.SystemException {
1029 try {
1030 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1031 "getDisplayArticleByUrlTitle",
1032 _getDisplayArticleByUrlTitleParameterTypes26);
1033
1034 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1035 urlTitle);
1036
1037 Object returnObj = null;
1038
1039 try {
1040 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1041 }
1042 catch (Exception e) {
1043 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1044 throw (com.liferay.portal.kernel.exception.PortalException)e;
1045 }
1046
1047 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1048 throw (com.liferay.portal.kernel.exception.SystemException)e;
1049 }
1050
1051 throw new com.liferay.portal.kernel.exception.SystemException(e);
1052 }
1053
1054 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1055 }
1056 catch (com.liferay.portal.kernel.exception.SystemException se) {
1057 _log.error(se, se);
1058
1059 throw se;
1060 }
1061 }
1062
1063 public static int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal,
1064 long groupId, java.util.List<java.lang.Long> folderIds)
1065 throws com.liferay.portal.kernel.exception.SystemException {
1066 try {
1067 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1068 "getFoldersAndArticlesCount",
1069 _getFoldersAndArticlesCountParameterTypes27);
1070
1071 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1072 folderIds);
1073
1074 Object returnObj = null;
1075
1076 try {
1077 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1078 }
1079 catch (Exception e) {
1080 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1081 throw (com.liferay.portal.kernel.exception.SystemException)e;
1082 }
1083
1084 throw new com.liferay.portal.kernel.exception.SystemException(e);
1085 }
1086
1087 return ((Integer)returnObj).intValue();
1088 }
1089 catch (com.liferay.portal.kernel.exception.SystemException se) {
1090 _log.error(se, se);
1091
1092 throw se;
1093 }
1094 }
1095
1096 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
1097 HttpPrincipal httpPrincipal, long resourcePrimKey)
1098 throws com.liferay.portal.kernel.exception.PortalException,
1099 com.liferay.portal.kernel.exception.SystemException {
1100 try {
1101 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1102 "getLatestArticle", _getLatestArticleParameterTypes28);
1103
1104 MethodHandler methodHandler = new MethodHandler(methodKey,
1105 resourcePrimKey);
1106
1107 Object returnObj = null;
1108
1109 try {
1110 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1111 }
1112 catch (Exception e) {
1113 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1114 throw (com.liferay.portal.kernel.exception.PortalException)e;
1115 }
1116
1117 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1118 throw (com.liferay.portal.kernel.exception.SystemException)e;
1119 }
1120
1121 throw new com.liferay.portal.kernel.exception.SystemException(e);
1122 }
1123
1124 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1125 }
1126 catch (com.liferay.portal.kernel.exception.SystemException se) {
1127 _log.error(se, se);
1128
1129 throw se;
1130 }
1131 }
1132
1133 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
1134 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
1135 int status)
1136 throws com.liferay.portal.kernel.exception.PortalException,
1137 com.liferay.portal.kernel.exception.SystemException {
1138 try {
1139 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1140 "getLatestArticle", _getLatestArticleParameterTypes29);
1141
1142 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1143 articleId, status);
1144
1145 Object returnObj = null;
1146
1147 try {
1148 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1149 }
1150 catch (Exception e) {
1151 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1152 throw (com.liferay.portal.kernel.exception.PortalException)e;
1153 }
1154
1155 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1156 throw (com.liferay.portal.kernel.exception.SystemException)e;
1157 }
1158
1159 throw new com.liferay.portal.kernel.exception.SystemException(e);
1160 }
1161
1162 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1163 }
1164 catch (com.liferay.portal.kernel.exception.SystemException se) {
1165 _log.error(se, se);
1166
1167 throw se;
1168 }
1169 }
1170
1171 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
1172 HttpPrincipal httpPrincipal, long groupId, java.lang.String className,
1173 long classPK)
1174 throws com.liferay.portal.kernel.exception.PortalException,
1175 com.liferay.portal.kernel.exception.SystemException {
1176 try {
1177 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1178 "getLatestArticle", _getLatestArticleParameterTypes30);
1179
1180 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1181 className, classPK);
1182
1183 Object returnObj = null;
1184
1185 try {
1186 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1187 }
1188 catch (Exception e) {
1189 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1190 throw (com.liferay.portal.kernel.exception.PortalException)e;
1191 }
1192
1193 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1194 throw (com.liferay.portal.kernel.exception.SystemException)e;
1195 }
1196
1197 throw new com.liferay.portal.kernel.exception.SystemException(e);
1198 }
1199
1200 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1201 }
1202 catch (com.liferay.portal.kernel.exception.SystemException se) {
1203 _log.error(se, se);
1204
1205 throw se;
1206 }
1207 }
1208
1209 public static void moveArticle(HttpPrincipal httpPrincipal, long groupId,
1210 java.lang.String articleId, long newFolderId)
1211 throws com.liferay.portal.kernel.exception.PortalException,
1212 com.liferay.portal.kernel.exception.SystemException {
1213 try {
1214 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1215 "moveArticle", _moveArticleParameterTypes31);
1216
1217 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1218 articleId, newFolderId);
1219
1220 try {
1221 TunnelUtil.invoke(httpPrincipal, methodHandler);
1222 }
1223 catch (Exception e) {
1224 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1225 throw (com.liferay.portal.kernel.exception.PortalException)e;
1226 }
1227
1228 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1229 throw (com.liferay.portal.kernel.exception.SystemException)e;
1230 }
1231
1232 throw new com.liferay.portal.kernel.exception.SystemException(e);
1233 }
1234 }
1235 catch (com.liferay.portal.kernel.exception.SystemException se) {
1236 _log.error(se, se);
1237
1238 throw se;
1239 }
1240 }
1241
1242 public static com.liferay.portlet.journal.model.JournalArticle moveArticleToTrash(
1243 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId)
1244 throws com.liferay.portal.kernel.exception.PortalException,
1245 com.liferay.portal.kernel.exception.SystemException {
1246 try {
1247 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1248 "moveArticleToTrash", _moveArticleToTrashParameterTypes32);
1249
1250 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1251 articleId);
1252
1253 Object returnObj = null;
1254
1255 try {
1256 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1257 }
1258 catch (Exception e) {
1259 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1260 throw (com.liferay.portal.kernel.exception.PortalException)e;
1261 }
1262
1263 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1264 throw (com.liferay.portal.kernel.exception.SystemException)e;
1265 }
1266
1267 throw new com.liferay.portal.kernel.exception.SystemException(e);
1268 }
1269
1270 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1271 }
1272 catch (com.liferay.portal.kernel.exception.SystemException se) {
1273 _log.error(se, se);
1274
1275 throw se;
1276 }
1277 }
1278
1279 public static void removeArticleLocale(HttpPrincipal httpPrincipal,
1280 long companyId, java.lang.String languageId)
1281 throws com.liferay.portal.kernel.exception.PortalException,
1282 com.liferay.portal.kernel.exception.SystemException {
1283 try {
1284 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1285 "removeArticleLocale", _removeArticleLocaleParameterTypes33);
1286
1287 MethodHandler methodHandler = new MethodHandler(methodKey,
1288 companyId, languageId);
1289
1290 try {
1291 TunnelUtil.invoke(httpPrincipal, methodHandler);
1292 }
1293 catch (Exception e) {
1294 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1295 throw (com.liferay.portal.kernel.exception.PortalException)e;
1296 }
1297
1298 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1299 throw (com.liferay.portal.kernel.exception.SystemException)e;
1300 }
1301
1302 throw new com.liferay.portal.kernel.exception.SystemException(e);
1303 }
1304 }
1305 catch (com.liferay.portal.kernel.exception.SystemException se) {
1306 _log.error(se, se);
1307
1308 throw se;
1309 }
1310 }
1311
1312 public static com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
1313 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
1314 double version, java.lang.String languageId)
1315 throws com.liferay.portal.kernel.exception.PortalException,
1316 com.liferay.portal.kernel.exception.SystemException {
1317 try {
1318 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1319 "removeArticleLocale", _removeArticleLocaleParameterTypes34);
1320
1321 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1322 articleId, version, languageId);
1323
1324 Object returnObj = null;
1325
1326 try {
1327 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1328 }
1329 catch (Exception e) {
1330 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1331 throw (com.liferay.portal.kernel.exception.PortalException)e;
1332 }
1333
1334 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1335 throw (com.liferay.portal.kernel.exception.SystemException)e;
1336 }
1337
1338 throw new com.liferay.portal.kernel.exception.SystemException(e);
1339 }
1340
1341 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1342 }
1343 catch (com.liferay.portal.kernel.exception.SystemException se) {
1344 _log.error(se, se);
1345
1346 throw se;
1347 }
1348 }
1349
1350 public static void restoreArticleFromTrash(HttpPrincipal httpPrincipal,
1351 long resourcePrimKey)
1352 throws com.liferay.portal.kernel.exception.PortalException,
1353 com.liferay.portal.kernel.exception.SystemException {
1354 try {
1355 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1356 "restoreArticleFromTrash",
1357 _restoreArticleFromTrashParameterTypes35);
1358
1359 MethodHandler methodHandler = new MethodHandler(methodKey,
1360 resourcePrimKey);
1361
1362 try {
1363 TunnelUtil.invoke(httpPrincipal, methodHandler);
1364 }
1365 catch (Exception e) {
1366 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1367 throw (com.liferay.portal.kernel.exception.PortalException)e;
1368 }
1369
1370 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1371 throw (com.liferay.portal.kernel.exception.SystemException)e;
1372 }
1373
1374 throw new com.liferay.portal.kernel.exception.SystemException(e);
1375 }
1376 }
1377 catch (com.liferay.portal.kernel.exception.SystemException se) {
1378 _log.error(se, se);
1379
1380 throw se;
1381 }
1382 }
1383
1384 public static void restoreArticleFromTrash(HttpPrincipal httpPrincipal,
1385 long groupId, java.lang.String articleId)
1386 throws com.liferay.portal.kernel.exception.PortalException,
1387 com.liferay.portal.kernel.exception.SystemException {
1388 try {
1389 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1390 "restoreArticleFromTrash",
1391 _restoreArticleFromTrashParameterTypes36);
1392
1393 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1394 articleId);
1395
1396 try {
1397 TunnelUtil.invoke(httpPrincipal, methodHandler);
1398 }
1399 catch (Exception e) {
1400 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1401 throw (com.liferay.portal.kernel.exception.PortalException)e;
1402 }
1403
1404 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1405 throw (com.liferay.portal.kernel.exception.SystemException)e;
1406 }
1407
1408 throw new com.liferay.portal.kernel.exception.SystemException(e);
1409 }
1410 }
1411 catch (com.liferay.portal.kernel.exception.SystemException se) {
1412 _log.error(se, se);
1413
1414 throw se;
1415 }
1416 }
1417
1418 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
1419 HttpPrincipal httpPrincipal, long companyId, long groupId,
1420 java.util.List<java.lang.Long> folderIds, long classNameId,
1421 java.lang.String keywords, java.lang.Double version,
1422 java.lang.String type, java.lang.String structureId,
1423 java.lang.String templateId, java.util.Date displayDateGT,
1424 java.util.Date displayDateLT, int status, java.util.Date reviewDate,
1425 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
1426 throws com.liferay.portal.kernel.exception.SystemException {
1427 try {
1428 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1429 "search", _searchParameterTypes37);
1430
1431 MethodHandler methodHandler = new MethodHandler(methodKey,
1432 companyId, groupId, folderIds, classNameId, keywords,
1433 version, type, structureId, templateId, displayDateGT,
1434 displayDateLT, status, reviewDate, start, end, obc);
1435
1436 Object returnObj = null;
1437
1438 try {
1439 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1440 }
1441 catch (Exception e) {
1442 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1443 throw (com.liferay.portal.kernel.exception.SystemException)e;
1444 }
1445
1446 throw new com.liferay.portal.kernel.exception.SystemException(e);
1447 }
1448
1449 return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
1450 }
1451 catch (com.liferay.portal.kernel.exception.SystemException se) {
1452 _log.error(se, se);
1453
1454 throw se;
1455 }
1456 }
1457
1458 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
1459 HttpPrincipal httpPrincipal, long companyId, long groupId,
1460 java.util.List<java.lang.Long> folderIds, long classNameId,
1461 java.lang.String articleId, java.lang.Double version,
1462 java.lang.String title, java.lang.String description,
1463 java.lang.String content, java.lang.String type,
1464 java.lang.String structureId, java.lang.String templateId,
1465 java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
1466 java.util.Date reviewDate, boolean andOperator, int start, int end,
1467 com.liferay.portal.kernel.util.OrderByComparator obc)
1468 throws com.liferay.portal.kernel.exception.SystemException {
1469 try {
1470 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1471 "search", _searchParameterTypes38);
1472
1473 MethodHandler methodHandler = new MethodHandler(methodKey,
1474 companyId, groupId, folderIds, classNameId, articleId,
1475 version, title, description, content, type, structureId,
1476 templateId, displayDateGT, displayDateLT, status,
1477 reviewDate, andOperator, start, end, obc);
1478
1479 Object returnObj = null;
1480
1481 try {
1482 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1483 }
1484 catch (Exception e) {
1485 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1486 throw (com.liferay.portal.kernel.exception.SystemException)e;
1487 }
1488
1489 throw new com.liferay.portal.kernel.exception.SystemException(e);
1490 }
1491
1492 return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
1493 }
1494 catch (com.liferay.portal.kernel.exception.SystemException se) {
1495 _log.error(se, se);
1496
1497 throw se;
1498 }
1499 }
1500
1501 public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> search(
1502 HttpPrincipal httpPrincipal, long companyId, long groupId,
1503 java.util.List<java.lang.Long> folderIds, long classNameId,
1504 java.lang.String articleId, java.lang.Double version,
1505 java.lang.String title, java.lang.String description,
1506 java.lang.String content, java.lang.String type,
1507 java.lang.String[] structureIds, java.lang.String[] templateIds,
1508 java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
1509 java.util.Date reviewDate, boolean andOperator, int start, int end,
1510 com.liferay.portal.kernel.util.OrderByComparator obc)
1511 throws com.liferay.portal.kernel.exception.SystemException {
1512 try {
1513 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1514 "search", _searchParameterTypes39);
1515
1516 MethodHandler methodHandler = new MethodHandler(methodKey,
1517 companyId, groupId, folderIds, classNameId, articleId,
1518 version, title, description, content, type, structureIds,
1519 templateIds, displayDateGT, displayDateLT, status,
1520 reviewDate, andOperator, start, end, obc);
1521
1522 Object returnObj = null;
1523
1524 try {
1525 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1526 }
1527 catch (Exception e) {
1528 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1529 throw (com.liferay.portal.kernel.exception.SystemException)e;
1530 }
1531
1532 throw new com.liferay.portal.kernel.exception.SystemException(e);
1533 }
1534
1535 return (java.util.List<com.liferay.portlet.journal.model.JournalArticle>)returnObj;
1536 }
1537 catch (com.liferay.portal.kernel.exception.SystemException se) {
1538 _log.error(se, se);
1539
1540 throw se;
1541 }
1542 }
1543
1544 public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
1545 long groupId, java.util.List<java.lang.Long> folderIds,
1546 long classNameId, java.lang.String keywords, java.lang.Double version,
1547 java.lang.String type, java.lang.String structureId,
1548 java.lang.String templateId, java.util.Date displayDateGT,
1549 java.util.Date displayDateLT, int status, java.util.Date reviewDate)
1550 throws com.liferay.portal.kernel.exception.SystemException {
1551 try {
1552 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1553 "searchCount", _searchCountParameterTypes40);
1554
1555 MethodHandler methodHandler = new MethodHandler(methodKey,
1556 companyId, groupId, folderIds, classNameId, keywords,
1557 version, type, structureId, templateId, displayDateGT,
1558 displayDateLT, status, reviewDate);
1559
1560 Object returnObj = null;
1561
1562 try {
1563 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1564 }
1565 catch (Exception e) {
1566 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1567 throw (com.liferay.portal.kernel.exception.SystemException)e;
1568 }
1569
1570 throw new com.liferay.portal.kernel.exception.SystemException(e);
1571 }
1572
1573 return ((Integer)returnObj).intValue();
1574 }
1575 catch (com.liferay.portal.kernel.exception.SystemException se) {
1576 _log.error(se, se);
1577
1578 throw se;
1579 }
1580 }
1581
1582 public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
1583 long groupId, java.util.List<java.lang.Long> folderIds,
1584 long classNameId, java.lang.String articleId, java.lang.Double version,
1585 java.lang.String title, java.lang.String description,
1586 java.lang.String content, java.lang.String type,
1587 java.lang.String structureId, java.lang.String templateId,
1588 java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
1589 java.util.Date reviewDate, boolean andOperator)
1590 throws com.liferay.portal.kernel.exception.SystemException {
1591 try {
1592 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1593 "searchCount", _searchCountParameterTypes41);
1594
1595 MethodHandler methodHandler = new MethodHandler(methodKey,
1596 companyId, groupId, folderIds, classNameId, articleId,
1597 version, title, description, content, type, structureId,
1598 templateId, displayDateGT, displayDateLT, status,
1599 reviewDate, andOperator);
1600
1601 Object returnObj = null;
1602
1603 try {
1604 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1605 }
1606 catch (Exception e) {
1607 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1608 throw (com.liferay.portal.kernel.exception.SystemException)e;
1609 }
1610
1611 throw new com.liferay.portal.kernel.exception.SystemException(e);
1612 }
1613
1614 return ((Integer)returnObj).intValue();
1615 }
1616 catch (com.liferay.portal.kernel.exception.SystemException se) {
1617 _log.error(se, se);
1618
1619 throw se;
1620 }
1621 }
1622
1623 public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
1624 long groupId, java.util.List<java.lang.Long> folderIds,
1625 long classNameId, java.lang.String articleId, java.lang.Double version,
1626 java.lang.String title, java.lang.String description,
1627 java.lang.String content, java.lang.String type,
1628 java.lang.String[] structureIds, java.lang.String[] templateIds,
1629 java.util.Date displayDateGT, java.util.Date displayDateLT, int status,
1630 java.util.Date reviewDate, boolean andOperator)
1631 throws com.liferay.portal.kernel.exception.SystemException {
1632 try {
1633 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1634 "searchCount", _searchCountParameterTypes42);
1635
1636 MethodHandler methodHandler = new MethodHandler(methodKey,
1637 companyId, groupId, folderIds, classNameId, articleId,
1638 version, title, description, content, type, structureIds,
1639 templateIds, displayDateGT, displayDateLT, status,
1640 reviewDate, andOperator);
1641
1642 Object returnObj = null;
1643
1644 try {
1645 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1646 }
1647 catch (Exception e) {
1648 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1649 throw (com.liferay.portal.kernel.exception.SystemException)e;
1650 }
1651
1652 throw new com.liferay.portal.kernel.exception.SystemException(e);
1653 }
1654
1655 return ((Integer)returnObj).intValue();
1656 }
1657 catch (com.liferay.portal.kernel.exception.SystemException se) {
1658 _log.error(se, se);
1659
1660 throw se;
1661 }
1662 }
1663
1664 public static void subscribe(HttpPrincipal httpPrincipal, long groupId)
1665 throws com.liferay.portal.kernel.exception.PortalException,
1666 com.liferay.portal.kernel.exception.SystemException {
1667 try {
1668 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1669 "subscribe", _subscribeParameterTypes43);
1670
1671 MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
1672
1673 try {
1674 TunnelUtil.invoke(httpPrincipal, methodHandler);
1675 }
1676 catch (Exception e) {
1677 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1678 throw (com.liferay.portal.kernel.exception.PortalException)e;
1679 }
1680
1681 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1682 throw (com.liferay.portal.kernel.exception.SystemException)e;
1683 }
1684
1685 throw new com.liferay.portal.kernel.exception.SystemException(e);
1686 }
1687 }
1688 catch (com.liferay.portal.kernel.exception.SystemException se) {
1689 _log.error(se, se);
1690
1691 throw se;
1692 }
1693 }
1694
1695 public static void unsubscribe(HttpPrincipal httpPrincipal, long groupId)
1696 throws com.liferay.portal.kernel.exception.PortalException,
1697 com.liferay.portal.kernel.exception.SystemException {
1698 try {
1699 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1700 "unsubscribe", _unsubscribeParameterTypes44);
1701
1702 MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
1703
1704 try {
1705 TunnelUtil.invoke(httpPrincipal, methodHandler);
1706 }
1707 catch (Exception e) {
1708 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1709 throw (com.liferay.portal.kernel.exception.PortalException)e;
1710 }
1711
1712 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1713 throw (com.liferay.portal.kernel.exception.SystemException)e;
1714 }
1715
1716 throw new com.liferay.portal.kernel.exception.SystemException(e);
1717 }
1718 }
1719 catch (com.liferay.portal.kernel.exception.SystemException se) {
1720 _log.error(se, se);
1721
1722 throw se;
1723 }
1724 }
1725
1726 public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
1727 HttpPrincipal httpPrincipal, long userId, long groupId, long folderId,
1728 java.lang.String articleId, double version,
1729 java.util.Map<java.util.Locale, java.lang.String> titleMap,
1730 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1731 java.lang.String content, java.lang.String layoutUuid,
1732 com.liferay.portal.service.ServiceContext serviceContext)
1733 throws com.liferay.portal.kernel.exception.PortalException,
1734 com.liferay.portal.kernel.exception.SystemException {
1735 try {
1736 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1737 "updateArticle", _updateArticleParameterTypes45);
1738
1739 MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1740 groupId, folderId, articleId, version, titleMap,
1741 descriptionMap, content, layoutUuid, serviceContext);
1742
1743 Object returnObj = null;
1744
1745 try {
1746 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1747 }
1748 catch (Exception e) {
1749 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1750 throw (com.liferay.portal.kernel.exception.PortalException)e;
1751 }
1752
1753 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1754 throw (com.liferay.portal.kernel.exception.SystemException)e;
1755 }
1756
1757 throw new com.liferay.portal.kernel.exception.SystemException(e);
1758 }
1759
1760 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1761 }
1762 catch (com.liferay.portal.kernel.exception.SystemException se) {
1763 _log.error(se, se);
1764
1765 throw se;
1766 }
1767 }
1768
1769 public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
1770 HttpPrincipal httpPrincipal, long groupId, long folderId,
1771 java.lang.String articleId, double version,
1772 java.util.Map<java.util.Locale, java.lang.String> titleMap,
1773 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1774 java.lang.String content, java.lang.String type,
1775 java.lang.String structureId, java.lang.String templateId,
1776 java.lang.String layoutUuid, int displayDateMonth, int displayDateDay,
1777 int displayDateYear, int displayDateHour, int displayDateMinute,
1778 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
1779 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
1780 int reviewDateMonth, int reviewDateDay, int reviewDateYear,
1781 int reviewDateHour, int reviewDateMinute, boolean neverReview,
1782 boolean indexable, boolean smallImage, java.lang.String smallImageURL,
1783 java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
1784 java.lang.String articleURL,
1785 com.liferay.portal.service.ServiceContext serviceContext)
1786 throws com.liferay.portal.kernel.exception.PortalException,
1787 com.liferay.portal.kernel.exception.SystemException {
1788 try {
1789 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1790 "updateArticle", _updateArticleParameterTypes46);
1791
1792 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1793 folderId, articleId, version, titleMap, descriptionMap,
1794 content, type, structureId, templateId, layoutUuid,
1795 displayDateMonth, displayDateDay, displayDateYear,
1796 displayDateHour, displayDateMinute, expirationDateMonth,
1797 expirationDateDay, expirationDateYear, expirationDateHour,
1798 expirationDateMinute, neverExpire, reviewDateMonth,
1799 reviewDateDay, reviewDateYear, reviewDateHour,
1800 reviewDateMinute, neverReview, indexable, smallImage,
1801 smallImageURL, smallFile, images, articleURL, serviceContext);
1802
1803 Object returnObj = null;
1804
1805 try {
1806 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1807 }
1808 catch (Exception e) {
1809 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1810 throw (com.liferay.portal.kernel.exception.PortalException)e;
1811 }
1812
1813 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1814 throw (com.liferay.portal.kernel.exception.SystemException)e;
1815 }
1816
1817 throw new com.liferay.portal.kernel.exception.SystemException(e);
1818 }
1819
1820 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1821 }
1822 catch (com.liferay.portal.kernel.exception.SystemException se) {
1823 _log.error(se, se);
1824
1825 throw se;
1826 }
1827 }
1828
1829 public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
1830 HttpPrincipal httpPrincipal, long groupId, long folderId,
1831 java.lang.String articleId, double version, java.lang.String content,
1832 com.liferay.portal.service.ServiceContext serviceContext)
1833 throws com.liferay.portal.kernel.exception.PortalException,
1834 com.liferay.portal.kernel.exception.SystemException {
1835 try {
1836 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1837 "updateArticle", _updateArticleParameterTypes47);
1838
1839 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1840 folderId, articleId, version, content, serviceContext);
1841
1842 Object returnObj = null;
1843
1844 try {
1845 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1846 }
1847 catch (Exception e) {
1848 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1849 throw (com.liferay.portal.kernel.exception.PortalException)e;
1850 }
1851
1852 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1853 throw (com.liferay.portal.kernel.exception.SystemException)e;
1854 }
1855
1856 throw new com.liferay.portal.kernel.exception.SystemException(e);
1857 }
1858
1859 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1860 }
1861 catch (com.liferay.portal.kernel.exception.SystemException se) {
1862 _log.error(se, se);
1863
1864 throw se;
1865 }
1866 }
1867
1868 public static com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
1869 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
1870 double version, java.util.Locale locale, java.lang.String title,
1871 java.lang.String description, java.lang.String content,
1872 java.util.Map<java.lang.String, byte[]> images)
1873 throws com.liferay.portal.kernel.exception.PortalException,
1874 com.liferay.portal.kernel.exception.SystemException {
1875 try {
1876 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1877 "updateArticleTranslation",
1878 _updateArticleTranslationParameterTypes48);
1879
1880 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1881 articleId, version, locale, title, description, content,
1882 images);
1883
1884 Object returnObj = null;
1885
1886 try {
1887 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1888 }
1889 catch (Exception e) {
1890 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1891 throw (com.liferay.portal.kernel.exception.PortalException)e;
1892 }
1893
1894 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1895 throw (com.liferay.portal.kernel.exception.SystemException)e;
1896 }
1897
1898 throw new com.liferay.portal.kernel.exception.SystemException(e);
1899 }
1900
1901 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1902 }
1903 catch (com.liferay.portal.kernel.exception.SystemException se) {
1904 _log.error(se, se);
1905
1906 throw se;
1907 }
1908 }
1909
1910 public static com.liferay.portlet.journal.model.JournalArticle updateArticleTranslation(
1911 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
1912 double version, java.util.Locale locale, java.lang.String title,
1913 java.lang.String description, java.lang.String content,
1914 java.util.Map<java.lang.String, byte[]> images,
1915 com.liferay.portal.service.ServiceContext serviceContext)
1916 throws com.liferay.portal.kernel.exception.PortalException,
1917 com.liferay.portal.kernel.exception.SystemException {
1918 try {
1919 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1920 "updateArticleTranslation",
1921 _updateArticleTranslationParameterTypes49);
1922
1923 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1924 articleId, version, locale, title, description, content,
1925 images, serviceContext);
1926
1927 Object returnObj = null;
1928
1929 try {
1930 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1931 }
1932 catch (Exception e) {
1933 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1934 throw (com.liferay.portal.kernel.exception.PortalException)e;
1935 }
1936
1937 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1938 throw (com.liferay.portal.kernel.exception.SystemException)e;
1939 }
1940
1941 throw new com.liferay.portal.kernel.exception.SystemException(e);
1942 }
1943
1944 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1945 }
1946 catch (com.liferay.portal.kernel.exception.SystemException se) {
1947 _log.error(se, se);
1948
1949 throw se;
1950 }
1951 }
1952
1953 public static com.liferay.portlet.journal.model.JournalArticle updateContent(
1954 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
1955 double version, java.lang.String content)
1956 throws com.liferay.portal.kernel.exception.PortalException,
1957 com.liferay.portal.kernel.exception.SystemException {
1958 try {
1959 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1960 "updateContent", _updateContentParameterTypes50);
1961
1962 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
1963 articleId, version, content);
1964
1965 Object returnObj = null;
1966
1967 try {
1968 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1969 }
1970 catch (Exception e) {
1971 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1972 throw (com.liferay.portal.kernel.exception.PortalException)e;
1973 }
1974
1975 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1976 throw (com.liferay.portal.kernel.exception.SystemException)e;
1977 }
1978
1979 throw new com.liferay.portal.kernel.exception.SystemException(e);
1980 }
1981
1982 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
1983 }
1984 catch (com.liferay.portal.kernel.exception.SystemException se) {
1985 _log.error(se, se);
1986
1987 throw se;
1988 }
1989 }
1990
1991 public static com.liferay.portlet.journal.model.JournalArticle updateStatus(
1992 HttpPrincipal httpPrincipal, long groupId, java.lang.String articleId,
1993 double version, int status, java.lang.String articleURL,
1994 com.liferay.portal.service.ServiceContext serviceContext)
1995 throws com.liferay.portal.kernel.exception.PortalException,
1996 com.liferay.portal.kernel.exception.SystemException {
1997 try {
1998 MethodKey methodKey = new MethodKey(JournalArticleServiceUtil.class,
1999 "updateStatus", _updateStatusParameterTypes51);
2000
2001 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
2002 articleId, version, status, articleURL, serviceContext);
2003
2004 Object returnObj = null;
2005
2006 try {
2007 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
2008 }
2009 catch (Exception e) {
2010 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
2011 throw (com.liferay.portal.kernel.exception.PortalException)e;
2012 }
2013
2014 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
2015 throw (com.liferay.portal.kernel.exception.SystemException)e;
2016 }
2017
2018 throw new com.liferay.portal.kernel.exception.SystemException(e);
2019 }
2020
2021 return (com.liferay.portlet.journal.model.JournalArticle)returnObj;
2022 }
2023 catch (com.liferay.portal.kernel.exception.SystemException se) {
2024 _log.error(se, se);
2025
2026 throw se;
2027 }
2028 }
2029
2030 private static Log _log = LogFactoryUtil.getLog(JournalArticleServiceHttp.class);
2031 private static final Class<?>[] _addArticleParameterTypes0 = new Class[] {
2032 long.class, long.class, long.class, long.class,
2033 java.lang.String.class, boolean.class, java.util.Map.class,
2034 java.util.Map.class, java.lang.String.class, java.lang.String.class,
2035 java.lang.String.class, java.lang.String.class,
2036 java.lang.String.class, int.class, int.class, int.class, int.class,
2037 int.class, int.class, int.class, int.class, int.class, int.class,
2038 boolean.class, int.class, int.class, int.class, int.class, int.class,
2039 boolean.class, boolean.class, boolean.class, java.lang.String.class,
2040 java.io.File.class, java.util.Map.class, java.lang.String.class,
2041 com.liferay.portal.service.ServiceContext.class
2042 };
2043 private static final Class<?>[] _addArticleParameterTypes1 = new Class[] {
2044 long.class, long.class, long.class, long.class,
2045 java.lang.String.class, boolean.class, java.util.Map.class,
2046 java.util.Map.class, java.lang.String.class, java.lang.String.class,
2047 java.lang.String.class, java.lang.String.class,
2048 java.lang.String.class, int.class, int.class, int.class, int.class,
2049 int.class, int.class, int.class, int.class, int.class, int.class,
2050 boolean.class, int.class, int.class, int.class, int.class, int.class,
2051 boolean.class, boolean.class, java.lang.String.class,
2052 com.liferay.portal.service.ServiceContext.class
2053 };
2054 private static final Class<?>[] _copyArticleParameterTypes2 = new Class[] {
2055 long.class, java.lang.String.class, java.lang.String.class,
2056 boolean.class, double.class
2057 };
2058 private static final Class<?>[] _deleteArticleParameterTypes3 = new Class[] {
2059 long.class, java.lang.String.class, double.class,
2060 java.lang.String.class,
2061 com.liferay.portal.service.ServiceContext.class
2062 };
2063 private static final Class<?>[] _deleteArticleParameterTypes4 = new Class[] {
2064 long.class, java.lang.String.class, java.lang.String.class,
2065 com.liferay.portal.service.ServiceContext.class
2066 };
2067 private static final Class<?>[] _expireArticleParameterTypes5 = new Class[] {
2068 long.class, java.lang.String.class, double.class,
2069 java.lang.String.class,
2070 com.liferay.portal.service.ServiceContext.class
2071 };
2072 private static final Class<?>[] _expireArticleParameterTypes6 = new Class[] {
2073 long.class, java.lang.String.class, java.lang.String.class,
2074 com.liferay.portal.service.ServiceContext.class
2075 };
2076 private static final Class<?>[] _getArticleParameterTypes7 = new Class[] {
2077 long.class
2078 };
2079 private static final Class<?>[] _getArticleParameterTypes8 = new Class[] {
2080 long.class, java.lang.String.class
2081 };
2082 private static final Class<?>[] _getArticleParameterTypes9 = new Class[] {
2083 long.class, java.lang.String.class, double.class
2084 };
2085 private static final Class<?>[] _getArticleParameterTypes10 = new Class[] {
2086 long.class, java.lang.String.class, long.class
2087 };
2088 private static final Class<?>[] _getArticleByUrlTitleParameterTypes11 = new Class[] {
2089 long.class, java.lang.String.class
2090 };
2091 private static final Class<?>[] _getArticleContentParameterTypes12 = new Class[] {
2092 long.class, java.lang.String.class, double.class,
2093 java.lang.String.class, com.liferay.portal.theme.ThemeDisplay.class
2094 };
2095 private static final Class<?>[] _getArticleContentParameterTypes13 = new Class[] {
2096 long.class, java.lang.String.class, java.lang.String.class,
2097 com.liferay.portal.theme.ThemeDisplay.class
2098 };
2099 private static final Class<?>[] _getArticlesParameterTypes14 = new Class[] {
2100 long.class, long.class
2101 };
2102 private static final Class<?>[] _getArticlesParameterTypes15 = new Class[] {
2103 long.class, long.class, int.class, int.class,
2104 com.liferay.portal.kernel.util.OrderByComparator.class
2105 };
2106 private static final Class<?>[] _getArticlesByArticleIdParameterTypes16 = new Class[] {
2107 long.class, java.lang.String.class, int.class, int.class,
2108 com.liferay.portal.kernel.util.OrderByComparator.class
2109 };
2110 private static final Class<?>[] _getArticlesByLayoutUuidParameterTypes17 = new Class[] {
2111 long.class, java.lang.String.class
2112 };
2113 private static final Class<?>[] _getArticlesByStructureIdParameterTypes18 = new Class[] {
2114 long.class, long.class, java.lang.String.class, int.class, int.class,
2115 int.class, com.liferay.portal.kernel.util.OrderByComparator.class
2116 };
2117 private static final Class<?>[] _getArticlesByStructureIdParameterTypes19 = new Class[] {
2118 long.class, java.lang.String.class, int.class, int.class,
2119 com.liferay.portal.kernel.util.OrderByComparator.class
2120 };
2121 private static final Class<?>[] _getArticlesByUserIdParameterTypes20 = new Class[] {
2122 long.class, long.class, long.class, int.class, int.class,
2123 com.liferay.portal.kernel.util.OrderByComparator.class
2124 };
2125 private static final Class<?>[] _getArticlesCountParameterTypes21 = new Class[] {
2126 long.class, long.class
2127 };
2128 private static final Class<?>[] _getArticlesCountByArticleIdParameterTypes22 =
2129 new Class[] { long.class, java.lang.String.class };
2130 private static final Class<?>[] _getArticlesCountByStructureIdParameterTypes23 =
2131 new Class[] { long.class, long.class, java.lang.String.class, int.class };
2132 private static final Class<?>[] _getArticlesCountByStructureIdParameterTypes24 =
2133 new Class[] { long.class, java.lang.String.class };
2134 private static final Class<?>[] _getArticlesCountByUserIdParameterTypes25 = new Class[] {
2135 long.class, long.class, long.class
2136 };
2137 private static final Class<?>[] _getDisplayArticleByUrlTitleParameterTypes26 =
2138 new Class[] { long.class, java.lang.String.class };
2139 private static final Class<?>[] _getFoldersAndArticlesCountParameterTypes27 = new Class[] {
2140 long.class, java.util.List.class
2141 };
2142 private static final Class<?>[] _getLatestArticleParameterTypes28 = new Class[] {
2143 long.class
2144 };
2145 private static final Class<?>[] _getLatestArticleParameterTypes29 = new Class[] {
2146 long.class, java.lang.String.class, int.class
2147 };
2148 private static final Class<?>[] _getLatestArticleParameterTypes30 = new Class[] {
2149 long.class, java.lang.String.class, long.class
2150 };
2151 private static final Class<?>[] _moveArticleParameterTypes31 = new Class[] {
2152 long.class, java.lang.String.class, long.class
2153 };
2154 private static final Class<?>[] _moveArticleToTrashParameterTypes32 = new Class[] {
2155 long.class, java.lang.String.class
2156 };
2157 private static final Class<?>[] _removeArticleLocaleParameterTypes33 = new Class[] {
2158 long.class, java.lang.String.class
2159 };
2160 private static final Class<?>[] _removeArticleLocaleParameterTypes34 = new Class[] {
2161 long.class, java.lang.String.class, double.class,
2162 java.lang.String.class
2163 };
2164 private static final Class<?>[] _restoreArticleFromTrashParameterTypes35 = new Class[] {
2165 long.class
2166 };
2167 private static final Class<?>[] _restoreArticleFromTrashParameterTypes36 = new Class[] {
2168 long.class, java.lang.String.class
2169 };
2170 private static final Class<?>[] _searchParameterTypes37 = new Class[] {
2171 long.class, long.class, java.util.List.class, long.class,
2172 java.lang.String.class, java.lang.Double.class,
2173 java.lang.String.class, java.lang.String.class,
2174 java.lang.String.class, java.util.Date.class, java.util.Date.class,
2175 int.class, java.util.Date.class, int.class, int.class,
2176 com.liferay.portal.kernel.util.OrderByComparator.class
2177 };
2178 private static final Class<?>[] _searchParameterTypes38 = new Class[] {
2179 long.class, long.class, java.util.List.class, long.class,
2180 java.lang.String.class, java.lang.Double.class,
2181 java.lang.String.class, java.lang.String.class,
2182 java.lang.String.class, java.lang.String.class,
2183 java.lang.String.class, java.lang.String.class, java.util.Date.class,
2184 java.util.Date.class, int.class, java.util.Date.class, boolean.class,
2185 int.class, int.class,
2186 com.liferay.portal.kernel.util.OrderByComparator.class
2187 };
2188 private static final Class<?>[] _searchParameterTypes39 = new Class[] {
2189 long.class, long.class, java.util.List.class, long.class,
2190 java.lang.String.class, java.lang.Double.class,
2191 java.lang.String.class, java.lang.String.class,
2192 java.lang.String.class, java.lang.String.class,
2193 java.lang.String[].class, java.lang.String[].class,
2194 java.util.Date.class, java.util.Date.class, int.class,
2195 java.util.Date.class, boolean.class, int.class, int.class,
2196 com.liferay.portal.kernel.util.OrderByComparator.class
2197 };
2198 private static final Class<?>[] _searchCountParameterTypes40 = new Class[] {
2199 long.class, long.class, java.util.List.class, long.class,
2200 java.lang.String.class, java.lang.Double.class,
2201 java.lang.String.class, java.lang.String.class,
2202 java.lang.String.class, java.util.Date.class, java.util.Date.class,
2203 int.class, java.util.Date.class
2204 };
2205 private static final Class<?>[] _searchCountParameterTypes41 = new Class[] {
2206 long.class, long.class, java.util.List.class, long.class,
2207 java.lang.String.class, java.lang.Double.class,
2208 java.lang.String.class, java.lang.String.class,
2209 java.lang.String.class, java.lang.String.class,
2210 java.lang.String.class, java.lang.String.class, java.util.Date.class,
2211 java.util.Date.class, int.class, java.util.Date.class, boolean.class
2212 };
2213 private static final Class<?>[] _searchCountParameterTypes42 = new Class[] {
2214 long.class, long.class, java.util.List.class, long.class,
2215 java.lang.String.class, java.lang.Double.class,
2216 java.lang.String.class, java.lang.String.class,
2217 java.lang.String.class, java.lang.String.class,
2218 java.lang.String[].class, java.lang.String[].class,
2219 java.util.Date.class, java.util.Date.class, int.class,
2220 java.util.Date.class, boolean.class
2221 };
2222 private static final Class<?>[] _subscribeParameterTypes43 = new Class[] {
2223 long.class
2224 };
2225 private static final Class<?>[] _unsubscribeParameterTypes44 = new Class[] {
2226 long.class
2227 };
2228 private static final Class<?>[] _updateArticleParameterTypes45 = new Class[] {
2229 long.class, long.class, long.class, java.lang.String.class,
2230 double.class, java.util.Map.class, java.util.Map.class,
2231 java.lang.String.class, java.lang.String.class,
2232 com.liferay.portal.service.ServiceContext.class
2233 };
2234 private static final Class<?>[] _updateArticleParameterTypes46 = new Class[] {
2235 long.class, long.class, java.lang.String.class, double.class,
2236 java.util.Map.class, java.util.Map.class, java.lang.String.class,
2237 java.lang.String.class, java.lang.String.class,
2238 java.lang.String.class, java.lang.String.class, int.class, int.class,
2239 int.class, int.class, int.class, int.class, int.class, int.class,
2240 int.class, int.class, boolean.class, int.class, int.class, int.class,
2241 int.class, int.class, boolean.class, boolean.class, boolean.class,
2242 java.lang.String.class, java.io.File.class, java.util.Map.class,
2243 java.lang.String.class,
2244 com.liferay.portal.service.ServiceContext.class
2245 };
2246 private static final Class<?>[] _updateArticleParameterTypes47 = new Class[] {
2247 long.class, long.class, java.lang.String.class, double.class,
2248 java.lang.String.class,
2249 com.liferay.portal.service.ServiceContext.class
2250 };
2251 private static final Class<?>[] _updateArticleTranslationParameterTypes48 = new Class[] {
2252 long.class, java.lang.String.class, double.class,
2253 java.util.Locale.class, java.lang.String.class,
2254 java.lang.String.class, java.lang.String.class, java.util.Map.class
2255 };
2256 private static final Class<?>[] _updateArticleTranslationParameterTypes49 = new Class[] {
2257 long.class, java.lang.String.class, double.class,
2258 java.util.Locale.class, java.lang.String.class,
2259 java.lang.String.class, java.lang.String.class, java.util.Map.class,
2260 com.liferay.portal.service.ServiceContext.class
2261 };
2262 private static final Class<?>[] _updateContentParameterTypes50 = new Class[] {
2263 long.class, java.lang.String.class, double.class,
2264 java.lang.String.class
2265 };
2266 private static final Class<?>[] _updateStatusParameterTypes51 = new Class[] {
2267 long.class, java.lang.String.class, double.class, int.class,
2268 java.lang.String.class,
2269 com.liferay.portal.service.ServiceContext.class
2270 };
2271 }