001
014
015 package com.liferay.portlet.social.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.social.service.SocialActivityServiceUtil;
025
026
054 public class SocialActivityServiceHttp {
055 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
056 HttpPrincipal httpPrincipal, long classNameId, int start, int end)
057 throws com.liferay.portal.kernel.exception.PortalException,
058 com.liferay.portal.kernel.exception.SystemException {
059 try {
060 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
061 "getActivities", _getActivitiesParameterTypes0);
062
063 MethodHandler methodHandler = new MethodHandler(methodKey,
064 classNameId, start, end);
065
066 Object returnObj = null;
067
068 try {
069 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
070 }
071 catch (Exception e) {
072 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
073 throw (com.liferay.portal.kernel.exception.PortalException)e;
074 }
075
076 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
077 throw (com.liferay.portal.kernel.exception.SystemException)e;
078 }
079
080 throw new com.liferay.portal.kernel.exception.SystemException(e);
081 }
082
083 return (java.util.List<com.liferay.portlet.social.model.SocialActivity>)returnObj;
084 }
085 catch (com.liferay.portal.kernel.exception.SystemException se) {
086 _log.error(se, se);
087
088 throw se;
089 }
090 }
091
092 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
093 HttpPrincipal httpPrincipal, long mirrorActivityId, long classNameId,
094 long classPK, int start, int end)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException {
097 try {
098 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
099 "getActivities", _getActivitiesParameterTypes1);
100
101 MethodHandler methodHandler = new MethodHandler(methodKey,
102 mirrorActivityId, classNameId, classPK, start, end);
103
104 Object returnObj = null;
105
106 try {
107 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
108 }
109 catch (Exception e) {
110 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
111 throw (com.liferay.portal.kernel.exception.PortalException)e;
112 }
113
114 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
115 throw (com.liferay.portal.kernel.exception.SystemException)e;
116 }
117
118 throw new com.liferay.portal.kernel.exception.SystemException(e);
119 }
120
121 return (java.util.List<com.liferay.portlet.social.model.SocialActivity>)returnObj;
122 }
123 catch (com.liferay.portal.kernel.exception.SystemException se) {
124 _log.error(se, se);
125
126 throw se;
127 }
128 }
129
130 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
131 HttpPrincipal httpPrincipal, long mirrorActivityId,
132 java.lang.String className, long classPK, int start, int end)
133 throws com.liferay.portal.kernel.exception.PortalException,
134 com.liferay.portal.kernel.exception.SystemException {
135 try {
136 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
137 "getActivities", _getActivitiesParameterTypes2);
138
139 MethodHandler methodHandler = new MethodHandler(methodKey,
140 mirrorActivityId, className, classPK, start, end);
141
142 Object returnObj = null;
143
144 try {
145 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
146 }
147 catch (Exception e) {
148 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
149 throw (com.liferay.portal.kernel.exception.PortalException)e;
150 }
151
152 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
153 throw (com.liferay.portal.kernel.exception.SystemException)e;
154 }
155
156 throw new com.liferay.portal.kernel.exception.SystemException(e);
157 }
158
159 return (java.util.List<com.liferay.portlet.social.model.SocialActivity>)returnObj;
160 }
161 catch (com.liferay.portal.kernel.exception.SystemException se) {
162 _log.error(se, se);
163
164 throw se;
165 }
166 }
167
168 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
169 HttpPrincipal httpPrincipal, java.lang.String className, int start,
170 int end)
171 throws com.liferay.portal.kernel.exception.PortalException,
172 com.liferay.portal.kernel.exception.SystemException {
173 try {
174 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
175 "getActivities", _getActivitiesParameterTypes3);
176
177 MethodHandler methodHandler = new MethodHandler(methodKey,
178 className, start, end);
179
180 Object returnObj = null;
181
182 try {
183 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
184 }
185 catch (Exception e) {
186 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
187 throw (com.liferay.portal.kernel.exception.PortalException)e;
188 }
189
190 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
191 throw (com.liferay.portal.kernel.exception.SystemException)e;
192 }
193
194 throw new com.liferay.portal.kernel.exception.SystemException(e);
195 }
196
197 return (java.util.List<com.liferay.portlet.social.model.SocialActivity>)returnObj;
198 }
199 catch (com.liferay.portal.kernel.exception.SystemException se) {
200 _log.error(se, se);
201
202 throw se;
203 }
204 }
205
206 public static int getActivitiesCount(HttpPrincipal httpPrincipal,
207 long classNameId)
208 throws com.liferay.portal.kernel.exception.SystemException {
209 try {
210 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
211 "getActivitiesCount", _getActivitiesCountParameterTypes4);
212
213 MethodHandler methodHandler = new MethodHandler(methodKey,
214 classNameId);
215
216 Object returnObj = null;
217
218 try {
219 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
220 }
221 catch (Exception e) {
222 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
223 throw (com.liferay.portal.kernel.exception.SystemException)e;
224 }
225
226 throw new com.liferay.portal.kernel.exception.SystemException(e);
227 }
228
229 return ((Integer)returnObj).intValue();
230 }
231 catch (com.liferay.portal.kernel.exception.SystemException se) {
232 _log.error(se, se);
233
234 throw se;
235 }
236 }
237
238 public static int getActivitiesCount(HttpPrincipal httpPrincipal,
239 long mirrorActivityId, long classNameId, long classPK)
240 throws com.liferay.portal.kernel.exception.SystemException {
241 try {
242 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
243 "getActivitiesCount", _getActivitiesCountParameterTypes5);
244
245 MethodHandler methodHandler = new MethodHandler(methodKey,
246 mirrorActivityId, classNameId, classPK);
247
248 Object returnObj = null;
249
250 try {
251 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
252 }
253 catch (Exception e) {
254 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
255 throw (com.liferay.portal.kernel.exception.SystemException)e;
256 }
257
258 throw new com.liferay.portal.kernel.exception.SystemException(e);
259 }
260
261 return ((Integer)returnObj).intValue();
262 }
263 catch (com.liferay.portal.kernel.exception.SystemException se) {
264 _log.error(se, se);
265
266 throw se;
267 }
268 }
269
270 public static int getActivitiesCount(HttpPrincipal httpPrincipal,
271 long mirrorActivityId, java.lang.String className, long classPK)
272 throws com.liferay.portal.kernel.exception.SystemException {
273 try {
274 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
275 "getActivitiesCount", _getActivitiesCountParameterTypes6);
276
277 MethodHandler methodHandler = new MethodHandler(methodKey,
278 mirrorActivityId, className, classPK);
279
280 Object returnObj = null;
281
282 try {
283 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
284 }
285 catch (Exception e) {
286 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
287 throw (com.liferay.portal.kernel.exception.SystemException)e;
288 }
289
290 throw new com.liferay.portal.kernel.exception.SystemException(e);
291 }
292
293 return ((Integer)returnObj).intValue();
294 }
295 catch (com.liferay.portal.kernel.exception.SystemException se) {
296 _log.error(se, se);
297
298 throw se;
299 }
300 }
301
302 public static int getActivitiesCount(HttpPrincipal httpPrincipal,
303 java.lang.String className)
304 throws com.liferay.portal.kernel.exception.SystemException {
305 try {
306 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
307 "getActivitiesCount", _getActivitiesCountParameterTypes7);
308
309 MethodHandler methodHandler = new MethodHandler(methodKey, className);
310
311 Object returnObj = null;
312
313 try {
314 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
315 }
316 catch (Exception e) {
317 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
318 throw (com.liferay.portal.kernel.exception.SystemException)e;
319 }
320
321 throw new com.liferay.portal.kernel.exception.SystemException(e);
322 }
323
324 return ((Integer)returnObj).intValue();
325 }
326 catch (com.liferay.portal.kernel.exception.SystemException se) {
327 _log.error(se, se);
328
329 throw se;
330 }
331 }
332
333 public static com.liferay.portlet.social.model.SocialActivity getActivity(
334 HttpPrincipal httpPrincipal, long activityId)
335 throws com.liferay.portal.kernel.exception.PortalException,
336 com.liferay.portal.kernel.exception.SystemException {
337 try {
338 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
339 "getActivity", _getActivityParameterTypes8);
340
341 MethodHandler methodHandler = new MethodHandler(methodKey,
342 activityId);
343
344 Object returnObj = null;
345
346 try {
347 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
348 }
349 catch (Exception e) {
350 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
351 throw (com.liferay.portal.kernel.exception.PortalException)e;
352 }
353
354 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
355 throw (com.liferay.portal.kernel.exception.SystemException)e;
356 }
357
358 throw new com.liferay.portal.kernel.exception.SystemException(e);
359 }
360
361 return (com.liferay.portlet.social.model.SocialActivity)returnObj;
362 }
363 catch (com.liferay.portal.kernel.exception.SystemException se) {
364 _log.error(se, se);
365
366 throw se;
367 }
368 }
369
370 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivitySetActivities(
371 HttpPrincipal httpPrincipal, long activitySetId, int start, int end)
372 throws com.liferay.portal.kernel.exception.PortalException,
373 com.liferay.portal.kernel.exception.SystemException {
374 try {
375 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
376 "getActivitySetActivities",
377 _getActivitySetActivitiesParameterTypes9);
378
379 MethodHandler methodHandler = new MethodHandler(methodKey,
380 activitySetId, start, end);
381
382 Object returnObj = null;
383
384 try {
385 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
386 }
387 catch (Exception e) {
388 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
389 throw (com.liferay.portal.kernel.exception.PortalException)e;
390 }
391
392 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
393 throw (com.liferay.portal.kernel.exception.SystemException)e;
394 }
395
396 throw new com.liferay.portal.kernel.exception.SystemException(e);
397 }
398
399 return (java.util.List<com.liferay.portlet.social.model.SocialActivity>)returnObj;
400 }
401 catch (com.liferay.portal.kernel.exception.SystemException se) {
402 _log.error(se, se);
403
404 throw se;
405 }
406 }
407
408 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupActivities(
409 HttpPrincipal httpPrincipal, long groupId, int start, int end)
410 throws com.liferay.portal.kernel.exception.PortalException,
411 com.liferay.portal.kernel.exception.SystemException {
412 try {
413 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
414 "getGroupActivities", _getGroupActivitiesParameterTypes10);
415
416 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
417 start, end);
418
419 Object returnObj = null;
420
421 try {
422 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
423 }
424 catch (Exception e) {
425 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
426 throw (com.liferay.portal.kernel.exception.PortalException)e;
427 }
428
429 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
430 throw (com.liferay.portal.kernel.exception.SystemException)e;
431 }
432
433 throw new com.liferay.portal.kernel.exception.SystemException(e);
434 }
435
436 return (java.util.List<com.liferay.portlet.social.model.SocialActivity>)returnObj;
437 }
438 catch (com.liferay.portal.kernel.exception.SystemException se) {
439 _log.error(se, se);
440
441 throw se;
442 }
443 }
444
445 public static int getGroupActivitiesCount(HttpPrincipal httpPrincipal,
446 long groupId)
447 throws com.liferay.portal.kernel.exception.SystemException {
448 try {
449 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
450 "getGroupActivitiesCount",
451 _getGroupActivitiesCountParameterTypes11);
452
453 MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
454
455 Object returnObj = null;
456
457 try {
458 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
459 }
460 catch (Exception e) {
461 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
462 throw (com.liferay.portal.kernel.exception.SystemException)e;
463 }
464
465 throw new com.liferay.portal.kernel.exception.SystemException(e);
466 }
467
468 return ((Integer)returnObj).intValue();
469 }
470 catch (com.liferay.portal.kernel.exception.SystemException se) {
471 _log.error(se, se);
472
473 throw se;
474 }
475 }
476
477 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupUsersActivities(
478 HttpPrincipal httpPrincipal, long groupId, int start, int end)
479 throws com.liferay.portal.kernel.exception.PortalException,
480 com.liferay.portal.kernel.exception.SystemException {
481 try {
482 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
483 "getGroupUsersActivities",
484 _getGroupUsersActivitiesParameterTypes12);
485
486 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
487 start, end);
488
489 Object returnObj = null;
490
491 try {
492 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
493 }
494 catch (Exception e) {
495 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
496 throw (com.liferay.portal.kernel.exception.PortalException)e;
497 }
498
499 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
500 throw (com.liferay.portal.kernel.exception.SystemException)e;
501 }
502
503 throw new com.liferay.portal.kernel.exception.SystemException(e);
504 }
505
506 return (java.util.List<com.liferay.portlet.social.model.SocialActivity>)returnObj;
507 }
508 catch (com.liferay.portal.kernel.exception.SystemException se) {
509 _log.error(se, se);
510
511 throw se;
512 }
513 }
514
515 public static int getGroupUsersActivitiesCount(
516 HttpPrincipal httpPrincipal, long groupId)
517 throws com.liferay.portal.kernel.exception.SystemException {
518 try {
519 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
520 "getGroupUsersActivitiesCount",
521 _getGroupUsersActivitiesCountParameterTypes13);
522
523 MethodHandler methodHandler = new MethodHandler(methodKey, groupId);
524
525 Object returnObj = null;
526
527 try {
528 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
529 }
530 catch (Exception e) {
531 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
532 throw (com.liferay.portal.kernel.exception.SystemException)e;
533 }
534
535 throw new com.liferay.portal.kernel.exception.SystemException(e);
536 }
537
538 return ((Integer)returnObj).intValue();
539 }
540 catch (com.liferay.portal.kernel.exception.SystemException se) {
541 _log.error(se, se);
542
543 throw se;
544 }
545 }
546
547 public static com.liferay.portlet.social.model.SocialActivity getMirrorActivity(
548 HttpPrincipal httpPrincipal, long mirrorActivityId)
549 throws com.liferay.portal.kernel.exception.PortalException,
550 com.liferay.portal.kernel.exception.SystemException {
551 try {
552 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
553 "getMirrorActivity", _getMirrorActivityParameterTypes14);
554
555 MethodHandler methodHandler = new MethodHandler(methodKey,
556 mirrorActivityId);
557
558 Object returnObj = null;
559
560 try {
561 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
562 }
563 catch (Exception e) {
564 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
565 throw (com.liferay.portal.kernel.exception.PortalException)e;
566 }
567
568 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
569 throw (com.liferay.portal.kernel.exception.SystemException)e;
570 }
571
572 throw new com.liferay.portal.kernel.exception.SystemException(e);
573 }
574
575 return (com.liferay.portlet.social.model.SocialActivity)returnObj;
576 }
577 catch (com.liferay.portal.kernel.exception.SystemException se) {
578 _log.error(se, se);
579
580 throw se;
581 }
582 }
583
584 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationActivities(
585 HttpPrincipal httpPrincipal, long organizationId, int start, int end)
586 throws com.liferay.portal.kernel.exception.PortalException,
587 com.liferay.portal.kernel.exception.SystemException {
588 try {
589 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
590 "getOrganizationActivities",
591 _getOrganizationActivitiesParameterTypes15);
592
593 MethodHandler methodHandler = new MethodHandler(methodKey,
594 organizationId, start, end);
595
596 Object returnObj = null;
597
598 try {
599 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
600 }
601 catch (Exception e) {
602 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
603 throw (com.liferay.portal.kernel.exception.PortalException)e;
604 }
605
606 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
607 throw (com.liferay.portal.kernel.exception.SystemException)e;
608 }
609
610 throw new com.liferay.portal.kernel.exception.SystemException(e);
611 }
612
613 return (java.util.List<com.liferay.portlet.social.model.SocialActivity>)returnObj;
614 }
615 catch (com.liferay.portal.kernel.exception.SystemException se) {
616 _log.error(se, se);
617
618 throw se;
619 }
620 }
621
622 public static int getOrganizationActivitiesCount(
623 HttpPrincipal httpPrincipal, long organizationId)
624 throws com.liferay.portal.kernel.exception.SystemException {
625 try {
626 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
627 "getOrganizationActivitiesCount",
628 _getOrganizationActivitiesCountParameterTypes16);
629
630 MethodHandler methodHandler = new MethodHandler(methodKey,
631 organizationId);
632
633 Object returnObj = null;
634
635 try {
636 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
637 }
638 catch (Exception e) {
639 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
640 throw (com.liferay.portal.kernel.exception.SystemException)e;
641 }
642
643 throw new com.liferay.portal.kernel.exception.SystemException(e);
644 }
645
646 return ((Integer)returnObj).intValue();
647 }
648 catch (com.liferay.portal.kernel.exception.SystemException se) {
649 _log.error(se, se);
650
651 throw se;
652 }
653 }
654
655 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationUsersActivities(
656 HttpPrincipal httpPrincipal, long organizationId, int start, int end)
657 throws com.liferay.portal.kernel.exception.PortalException,
658 com.liferay.portal.kernel.exception.SystemException {
659 try {
660 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
661 "getOrganizationUsersActivities",
662 _getOrganizationUsersActivitiesParameterTypes17);
663
664 MethodHandler methodHandler = new MethodHandler(methodKey,
665 organizationId, start, end);
666
667 Object returnObj = null;
668
669 try {
670 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
671 }
672 catch (Exception e) {
673 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
674 throw (com.liferay.portal.kernel.exception.PortalException)e;
675 }
676
677 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
678 throw (com.liferay.portal.kernel.exception.SystemException)e;
679 }
680
681 throw new com.liferay.portal.kernel.exception.SystemException(e);
682 }
683
684 return (java.util.List<com.liferay.portlet.social.model.SocialActivity>)returnObj;
685 }
686 catch (com.liferay.portal.kernel.exception.SystemException se) {
687 _log.error(se, se);
688
689 throw se;
690 }
691 }
692
693 public static int getOrganizationUsersActivitiesCount(
694 HttpPrincipal httpPrincipal, long organizationId)
695 throws com.liferay.portal.kernel.exception.SystemException {
696 try {
697 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
698 "getOrganizationUsersActivitiesCount",
699 _getOrganizationUsersActivitiesCountParameterTypes18);
700
701 MethodHandler methodHandler = new MethodHandler(methodKey,
702 organizationId);
703
704 Object returnObj = null;
705
706 try {
707 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
708 }
709 catch (Exception e) {
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 ((Integer)returnObj).intValue();
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 java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
727 HttpPrincipal httpPrincipal, long userId, int start, int end)
728 throws com.liferay.portal.kernel.exception.PortalException,
729 com.liferay.portal.kernel.exception.SystemException {
730 try {
731 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
732 "getRelationActivities",
733 _getRelationActivitiesParameterTypes19);
734
735 MethodHandler methodHandler = new MethodHandler(methodKey, userId,
736 start, end);
737
738 Object returnObj = null;
739
740 try {
741 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
742 }
743 catch (Exception e) {
744 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
745 throw (com.liferay.portal.kernel.exception.PortalException)e;
746 }
747
748 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
749 throw (com.liferay.portal.kernel.exception.SystemException)e;
750 }
751
752 throw new com.liferay.portal.kernel.exception.SystemException(e);
753 }
754
755 return (java.util.List<com.liferay.portlet.social.model.SocialActivity>)returnObj;
756 }
757 catch (com.liferay.portal.kernel.exception.SystemException se) {
758 _log.error(se, se);
759
760 throw se;
761 }
762 }
763
764 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
765 HttpPrincipal httpPrincipal, long userId, int type, int start, int end)
766 throws com.liferay.portal.kernel.exception.PortalException,
767 com.liferay.portal.kernel.exception.SystemException {
768 try {
769 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
770 "getRelationActivities",
771 _getRelationActivitiesParameterTypes20);
772
773 MethodHandler methodHandler = new MethodHandler(methodKey, userId,
774 type, start, end);
775
776 Object returnObj = null;
777
778 try {
779 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
780 }
781 catch (Exception e) {
782 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
783 throw (com.liferay.portal.kernel.exception.PortalException)e;
784 }
785
786 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
787 throw (com.liferay.portal.kernel.exception.SystemException)e;
788 }
789
790 throw new com.liferay.portal.kernel.exception.SystemException(e);
791 }
792
793 return (java.util.List<com.liferay.portlet.social.model.SocialActivity>)returnObj;
794 }
795 catch (com.liferay.portal.kernel.exception.SystemException se) {
796 _log.error(se, se);
797
798 throw se;
799 }
800 }
801
802 public static int getRelationActivitiesCount(HttpPrincipal httpPrincipal,
803 long userId) throws com.liferay.portal.kernel.exception.SystemException {
804 try {
805 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
806 "getRelationActivitiesCount",
807 _getRelationActivitiesCountParameterTypes21);
808
809 MethodHandler methodHandler = new MethodHandler(methodKey, userId);
810
811 Object returnObj = null;
812
813 try {
814 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
815 }
816 catch (Exception e) {
817 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
818 throw (com.liferay.portal.kernel.exception.SystemException)e;
819 }
820
821 throw new com.liferay.portal.kernel.exception.SystemException(e);
822 }
823
824 return ((Integer)returnObj).intValue();
825 }
826 catch (com.liferay.portal.kernel.exception.SystemException se) {
827 _log.error(se, se);
828
829 throw se;
830 }
831 }
832
833 public static int getRelationActivitiesCount(HttpPrincipal httpPrincipal,
834 long userId, int type)
835 throws com.liferay.portal.kernel.exception.SystemException {
836 try {
837 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
838 "getRelationActivitiesCount",
839 _getRelationActivitiesCountParameterTypes22);
840
841 MethodHandler methodHandler = new MethodHandler(methodKey, userId,
842 type);
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.SystemException) {
851 throw (com.liferay.portal.kernel.exception.SystemException)e;
852 }
853
854 throw new com.liferay.portal.kernel.exception.SystemException(e);
855 }
856
857 return ((Integer)returnObj).intValue();
858 }
859 catch (com.liferay.portal.kernel.exception.SystemException se) {
860 _log.error(se, se);
861
862 throw se;
863 }
864 }
865
866 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserActivities(
867 HttpPrincipal httpPrincipal, long userId, int start, int end)
868 throws com.liferay.portal.kernel.exception.PortalException,
869 com.liferay.portal.kernel.exception.SystemException {
870 try {
871 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
872 "getUserActivities", _getUserActivitiesParameterTypes23);
873
874 MethodHandler methodHandler = new MethodHandler(methodKey, userId,
875 start, end);
876
877 Object returnObj = null;
878
879 try {
880 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
881 }
882 catch (Exception e) {
883 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
884 throw (com.liferay.portal.kernel.exception.PortalException)e;
885 }
886
887 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
888 throw (com.liferay.portal.kernel.exception.SystemException)e;
889 }
890
891 throw new com.liferay.portal.kernel.exception.SystemException(e);
892 }
893
894 return (java.util.List<com.liferay.portlet.social.model.SocialActivity>)returnObj;
895 }
896 catch (com.liferay.portal.kernel.exception.SystemException se) {
897 _log.error(se, se);
898
899 throw se;
900 }
901 }
902
903 public static int getUserActivitiesCount(HttpPrincipal httpPrincipal,
904 long userId) throws com.liferay.portal.kernel.exception.SystemException {
905 try {
906 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
907 "getUserActivitiesCount",
908 _getUserActivitiesCountParameterTypes24);
909
910 MethodHandler methodHandler = new MethodHandler(methodKey, userId);
911
912 Object returnObj = null;
913
914 try {
915 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
916 }
917 catch (Exception e) {
918 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
919 throw (com.liferay.portal.kernel.exception.SystemException)e;
920 }
921
922 throw new com.liferay.portal.kernel.exception.SystemException(e);
923 }
924
925 return ((Integer)returnObj).intValue();
926 }
927 catch (com.liferay.portal.kernel.exception.SystemException se) {
928 _log.error(se, se);
929
930 throw se;
931 }
932 }
933
934 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsActivities(
935 HttpPrincipal httpPrincipal, long userId, int start, int end)
936 throws com.liferay.portal.kernel.exception.PortalException,
937 com.liferay.portal.kernel.exception.SystemException {
938 try {
939 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
940 "getUserGroupsActivities",
941 _getUserGroupsActivitiesParameterTypes25);
942
943 MethodHandler methodHandler = new MethodHandler(methodKey, userId,
944 start, end);
945
946 Object returnObj = null;
947
948 try {
949 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
950 }
951 catch (Exception e) {
952 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
953 throw (com.liferay.portal.kernel.exception.PortalException)e;
954 }
955
956 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
957 throw (com.liferay.portal.kernel.exception.SystemException)e;
958 }
959
960 throw new com.liferay.portal.kernel.exception.SystemException(e);
961 }
962
963 return (java.util.List<com.liferay.portlet.social.model.SocialActivity>)returnObj;
964 }
965 catch (com.liferay.portal.kernel.exception.SystemException se) {
966 _log.error(se, se);
967
968 throw se;
969 }
970 }
971
972 public static int getUserGroupsActivitiesCount(
973 HttpPrincipal httpPrincipal, long userId)
974 throws com.liferay.portal.kernel.exception.SystemException {
975 try {
976 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
977 "getUserGroupsActivitiesCount",
978 _getUserGroupsActivitiesCountParameterTypes26);
979
980 MethodHandler methodHandler = new MethodHandler(methodKey, userId);
981
982 Object returnObj = null;
983
984 try {
985 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
986 }
987 catch (Exception e) {
988 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
989 throw (com.liferay.portal.kernel.exception.SystemException)e;
990 }
991
992 throw new com.liferay.portal.kernel.exception.SystemException(e);
993 }
994
995 return ((Integer)returnObj).intValue();
996 }
997 catch (com.liferay.portal.kernel.exception.SystemException se) {
998 _log.error(se, se);
999
1000 throw se;
1001 }
1002 }
1003
1004 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsAndOrganizationsActivities(
1005 HttpPrincipal httpPrincipal, long userId, int start, int end)
1006 throws com.liferay.portal.kernel.exception.PortalException,
1007 com.liferay.portal.kernel.exception.SystemException {
1008 try {
1009 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
1010 "getUserGroupsAndOrganizationsActivities",
1011 _getUserGroupsAndOrganizationsActivitiesParameterTypes27);
1012
1013 MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1014 start, end);
1015
1016 Object returnObj = null;
1017
1018 try {
1019 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1020 }
1021 catch (Exception e) {
1022 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1023 throw (com.liferay.portal.kernel.exception.PortalException)e;
1024 }
1025
1026 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1027 throw (com.liferay.portal.kernel.exception.SystemException)e;
1028 }
1029
1030 throw new com.liferay.portal.kernel.exception.SystemException(e);
1031 }
1032
1033 return (java.util.List<com.liferay.portlet.social.model.SocialActivity>)returnObj;
1034 }
1035 catch (com.liferay.portal.kernel.exception.SystemException se) {
1036 _log.error(se, se);
1037
1038 throw se;
1039 }
1040 }
1041
1042 public static int getUserGroupsAndOrganizationsActivitiesCount(
1043 HttpPrincipal httpPrincipal, long userId)
1044 throws com.liferay.portal.kernel.exception.SystemException {
1045 try {
1046 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
1047 "getUserGroupsAndOrganizationsActivitiesCount",
1048 _getUserGroupsAndOrganizationsActivitiesCountParameterTypes28);
1049
1050 MethodHandler methodHandler = new MethodHandler(methodKey, userId);
1051
1052 Object returnObj = null;
1053
1054 try {
1055 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1056 }
1057 catch (Exception e) {
1058 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1059 throw (com.liferay.portal.kernel.exception.SystemException)e;
1060 }
1061
1062 throw new com.liferay.portal.kernel.exception.SystemException(e);
1063 }
1064
1065 return ((Integer)returnObj).intValue();
1066 }
1067 catch (com.liferay.portal.kernel.exception.SystemException se) {
1068 _log.error(se, se);
1069
1070 throw se;
1071 }
1072 }
1073
1074 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserOrganizationsActivities(
1075 HttpPrincipal httpPrincipal, long userId, int start, int end)
1076 throws com.liferay.portal.kernel.exception.PortalException,
1077 com.liferay.portal.kernel.exception.SystemException {
1078 try {
1079 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
1080 "getUserOrganizationsActivities",
1081 _getUserOrganizationsActivitiesParameterTypes29);
1082
1083 MethodHandler methodHandler = new MethodHandler(methodKey, userId,
1084 start, end);
1085
1086 Object returnObj = null;
1087
1088 try {
1089 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1090 }
1091 catch (Exception e) {
1092 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
1093 throw (com.liferay.portal.kernel.exception.PortalException)e;
1094 }
1095
1096 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1097 throw (com.liferay.portal.kernel.exception.SystemException)e;
1098 }
1099
1100 throw new com.liferay.portal.kernel.exception.SystemException(e);
1101 }
1102
1103 return (java.util.List<com.liferay.portlet.social.model.SocialActivity>)returnObj;
1104 }
1105 catch (com.liferay.portal.kernel.exception.SystemException se) {
1106 _log.error(se, se);
1107
1108 throw se;
1109 }
1110 }
1111
1112 public static int getUserOrganizationsActivitiesCount(
1113 HttpPrincipal httpPrincipal, long userId)
1114 throws com.liferay.portal.kernel.exception.SystemException {
1115 try {
1116 MethodKey methodKey = new MethodKey(SocialActivityServiceUtil.class,
1117 "getUserOrganizationsActivitiesCount",
1118 _getUserOrganizationsActivitiesCountParameterTypes30);
1119
1120 MethodHandler methodHandler = new MethodHandler(methodKey, userId);
1121
1122 Object returnObj = null;
1123
1124 try {
1125 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
1126 }
1127 catch (Exception e) {
1128 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
1129 throw (com.liferay.portal.kernel.exception.SystemException)e;
1130 }
1131
1132 throw new com.liferay.portal.kernel.exception.SystemException(e);
1133 }
1134
1135 return ((Integer)returnObj).intValue();
1136 }
1137 catch (com.liferay.portal.kernel.exception.SystemException se) {
1138 _log.error(se, se);
1139
1140 throw se;
1141 }
1142 }
1143
1144 private static Log _log = LogFactoryUtil.getLog(SocialActivityServiceHttp.class);
1145 private static final Class<?>[] _getActivitiesParameterTypes0 = new Class[] {
1146 long.class, int.class, int.class
1147 };
1148 private static final Class<?>[] _getActivitiesParameterTypes1 = new Class[] {
1149 long.class, long.class, long.class, int.class, int.class
1150 };
1151 private static final Class<?>[] _getActivitiesParameterTypes2 = new Class[] {
1152 long.class, java.lang.String.class, long.class, int.class, int.class
1153 };
1154 private static final Class<?>[] _getActivitiesParameterTypes3 = new Class[] {
1155 java.lang.String.class, int.class, int.class
1156 };
1157 private static final Class<?>[] _getActivitiesCountParameterTypes4 = new Class[] {
1158 long.class
1159 };
1160 private static final Class<?>[] _getActivitiesCountParameterTypes5 = new Class[] {
1161 long.class, long.class, long.class
1162 };
1163 private static final Class<?>[] _getActivitiesCountParameterTypes6 = new Class[] {
1164 long.class, java.lang.String.class, long.class
1165 };
1166 private static final Class<?>[] _getActivitiesCountParameterTypes7 = new Class[] {
1167 java.lang.String.class
1168 };
1169 private static final Class<?>[] _getActivityParameterTypes8 = new Class[] {
1170 long.class
1171 };
1172 private static final Class<?>[] _getActivitySetActivitiesParameterTypes9 = new Class[] {
1173 long.class, int.class, int.class
1174 };
1175 private static final Class<?>[] _getGroupActivitiesParameterTypes10 = new Class[] {
1176 long.class, int.class, int.class
1177 };
1178 private static final Class<?>[] _getGroupActivitiesCountParameterTypes11 = new Class[] {
1179 long.class
1180 };
1181 private static final Class<?>[] _getGroupUsersActivitiesParameterTypes12 = new Class[] {
1182 long.class, int.class, int.class
1183 };
1184 private static final Class<?>[] _getGroupUsersActivitiesCountParameterTypes13 =
1185 new Class[] { long.class };
1186 private static final Class<?>[] _getMirrorActivityParameterTypes14 = new Class[] {
1187 long.class
1188 };
1189 private static final Class<?>[] _getOrganizationActivitiesParameterTypes15 = new Class[] {
1190 long.class, int.class, int.class
1191 };
1192 private static final Class<?>[] _getOrganizationActivitiesCountParameterTypes16 =
1193 new Class[] { long.class };
1194 private static final Class<?>[] _getOrganizationUsersActivitiesParameterTypes17 =
1195 new Class[] { long.class, int.class, int.class };
1196 private static final Class<?>[] _getOrganizationUsersActivitiesCountParameterTypes18 =
1197 new Class[] { long.class };
1198 private static final Class<?>[] _getRelationActivitiesParameterTypes19 = new Class[] {
1199 long.class, int.class, int.class
1200 };
1201 private static final Class<?>[] _getRelationActivitiesParameterTypes20 = new Class[] {
1202 long.class, int.class, int.class, int.class
1203 };
1204 private static final Class<?>[] _getRelationActivitiesCountParameterTypes21 = new Class[] {
1205 long.class
1206 };
1207 private static final Class<?>[] _getRelationActivitiesCountParameterTypes22 = new Class[] {
1208 long.class, int.class
1209 };
1210 private static final Class<?>[] _getUserActivitiesParameterTypes23 = new Class[] {
1211 long.class, int.class, int.class
1212 };
1213 private static final Class<?>[] _getUserActivitiesCountParameterTypes24 = new Class[] {
1214 long.class
1215 };
1216 private static final Class<?>[] _getUserGroupsActivitiesParameterTypes25 = new Class[] {
1217 long.class, int.class, int.class
1218 };
1219 private static final Class<?>[] _getUserGroupsActivitiesCountParameterTypes26 =
1220 new Class[] { long.class };
1221 private static final Class<?>[] _getUserGroupsAndOrganizationsActivitiesParameterTypes27 =
1222 new Class[] { long.class, int.class, int.class };
1223 private static final Class<?>[] _getUserGroupsAndOrganizationsActivitiesCountParameterTypes28 =
1224 new Class[] { long.class };
1225 private static final Class<?>[] _getUserOrganizationsActivitiesParameterTypes29 =
1226 new Class[] { long.class, int.class, int.class };
1227 private static final Class<?>[] _getUserOrganizationsActivitiesCountParameterTypes30 =
1228 new Class[] { long.class };
1229 }