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
056 public class JournalFolderServiceHttp {
057 public static com.liferay.portlet.journal.model.JournalFolder addFolder(
058 HttpPrincipal httpPrincipal, long groupId, long parentFolderId,
059 java.lang.String name, java.lang.String description,
060 com.liferay.portal.service.ServiceContext serviceContext)
061 throws com.liferay.portal.kernel.exception.PortalException,
062 com.liferay.portal.kernel.exception.SystemException {
063 try {
064 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
065 "addFolder", _addFolderParameterTypes0);
066
067 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
068 parentFolderId, name, description, serviceContext);
069
070 Object returnObj = null;
071
072 try {
073 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
074 }
075 catch (Exception e) {
076 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
077 throw (com.liferay.portal.kernel.exception.PortalException)e;
078 }
079
080 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
081 throw (com.liferay.portal.kernel.exception.SystemException)e;
082 }
083
084 throw new com.liferay.portal.kernel.exception.SystemException(e);
085 }
086
087 return (com.liferay.portlet.journal.model.JournalFolder)returnObj;
088 }
089 catch (com.liferay.portal.kernel.exception.SystemException se) {
090 _log.error(se, se);
091
092 throw se;
093 }
094 }
095
096 public static void deleteFolder(HttpPrincipal httpPrincipal, long folderId)
097 throws com.liferay.portal.kernel.exception.PortalException,
098 com.liferay.portal.kernel.exception.SystemException {
099 try {
100 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
101 "deleteFolder", _deleteFolderParameterTypes1);
102
103 MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
104
105 try {
106 TunnelUtil.invoke(httpPrincipal, methodHandler);
107 }
108 catch (Exception e) {
109 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
110 throw (com.liferay.portal.kernel.exception.PortalException)e;
111 }
112
113 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
114 throw (com.liferay.portal.kernel.exception.SystemException)e;
115 }
116
117 throw new com.liferay.portal.kernel.exception.SystemException(e);
118 }
119 }
120 catch (com.liferay.portal.kernel.exception.SystemException se) {
121 _log.error(se, se);
122
123 throw se;
124 }
125 }
126
127 public static void deleteFolder(HttpPrincipal httpPrincipal, long folderId,
128 boolean includeTrashedEntries)
129 throws com.liferay.portal.kernel.exception.PortalException,
130 com.liferay.portal.kernel.exception.SystemException {
131 try {
132 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
133 "deleteFolder", _deleteFolderParameterTypes2);
134
135 MethodHandler methodHandler = new MethodHandler(methodKey,
136 folderId, includeTrashedEntries);
137
138 try {
139 TunnelUtil.invoke(httpPrincipal, methodHandler);
140 }
141 catch (Exception e) {
142 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
143 throw (com.liferay.portal.kernel.exception.PortalException)e;
144 }
145
146 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
147 throw (com.liferay.portal.kernel.exception.SystemException)e;
148 }
149
150 throw new com.liferay.portal.kernel.exception.SystemException(e);
151 }
152 }
153 catch (com.liferay.portal.kernel.exception.SystemException se) {
154 _log.error(se, se);
155
156 throw se;
157 }
158 }
159
160 public static com.liferay.portlet.journal.model.JournalFolder getFolder(
161 HttpPrincipal httpPrincipal, long folderId)
162 throws com.liferay.portal.kernel.exception.PortalException,
163 com.liferay.portal.kernel.exception.SystemException {
164 try {
165 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
166 "getFolder", _getFolderParameterTypes3);
167
168 MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
169
170 Object returnObj = null;
171
172 try {
173 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
174 }
175 catch (Exception e) {
176 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
177 throw (com.liferay.portal.kernel.exception.PortalException)e;
178 }
179
180 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
181 throw (com.liferay.portal.kernel.exception.SystemException)e;
182 }
183
184 throw new com.liferay.portal.kernel.exception.SystemException(e);
185 }
186
187 return (com.liferay.portlet.journal.model.JournalFolder)returnObj;
188 }
189 catch (com.liferay.portal.kernel.exception.SystemException se) {
190 _log.error(se, se);
191
192 throw se;
193 }
194 }
195
196 public static java.util.List<java.lang.Long> getFolderIds(
197 HttpPrincipal httpPrincipal, long groupId, long folderId)
198 throws com.liferay.portal.kernel.exception.PortalException,
199 com.liferay.portal.kernel.exception.SystemException {
200 try {
201 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
202 "getFolderIds", _getFolderIdsParameterTypes4);
203
204 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
205 folderId);
206
207 Object returnObj = null;
208
209 try {
210 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
211 }
212 catch (Exception e) {
213 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
214 throw (com.liferay.portal.kernel.exception.PortalException)e;
215 }
216
217 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
218 throw (com.liferay.portal.kernel.exception.SystemException)e;
219 }
220
221 throw new com.liferay.portal.kernel.exception.SystemException(e);
222 }
223
224 return (java.util.List<java.lang.Long>)returnObj;
225 }
226 catch (com.liferay.portal.kernel.exception.SystemException se) {
227 _log.error(se, se);
228
229 throw se;
230 }
231 }
232
233 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
234 HttpPrincipal httpPrincipal, long groupId)
235 throws com.liferay.portal.kernel.exception.SystemException {
236 try {
237 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
238 "getFolders", _getFoldersParameterTypes5);
239
240 MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
241
242 Object returnObj = null;
243
244 try {
245 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
246 }
247 catch (Exception e) {
248 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
249 throw (com.liferay.portal.kernel.exception.SystemException)e;
250 }
251
252 throw new com.liferay.portal.kernel.exception.SystemException(e);
253 }
254
255 return (java.util.List<com.liferay.portlet.journal.model.JournalFolder>)returnObj;
256 }
257 catch (com.liferay.portal.kernel.exception.SystemException se) {
258 _log.error(se, se);
259
260 throw se;
261 }
262 }
263
264 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
265 HttpPrincipal httpPrincipal, long groupId, long parentFolderId)
266 throws com.liferay.portal.kernel.exception.SystemException {
267 try {
268 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
269 "getFolders", _getFoldersParameterTypes6);
270
271 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
272 parentFolderId);
273
274 Object returnObj = null;
275
276 try {
277 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
278 }
279 catch (Exception e) {
280 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
281 throw (com.liferay.portal.kernel.exception.SystemException)e;
282 }
283
284 throw new com.liferay.portal.kernel.exception.SystemException(e);
285 }
286
287 return (java.util.List<com.liferay.portlet.journal.model.JournalFolder>)returnObj;
288 }
289 catch (com.liferay.portal.kernel.exception.SystemException se) {
290 _log.error(se, se);
291
292 throw se;
293 }
294 }
295
296 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
297 HttpPrincipal httpPrincipal, long groupId, long parentFolderId,
298 int status) throws com.liferay.portal.kernel.exception.SystemException {
299 try {
300 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
301 "getFolders", _getFoldersParameterTypes7);
302
303 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
304 parentFolderId, status);
305
306 Object returnObj = null;
307
308 try {
309 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
310 }
311 catch (Exception e) {
312 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
313 throw (com.liferay.portal.kernel.exception.SystemException)e;
314 }
315
316 throw new com.liferay.portal.kernel.exception.SystemException(e);
317 }
318
319 return (java.util.List<com.liferay.portlet.journal.model.JournalFolder>)returnObj;
320 }
321 catch (com.liferay.portal.kernel.exception.SystemException se) {
322 _log.error(se, se);
323
324 throw se;
325 }
326 }
327
328 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
329 HttpPrincipal httpPrincipal, long groupId, long parentFolderId,
330 int start, int end)
331 throws com.liferay.portal.kernel.exception.SystemException {
332 try {
333 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
334 "getFolders", _getFoldersParameterTypes8);
335
336 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
337 parentFolderId, start, end);
338
339 Object returnObj = null;
340
341 try {
342 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
343 }
344 catch (Exception e) {
345 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
346 throw (com.liferay.portal.kernel.exception.SystemException)e;
347 }
348
349 throw new com.liferay.portal.kernel.exception.SystemException(e);
350 }
351
352 return (java.util.List<com.liferay.portlet.journal.model.JournalFolder>)returnObj;
353 }
354 catch (com.liferay.portal.kernel.exception.SystemException se) {
355 _log.error(se, se);
356
357 throw se;
358 }
359 }
360
361 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
362 HttpPrincipal httpPrincipal, long groupId, long parentFolderId,
363 int status, int start, int end)
364 throws com.liferay.portal.kernel.exception.SystemException {
365 try {
366 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
367 "getFolders", _getFoldersParameterTypes9);
368
369 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
370 parentFolderId, status, start, end);
371
372 Object returnObj = null;
373
374 try {
375 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
376 }
377 catch (Exception e) {
378 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
379 throw (com.liferay.portal.kernel.exception.SystemException)e;
380 }
381
382 throw new com.liferay.portal.kernel.exception.SystemException(e);
383 }
384
385 return (java.util.List<com.liferay.portlet.journal.model.JournalFolder>)returnObj;
386 }
387 catch (com.liferay.portal.kernel.exception.SystemException se) {
388 _log.error(se, se);
389
390 throw se;
391 }
392 }
393
394 public static java.util.List<java.lang.Object> getFoldersAndArticles(
395 HttpPrincipal httpPrincipal, long groupId, long folderId, int start,
396 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
397 throws com.liferay.portal.kernel.exception.SystemException {
398 try {
399 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
400 "getFoldersAndArticles",
401 _getFoldersAndArticlesParameterTypes10);
402
403 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
404 folderId, start, end, obc);
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<java.lang.Object>)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 int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal,
429 long groupId, java.util.List<java.lang.Long> folderIds, int status)
430 throws com.liferay.portal.kernel.exception.SystemException {
431 try {
432 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
433 "getFoldersAndArticlesCount",
434 _getFoldersAndArticlesCountParameterTypes11);
435
436 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
437 folderIds, status);
438
439 Object returnObj = null;
440
441 try {
442 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
443 }
444 catch (Exception e) {
445 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
446 throw (com.liferay.portal.kernel.exception.SystemException)e;
447 }
448
449 throw new com.liferay.portal.kernel.exception.SystemException(e);
450 }
451
452 return ((Integer)returnObj).intValue();
453 }
454 catch (com.liferay.portal.kernel.exception.SystemException se) {
455 _log.error(se, se);
456
457 throw se;
458 }
459 }
460
461 public static int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal,
462 long groupId, long folderId)
463 throws com.liferay.portal.kernel.exception.SystemException {
464 try {
465 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
466 "getFoldersAndArticlesCount",
467 _getFoldersAndArticlesCountParameterTypes12);
468
469 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
470 folderId);
471
472 Object returnObj = null;
473
474 try {
475 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
476 }
477 catch (Exception e) {
478 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
479 throw (com.liferay.portal.kernel.exception.SystemException)e;
480 }
481
482 throw new com.liferay.portal.kernel.exception.SystemException(e);
483 }
484
485 return ((Integer)returnObj).intValue();
486 }
487 catch (com.liferay.portal.kernel.exception.SystemException se) {
488 _log.error(se, se);
489
490 throw se;
491 }
492 }
493
494 public static int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal,
495 long groupId, long folderId, int status)
496 throws com.liferay.portal.kernel.exception.SystemException {
497 try {
498 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
499 "getFoldersAndArticlesCount",
500 _getFoldersAndArticlesCountParameterTypes13);
501
502 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
503 folderId, status);
504
505 Object returnObj = null;
506
507 try {
508 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
509 }
510 catch (Exception e) {
511 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
512 throw (com.liferay.portal.kernel.exception.SystemException)e;
513 }
514
515 throw new com.liferay.portal.kernel.exception.SystemException(e);
516 }
517
518 return ((Integer)returnObj).intValue();
519 }
520 catch (com.liferay.portal.kernel.exception.SystemException se) {
521 _log.error(se, se);
522
523 throw se;
524 }
525 }
526
527 public static int getFoldersCount(HttpPrincipal httpPrincipal,
528 long groupId, long parentFolderId)
529 throws com.liferay.portal.kernel.exception.SystemException {
530 try {
531 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
532 "getFoldersCount", _getFoldersCountParameterTypes14);
533
534 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
535 parentFolderId);
536
537 Object returnObj = null;
538
539 try {
540 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
541 }
542 catch (Exception e) {
543 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
544 throw (com.liferay.portal.kernel.exception.SystemException)e;
545 }
546
547 throw new com.liferay.portal.kernel.exception.SystemException(e);
548 }
549
550 return ((Integer)returnObj).intValue();
551 }
552 catch (com.liferay.portal.kernel.exception.SystemException se) {
553 _log.error(se, se);
554
555 throw se;
556 }
557 }
558
559 public static void getSubfolderIds(HttpPrincipal httpPrincipal,
560 java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
561 throws com.liferay.portal.kernel.exception.SystemException {
562 try {
563 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
564 "getSubfolderIds", _getSubfolderIdsParameterTypes15);
565
566 MethodHandler methodHandler = new MethodHandler(methodKey,
567 folderIds, groupId, folderId);
568
569 try {
570 TunnelUtil.invoke(httpPrincipal, methodHandler);
571 }
572 catch (Exception e) {
573 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
574 throw (com.liferay.portal.kernel.exception.SystemException)e;
575 }
576
577 throw new com.liferay.portal.kernel.exception.SystemException(e);
578 }
579 }
580 catch (com.liferay.portal.kernel.exception.SystemException se) {
581 _log.error(se, se);
582
583 throw se;
584 }
585 }
586
587 public static java.util.List<java.lang.Long> getSubfolderIds(
588 HttpPrincipal httpPrincipal, long groupId, long folderId,
589 boolean recurse)
590 throws com.liferay.portal.kernel.exception.SystemException {
591 try {
592 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
593 "getSubfolderIds", _getSubfolderIdsParameterTypes16);
594
595 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
596 folderId, recurse);
597
598 Object returnObj = null;
599
600 try {
601 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
602 }
603 catch (Exception e) {
604 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
605 throw (com.liferay.portal.kernel.exception.SystemException)e;
606 }
607
608 throw new com.liferay.portal.kernel.exception.SystemException(e);
609 }
610
611 return (java.util.List<java.lang.Long>)returnObj;
612 }
613 catch (com.liferay.portal.kernel.exception.SystemException se) {
614 _log.error(se, se);
615
616 throw se;
617 }
618 }
619
620 public static com.liferay.portlet.journal.model.JournalFolder moveFolder(
621 HttpPrincipal httpPrincipal, long folderId, long parentFolderId,
622 com.liferay.portal.service.ServiceContext serviceContext)
623 throws com.liferay.portal.kernel.exception.PortalException,
624 com.liferay.portal.kernel.exception.SystemException {
625 try {
626 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
627 "moveFolder", _moveFolderParameterTypes17);
628
629 MethodHandler methodHandler = new MethodHandler(methodKey,
630 folderId, parentFolderId, serviceContext);
631
632 Object returnObj = null;
633
634 try {
635 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
636 }
637 catch (Exception e) {
638 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
639 throw (com.liferay.portal.kernel.exception.PortalException)e;
640 }
641
642 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
643 throw (com.liferay.portal.kernel.exception.SystemException)e;
644 }
645
646 throw new com.liferay.portal.kernel.exception.SystemException(e);
647 }
648
649 return (com.liferay.portlet.journal.model.JournalFolder)returnObj;
650 }
651 catch (com.liferay.portal.kernel.exception.SystemException se) {
652 _log.error(se, se);
653
654 throw se;
655 }
656 }
657
658 public static com.liferay.portlet.journal.model.JournalFolder moveFolderFromTrash(
659 HttpPrincipal httpPrincipal, long folderId, long parentFolderId,
660 com.liferay.portal.service.ServiceContext serviceContext)
661 throws com.liferay.portal.kernel.exception.PortalException,
662 com.liferay.portal.kernel.exception.SystemException {
663 try {
664 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
665 "moveFolderFromTrash", _moveFolderFromTrashParameterTypes18);
666
667 MethodHandler methodHandler = new MethodHandler(methodKey,
668 folderId, parentFolderId, serviceContext);
669
670 Object returnObj = null;
671
672 try {
673 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
674 }
675 catch (Exception e) {
676 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
677 throw (com.liferay.portal.kernel.exception.PortalException)e;
678 }
679
680 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
681 throw (com.liferay.portal.kernel.exception.SystemException)e;
682 }
683
684 throw new com.liferay.portal.kernel.exception.SystemException(e);
685 }
686
687 return (com.liferay.portlet.journal.model.JournalFolder)returnObj;
688 }
689 catch (com.liferay.portal.kernel.exception.SystemException se) {
690 _log.error(se, se);
691
692 throw se;
693 }
694 }
695
696 public static void moveFolderToTrash(HttpPrincipal httpPrincipal,
697 long folderId)
698 throws com.liferay.portal.kernel.exception.PortalException,
699 com.liferay.portal.kernel.exception.SystemException {
700 try {
701 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
702 "moveFolderToTrash", _moveFolderToTrashParameterTypes19);
703
704 MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
705
706 try {
707 TunnelUtil.invoke(httpPrincipal, methodHandler);
708 }
709 catch (Exception e) {
710 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
711 throw (com.liferay.portal.kernel.exception.PortalException)e;
712 }
713
714 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
715 throw (com.liferay.portal.kernel.exception.SystemException)e;
716 }
717
718 throw new com.liferay.portal.kernel.exception.SystemException(e);
719 }
720 }
721 catch (com.liferay.portal.kernel.exception.SystemException se) {
722 _log.error(se, se);
723
724 throw se;
725 }
726 }
727
728 public static void restoreFolderFromTrash(HttpPrincipal httpPrincipal,
729 long folderId)
730 throws com.liferay.portal.kernel.exception.PortalException,
731 com.liferay.portal.kernel.exception.SystemException {
732 try {
733 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
734 "restoreFolderFromTrash",
735 _restoreFolderFromTrashParameterTypes20);
736
737 MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
738
739 try {
740 TunnelUtil.invoke(httpPrincipal, methodHandler);
741 }
742 catch (Exception e) {
743 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
744 throw (com.liferay.portal.kernel.exception.PortalException)e;
745 }
746
747 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
748 throw (com.liferay.portal.kernel.exception.SystemException)e;
749 }
750
751 throw new com.liferay.portal.kernel.exception.SystemException(e);
752 }
753 }
754 catch (com.liferay.portal.kernel.exception.SystemException se) {
755 _log.error(se, se);
756
757 throw se;
758 }
759 }
760
761 public static com.liferay.portlet.journal.model.JournalFolder updateFolder(
762 HttpPrincipal httpPrincipal, long folderId, long parentFolderId,
763 java.lang.String name, java.lang.String description,
764 boolean mergeWithParentFolder,
765 com.liferay.portal.service.ServiceContext serviceContext)
766 throws com.liferay.portal.kernel.exception.PortalException,
767 com.liferay.portal.kernel.exception.SystemException {
768 try {
769 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
770 "updateFolder", _updateFolderParameterTypes21);
771
772 MethodHandler methodHandler = new MethodHandler(methodKey,
773 folderId, parentFolderId, name, description,
774 mergeWithParentFolder, serviceContext);
775
776 Object returnObj = null;
777
778 try {
779 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
780 }
781 catch (Exception e) {
782 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
783 throw (com.liferay.portal.kernel.exception.PortalException)e;
784 }
785
786 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
787 throw (com.liferay.portal.kernel.exception.SystemException)e;
788 }
789
790 throw new com.liferay.portal.kernel.exception.SystemException(e);
791 }
792
793 return (com.liferay.portlet.journal.model.JournalFolder)returnObj;
794 }
795 catch (com.liferay.portal.kernel.exception.SystemException se) {
796 _log.error(se, se);
797
798 throw se;
799 }
800 }
801
802 private static Log _log = LogFactoryUtil.getLog(JournalFolderServiceHttp.class);
803 private static final Class<?>[] _addFolderParameterTypes0 = new Class[] {
804 long.class, long.class, java.lang.String.class,
805 java.lang.String.class,
806 com.liferay.portal.service.ServiceContext.class
807 };
808 private static final Class<?>[] _deleteFolderParameterTypes1 = new Class[] {
809 long.class
810 };
811 private static final Class<?>[] _deleteFolderParameterTypes2 = new Class[] {
812 long.class, boolean.class
813 };
814 private static final Class<?>[] _getFolderParameterTypes3 = new Class[] {
815 long.class
816 };
817 private static final Class<?>[] _getFolderIdsParameterTypes4 = new Class[] {
818 long.class, long.class
819 };
820 private static final Class<?>[] _getFoldersParameterTypes5 = new Class[] {
821 long.class
822 };
823 private static final Class<?>[] _getFoldersParameterTypes6 = new Class[] {
824 long.class, long.class
825 };
826 private static final Class<?>[] _getFoldersParameterTypes7 = new Class[] {
827 long.class, long.class, int.class
828 };
829 private static final Class<?>[] _getFoldersParameterTypes8 = new Class[] {
830 long.class, long.class, int.class, int.class
831 };
832 private static final Class<?>[] _getFoldersParameterTypes9 = new Class[] {
833 long.class, long.class, int.class, int.class, int.class
834 };
835 private static final Class<?>[] _getFoldersAndArticlesParameterTypes10 = new Class[] {
836 long.class, long.class, int.class, int.class,
837 com.liferay.portal.kernel.util.OrderByComparator.class
838 };
839 private static final Class<?>[] _getFoldersAndArticlesCountParameterTypes11 = new Class[] {
840 long.class, java.util.List.class, int.class
841 };
842 private static final Class<?>[] _getFoldersAndArticlesCountParameterTypes12 = new Class[] {
843 long.class, long.class
844 };
845 private static final Class<?>[] _getFoldersAndArticlesCountParameterTypes13 = new Class[] {
846 long.class, long.class, int.class
847 };
848 private static final Class<?>[] _getFoldersCountParameterTypes14 = new Class[] {
849 long.class, long.class
850 };
851 private static final Class<?>[] _getSubfolderIdsParameterTypes15 = new Class[] {
852 java.util.List.class, long.class, long.class
853 };
854 private static final Class<?>[] _getSubfolderIdsParameterTypes16 = new Class[] {
855 long.class, long.class, boolean.class
856 };
857 private static final Class<?>[] _moveFolderParameterTypes17 = new Class[] {
858 long.class, long.class,
859 com.liferay.portal.service.ServiceContext.class
860 };
861 private static final Class<?>[] _moveFolderFromTrashParameterTypes18 = new Class[] {
862 long.class, long.class,
863 com.liferay.portal.service.ServiceContext.class
864 };
865 private static final Class<?>[] _moveFolderToTrashParameterTypes19 = new Class[] {
866 long.class
867 };
868 private static final Class<?>[] _restoreFolderFromTrashParameterTypes20 = new Class[] {
869 long.class
870 };
871 private static final Class<?>[] _updateFolderParameterTypes21 = new Class[] {
872 long.class, long.class, java.lang.String.class,
873 java.lang.String.class, boolean.class,
874 com.liferay.portal.service.ServiceContext.class
875 };
876 }