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 getFolder(
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 "getFolder", _getFolderParameterTypes3);
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 java.util.List<java.lang.Long> getFolderIds(
195 HttpPrincipal httpPrincipal, long groupId, 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 "getFolderIds", _getFolderIdsParameterTypes4);
201
202 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
203 folderId);
204
205 Object returnObj = null;
206
207 try {
208 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
209 }
210 catch (Exception e) {
211 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
212 throw (com.liferay.portal.kernel.exception.PortalException)e;
213 }
214
215 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
216 throw (com.liferay.portal.kernel.exception.SystemException)e;
217 }
218
219 throw new com.liferay.portal.kernel.exception.SystemException(e);
220 }
221
222 return (java.util.List<java.lang.Long>)returnObj;
223 }
224 catch (com.liferay.portal.kernel.exception.SystemException se) {
225 _log.error(se, se);
226
227 throw se;
228 }
229 }
230
231 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
232 HttpPrincipal httpPrincipal, long groupId)
233 throws com.liferay.portal.kernel.exception.SystemException {
234 try {
235 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
236 "getFolders", _getFoldersParameterTypes5);
237
238 MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
239
240 Object returnObj = null;
241
242 try {
243 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
244 }
245 catch (Exception e) {
246 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
247 throw (com.liferay.portal.kernel.exception.SystemException)e;
248 }
249
250 throw new com.liferay.portal.kernel.exception.SystemException(e);
251 }
252
253 return (java.util.List<com.liferay.portlet.journal.model.JournalFolder>)returnObj;
254 }
255 catch (com.liferay.portal.kernel.exception.SystemException se) {
256 _log.error(se, se);
257
258 throw se;
259 }
260 }
261
262 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
263 HttpPrincipal httpPrincipal, long groupId, long parentFolderId)
264 throws com.liferay.portal.kernel.exception.SystemException {
265 try {
266 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
267 "getFolders", _getFoldersParameterTypes6);
268
269 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
270 parentFolderId);
271
272 Object returnObj = null;
273
274 try {
275 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
276 }
277 catch (Exception e) {
278 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
279 throw (com.liferay.portal.kernel.exception.SystemException)e;
280 }
281
282 throw new com.liferay.portal.kernel.exception.SystemException(e);
283 }
284
285 return (java.util.List<com.liferay.portlet.journal.model.JournalFolder>)returnObj;
286 }
287 catch (com.liferay.portal.kernel.exception.SystemException se) {
288 _log.error(se, se);
289
290 throw se;
291 }
292 }
293
294 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
295 HttpPrincipal httpPrincipal, long groupId, long parentFolderId,
296 int status) throws com.liferay.portal.kernel.exception.SystemException {
297 try {
298 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
299 "getFolders", _getFoldersParameterTypes7);
300
301 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
302 parentFolderId, status);
303
304 Object returnObj = null;
305
306 try {
307 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
308 }
309 catch (Exception e) {
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 (java.util.List<com.liferay.portlet.journal.model.JournalFolder>)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 java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
327 HttpPrincipal httpPrincipal, long groupId, long parentFolderId,
328 int start, int end)
329 throws com.liferay.portal.kernel.exception.SystemException {
330 try {
331 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
332 "getFolders", _getFoldersParameterTypes8);
333
334 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
335 parentFolderId, start, end);
336
337 Object returnObj = null;
338
339 try {
340 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
341 }
342 catch (Exception e) {
343 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
344 throw (com.liferay.portal.kernel.exception.SystemException)e;
345 }
346
347 throw new com.liferay.portal.kernel.exception.SystemException(e);
348 }
349
350 return (java.util.List<com.liferay.portlet.journal.model.JournalFolder>)returnObj;
351 }
352 catch (com.liferay.portal.kernel.exception.SystemException se) {
353 _log.error(se, se);
354
355 throw se;
356 }
357 }
358
359 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
360 HttpPrincipal httpPrincipal, long groupId, long parentFolderId,
361 int status, int start, int end)
362 throws com.liferay.portal.kernel.exception.SystemException {
363 try {
364 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
365 "getFolders", _getFoldersParameterTypes9);
366
367 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
368 parentFolderId, status, start, end);
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.SystemException) {
377 throw (com.liferay.portal.kernel.exception.SystemException)e;
378 }
379
380 throw new com.liferay.portal.kernel.exception.SystemException(e);
381 }
382
383 return (java.util.List<com.liferay.portlet.journal.model.JournalFolder>)returnObj;
384 }
385 catch (com.liferay.portal.kernel.exception.SystemException se) {
386 _log.error(se, se);
387
388 throw se;
389 }
390 }
391
392 public static java.util.List<java.lang.Object> getFoldersAndArticles(
393 HttpPrincipal httpPrincipal, long groupId, long folderId, int status,
394 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
395 throws com.liferay.portal.kernel.exception.SystemException {
396 try {
397 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
398 "getFoldersAndArticles",
399 _getFoldersAndArticlesParameterTypes10);
400
401 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
402 folderId, status, start, end, obc);
403
404 Object returnObj = null;
405
406 try {
407 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
408 }
409 catch (Exception e) {
410 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
411 throw (com.liferay.portal.kernel.exception.SystemException)e;
412 }
413
414 throw new com.liferay.portal.kernel.exception.SystemException(e);
415 }
416
417 return (java.util.List<java.lang.Object>)returnObj;
418 }
419 catch (com.liferay.portal.kernel.exception.SystemException se) {
420 _log.error(se, se);
421
422 throw se;
423 }
424 }
425
426 public static java.util.List<java.lang.Object> getFoldersAndArticles(
427 HttpPrincipal httpPrincipal, long groupId, long folderId, int start,
428 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
429 throws com.liferay.portal.kernel.exception.SystemException {
430 try {
431 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
432 "getFoldersAndArticles",
433 _getFoldersAndArticlesParameterTypes11);
434
435 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
436 folderId, start, end, obc);
437
438 Object returnObj = null;
439
440 try {
441 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
442 }
443 catch (Exception e) {
444 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
445 throw (com.liferay.portal.kernel.exception.SystemException)e;
446 }
447
448 throw new com.liferay.portal.kernel.exception.SystemException(e);
449 }
450
451 return (java.util.List<java.lang.Object>)returnObj;
452 }
453 catch (com.liferay.portal.kernel.exception.SystemException se) {
454 _log.error(se, se);
455
456 throw se;
457 }
458 }
459
460 public static int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal,
461 long groupId, java.util.List<java.lang.Long> folderIds, int status)
462 throws com.liferay.portal.kernel.exception.SystemException {
463 try {
464 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
465 "getFoldersAndArticlesCount",
466 _getFoldersAndArticlesCountParameterTypes12);
467
468 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
469 folderIds, status);
470
471 Object returnObj = null;
472
473 try {
474 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
475 }
476 catch (Exception e) {
477 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
478 throw (com.liferay.portal.kernel.exception.SystemException)e;
479 }
480
481 throw new com.liferay.portal.kernel.exception.SystemException(e);
482 }
483
484 return ((Integer)returnObj).intValue();
485 }
486 catch (com.liferay.portal.kernel.exception.SystemException se) {
487 _log.error(se, se);
488
489 throw se;
490 }
491 }
492
493 public static int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal,
494 long groupId, long folderId)
495 throws com.liferay.portal.kernel.exception.SystemException {
496 try {
497 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
498 "getFoldersAndArticlesCount",
499 _getFoldersAndArticlesCountParameterTypes13);
500
501 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
502 folderId);
503
504 Object returnObj = null;
505
506 try {
507 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
508 }
509 catch (Exception e) {
510 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
511 throw (com.liferay.portal.kernel.exception.SystemException)e;
512 }
513
514 throw new com.liferay.portal.kernel.exception.SystemException(e);
515 }
516
517 return ((Integer)returnObj).intValue();
518 }
519 catch (com.liferay.portal.kernel.exception.SystemException se) {
520 _log.error(se, se);
521
522 throw se;
523 }
524 }
525
526 public static int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal,
527 long groupId, long folderId, int status)
528 throws com.liferay.portal.kernel.exception.SystemException {
529 try {
530 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
531 "getFoldersAndArticlesCount",
532 _getFoldersAndArticlesCountParameterTypes14);
533
534 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
535 folderId, status);
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 int getFoldersCount(HttpPrincipal httpPrincipal,
560 long groupId, long parentFolderId)
561 throws com.liferay.portal.kernel.exception.SystemException {
562 try {
563 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
564 "getFoldersCount", _getFoldersCountParameterTypes15);
565
566 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
567 parentFolderId);
568
569 Object returnObj = null;
570
571 try {
572 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
573 }
574 catch (Exception e) {
575 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
576 throw (com.liferay.portal.kernel.exception.SystemException)e;
577 }
578
579 throw new com.liferay.portal.kernel.exception.SystemException(e);
580 }
581
582 return ((Integer)returnObj).intValue();
583 }
584 catch (com.liferay.portal.kernel.exception.SystemException se) {
585 _log.error(se, se);
586
587 throw se;
588 }
589 }
590
591 public static int getFoldersCount(HttpPrincipal httpPrincipal,
592 long groupId, long parentFolderId, int status)
593 throws com.liferay.portal.kernel.exception.SystemException {
594 try {
595 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
596 "getFoldersCount", _getFoldersCountParameterTypes16);
597
598 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
599 parentFolderId, status);
600
601 Object returnObj = null;
602
603 try {
604 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
605 }
606 catch (Exception e) {
607 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
608 throw (com.liferay.portal.kernel.exception.SystemException)e;
609 }
610
611 throw new com.liferay.portal.kernel.exception.SystemException(e);
612 }
613
614 return ((Integer)returnObj).intValue();
615 }
616 catch (com.liferay.portal.kernel.exception.SystemException se) {
617 _log.error(se, se);
618
619 throw se;
620 }
621 }
622
623 public static void getSubfolderIds(HttpPrincipal httpPrincipal,
624 java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
625 throws com.liferay.portal.kernel.exception.SystemException {
626 try {
627 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
628 "getSubfolderIds", _getSubfolderIdsParameterTypes17);
629
630 MethodHandler methodHandler = new MethodHandler(methodKey,
631 folderIds, groupId, folderId);
632
633 try {
634 TunnelUtil.invoke(httpPrincipal, methodHandler);
635 }
636 catch (Exception e) {
637 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
638 throw (com.liferay.portal.kernel.exception.SystemException)e;
639 }
640
641 throw new com.liferay.portal.kernel.exception.SystemException(e);
642 }
643 }
644 catch (com.liferay.portal.kernel.exception.SystemException se) {
645 _log.error(se, se);
646
647 throw se;
648 }
649 }
650
651 public static java.util.List<java.lang.Long> getSubfolderIds(
652 HttpPrincipal httpPrincipal, long groupId, long folderId,
653 boolean recurse)
654 throws com.liferay.portal.kernel.exception.SystemException {
655 try {
656 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
657 "getSubfolderIds", _getSubfolderIdsParameterTypes18);
658
659 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
660 folderId, recurse);
661
662 Object returnObj = null;
663
664 try {
665 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
666 }
667 catch (Exception e) {
668 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
669 throw (com.liferay.portal.kernel.exception.SystemException)e;
670 }
671
672 throw new com.liferay.portal.kernel.exception.SystemException(e);
673 }
674
675 return (java.util.List<java.lang.Long>)returnObj;
676 }
677 catch (com.liferay.portal.kernel.exception.SystemException se) {
678 _log.error(se, se);
679
680 throw se;
681 }
682 }
683
684 public static com.liferay.portlet.journal.model.JournalFolder moveFolder(
685 HttpPrincipal httpPrincipal, long folderId, long parentFolderId,
686 com.liferay.portal.service.ServiceContext serviceContext)
687 throws com.liferay.portal.kernel.exception.PortalException,
688 com.liferay.portal.kernel.exception.SystemException {
689 try {
690 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
691 "moveFolder", _moveFolderParameterTypes19);
692
693 MethodHandler methodHandler = new MethodHandler(methodKey,
694 folderId, parentFolderId, serviceContext);
695
696 Object returnObj = null;
697
698 try {
699 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
700 }
701 catch (Exception e) {
702 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
703 throw (com.liferay.portal.kernel.exception.PortalException)e;
704 }
705
706 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
707 throw (com.liferay.portal.kernel.exception.SystemException)e;
708 }
709
710 throw new com.liferay.portal.kernel.exception.SystemException(e);
711 }
712
713 return (com.liferay.portlet.journal.model.JournalFolder)returnObj;
714 }
715 catch (com.liferay.portal.kernel.exception.SystemException se) {
716 _log.error(se, se);
717
718 throw se;
719 }
720 }
721
722 public static com.liferay.portlet.journal.model.JournalFolder moveFolderFromTrash(
723 HttpPrincipal httpPrincipal, long folderId, long parentFolderId,
724 com.liferay.portal.service.ServiceContext serviceContext)
725 throws com.liferay.portal.kernel.exception.PortalException,
726 com.liferay.portal.kernel.exception.SystemException {
727 try {
728 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
729 "moveFolderFromTrash", _moveFolderFromTrashParameterTypes20);
730
731 MethodHandler methodHandler = new MethodHandler(methodKey,
732 folderId, parentFolderId, serviceContext);
733
734 Object returnObj = null;
735
736 try {
737 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
738 }
739 catch (Exception e) {
740 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
741 throw (com.liferay.portal.kernel.exception.PortalException)e;
742 }
743
744 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
745 throw (com.liferay.portal.kernel.exception.SystemException)e;
746 }
747
748 throw new com.liferay.portal.kernel.exception.SystemException(e);
749 }
750
751 return (com.liferay.portlet.journal.model.JournalFolder)returnObj;
752 }
753 catch (com.liferay.portal.kernel.exception.SystemException se) {
754 _log.error(se, se);
755
756 throw se;
757 }
758 }
759
760 public static com.liferay.portlet.journal.model.JournalFolder moveFolderToTrash(
761 HttpPrincipal httpPrincipal, long folderId)
762 throws com.liferay.portal.kernel.exception.PortalException,
763 com.liferay.portal.kernel.exception.SystemException {
764 try {
765 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
766 "moveFolderToTrash", _moveFolderToTrashParameterTypes21);
767
768 MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
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.PortalException) {
777 throw (com.liferay.portal.kernel.exception.PortalException)e;
778 }
779
780 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
781 throw (com.liferay.portal.kernel.exception.SystemException)e;
782 }
783
784 throw new com.liferay.portal.kernel.exception.SystemException(e);
785 }
786
787 return (com.liferay.portlet.journal.model.JournalFolder)returnObj;
788 }
789 catch (com.liferay.portal.kernel.exception.SystemException se) {
790 _log.error(se, se);
791
792 throw se;
793 }
794 }
795
796 public static void restoreFolderFromTrash(HttpPrincipal httpPrincipal,
797 long folderId)
798 throws com.liferay.portal.kernel.exception.PortalException,
799 com.liferay.portal.kernel.exception.SystemException {
800 try {
801 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
802 "restoreFolderFromTrash",
803 _restoreFolderFromTrashParameterTypes22);
804
805 MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
806
807 try {
808 TunnelUtil.invoke(httpPrincipal, methodHandler);
809 }
810 catch (Exception e) {
811 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
812 throw (com.liferay.portal.kernel.exception.PortalException)e;
813 }
814
815 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
816 throw (com.liferay.portal.kernel.exception.SystemException)e;
817 }
818
819 throw new com.liferay.portal.kernel.exception.SystemException(e);
820 }
821 }
822 catch (com.liferay.portal.kernel.exception.SystemException se) {
823 _log.error(se, se);
824
825 throw se;
826 }
827 }
828
829 public static com.liferay.portlet.journal.model.JournalFolder updateFolder(
830 HttpPrincipal httpPrincipal, long folderId, long parentFolderId,
831 java.lang.String name, java.lang.String description,
832 boolean mergeWithParentFolder,
833 com.liferay.portal.service.ServiceContext serviceContext)
834 throws com.liferay.portal.kernel.exception.PortalException,
835 com.liferay.portal.kernel.exception.SystemException {
836 try {
837 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
838 "updateFolder", _updateFolderParameterTypes23);
839
840 MethodHandler methodHandler = new MethodHandler(methodKey,
841 folderId, parentFolderId, name, description,
842 mergeWithParentFolder, serviceContext);
843
844 Object returnObj = null;
845
846 try {
847 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
848 }
849 catch (Exception e) {
850 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
851 throw (com.liferay.portal.kernel.exception.PortalException)e;
852 }
853
854 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
855 throw (com.liferay.portal.kernel.exception.SystemException)e;
856 }
857
858 throw new com.liferay.portal.kernel.exception.SystemException(e);
859 }
860
861 return (com.liferay.portlet.journal.model.JournalFolder)returnObj;
862 }
863 catch (com.liferay.portal.kernel.exception.SystemException se) {
864 _log.error(se, se);
865
866 throw se;
867 }
868 }
869
870 private static Log _log = LogFactoryUtil.getLog(JournalFolderServiceHttp.class);
871 private static final Class<?>[] _addFolderParameterTypes0 = new Class[] {
872 long.class, long.class, java.lang.String.class,
873 java.lang.String.class,
874 com.liferay.portal.service.ServiceContext.class
875 };
876 private static final Class<?>[] _deleteFolderParameterTypes1 = new Class[] {
877 long.class
878 };
879 private static final Class<?>[] _deleteFolderParameterTypes2 = new Class[] {
880 long.class, boolean.class
881 };
882 private static final Class<?>[] _getFolderParameterTypes3 = new Class[] {
883 long.class
884 };
885 private static final Class<?>[] _getFolderIdsParameterTypes4 = new Class[] {
886 long.class, long.class
887 };
888 private static final Class<?>[] _getFoldersParameterTypes5 = new Class[] {
889 long.class
890 };
891 private static final Class<?>[] _getFoldersParameterTypes6 = new Class[] {
892 long.class, long.class
893 };
894 private static final Class<?>[] _getFoldersParameterTypes7 = new Class[] {
895 long.class, long.class, int.class
896 };
897 private static final Class<?>[] _getFoldersParameterTypes8 = new Class[] {
898 long.class, long.class, int.class, int.class
899 };
900 private static final Class<?>[] _getFoldersParameterTypes9 = new Class[] {
901 long.class, long.class, int.class, int.class, int.class
902 };
903 private static final Class<?>[] _getFoldersAndArticlesParameterTypes10 = new Class[] {
904 long.class, long.class, int.class, int.class, int.class,
905 com.liferay.portal.kernel.util.OrderByComparator.class
906 };
907 private static final Class<?>[] _getFoldersAndArticlesParameterTypes11 = new Class[] {
908 long.class, long.class, int.class, int.class,
909 com.liferay.portal.kernel.util.OrderByComparator.class
910 };
911 private static final Class<?>[] _getFoldersAndArticlesCountParameterTypes12 = new Class[] {
912 long.class, java.util.List.class, int.class
913 };
914 private static final Class<?>[] _getFoldersAndArticlesCountParameterTypes13 = new Class[] {
915 long.class, long.class
916 };
917 private static final Class<?>[] _getFoldersAndArticlesCountParameterTypes14 = new Class[] {
918 long.class, long.class, int.class
919 };
920 private static final Class<?>[] _getFoldersCountParameterTypes15 = new Class[] {
921 long.class, long.class
922 };
923 private static final Class<?>[] _getFoldersCountParameterTypes16 = new Class[] {
924 long.class, long.class, int.class
925 };
926 private static final Class<?>[] _getSubfolderIdsParameterTypes17 = new Class[] {
927 java.util.List.class, long.class, long.class
928 };
929 private static final Class<?>[] _getSubfolderIdsParameterTypes18 = new Class[] {
930 long.class, long.class, boolean.class
931 };
932 private static final Class<?>[] _moveFolderParameterTypes19 = new Class[] {
933 long.class, long.class,
934 com.liferay.portal.service.ServiceContext.class
935 };
936 private static final Class<?>[] _moveFolderFromTrashParameterTypes20 = new Class[] {
937 long.class, long.class,
938 com.liferay.portal.service.ServiceContext.class
939 };
940 private static final Class<?>[] _moveFolderToTrashParameterTypes21 = new Class[] {
941 long.class
942 };
943 private static final Class<?>[] _restoreFolderFromTrashParameterTypes22 = new Class[] {
944 long.class
945 };
946 private static final Class<?>[] _updateFolderParameterTypes23 = new Class[] {
947 long.class, long.class, java.lang.String.class,
948 java.lang.String.class, boolean.class,
949 com.liferay.portal.service.ServiceContext.class
950 };
951 }