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 int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal,
497 long groupId, java.util.List<java.lang.Long> folderIds, int status)
498 throws com.liferay.portal.kernel.exception.SystemException {
499 try {
500 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
501 "getFoldersAndArticlesCount",
502 _getFoldersAndArticlesCountParameterTypes13);
503
504 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
505 folderIds, status);
506
507 Object returnObj = null;
508
509 try {
510 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
511 }
512 catch (Exception e) {
513 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
514 throw (com.liferay.portal.kernel.exception.SystemException)e;
515 }
516
517 throw new com.liferay.portal.kernel.exception.SystemException(e);
518 }
519
520 return ((Integer)returnObj).intValue();
521 }
522 catch (com.liferay.portal.kernel.exception.SystemException se) {
523 _log.error(se, se);
524
525 throw se;
526 }
527 }
528
529 public static int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal,
530 long groupId, long folderId)
531 throws com.liferay.portal.kernel.exception.SystemException {
532 try {
533 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
534 "getFoldersAndArticlesCount",
535 _getFoldersAndArticlesCountParameterTypes14);
536
537 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
538 folderId);
539
540 Object returnObj = null;
541
542 try {
543 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
544 }
545 catch (Exception e) {
546 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
547 throw (com.liferay.portal.kernel.exception.SystemException)e;
548 }
549
550 throw new com.liferay.portal.kernel.exception.SystemException(e);
551 }
552
553 return ((Integer)returnObj).intValue();
554 }
555 catch (com.liferay.portal.kernel.exception.SystemException se) {
556 _log.error(se, se);
557
558 throw se;
559 }
560 }
561
562 public static int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal,
563 long groupId, long folderId, int status)
564 throws com.liferay.portal.kernel.exception.SystemException {
565 try {
566 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
567 "getFoldersAndArticlesCount",
568 _getFoldersAndArticlesCountParameterTypes15);
569
570 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
571 folderId, status);
572
573 Object returnObj = null;
574
575 try {
576 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
577 }
578 catch (Exception e) {
579 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
580 throw (com.liferay.portal.kernel.exception.SystemException)e;
581 }
582
583 throw new com.liferay.portal.kernel.exception.SystemException(e);
584 }
585
586 return ((Integer)returnObj).intValue();
587 }
588 catch (com.liferay.portal.kernel.exception.SystemException se) {
589 _log.error(se, se);
590
591 throw se;
592 }
593 }
594
595 public static int getFoldersCount(HttpPrincipal httpPrincipal,
596 long groupId, long parentFolderId)
597 throws com.liferay.portal.kernel.exception.SystemException {
598 try {
599 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
600 "getFoldersCount", _getFoldersCountParameterTypes16);
601
602 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
603 parentFolderId);
604
605 Object returnObj = null;
606
607 try {
608 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
609 }
610 catch (Exception e) {
611 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
612 throw (com.liferay.portal.kernel.exception.SystemException)e;
613 }
614
615 throw new com.liferay.portal.kernel.exception.SystemException(e);
616 }
617
618 return ((Integer)returnObj).intValue();
619 }
620 catch (com.liferay.portal.kernel.exception.SystemException se) {
621 _log.error(se, se);
622
623 throw se;
624 }
625 }
626
627 public static int getFoldersCount(HttpPrincipal httpPrincipal,
628 long groupId, long parentFolderId, int status)
629 throws com.liferay.portal.kernel.exception.SystemException {
630 try {
631 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
632 "getFoldersCount", _getFoldersCountParameterTypes17);
633
634 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
635 parentFolderId, status);
636
637 Object returnObj = null;
638
639 try {
640 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
641 }
642 catch (Exception e) {
643 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
644 throw (com.liferay.portal.kernel.exception.SystemException)e;
645 }
646
647 throw new com.liferay.portal.kernel.exception.SystemException(e);
648 }
649
650 return ((Integer)returnObj).intValue();
651 }
652 catch (com.liferay.portal.kernel.exception.SystemException se) {
653 _log.error(se, se);
654
655 throw se;
656 }
657 }
658
659 public static void getSubfolderIds(HttpPrincipal httpPrincipal,
660 java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
661 throws com.liferay.portal.kernel.exception.SystemException {
662 try {
663 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
664 "getSubfolderIds", _getSubfolderIdsParameterTypes18);
665
666 MethodHandler methodHandler = new MethodHandler(methodKey,
667 folderIds, groupId, folderId);
668
669 try {
670 TunnelUtil.invoke(httpPrincipal, methodHandler);
671 }
672 catch (Exception e) {
673 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
674 throw (com.liferay.portal.kernel.exception.SystemException)e;
675 }
676
677 throw new com.liferay.portal.kernel.exception.SystemException(e);
678 }
679 }
680 catch (com.liferay.portal.kernel.exception.SystemException se) {
681 _log.error(se, se);
682
683 throw se;
684 }
685 }
686
687 public static void getSubfolderIds(HttpPrincipal httpPrincipal,
688 java.util.List<java.lang.Long> folderIds, long groupId, long folderId,
689 boolean recurse)
690 throws com.liferay.portal.kernel.exception.SystemException {
691 try {
692 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
693 "getSubfolderIds", _getSubfolderIdsParameterTypes19);
694
695 MethodHandler methodHandler = new MethodHandler(methodKey,
696 folderIds, groupId, folderId, recurse);
697
698 try {
699 TunnelUtil.invoke(httpPrincipal, methodHandler);
700 }
701 catch (Exception e) {
702 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
703 throw (com.liferay.portal.kernel.exception.SystemException)e;
704 }
705
706 throw new com.liferay.portal.kernel.exception.SystemException(e);
707 }
708 }
709 catch (com.liferay.portal.kernel.exception.SystemException se) {
710 _log.error(se, se);
711
712 throw se;
713 }
714 }
715
716 public static java.util.List<java.lang.Long> getSubfolderIds(
717 HttpPrincipal httpPrincipal, long groupId, long folderId,
718 boolean recurse)
719 throws com.liferay.portal.kernel.exception.SystemException {
720 try {
721 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
722 "getSubfolderIds", _getSubfolderIdsParameterTypes20);
723
724 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
725 folderId, recurse);
726
727 Object returnObj = null;
728
729 try {
730 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
731 }
732 catch (Exception e) {
733 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
734 throw (com.liferay.portal.kernel.exception.SystemException)e;
735 }
736
737 throw new com.liferay.portal.kernel.exception.SystemException(e);
738 }
739
740 return (java.util.List<java.lang.Long>)returnObj;
741 }
742 catch (com.liferay.portal.kernel.exception.SystemException se) {
743 _log.error(se, se);
744
745 throw se;
746 }
747 }
748
749 public static com.liferay.portlet.journal.model.JournalFolder moveFolder(
750 HttpPrincipal httpPrincipal, long folderId, long parentFolderId,
751 com.liferay.portal.service.ServiceContext serviceContext)
752 throws com.liferay.portal.kernel.exception.PortalException,
753 com.liferay.portal.kernel.exception.SystemException {
754 try {
755 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
756 "moveFolder", _moveFolderParameterTypes21);
757
758 MethodHandler methodHandler = new MethodHandler(methodKey,
759 folderId, parentFolderId, serviceContext);
760
761 Object returnObj = null;
762
763 try {
764 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
765 }
766 catch (Exception e) {
767 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
768 throw (com.liferay.portal.kernel.exception.PortalException)e;
769 }
770
771 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
772 throw (com.liferay.portal.kernel.exception.SystemException)e;
773 }
774
775 throw new com.liferay.portal.kernel.exception.SystemException(e);
776 }
777
778 return (com.liferay.portlet.journal.model.JournalFolder)returnObj;
779 }
780 catch (com.liferay.portal.kernel.exception.SystemException se) {
781 _log.error(se, se);
782
783 throw se;
784 }
785 }
786
787 public static com.liferay.portlet.journal.model.JournalFolder moveFolderFromTrash(
788 HttpPrincipal httpPrincipal, long folderId, long parentFolderId,
789 com.liferay.portal.service.ServiceContext serviceContext)
790 throws com.liferay.portal.kernel.exception.PortalException,
791 com.liferay.portal.kernel.exception.SystemException {
792 try {
793 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
794 "moveFolderFromTrash", _moveFolderFromTrashParameterTypes22);
795
796 MethodHandler methodHandler = new MethodHandler(methodKey,
797 folderId, parentFolderId, serviceContext);
798
799 Object returnObj = null;
800
801 try {
802 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
803 }
804 catch (Exception e) {
805 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
806 throw (com.liferay.portal.kernel.exception.PortalException)e;
807 }
808
809 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
810 throw (com.liferay.portal.kernel.exception.SystemException)e;
811 }
812
813 throw new com.liferay.portal.kernel.exception.SystemException(e);
814 }
815
816 return (com.liferay.portlet.journal.model.JournalFolder)returnObj;
817 }
818 catch (com.liferay.portal.kernel.exception.SystemException se) {
819 _log.error(se, se);
820
821 throw se;
822 }
823 }
824
825 public static com.liferay.portlet.journal.model.JournalFolder moveFolderToTrash(
826 HttpPrincipal httpPrincipal, long folderId)
827 throws com.liferay.portal.kernel.exception.PortalException,
828 com.liferay.portal.kernel.exception.SystemException {
829 try {
830 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
831 "moveFolderToTrash", _moveFolderToTrashParameterTypes23);
832
833 MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
834
835 Object returnObj = null;
836
837 try {
838 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
839 }
840 catch (Exception e) {
841 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
842 throw (com.liferay.portal.kernel.exception.PortalException)e;
843 }
844
845 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
846 throw (com.liferay.portal.kernel.exception.SystemException)e;
847 }
848
849 throw new com.liferay.portal.kernel.exception.SystemException(e);
850 }
851
852 return (com.liferay.portlet.journal.model.JournalFolder)returnObj;
853 }
854 catch (com.liferay.portal.kernel.exception.SystemException se) {
855 _log.error(se, se);
856
857 throw se;
858 }
859 }
860
861 public static void restoreFolderFromTrash(HttpPrincipal httpPrincipal,
862 long folderId)
863 throws com.liferay.portal.kernel.exception.PortalException,
864 com.liferay.portal.kernel.exception.SystemException {
865 try {
866 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
867 "restoreFolderFromTrash",
868 _restoreFolderFromTrashParameterTypes24);
869
870 MethodHandler methodHandler = new MethodHandler(methodKey, folderId);
871
872 try {
873 TunnelUtil.invoke(httpPrincipal, methodHandler);
874 }
875 catch (Exception e) {
876 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
877 throw (com.liferay.portal.kernel.exception.PortalException)e;
878 }
879
880 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
881 throw (com.liferay.portal.kernel.exception.SystemException)e;
882 }
883
884 throw new com.liferay.portal.kernel.exception.SystemException(e);
885 }
886 }
887 catch (com.liferay.portal.kernel.exception.SystemException se) {
888 _log.error(se, se);
889
890 throw se;
891 }
892 }
893
894 public static com.liferay.portlet.journal.model.JournalFolder updateFolder(
895 HttpPrincipal httpPrincipal, long folderId, long parentFolderId,
896 java.lang.String name, java.lang.String description,
897 boolean mergeWithParentFolder,
898 com.liferay.portal.service.ServiceContext serviceContext)
899 throws com.liferay.portal.kernel.exception.PortalException,
900 com.liferay.portal.kernel.exception.SystemException {
901 try {
902 MethodKey methodKey = new MethodKey(JournalFolderServiceUtil.class,
903 "updateFolder", _updateFolderParameterTypes25);
904
905 MethodHandler methodHandler = new MethodHandler(methodKey,
906 folderId, parentFolderId, name, description,
907 mergeWithParentFolder, serviceContext);
908
909 Object returnObj = null;
910
911 try {
912 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
913 }
914 catch (Exception e) {
915 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
916 throw (com.liferay.portal.kernel.exception.PortalException)e;
917 }
918
919 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
920 throw (com.liferay.portal.kernel.exception.SystemException)e;
921 }
922
923 throw new com.liferay.portal.kernel.exception.SystemException(e);
924 }
925
926 return (com.liferay.portlet.journal.model.JournalFolder)returnObj;
927 }
928 catch (com.liferay.portal.kernel.exception.SystemException se) {
929 _log.error(se, se);
930
931 throw se;
932 }
933 }
934
935 private static Log _log = LogFactoryUtil.getLog(JournalFolderServiceHttp.class);
936 private static final Class<?>[] _addFolderParameterTypes0 = new Class[] {
937 long.class, long.class, java.lang.String.class,
938 java.lang.String.class,
939 com.liferay.portal.service.ServiceContext.class
940 };
941 private static final Class<?>[] _deleteFolderParameterTypes1 = new Class[] {
942 long.class
943 };
944 private static final Class<?>[] _deleteFolderParameterTypes2 = new Class[] {
945 long.class, boolean.class
946 };
947 private static final Class<?>[] _fetchFolderParameterTypes3 = new Class[] {
948 long.class
949 };
950 private static final Class<?>[] _getFolderParameterTypes4 = new Class[] {
951 long.class
952 };
953 private static final Class<?>[] _getFolderIdsParameterTypes5 = new Class[] {
954 long.class, long.class
955 };
956 private static final Class<?>[] _getFoldersParameterTypes6 = new Class[] {
957 long.class
958 };
959 private static final Class<?>[] _getFoldersParameterTypes7 = new Class[] {
960 long.class, long.class
961 };
962 private static final Class<?>[] _getFoldersParameterTypes8 = new Class[] {
963 long.class, long.class, int.class
964 };
965 private static final Class<?>[] _getFoldersParameterTypes9 = new Class[] {
966 long.class, long.class, int.class, int.class
967 };
968 private static final Class<?>[] _getFoldersParameterTypes10 = new Class[] {
969 long.class, long.class, int.class, int.class, int.class
970 };
971 private static final Class<?>[] _getFoldersAndArticlesParameterTypes11 = new Class[] {
972 long.class, long.class, int.class, int.class, int.class,
973 com.liferay.portal.kernel.util.OrderByComparator.class
974 };
975 private static final Class<?>[] _getFoldersAndArticlesParameterTypes12 = new Class[] {
976 long.class, long.class, int.class, int.class,
977 com.liferay.portal.kernel.util.OrderByComparator.class
978 };
979 private static final Class<?>[] _getFoldersAndArticlesCountParameterTypes13 = new Class[] {
980 long.class, java.util.List.class, int.class
981 };
982 private static final Class<?>[] _getFoldersAndArticlesCountParameterTypes14 = new Class[] {
983 long.class, long.class
984 };
985 private static final Class<?>[] _getFoldersAndArticlesCountParameterTypes15 = new Class[] {
986 long.class, long.class, int.class
987 };
988 private static final Class<?>[] _getFoldersCountParameterTypes16 = new Class[] {
989 long.class, long.class
990 };
991 private static final Class<?>[] _getFoldersCountParameterTypes17 = new Class[] {
992 long.class, long.class, int.class
993 };
994 private static final Class<?>[] _getSubfolderIdsParameterTypes18 = new Class[] {
995 java.util.List.class, long.class, long.class
996 };
997 private static final Class<?>[] _getSubfolderIdsParameterTypes19 = new Class[] {
998 java.util.List.class, long.class, long.class, boolean.class
999 };
1000 private static final Class<?>[] _getSubfolderIdsParameterTypes20 = new Class[] {
1001 long.class, long.class, boolean.class
1002 };
1003 private static final Class<?>[] _moveFolderParameterTypes21 = new Class[] {
1004 long.class, long.class,
1005 com.liferay.portal.service.ServiceContext.class
1006 };
1007 private static final Class<?>[] _moveFolderFromTrashParameterTypes22 = new Class[] {
1008 long.class, long.class,
1009 com.liferay.portal.service.ServiceContext.class
1010 };
1011 private static final Class<?>[] _moveFolderToTrashParameterTypes23 = new Class[] {
1012 long.class
1013 };
1014 private static final Class<?>[] _restoreFolderFromTrashParameterTypes24 = new Class[] {
1015 long.class
1016 };
1017 private static final Class<?>[] _updateFolderParameterTypes25 = new Class[] {
1018 long.class, long.class, java.lang.String.class,
1019 java.lang.String.class, boolean.class,
1020 com.liferay.portal.service.ServiceContext.class
1021 };
1022 }