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.JournalFolderServiceUtil;
025
026
054 public class JournalFolderServiceHttp {
055 public static com.liferay.portlet.journal.model.JournalFolder addFolder(
056 HttpPrincipal httpPrincipal, long groupId, long parentFolderId,
057 java.lang.String name, java.lang.String description,
058 com.liferay.portal.service.ServiceContext serviceContext)
059 throws com.liferay.portal.kernel.exception.PortalException,
060 com.liferay.portal.kernel.exception.SystemException {
061 try {
062 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
063 "addFolder", _addFolderParameterTypes0);
064
065 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
066 parentFolderId, name, description, serviceContext);
067
068 Object returnObj = null;
069
070 try {
071 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
072 }
073 catch (Exception e) {
074 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
075 throw (com.liferay.portal.kernel.exception.PortalException)e;
076 }
077
078 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
079 throw (com.liferay.portal.kernel.exception.SystemException)e;
080 }
081
082 throw new com.liferay.portal.kernel.exception.SystemException(e);
083 }
084
085 return (com.liferay.portlet.journal.model.JournalFolder)returnObj;
086 }
087 catch (com.liferay.portal.kernel.exception.SystemException se) {
088 _log.error(se, se);
089
090 throw se;
091 }
092 }
093
094 public static void deleteFolder(HttpPrincipal httpPrincipal, long folderId)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException {
097 try {
098 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
099 "deleteFolder", _deleteFolderParameterTypes1);
100
101 MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
102
103 try {
104 TunnelUtil.invoke(httpPrincipal, methodHandler);
105 }
106 catch (Exception e) {
107 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
108 throw (com.liferay.portal.kernel.exception.PortalException)e;
109 }
110
111 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
112 throw (com.liferay.portal.kernel.exception.SystemException)e;
113 }
114
115 throw new com.liferay.portal.kernel.exception.SystemException(e);
116 }
117 }
118 catch (com.liferay.portal.kernel.exception.SystemException se) {
119 _log.error(se, se);
120
121 throw se;
122 }
123 }
124
125 public static void deleteFolder(HttpPrincipal httpPrincipal, long folderId,
126 boolean includeTrashedEntries)
127 throws com.liferay.portal.kernel.exception.PortalException,
128 com.liferay.portal.kernel.exception.SystemException {
129 try {
130 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
131 "deleteFolder", _deleteFolderParameterTypes2);
132
133 MethodHandler methodHandler = new MethodHandler(methodKey,
134 folderId, includeTrashedEntries);
135
136 try {
137 TunnelUtil.invoke(httpPrincipal, methodHandler);
138 }
139 catch (Exception e) {
140 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
141 throw (com.liferay.portal.kernel.exception.PortalException)e;
142 }
143
144 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
145 throw (com.liferay.portal.kernel.exception.SystemException)e;
146 }
147
148 throw new com.liferay.portal.kernel.exception.SystemException(e);
149 }
150 }
151 catch (com.liferay.portal.kernel.exception.SystemException se) {
152 _log.error(se, se);
153
154 throw se;
155 }
156 }
157
158 public static com.liferay.portlet.journal.model.JournalFolder fetchFolder(
159 HttpPrincipal httpPrincipal, long folderId)
160 throws com.liferay.portal.kernel.exception.PortalException,
161 com.liferay.portal.kernel.exception.SystemException {
162 try {
163 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
164 "fetchFolder", _fetchFolderParameterTypes3);
165
166 MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
167
168 Object returnObj = null;
169
170 try {
171 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
172 }
173 catch (Exception e) {
174 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
175 throw (com.liferay.portal.kernel.exception.PortalException)e;
176 }
177
178 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
179 throw (com.liferay.portal.kernel.exception.SystemException)e;
180 }
181
182 throw new com.liferay.portal.kernel.exception.SystemException(e);
183 }
184
185 return (com.liferay.portlet.journal.model.JournalFolder)returnObj;
186 }
187 catch (com.liferay.portal.kernel.exception.SystemException se) {
188 _log.error(se, se);
189
190 throw se;
191 }
192 }
193
194 public static com.liferay.portlet.journal.model.JournalFolder getFolder(
195 HttpPrincipal httpPrincipal, long folderId)
196 throws com.liferay.portal.kernel.exception.PortalException,
197 com.liferay.portal.kernel.exception.SystemException {
198 try {
199 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
200 "getFolder", _getFolderParameterTypes4);
201
202 MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
203
204 Object returnObj = null;
205
206 try {
207 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
208 }
209 catch (Exception e) {
210 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
211 throw (com.liferay.portal.kernel.exception.PortalException)e;
212 }
213
214 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
215 throw (com.liferay.portal.kernel.exception.SystemException)e;
216 }
217
218 throw new com.liferay.portal.kernel.exception.SystemException(e);
219 }
220
221 return (com.liferay.portlet.journal.model.JournalFolder)returnObj;
222 }
223 catch (com.liferay.portal.kernel.exception.SystemException se) {
224 _log.error(se, se);
225
226 throw se;
227 }
228 }
229
230 public static java.util.List<java.lang.Long> getFolderIds(
231 HttpPrincipal httpPrincipal, long groupId, long folderId)
232 throws com.liferay.portal.kernel.exception.PortalException,
233 com.liferay.portal.kernel.exception.SystemException {
234 try {
235 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
236 "getFolderIds", _getFolderIdsParameterTypes5);
237
238 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
239 folderId);
240
241 Object returnObj = null;
242
243 try {
244 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
245 }
246 catch (Exception e) {
247 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
248 throw (com.liferay.portal.kernel.exception.PortalException)e;
249 }
250
251 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
252 throw (com.liferay.portal.kernel.exception.SystemException)e;
253 }
254
255 throw new com.liferay.portal.kernel.exception.SystemException(e);
256 }
257
258 return (java.util.List<java.lang.Long>)returnObj;
259 }
260 catch (com.liferay.portal.kernel.exception.SystemException se) {
261 _log.error(se, se);
262
263 throw se;
264 }
265 }
266
267 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
268 HttpPrincipal httpPrincipal, long groupId)
269 throws com.liferay.portal.kernel.exception.SystemException {
270 try {
271 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
272 "getFolders", _getFoldersParameterTypes6);
273
274 MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
275
276 Object returnObj = null;
277
278 try {
279 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
280 }
281 catch (Exception e) {
282 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
283 throw (com.liferay.portal.kernel.exception.SystemException)e;
284 }
285
286 throw new com.liferay.portal.kernel.exception.SystemException(e);
287 }
288
289 return (java.util.List<com.liferay.portlet.journal.model.JournalFolder>)returnObj;
290 }
291 catch (com.liferay.portal.kernel.exception.SystemException se) {
292 _log.error(se, se);
293
294 throw se;
295 }
296 }
297
298 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
299 HttpPrincipal httpPrincipal, long groupId, long parentFolderId)
300 throws com.liferay.portal.kernel.exception.SystemException {
301 try {
302 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
303 "getFolders", _getFoldersParameterTypes7);
304
305 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
306 parentFolderId);
307
308 Object returnObj = null;
309
310 try {
311 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
312 }
313 catch (Exception e) {
314 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
315 throw (com.liferay.portal.kernel.exception.SystemException)e;
316 }
317
318 throw new com.liferay.portal.kernel.exception.SystemException(e);
319 }
320
321 return (java.util.List<com.liferay.portlet.journal.model.JournalFolder>)returnObj;
322 }
323 catch (com.liferay.portal.kernel.exception.SystemException se) {
324 _log.error(se, se);
325
326 throw se;
327 }
328 }
329
330 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
331 HttpPrincipal httpPrincipal, long groupId, long parentFolderId,
332 int status) throws com.liferay.portal.kernel.exception.SystemException {
333 try {
334 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
335 "getFolders", _getFoldersParameterTypes8);
336
337 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
338 parentFolderId, status);
339
340 Object returnObj = null;
341
342 try {
343 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
344 }
345 catch (Exception e) {
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 return (java.util.List<com.liferay.portlet.journal.model.JournalFolder>)returnObj;
354 }
355 catch (com.liferay.portal.kernel.exception.SystemException se) {
356 _log.error(se, se);
357
358 throw se;
359 }
360 }
361
362 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
363 HttpPrincipal httpPrincipal, long groupId, long parentFolderId,
364 int start, int end)
365 throws com.liferay.portal.kernel.exception.SystemException {
366 try {
367 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
368 "getFolders", _getFoldersParameterTypes9);
369
370 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
371 parentFolderId, start, end);
372
373 Object returnObj = null;
374
375 try {
376 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
377 }
378 catch (Exception e) {
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 (java.util.List<com.liferay.portlet.journal.model.JournalFolder>)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 java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
396 HttpPrincipal httpPrincipal, long groupId, long parentFolderId,
397 int status, int start, int end)
398 throws com.liferay.portal.kernel.exception.SystemException {
399 try {
400 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
401 "getFolders", _getFoldersParameterTypes10);
402
403 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
404 parentFolderId, status, start, end);
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.SystemException) {
413 throw (com.liferay.portal.kernel.exception.SystemException)e;
414 }
415
416 throw new com.liferay.portal.kernel.exception.SystemException(e);
417 }
418
419 return (java.util.List<com.liferay.portlet.journal.model.JournalFolder>)returnObj;
420 }
421 catch (com.liferay.portal.kernel.exception.SystemException se) {
422 _log.error(se, se);
423
424 throw se;
425 }
426 }
427
428 public static java.util.List<java.lang.Object> getFoldersAndArticles(
429 HttpPrincipal httpPrincipal, long groupId, long folderId, int status,
430 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
431 throws com.liferay.portal.kernel.exception.SystemException {
432 try {
433 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
434 "getFoldersAndArticles",
435 _getFoldersAndArticlesParameterTypes11);
436
437 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
438 folderId, status, start, end, obc);
439
440 Object returnObj = null;
441
442 try {
443 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
444 }
445 catch (Exception e) {
446 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
447 throw (com.liferay.portal.kernel.exception.SystemException)e;
448 }
449
450 throw new com.liferay.portal.kernel.exception.SystemException(e);
451 }
452
453 return (java.util.List<java.lang.Object>)returnObj;
454 }
455 catch (com.liferay.portal.kernel.exception.SystemException se) {
456 _log.error(se, se);
457
458 throw se;
459 }
460 }
461
462 public static java.util.List<java.lang.Object> getFoldersAndArticles(
463 HttpPrincipal httpPrincipal, long groupId, long folderId, int start,
464 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
465 throws com.liferay.portal.kernel.exception.SystemException {
466 try {
467 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
468 "getFoldersAndArticles",
469 _getFoldersAndArticlesParameterTypes12);
470
471 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
472 folderId, start, end, obc);
473
474 Object returnObj = null;
475
476 try {
477 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
478 }
479 catch (Exception e) {
480 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
481 throw (com.liferay.portal.kernel.exception.SystemException)e;
482 }
483
484 throw new com.liferay.portal.kernel.exception.SystemException(e);
485 }
486
487 return (java.util.List<java.lang.Object>)returnObj;
488 }
489 catch (com.liferay.portal.kernel.exception.SystemException se) {
490 _log.error(se, se);
491
492 throw se;
493 }
494 }
495
496 public static java.util.List<java.lang.Object> getFoldersAndArticles(
497 HttpPrincipal httpPrincipal, long groupId, long userId, long folderId,
498 int status, int start, int end,
499 com.liferay.portal.kernel.util.OrderByComparator obc)
500 throws com.liferay.portal.kernel.exception.SystemException {
501 try {
502 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
503 "getFoldersAndArticles",
504 _getFoldersAndArticlesParameterTypes13);
505
506 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
507 userId, folderId, status, start, end, obc);
508
509 Object returnObj = null;
510
511 try {
512 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
513 }
514 catch (Exception e) {
515 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
516 throw (com.liferay.portal.kernel.exception.SystemException)e;
517 }
518
519 throw new com.liferay.portal.kernel.exception.SystemException(e);
520 }
521
522 return (java.util.List<java.lang.Object>)returnObj;
523 }
524 catch (com.liferay.portal.kernel.exception.SystemException se) {
525 _log.error(se, se);
526
527 throw se;
528 }
529 }
530
531 public static int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal,
532 long groupId, java.util.List<java.lang.Long> folderIds, int status)
533 throws com.liferay.portal.kernel.exception.SystemException {
534 try {
535 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
536 "getFoldersAndArticlesCount",
537 _getFoldersAndArticlesCountParameterTypes14);
538
539 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
540 folderIds, status);
541
542 Object returnObj = null;
543
544 try {
545 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
546 }
547 catch (Exception e) {
548 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
549 throw (com.liferay.portal.kernel.exception.SystemException)e;
550 }
551
552 throw new com.liferay.portal.kernel.exception.SystemException(e);
553 }
554
555 return ((Integer)returnObj).intValue();
556 }
557 catch (com.liferay.portal.kernel.exception.SystemException se) {
558 _log.error(se, se);
559
560 throw se;
561 }
562 }
563
564 public static int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal,
565 long groupId, long folderId)
566 throws com.liferay.portal.kernel.exception.SystemException {
567 try {
568 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
569 "getFoldersAndArticlesCount",
570 _getFoldersAndArticlesCountParameterTypes15);
571
572 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
573 folderId);
574
575 Object returnObj = null;
576
577 try {
578 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
579 }
580 catch (Exception e) {
581 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
582 throw (com.liferay.portal.kernel.exception.SystemException)e;
583 }
584
585 throw new com.liferay.portal.kernel.exception.SystemException(e);
586 }
587
588 return ((Integer)returnObj).intValue();
589 }
590 catch (com.liferay.portal.kernel.exception.SystemException se) {
591 _log.error(se, se);
592
593 throw se;
594 }
595 }
596
597 public static int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal,
598 long groupId, long folderId, int status)
599 throws com.liferay.portal.kernel.exception.SystemException {
600 try {
601 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
602 "getFoldersAndArticlesCount",
603 _getFoldersAndArticlesCountParameterTypes16);
604
605 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
606 folderId, status);
607
608 Object returnObj = null;
609
610 try {
611 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
612 }
613 catch (Exception e) {
614 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
615 throw (com.liferay.portal.kernel.exception.SystemException)e;
616 }
617
618 throw new com.liferay.portal.kernel.exception.SystemException(e);
619 }
620
621 return ((Integer)returnObj).intValue();
622 }
623 catch (com.liferay.portal.kernel.exception.SystemException se) {
624 _log.error(se, se);
625
626 throw se;
627 }
628 }
629
630 public static int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal,
631 long groupId, long userId, long folderId, int status)
632 throws com.liferay.portal.kernel.exception.SystemException {
633 try {
634 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
635 "getFoldersAndArticlesCount",
636 _getFoldersAndArticlesCountParameterTypes17);
637
638 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
639 userId, folderId, status);
640
641 Object returnObj = null;
642
643 try {
644 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
645 }
646 catch (Exception e) {
647 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
648 throw (com.liferay.portal.kernel.exception.SystemException)e;
649 }
650
651 throw new com.liferay.portal.kernel.exception.SystemException(e);
652 }
653
654 return ((Integer)returnObj).intValue();
655 }
656 catch (com.liferay.portal.kernel.exception.SystemException se) {
657 _log.error(se, se);
658
659 throw se;
660 }
661 }
662
663 public static int getFoldersCount(HttpPrincipal httpPrincipal,
664 long groupId, long parentFolderId)
665 throws com.liferay.portal.kernel.exception.SystemException {
666 try {
667 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
668 "getFoldersCount", _getFoldersCountParameterTypes18);
669
670 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
671 parentFolderId);
672
673 Object returnObj = null;
674
675 try {
676 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
677 }
678 catch (Exception e) {
679 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
680 throw (com.liferay.portal.kernel.exception.SystemException)e;
681 }
682
683 throw new com.liferay.portal.kernel.exception.SystemException(e);
684 }
685
686 return ((Integer)returnObj).intValue();
687 }
688 catch (com.liferay.portal.kernel.exception.SystemException se) {
689 _log.error(se, se);
690
691 throw se;
692 }
693 }
694
695 public static int getFoldersCount(HttpPrincipal httpPrincipal,
696 long groupId, long parentFolderId, int status)
697 throws com.liferay.portal.kernel.exception.SystemException {
698 try {
699 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
700 "getFoldersCount", _getFoldersCountParameterTypes19);
701
702 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
703 parentFolderId, status);
704
705 Object returnObj = null;
706
707 try {
708 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
709 }
710 catch (Exception e) {
711 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
712 throw (com.liferay.portal.kernel.exception.SystemException)e;
713 }
714
715 throw new com.liferay.portal.kernel.exception.SystemException(e);
716 }
717
718 return ((Integer)returnObj).intValue();
719 }
720 catch (com.liferay.portal.kernel.exception.SystemException se) {
721 _log.error(se, se);
722
723 throw se;
724 }
725 }
726
727 public static void getSubfolderIds(HttpPrincipal httpPrincipal,
728 java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
729 throws com.liferay.portal.kernel.exception.SystemException {
730 try {
731 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
732 "getSubfolderIds", _getSubfolderIdsParameterTypes20);
733
734 MethodHandler methodHandler = new MethodHandler(methodKey,
735 folderIds, groupId, folderId);
736
737 try {
738 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 catch (com.liferay.portal.kernel.exception.SystemException se) {
749 _log.error(se, se);
750
751 throw se;
752 }
753 }
754
755 public static void getSubfolderIds(HttpPrincipal httpPrincipal,
756 java.util.List<java.lang.Long> folderIds, long groupId, long folderId,
757 boolean recurse)
758 throws com.liferay.portal.kernel.exception.SystemException {
759 try {
760 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
761 "getSubfolderIds", _getSubfolderIdsParameterTypes21);
762
763 MethodHandler methodHandler = new MethodHandler(methodKey,
764 folderIds, groupId, folderId, recurse);
765
766 try {
767 TunnelUtil.invoke(httpPrincipal, methodHandler);
768 }
769 catch (Exception e) {
770 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
771 throw (com.liferay.portal.kernel.exception.SystemException)e;
772 }
773
774 throw new com.liferay.portal.kernel.exception.SystemException(e);
775 }
776 }
777 catch (com.liferay.portal.kernel.exception.SystemException se) {
778 _log.error(se, se);
779
780 throw se;
781 }
782 }
783
784 public static java.util.List<java.lang.Long> getSubfolderIds(
785 HttpPrincipal httpPrincipal, long groupId, long folderId,
786 boolean recurse)
787 throws com.liferay.portal.kernel.exception.SystemException {
788 try {
789 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
790 "getSubfolderIds", _getSubfolderIdsParameterTypes22);
791
792 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
793 folderId, recurse);
794
795 Object returnObj = null;
796
797 try {
798 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
799 }
800 catch (Exception e) {
801 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
802 throw (com.liferay.portal.kernel.exception.SystemException)e;
803 }
804
805 throw new com.liferay.portal.kernel.exception.SystemException(e);
806 }
807
808 return (java.util.List<java.lang.Long>)returnObj;
809 }
810 catch (com.liferay.portal.kernel.exception.SystemException se) {
811 _log.error(se, se);
812
813 throw se;
814 }
815 }
816
817 public static com.liferay.portlet.journal.model.JournalFolder moveFolder(
818 HttpPrincipal httpPrincipal, long folderId, long parentFolderId,
819 com.liferay.portal.service.ServiceContext serviceContext)
820 throws com.liferay.portal.kernel.exception.PortalException,
821 com.liferay.portal.kernel.exception.SystemException {
822 try {
823 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
824 "moveFolder", _moveFolderParameterTypes23);
825
826 MethodHandler methodHandler = new MethodHandler(methodKey,
827 folderId, parentFolderId, serviceContext);
828
829 Object returnObj = null;
830
831 try {
832 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
833 }
834 catch (Exception e) {
835 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
836 throw (com.liferay.portal.kernel.exception.PortalException)e;
837 }
838
839 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
840 throw (com.liferay.portal.kernel.exception.SystemException)e;
841 }
842
843 throw new com.liferay.portal.kernel.exception.SystemException(e);
844 }
845
846 return (com.liferay.portlet.journal.model.JournalFolder)returnObj;
847 }
848 catch (com.liferay.portal.kernel.exception.SystemException se) {
849 _log.error(se, se);
850
851 throw se;
852 }
853 }
854
855 public static com.liferay.portlet.journal.model.JournalFolder moveFolderFromTrash(
856 HttpPrincipal httpPrincipal, long folderId, long parentFolderId,
857 com.liferay.portal.service.ServiceContext serviceContext)
858 throws com.liferay.portal.kernel.exception.PortalException,
859 com.liferay.portal.kernel.exception.SystemException {
860 try {
861 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
862 "moveFolderFromTrash", _moveFolderFromTrashParameterTypes24);
863
864 MethodHandler methodHandler = new MethodHandler(methodKey,
865 folderId, parentFolderId, serviceContext);
866
867 Object returnObj = null;
868
869 try {
870 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
871 }
872 catch (Exception e) {
873 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
874 throw (com.liferay.portal.kernel.exception.PortalException)e;
875 }
876
877 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
878 throw (com.liferay.portal.kernel.exception.SystemException)e;
879 }
880
881 throw new com.liferay.portal.kernel.exception.SystemException(e);
882 }
883
884 return (com.liferay.portlet.journal.model.JournalFolder)returnObj;
885 }
886 catch (com.liferay.portal.kernel.exception.SystemException se) {
887 _log.error(se, se);
888
889 throw se;
890 }
891 }
892
893 public static com.liferay.portlet.journal.model.JournalFolder moveFolderToTrash(
894 HttpPrincipal httpPrincipal, long folderId)
895 throws com.liferay.portal.kernel.exception.PortalException,
896 com.liferay.portal.kernel.exception.SystemException {
897 try {
898 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
899 "moveFolderToTrash", _moveFolderToTrashParameterTypes25);
900
901 MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
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.PortalException) {
910 throw (com.liferay.portal.kernel.exception.PortalException)e;
911 }
912
913 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
914 throw (com.liferay.portal.kernel.exception.SystemException)e;
915 }
916
917 throw new com.liferay.portal.kernel.exception.SystemException(e);
918 }
919
920 return (com.liferay.portlet.journal.model.JournalFolder)returnObj;
921 }
922 catch (com.liferay.portal.kernel.exception.SystemException se) {
923 _log.error(se, se);
924
925 throw se;
926 }
927 }
928
929 public static void restoreFolderFromTrash(HttpPrincipal httpPrincipal,
930 long folderId)
931 throws com.liferay.portal.kernel.exception.PortalException,
932 com.liferay.portal.kernel.exception.SystemException {
933 try {
934 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
935 "restoreFolderFromTrash",
936 _restoreFolderFromTrashParameterTypes26);
937
938 MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
939
940 try {
941 TunnelUtil.invoke(httpPrincipal, methodHandler);
942 }
943 catch (Exception e) {
944 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
945 throw (com.liferay.portal.kernel.exception.PortalException)e;
946 }
947
948 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
949 throw (com.liferay.portal.kernel.exception.SystemException)e;
950 }
951
952 throw new com.liferay.portal.kernel.exception.SystemException(e);
953 }
954 }
955 catch (com.liferay.portal.kernel.exception.SystemException se) {
956 _log.error(se, se);
957
958 throw se;
959 }
960 }
961
962 public static com.liferay.portlet.journal.model.JournalFolder updateFolder(
963 HttpPrincipal httpPrincipal, long folderId, long parentFolderId,
964 java.lang.String name, java.lang.String description,
965 boolean mergeWithParentFolder,
966 com.liferay.portal.service.ServiceContext serviceContext)
967 throws com.liferay.portal.kernel.exception.PortalException,
968 com.liferay.portal.kernel.exception.SystemException {
969 try {
970 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
971 "updateFolder", _updateFolderParameterTypes27);
972
973 MethodHandler methodHandler = new MethodHandler(methodKey,
974 folderId, parentFolderId, name, description,
975 mergeWithParentFolder, serviceContext);
976
977 Object returnObj = null;
978
979 try {
980 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
981 }
982 catch (Exception e) {
983 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
984 throw (com.liferay.portal.kernel.exception.PortalException)e;
985 }
986
987 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
988 throw (com.liferay.portal.kernel.exception.SystemException)e;
989 }
990
991 throw new com.liferay.portal.kernel.exception.SystemException(e);
992 }
993
994 return (com.liferay.portlet.journal.model.JournalFolder)returnObj;
995 }
996 catch (com.liferay.portal.kernel.exception.SystemException se) {
997 _log.error(se, se);
998
999 throw se;
1000 }
1001 }
1002
1003 private static Log _log = LogFactoryUtil.getLog(JournalFolderServiceHttp.class);
1004 private static final Class<?>[] _addFolderParameterTypes0 = new Class[] {
1005 long.class, long.class, java.lang.String.class,
1006 java.lang.String.class,
1007 com.liferay.portal.service.ServiceContext.class
1008 };
1009 private static final Class<?>[] _deleteFolderParameterTypes1 = new Class[] {
1010 long.class
1011 };
1012 private static final Class<?>[] _deleteFolderParameterTypes2 = new Class[] {
1013 long.class, boolean.class
1014 };
1015 private static final Class<?>[] _fetchFolderParameterTypes3 = new Class[] {
1016 long.class
1017 };
1018 private static final Class<?>[] _getFolderParameterTypes4 = new Class[] {
1019 long.class
1020 };
1021 private static final Class<?>[] _getFolderIdsParameterTypes5 = new Class[] {
1022 long.class, long.class
1023 };
1024 private static final Class<?>[] _getFoldersParameterTypes6 = new Class[] {
1025 long.class
1026 };
1027 private static final Class<?>[] _getFoldersParameterTypes7 = new Class[] {
1028 long.class, long.class
1029 };
1030 private static final Class<?>[] _getFoldersParameterTypes8 = new Class[] {
1031 long.class, long.class, int.class
1032 };
1033 private static final Class<?>[] _getFoldersParameterTypes9 = new Class[] {
1034 long.class, long.class, int.class, int.class
1035 };
1036 private static final Class<?>[] _getFoldersParameterTypes10 = new Class[] {
1037 long.class, long.class, int.class, int.class, int.class
1038 };
1039 private static final Class<?>[] _getFoldersAndArticlesParameterTypes11 = new Class[] {
1040 long.class, long.class, int.class, int.class, int.class,
1041 com.liferay.portal.kernel.util.OrderByComparator.class
1042 };
1043 private static final Class<?>[] _getFoldersAndArticlesParameterTypes12 = new Class[] {
1044 long.class, long.class, int.class, int.class,
1045 com.liferay.portal.kernel.util.OrderByComparator.class
1046 };
1047 private static final Class<?>[] _getFoldersAndArticlesParameterTypes13 = new Class[] {
1048 long.class, long.class, long.class, int.class, int.class, int.class,
1049 com.liferay.portal.kernel.util.OrderByComparator.class
1050 };
1051 private static final Class<?>[] _getFoldersAndArticlesCountParameterTypes14 = new Class[] {
1052 long.class, java.util.List.class, int.class
1053 };
1054 private static final Class<?>[] _getFoldersAndArticlesCountParameterTypes15 = new Class[] {
1055 long.class, long.class
1056 };
1057 private static final Class<?>[] _getFoldersAndArticlesCountParameterTypes16 = new Class[] {
1058 long.class, long.class, int.class
1059 };
1060 private static final Class<?>[] _getFoldersAndArticlesCountParameterTypes17 = new Class[] {
1061 long.class, long.class, long.class, int.class
1062 };
1063 private static final Class<?>[] _getFoldersCountParameterTypes18 = new Class[] {
1064 long.class, long.class
1065 };
1066 private static final Class<?>[] _getFoldersCountParameterTypes19 = new Class[] {
1067 long.class, long.class, int.class
1068 };
1069 private static final Class<?>[] _getSubfolderIdsParameterTypes20 = new Class[] {
1070 java.util.List.class, long.class, long.class
1071 };
1072 private static final Class<?>[] _getSubfolderIdsParameterTypes21 = new Class[] {
1073 java.util.List.class, long.class, long.class, boolean.class
1074 };
1075 private static final Class<?>[] _getSubfolderIdsParameterTypes22 = new Class[] {
1076 long.class, long.class, boolean.class
1077 };
1078 private static final Class<?>[] _moveFolderParameterTypes23 = new Class[] {
1079 long.class, long.class,
1080 com.liferay.portal.service.ServiceContext.class
1081 };
1082 private static final Class<?>[] _moveFolderFromTrashParameterTypes24 = new Class[] {
1083 long.class, long.class,
1084 com.liferay.portal.service.ServiceContext.class
1085 };
1086 private static final Class<?>[] _moveFolderToTrashParameterTypes25 = new Class[] {
1087 long.class
1088 };
1089 private static final Class<?>[] _restoreFolderFromTrashParameterTypes26 = new Class[] {
1090 long.class
1091 };
1092 private static final Class<?>[] _updateFolderParameterTypes27 = new Class[] {
1093 long.class, long.class, java.lang.String.class,
1094 java.lang.String.class, boolean.class,
1095 com.liferay.portal.service.ServiceContext.class
1096 };
1097 }