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 start,
394 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, 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 int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal,
427 long groupId, java.util.List<java.lang.Long> folderIds, int status)
428 throws com.liferay.portal.kernel.exception.SystemException {
429 try {
430 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
431 "getFoldersAndArticlesCount",
432 _getFoldersAndArticlesCountParameterTypes11);
433
434 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
435 folderIds, status);
436
437 Object returnObj = null;
438
439 try {
440 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
441 }
442 catch (Exception e) {
443 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
444 throw (com.liferay.portal.kernel.exception.SystemException)e;
445 }
446
447 throw new com.liferay.portal.kernel.exception.SystemException(e);
448 }
449
450 return ((Integer)returnObj).intValue();
451 }
452 catch (com.liferay.portal.kernel.exception.SystemException se) {
453 _log.error(se, se);
454
455 throw se;
456 }
457 }
458
459 public static int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal,
460 long groupId, long folderId)
461 throws com.liferay.portal.kernel.exception.SystemException {
462 try {
463 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
464 "getFoldersAndArticlesCount",
465 _getFoldersAndArticlesCountParameterTypes12);
466
467 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
468 folderId);
469
470 Object returnObj = null;
471
472 try {
473 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
474 }
475 catch (Exception e) {
476 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
477 throw (com.liferay.portal.kernel.exception.SystemException)e;
478 }
479
480 throw new com.liferay.portal.kernel.exception.SystemException(e);
481 }
482
483 return ((Integer)returnObj).intValue();
484 }
485 catch (com.liferay.portal.kernel.exception.SystemException se) {
486 _log.error(se, se);
487
488 throw se;
489 }
490 }
491
492 public static int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal,
493 long groupId, long folderId, int status)
494 throws com.liferay.portal.kernel.exception.SystemException {
495 try {
496 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
497 "getFoldersAndArticlesCount",
498 _getFoldersAndArticlesCountParameterTypes13);
499
500 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
501 folderId, status);
502
503 Object returnObj = null;
504
505 try {
506 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
507 }
508 catch (Exception e) {
509 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
510 throw (com.liferay.portal.kernel.exception.SystemException)e;
511 }
512
513 throw new com.liferay.portal.kernel.exception.SystemException(e);
514 }
515
516 return ((Integer)returnObj).intValue();
517 }
518 catch (com.liferay.portal.kernel.exception.SystemException se) {
519 _log.error(se, se);
520
521 throw se;
522 }
523 }
524
525 public static int getFoldersCount(HttpPrincipal httpPrincipal,
526 long groupId, long parentFolderId)
527 throws com.liferay.portal.kernel.exception.SystemException {
528 try {
529 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
530 "getFoldersCount", _getFoldersCountParameterTypes14);
531
532 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
533 parentFolderId);
534
535 Object returnObj = null;
536
537 try {
538 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
539 }
540 catch (Exception e) {
541 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
542 throw (com.liferay.portal.kernel.exception.SystemException)e;
543 }
544
545 throw new com.liferay.portal.kernel.exception.SystemException(e);
546 }
547
548 return ((Integer)returnObj).intValue();
549 }
550 catch (com.liferay.portal.kernel.exception.SystemException se) {
551 _log.error(se, se);
552
553 throw se;
554 }
555 }
556
557 public static int getFoldersCount(HttpPrincipal httpPrincipal,
558 long groupId, long parentFolderId, int status)
559 throws com.liferay.portal.kernel.exception.SystemException {
560 try {
561 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
562 "getFoldersCount", _getFoldersCountParameterTypes15);
563
564 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
565 parentFolderId, status);
566
567 Object returnObj = null;
568
569 try {
570 returnObj = 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 return ((Integer)returnObj).intValue();
581 }
582 catch (com.liferay.portal.kernel.exception.SystemException se) {
583 _log.error(se, se);
584
585 throw se;
586 }
587 }
588
589 public static void getSubfolderIds(HttpPrincipal httpPrincipal,
590 java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
591 throws com.liferay.portal.kernel.exception.SystemException {
592 try {
593 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
594 "getSubfolderIds", _getSubfolderIdsParameterTypes16);
595
596 MethodHandler methodHandler = new MethodHandler(methodKey,
597 folderIds, groupId, folderId);
598
599 try {
600 TunnelUtil.invoke(httpPrincipal, methodHandler);
601 }
602 catch (Exception e) {
603 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
604 throw (com.liferay.portal.kernel.exception.SystemException)e;
605 }
606
607 throw new com.liferay.portal.kernel.exception.SystemException(e);
608 }
609 }
610 catch (com.liferay.portal.kernel.exception.SystemException se) {
611 _log.error(se, se);
612
613 throw se;
614 }
615 }
616
617 public static java.util.List<java.lang.Long> getSubfolderIds(
618 HttpPrincipal httpPrincipal, long groupId, long folderId,
619 boolean recurse)
620 throws com.liferay.portal.kernel.exception.SystemException {
621 try {
622 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
623 "getSubfolderIds", _getSubfolderIdsParameterTypes17);
624
625 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
626 folderId, recurse);
627
628 Object returnObj = null;
629
630 try {
631 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
632 }
633 catch (Exception e) {
634 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
635 throw (com.liferay.portal.kernel.exception.SystemException)e;
636 }
637
638 throw new com.liferay.portal.kernel.exception.SystemException(e);
639 }
640
641 return (java.util.List<java.lang.Long>)returnObj;
642 }
643 catch (com.liferay.portal.kernel.exception.SystemException se) {
644 _log.error(se, se);
645
646 throw se;
647 }
648 }
649
650 public static com.liferay.portlet.journal.model.JournalFolder moveFolder(
651 HttpPrincipal httpPrincipal, long folderId, long parentFolderId,
652 com.liferay.portal.service.ServiceContext serviceContext)
653 throws com.liferay.portal.kernel.exception.PortalException,
654 com.liferay.portal.kernel.exception.SystemException {
655 try {
656 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
657 "moveFolder", _moveFolderParameterTypes18);
658
659 MethodHandler methodHandler = new MethodHandler(methodKey,
660 folderId, parentFolderId, serviceContext);
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.PortalException) {
669 throw (com.liferay.portal.kernel.exception.PortalException)e;
670 }
671
672 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
673 throw (com.liferay.portal.kernel.exception.SystemException)e;
674 }
675
676 throw new com.liferay.portal.kernel.exception.SystemException(e);
677 }
678
679 return (com.liferay.portlet.journal.model.JournalFolder)returnObj;
680 }
681 catch (com.liferay.portal.kernel.exception.SystemException se) {
682 _log.error(se, se);
683
684 throw se;
685 }
686 }
687
688 public static com.liferay.portlet.journal.model.JournalFolder moveFolderFromTrash(
689 HttpPrincipal httpPrincipal, long folderId, long parentFolderId,
690 com.liferay.portal.service.ServiceContext serviceContext)
691 throws com.liferay.portal.kernel.exception.PortalException,
692 com.liferay.portal.kernel.exception.SystemException {
693 try {
694 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
695 "moveFolderFromTrash", _moveFolderFromTrashParameterTypes19);
696
697 MethodHandler methodHandler = new MethodHandler(methodKey,
698 folderId, parentFolderId, serviceContext);
699
700 Object returnObj = null;
701
702 try {
703 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
704 }
705 catch (Exception e) {
706 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
707 throw (com.liferay.portal.kernel.exception.PortalException)e;
708 }
709
710 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
711 throw (com.liferay.portal.kernel.exception.SystemException)e;
712 }
713
714 throw new com.liferay.portal.kernel.exception.SystemException(e);
715 }
716
717 return (com.liferay.portlet.journal.model.JournalFolder)returnObj;
718 }
719 catch (com.liferay.portal.kernel.exception.SystemException se) {
720 _log.error(se, se);
721
722 throw se;
723 }
724 }
725
726 public static com.liferay.portlet.journal.model.JournalFolder moveFolderToTrash(
727 HttpPrincipal httpPrincipal, long folderId)
728 throws com.liferay.portal.kernel.exception.PortalException,
729 com.liferay.portal.kernel.exception.SystemException {
730 try {
731 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
732 "moveFolderToTrash", _moveFolderToTrashParameterTypes20);
733
734 MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
735
736 Object returnObj = null;
737
738 try {
739 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
740 }
741 catch (Exception e) {
742 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
743 throw (com.liferay.portal.kernel.exception.PortalException)e;
744 }
745
746 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
747 throw (com.liferay.portal.kernel.exception.SystemException)e;
748 }
749
750 throw new com.liferay.portal.kernel.exception.SystemException(e);
751 }
752
753 return (com.liferay.portlet.journal.model.JournalFolder)returnObj;
754 }
755 catch (com.liferay.portal.kernel.exception.SystemException se) {
756 _log.error(se, se);
757
758 throw se;
759 }
760 }
761
762 public static void restoreFolderFromTrash(HttpPrincipal httpPrincipal,
763 long folderId)
764 throws com.liferay.portal.kernel.exception.PortalException,
765 com.liferay.portal.kernel.exception.SystemException {
766 try {
767 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
768 "restoreFolderFromTrash",
769 _restoreFolderFromTrashParameterTypes21);
770
771 MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
772
773 try {
774 TunnelUtil.invoke(httpPrincipal, methodHandler);
775 }
776 catch (Exception e) {
777 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
778 throw (com.liferay.portal.kernel.exception.PortalException)e;
779 }
780
781 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
782 throw (com.liferay.portal.kernel.exception.SystemException)e;
783 }
784
785 throw new com.liferay.portal.kernel.exception.SystemException(e);
786 }
787 }
788 catch (com.liferay.portal.kernel.exception.SystemException se) {
789 _log.error(se, se);
790
791 throw se;
792 }
793 }
794
795 public static com.liferay.portlet.journal.model.JournalFolder updateFolder(
796 HttpPrincipal httpPrincipal, long folderId, long parentFolderId,
797 java.lang.String name, java.lang.String description,
798 boolean mergeWithParentFolder,
799 com.liferay.portal.service.ServiceContext serviceContext)
800 throws com.liferay.portal.kernel.exception.PortalException,
801 com.liferay.portal.kernel.exception.SystemException {
802 try {
803 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
804 "updateFolder", _updateFolderParameterTypes22);
805
806 MethodHandler methodHandler = new MethodHandler(methodKey,
807 folderId, parentFolderId, name, description,
808 mergeWithParentFolder, serviceContext);
809
810 Object returnObj = null;
811
812 try {
813 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
814 }
815 catch (Exception e) {
816 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
817 throw (com.liferay.portal.kernel.exception.PortalException)e;
818 }
819
820 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
821 throw (com.liferay.portal.kernel.exception.SystemException)e;
822 }
823
824 throw new com.liferay.portal.kernel.exception.SystemException(e);
825 }
826
827 return (com.liferay.portlet.journal.model.JournalFolder)returnObj;
828 }
829 catch (com.liferay.portal.kernel.exception.SystemException se) {
830 _log.error(se, se);
831
832 throw se;
833 }
834 }
835
836 private static Log _log = LogFactoryUtil.getLog(JournalFolderServiceHttp.class);
837 private static final Class<?>[] _addFolderParameterTypes0 = new Class[] {
838 long.class, long.class, java.lang.String.class,
839 java.lang.String.class,
840 com.liferay.portal.service.ServiceContext.class
841 };
842 private static final Class<?>[] _deleteFolderParameterTypes1 = new Class[] {
843 long.class
844 };
845 private static final Class<?>[] _deleteFolderParameterTypes2 = new Class[] {
846 long.class, boolean.class
847 };
848 private static final Class<?>[] _getFolderParameterTypes3 = new Class[] {
849 long.class
850 };
851 private static final Class<?>[] _getFolderIdsParameterTypes4 = new Class[] {
852 long.class, long.class
853 };
854 private static final Class<?>[] _getFoldersParameterTypes5 = new Class[] {
855 long.class
856 };
857 private static final Class<?>[] _getFoldersParameterTypes6 = new Class[] {
858 long.class, long.class
859 };
860 private static final Class<?>[] _getFoldersParameterTypes7 = new Class[] {
861 long.class, long.class, int.class
862 };
863 private static final Class<?>[] _getFoldersParameterTypes8 = new Class[] {
864 long.class, long.class, int.class, int.class
865 };
866 private static final Class<?>[] _getFoldersParameterTypes9 = new Class[] {
867 long.class, long.class, int.class, int.class, int.class
868 };
869 private static final Class<?>[] _getFoldersAndArticlesParameterTypes10 = new Class[] {
870 long.class, long.class, int.class, int.class,
871 com.liferay.portal.kernel.util.OrderByComparator.class
872 };
873 private static final Class<?>[] _getFoldersAndArticlesCountParameterTypes11 = new Class[] {
874 long.class, java.util.List.class, int.class
875 };
876 private static final Class<?>[] _getFoldersAndArticlesCountParameterTypes12 = new Class[] {
877 long.class, long.class
878 };
879 private static final Class<?>[] _getFoldersAndArticlesCountParameterTypes13 = new Class[] {
880 long.class, long.class, int.class
881 };
882 private static final Class<?>[] _getFoldersCountParameterTypes14 = new Class[] {
883 long.class, long.class
884 };
885 private static final Class<?>[] _getFoldersCountParameterTypes15 = new Class[] {
886 long.class, long.class, int.class
887 };
888 private static final Class<?>[] _getSubfolderIdsParameterTypes16 = new Class[] {
889 java.util.List.class, long.class, long.class
890 };
891 private static final Class<?>[] _getSubfolderIdsParameterTypes17 = new Class[] {
892 long.class, long.class, boolean.class
893 };
894 private static final Class<?>[] _moveFolderParameterTypes18 = new Class[] {
895 long.class, long.class,
896 com.liferay.portal.service.ServiceContext.class
897 };
898 private static final Class<?>[] _moveFolderFromTrashParameterTypes19 = new Class[] {
899 long.class, long.class,
900 com.liferay.portal.service.ServiceContext.class
901 };
902 private static final Class<?>[] _moveFolderToTrashParameterTypes20 = new Class[] {
903 long.class
904 };
905 private static final Class<?>[] _restoreFolderFromTrashParameterTypes21 = new Class[] {
906 long.class
907 };
908 private static final Class<?>[] _updateFolderParameterTypes22 = new Class[] {
909 long.class, long.class, java.lang.String.class,
910 java.lang.String.class, boolean.class,
911 com.liferay.portal.service.ServiceContext.class
912 };
913 }