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