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