001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.social.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link SocialActivityService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see SocialActivityService
026     * @generated
027     */
028    @ProviderType
029    public class SocialActivityServiceWrapper implements SocialActivityService,
030            ServiceWrapper<SocialActivityService> {
031            public SocialActivityServiceWrapper(
032                    SocialActivityService socialActivityService) {
033                    _socialActivityService = socialActivityService;
034            }
035    
036            /**
037            * Returns the Spring bean ID for this bean.
038            *
039            * @return the Spring bean ID for this bean
040            */
041            @Override
042            public java.lang.String getBeanIdentifier() {
043                    return _socialActivityService.getBeanIdentifier();
044            }
045    
046            /**
047            * Sets the Spring bean ID for this bean.
048            *
049            * @param beanIdentifier the Spring bean ID for this bean
050            */
051            @Override
052            public void setBeanIdentifier(java.lang.String beanIdentifier) {
053                    _socialActivityService.setBeanIdentifier(beanIdentifier);
054            }
055    
056            /**
057            * Returns a range of all the activities done on assets identified by the
058            * class name ID.
059            *
060            * <p>
061            * Useful when paginating results. Returns a maximum of <code>end -
062            * start</code> instances. <code>start</code> and <code>end</code> are not
063            * primary keys, they are indexes in the result set. Thus, <code>0</code>
064            * refers to the first result in the set. Setting both <code>start</code>
065            * and <code>end</code> to {@link
066            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
067            * result set.
068            * </p>
069            *
070            * @param classNameId the target asset's class name ID
071            * @param start the lower bound of the range of results
072            * @param end the upper bound of the range of results (not inclusive)
073            * @return the range of matching activities
074            * @throws PortalException if a permission checker was not initialized
075            * @throws SystemException if a system exception occurred
076            */
077            @Override
078            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
079                    long classNameId, int start, int end)
080                    throws com.liferay.portal.kernel.exception.PortalException,
081                            com.liferay.portal.kernel.exception.SystemException {
082                    return _socialActivityService.getActivities(classNameId, start, end);
083            }
084    
085            /**
086            * Returns a range of all the activities done on the asset identified by the
087            * class name ID and class primary key that are mirrors of the activity
088            * identified by the mirror activity ID.
089            *
090            * <p>
091            * Useful when paginating results. Returns a maximum of <code>end -
092            * start</code> instances. <code>start</code> and <code>end</code> are not
093            * primary keys, they are indexes in the result set. Thus, <code>0</code>
094            * refers to the first result in the set. Setting both <code>start</code>
095            * and <code>end</code> to {@link
096            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
097            * result set.
098            * </p>
099            *
100            * @param mirrorActivityId the primary key of the mirror activity
101            * @param classNameId the target asset's class name ID
102            * @param classPK the primary key of the target asset
103            * @param start the lower bound of the range of results
104            * @param end the upper bound of the range of results (not inclusive)
105            * @return the range of matching activities
106            * @throws PortalException if a permission checker was not initialized
107            * @throws SystemException if a system exception occurred
108            */
109            @Override
110            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
111                    long mirrorActivityId, long classNameId, long classPK, int start,
112                    int end)
113                    throws com.liferay.portal.kernel.exception.PortalException,
114                            com.liferay.portal.kernel.exception.SystemException {
115                    return _socialActivityService.getActivities(mirrorActivityId,
116                            classNameId, classPK, start, end);
117            }
118    
119            /**
120            * Returns a range of all the activities done on the asset identified by the
121            * class name and the class primary key that are mirrors of the activity
122            * identified by the mirror activity ID.
123            *
124            * <p>
125            * Useful when paginating results. Returns a maximum of <code>end -
126            * start</code> instances. <code>start</code> and <code>end</code> are not
127            * primary keys, they are indexes in the result set. Thus, <code>0</code>
128            * refers to the first result in the set. Setting both <code>start</code>
129            * and <code>end</code> to {@link
130            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
131            * result set.
132            * </p>
133            *
134            * @param mirrorActivityId the primary key of the mirror activity
135            * @param className the target asset's class name
136            * @param classPK the primary key of the target asset
137            * @param start the lower bound of the range of results
138            * @param end the upper bound of the range of results (not inclusive)
139            * @return the range of matching activities
140            * @throws PortalException if a permission checker was not initialized
141            * @throws SystemException if a system exception occurred
142            */
143            @Override
144            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
145                    long mirrorActivityId, java.lang.String className, long classPK,
146                    int start, int end)
147                    throws com.liferay.portal.kernel.exception.PortalException,
148                            com.liferay.portal.kernel.exception.SystemException {
149                    return _socialActivityService.getActivities(mirrorActivityId,
150                            className, classPK, start, end);
151            }
152    
153            /**
154            * Returns a range of all the activities done on assets identified by the
155            * class name.
156            *
157            * <p>
158            * Useful when paginating results. Returns a maximum of <code>end -
159            * start</code> instances. <code>start</code> and <code>end</code> are not
160            * primary keys, they are indexes in the result set. Thus, <code>0</code>
161            * refers to the first result in the set. Setting both <code>start</code>
162            * and <code>end</code> to {@link
163            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
164            * result set.
165            * </p>
166            *
167            * @param className the target asset's class name
168            * @param start the lower bound of the range of results
169            * @param end the upper bound of the range of results (not inclusive)
170            * @return the range of matching activities
171            * @throws PortalException if a permission checker was not initialized
172            * @throws SystemException if a system exception occurred
173            */
174            @Override
175            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
176                    java.lang.String className, int start, int end)
177                    throws com.liferay.portal.kernel.exception.PortalException,
178                            com.liferay.portal.kernel.exception.SystemException {
179                    return _socialActivityService.getActivities(className, start, end);
180            }
181    
182            /**
183            * Returns the number of activities done on assets identified by the class
184            * name ID.
185            *
186            * @param classNameId the target asset's class name ID
187            * @return the number of matching activities
188            * @throws SystemException if a system exception occurred
189            */
190            @Override
191            public int getActivitiesCount(long classNameId)
192                    throws com.liferay.portal.kernel.exception.SystemException {
193                    return _socialActivityService.getActivitiesCount(classNameId);
194            }
195    
196            /**
197            * Returns the number of activities done on the asset identified by the
198            * class name ID and class primary key that are mirrors of the activity
199            * identified by the mirror activity ID.
200            *
201            * @param mirrorActivityId the primary key of the mirror activity
202            * @param classNameId the target asset's class name ID
203            * @param classPK the primary key of the target asset
204            * @return the number of matching activities
205            * @throws SystemException if a system exception occurred
206            */
207            @Override
208            public int getActivitiesCount(long mirrorActivityId, long classNameId,
209                    long classPK)
210                    throws com.liferay.portal.kernel.exception.SystemException {
211                    return _socialActivityService.getActivitiesCount(mirrorActivityId,
212                            classNameId, classPK);
213            }
214    
215            /**
216            * Returns the number of activities done on the asset identified by the
217            * class name and class primary key that are mirrors of the activity
218            * identified by the mirror activity ID.
219            *
220            * @param mirrorActivityId the primary key of the mirror activity
221            * @param className the target asset's class name
222            * @param classPK the primary key of the target asset
223            * @return the number of matching activities
224            * @throws SystemException if a system exception occurred
225            */
226            @Override
227            public int getActivitiesCount(long mirrorActivityId,
228                    java.lang.String className, long classPK)
229                    throws com.liferay.portal.kernel.exception.SystemException {
230                    return _socialActivityService.getActivitiesCount(mirrorActivityId,
231                            className, classPK);
232            }
233    
234            /**
235            * Returns the number of activities done on assets identified by class name.
236            *
237            * @param className the target asset's class name
238            * @return the number of matching activities
239            * @throws SystemException if a system exception occurred
240            */
241            @Override
242            public int getActivitiesCount(java.lang.String className)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return _socialActivityService.getActivitiesCount(className);
245            }
246    
247            /**
248            * Returns the activity identified by its primary key.
249            *
250            * @param activityId the primary key of the activity
251            * @return Returns the activity
252            * @throws PortalException if the activity could not be found
253            * @throws SystemException if a system exception occurred
254            */
255            @Override
256            public com.liferay.portlet.social.model.SocialActivity getActivity(
257                    long activityId)
258                    throws com.liferay.portal.kernel.exception.PortalException,
259                            com.liferay.portal.kernel.exception.SystemException {
260                    return _socialActivityService.getActivity(activityId);
261            }
262    
263            @Override
264            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivitySetActivities(
265                    long activitySetId, int start, int end)
266                    throws com.liferay.portal.kernel.exception.PortalException,
267                            com.liferay.portal.kernel.exception.SystemException {
268                    return _socialActivityService.getActivitySetActivities(activitySetId,
269                            start, end);
270            }
271    
272            /**
273            * Returns a range of all the activities done in the group.
274            *
275            * <p>
276            * This method only finds activities without mirrors.
277            * </p>
278            *
279            * <p>
280            * Useful when paginating results. Returns a maximum of <code>end -
281            * start</code> instances. <code>start</code> and <code>end</code> are not
282            * primary keys, they are indexes in the result set. Thus, <code>0</code>
283            * refers to the first result in the set. Setting both <code>start</code>
284            * and <code>end</code> to {@link
285            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
286            * result set.
287            * </p>
288            *
289            * @param groupId the primary key of the group
290            * @param start the lower bound of the range of results
291            * @param end the upper bound of the range of results (not inclusive)
292            * @return the range of matching activities
293            * @throws PortalException if a permission checker was not initialized
294            * @throws SystemException if a system exception occurred
295            */
296            @Override
297            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupActivities(
298                    long groupId, int start, int end)
299                    throws com.liferay.portal.kernel.exception.PortalException,
300                            com.liferay.portal.kernel.exception.SystemException {
301                    return _socialActivityService.getGroupActivities(groupId, start, end);
302            }
303    
304            /**
305            * Returns the number of activities done in the group.
306            *
307            * <p>
308            * This method only counts activities without mirrors.
309            * </p>
310            *
311            * @param groupId the primary key of the group
312            * @return the number of matching activities
313            * @throws SystemException if a system exception occurred
314            */
315            @Override
316            public int getGroupActivitiesCount(long groupId)
317                    throws com.liferay.portal.kernel.exception.SystemException {
318                    return _socialActivityService.getGroupActivitiesCount(groupId);
319            }
320    
321            /**
322            * Returns a range of activities done by users that are members of the
323            * group.
324            *
325            * <p>
326            * This method only finds activities without mirrors.
327            * </p>
328            *
329            * <p>
330            * Useful when paginating results. Returns a maximum of <code>end -
331            * start</code> instances. <code>start</code> and <code>end</code> are not
332            * primary keys, they are indexes in the result set. Thus, <code>0</code>
333            * refers to the first result in the set. Setting both <code>start</code>
334            * and <code>end</code> to {@link
335            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
336            * result set.
337            * </p>
338            *
339            * @param groupId the primary key of the group
340            * @param start the lower bound of the range of results
341            * @param end the upper bound of the range of results (not inclusive)
342            * @return the range of matching activities
343            * @throws PortalException if a permission checker was not initialized
344            * @throws SystemException if a system exception occurred
345            */
346            @Override
347            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupUsersActivities(
348                    long groupId, int start, int end)
349                    throws com.liferay.portal.kernel.exception.PortalException,
350                            com.liferay.portal.kernel.exception.SystemException {
351                    return _socialActivityService.getGroupUsersActivities(groupId, start,
352                            end);
353            }
354    
355            /**
356            * Returns the number of activities done by users that are members of the
357            * group.
358            *
359            * <p>
360            * This method only counts activities without mirrors.
361            * </p>
362            *
363            * @param groupId the primary key of the group
364            * @return the number of matching activities
365            * @throws SystemException if a system exception occurred
366            */
367            @Override
368            public int getGroupUsersActivitiesCount(long groupId)
369                    throws com.liferay.portal.kernel.exception.SystemException {
370                    return _socialActivityService.getGroupUsersActivitiesCount(groupId);
371            }
372    
373            /**
374            * Returns the activity that has the mirror activity.
375            *
376            * @param mirrorActivityId the primary key of the mirror activity
377            * @return Returns the mirror activity
378            * @throws PortalException if the mirror activity could not be found
379            * @throws SystemException if a system exception occurred
380            */
381            @Override
382            public com.liferay.portlet.social.model.SocialActivity getMirrorActivity(
383                    long mirrorActivityId)
384                    throws com.liferay.portal.kernel.exception.PortalException,
385                            com.liferay.portal.kernel.exception.SystemException {
386                    return _socialActivityService.getMirrorActivity(mirrorActivityId);
387            }
388    
389            /**
390            * Returns a range of all the activities done in the organization. This
391            * method only finds activities without mirrors.
392            *
393            * <p>
394            * Useful when paginating results. Returns a maximum of <code>end -
395            * start</code> instances. <code>start</code> and <code>end</code> are not
396            * primary keys, they are indexes in the result set. Thus, <code>0</code>
397            * refers to the first result in the set. Setting both <code>start</code>
398            * and <code>end</code> to {@link
399            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
400            * result set.
401            * </p>
402            *
403            * @param organizationId the primary key of the organization
404            * @param start the lower bound of the range of results
405            * @param end the upper bound of the range of results (not inclusive)
406            * @return the range of matching activities
407            * @throws PortalException if a permission checker was not initialized
408            * @throws SystemException if a system exception occurred
409            */
410            @Override
411            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationActivities(
412                    long organizationId, int start, int end)
413                    throws com.liferay.portal.kernel.exception.PortalException,
414                            com.liferay.portal.kernel.exception.SystemException {
415                    return _socialActivityService.getOrganizationActivities(organizationId,
416                            start, end);
417            }
418    
419            /**
420            * Returns the number of activities done in the organization. This method
421            * only counts activities without mirrors.
422            *
423            * @param organizationId the primary key of the organization
424            * @return the number of matching activities
425            * @throws SystemException if a system exception occurred
426            */
427            @Override
428            public int getOrganizationActivitiesCount(long organizationId)
429                    throws com.liferay.portal.kernel.exception.SystemException {
430                    return _socialActivityService.getOrganizationActivitiesCount(organizationId);
431            }
432    
433            /**
434            * Returns a range of all the activities done by users of the organization.
435            * This method only finds activities without mirrors.
436            *
437            * <p>
438            * Useful when paginating results. Returns a maximum of <code>end -
439            * start</code> instances. <code>start</code> and <code>end</code> are not
440            * primary keys, they are indexes in the result set. Thus, <code>0</code>
441            * refers to the first result in the set. Setting both <code>start</code>
442            * and <code>end</code> to {@link
443            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
444            * result set.
445            * </p>
446            *
447            * @param organizationId the primary key of the organization
448            * @param start the lower bound of the range of results
449            * @param end the upper bound of the range of results (not inclusive)
450            * @return the range of matching activities
451            * @throws PortalException if a permission checker was not initialized
452            * @throws SystemException if a system exception occurred
453            */
454            @Override
455            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationUsersActivities(
456                    long organizationId, int start, int end)
457                    throws com.liferay.portal.kernel.exception.PortalException,
458                            com.liferay.portal.kernel.exception.SystemException {
459                    return _socialActivityService.getOrganizationUsersActivities(organizationId,
460                            start, end);
461            }
462    
463            /**
464            * Returns the number of activities done by users of the organization. This
465            * method only counts activities without mirrors.
466            *
467            * @param organizationId the primary key of the organization
468            * @return the number of matching activities
469            * @throws SystemException if a system exception occurred
470            */
471            @Override
472            public int getOrganizationUsersActivitiesCount(long organizationId)
473                    throws com.liferay.portal.kernel.exception.SystemException {
474                    return _socialActivityService.getOrganizationUsersActivitiesCount(organizationId);
475            }
476    
477            /**
478            * Returns a range of all the activities done by users in a relationship
479            * with the user identified by the user ID.
480            *
481            * <p>
482            * Useful when paginating results. Returns a maximum of <code>end -
483            * start</code> instances. <code>start</code> and <code>end</code> are not
484            * primary keys, they are indexes in the result set. Thus, <>0</code> refers
485            * to the first result in the set. Setting both <code>start</code> and
486            * <code>end</code> to {@link
487            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
488            * result set.
489            * </p>
490            *
491            * @param userId the primary key of the user
492            * @param start the lower bound of the range of results
493            * @param end the upper bound of the range of results (not inclusive)
494            * @return the range of matching activities
495            * @throws PortalException if a permission checker was not initialized
496            * @throws SystemException if a system exception occurred
497            */
498            @Override
499            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
500                    long userId, int start, int end)
501                    throws com.liferay.portal.kernel.exception.PortalException,
502                            com.liferay.portal.kernel.exception.SystemException {
503                    return _socialActivityService.getRelationActivities(userId, start, end);
504            }
505    
506            /**
507            * Returns a range of all the activities done by users in a relationship of
508            * type <code>type</code> with the user identified by <code>userId</code>.
509            * This method only finds activities without mirrors.
510            *
511            * <p>
512            * Useful when paginating results. Returns a maximum of <code>end -
513            * start</code> instances. <code>start</code> and <code>end</code> are not
514            * primary keys, they are indexes in the result set. Thus, <code>0</code>
515            * refers to the first result in the set. Setting both <code>start</code>
516            * and <code>end</code> to {@link
517            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
518            * result set.
519            * </p>
520            *
521            * @param userId the primary key of the user
522            * @param type the relationship type
523            * @param start the lower bound of the range of results
524            * @param end the upper bound of the range of results (not inclusive)
525            * @return the range of matching activities
526            * @throws PortalException if a permission checker was not initialized
527            * @throws SystemException if a system exception occurred
528            */
529            @Override
530            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
531                    long userId, int type, int start, int end)
532                    throws com.liferay.portal.kernel.exception.PortalException,
533                            com.liferay.portal.kernel.exception.SystemException {
534                    return _socialActivityService.getRelationActivities(userId, type,
535                            start, end);
536            }
537    
538            /**
539            * Returns the number of activities done by users in a relationship with the
540            * user identified by userId.
541            *
542            * @param userId the primary key of the user
543            * @return the number of matching activities
544            * @throws SystemException if a system exception occurred
545            */
546            @Override
547            public int getRelationActivitiesCount(long userId)
548                    throws com.liferay.portal.kernel.exception.SystemException {
549                    return _socialActivityService.getRelationActivitiesCount(userId);
550            }
551    
552            /**
553            * Returns the number of activities done by users in a relationship of type
554            * <code>type</code> with the user identified by <code>userId</code>. This
555            * method only counts activities without mirrors.
556            *
557            * @param userId the primary key of the user
558            * @param type the relationship type
559            * @return the number of matching activities
560            * @throws SystemException if a system exception occurred
561            */
562            @Override
563            public int getRelationActivitiesCount(long userId, int type)
564                    throws com.liferay.portal.kernel.exception.SystemException {
565                    return _socialActivityService.getRelationActivitiesCount(userId, type);
566            }
567    
568            /**
569            * Returns a range of all the activities done by the user.
570            *
571            * <p>
572            * Useful when paginating results. Returns a maximum of <code>end -
573            * start</code> instances. <code>start</code> and <code>end</code> are not
574            * primary keys, they are indexes in the result set. Thus, <code>0</code>
575            * refers to the first result in the set. Setting both <code>start</code>
576            * and <code>end</code> to {@link
577            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
578            * result set.
579            * </p>
580            *
581            * @param userId the primary key of the user
582            * @param start the lower bound of the range of results
583            * @param end the upper bound of the range of results (not inclusive)
584            * @return the range of matching activities
585            * @throws PortalException if a permission checker was not initialized
586            * @throws SystemException if a system exception occurred
587            */
588            @Override
589            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserActivities(
590                    long userId, int start, int end)
591                    throws com.liferay.portal.kernel.exception.PortalException,
592                            com.liferay.portal.kernel.exception.SystemException {
593                    return _socialActivityService.getUserActivities(userId, start, end);
594            }
595    
596            /**
597            * Returns the number of activities done by the user.
598            *
599            * @param userId the primary key of the user
600            * @return the number of matching activities
601            * @throws SystemException if a system exception occurred
602            */
603            @Override
604            public int getUserActivitiesCount(long userId)
605                    throws com.liferay.portal.kernel.exception.SystemException {
606                    return _socialActivityService.getUserActivitiesCount(userId);
607            }
608    
609            /**
610            * Returns a range of all the activities done in the user's groups. This
611            * method only finds activities without mirrors.
612            *
613            * <p>
614            * Useful when paginating results. Returns a maximum of <code>end -
615            * start</code> instances. <code>start</code> and <code>end</code> are not
616            * primary keys, they are indexes in the result set. Thus, <code>0</code>
617            * refers to the first result in the set. Setting both <code>start</code>
618            * and <code>end</code> to {@link
619            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
620            * result set.
621            * </p>
622            *
623            * @param userId the primary key of the user
624            * @param start the lower bound of the range of results
625            * @param end the upper bound of the range of results (not inclusive)
626            * @return the range of matching activities
627            * @throws PortalException if a permission checker was not initialized
628            * @throws SystemException if a system exception occurred
629            */
630            @Override
631            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsActivities(
632                    long userId, int start, int end)
633                    throws com.liferay.portal.kernel.exception.PortalException,
634                            com.liferay.portal.kernel.exception.SystemException {
635                    return _socialActivityService.getUserGroupsActivities(userId, start, end);
636            }
637    
638            /**
639            * Returns the number of activities done in user's groups. This method only
640            * counts activities without mirrors.
641            *
642            * @param userId the primary key of the user
643            * @return the number of matching activities
644            * @throws SystemException if a system exception occurred
645            */
646            @Override
647            public int getUserGroupsActivitiesCount(long userId)
648                    throws com.liferay.portal.kernel.exception.SystemException {
649                    return _socialActivityService.getUserGroupsActivitiesCount(userId);
650            }
651    
652            /**
653            * Returns a range of all the activities done in the user's groups and
654            * organizations. This method only finds activities without mirrors.
655            *
656            * <p>
657            * Useful when paginating results. Returns a maximum of <code>end -
658            * start</code> instances. <code>start</code> and <code>end</code> are not
659            * primary keys, they are indexes in the result set. Thus, <code>0</code>
660            * refers to the first result in the set. Setting both <code>start</code>
661            * and <code>end</code> to {@link
662            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
663            * result set.
664            * </p>
665            *
666            * @param userId the primary key of the user
667            * @param start the lower bound of the range of results
668            * @param end the upper bound of the range of results (not inclusive)
669            * @return the range of matching activities
670            * @throws PortalException if a permission checker was not initialized
671            * @throws SystemException if a system exception occurred
672            */
673            @Override
674            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsAndOrganizationsActivities(
675                    long userId, int start, int end)
676                    throws com.liferay.portal.kernel.exception.PortalException,
677                            com.liferay.portal.kernel.exception.SystemException {
678                    return _socialActivityService.getUserGroupsAndOrganizationsActivities(userId,
679                            start, end);
680            }
681    
682            /**
683            * Returns the number of activities done in user's groups and organizations.
684            * This method only counts activities without mirrors.
685            *
686            * @param userId the primary key of the user
687            * @return the number of matching activities
688            * @throws SystemException if a system exception occurred
689            */
690            @Override
691            public int getUserGroupsAndOrganizationsActivitiesCount(long userId)
692                    throws com.liferay.portal.kernel.exception.SystemException {
693                    return _socialActivityService.getUserGroupsAndOrganizationsActivitiesCount(userId);
694            }
695    
696            /**
697            * Returns a range of all activities done in the user's organizations. This
698            * method only finds activities without mirrors.
699            *
700            * <p>
701            * Useful when paginating results. Returns a maximum of <code>end -
702            * start</code> instances. <code>start</code> and <code>end</code> are not
703            * primary keys, they are indexes in the result set. Thus, <code>0</code>
704            * refers to the first result in the set. Setting both <code>start</code>
705            * and <code>end</code> to {@link
706            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
707            * result set.
708            * </p>
709            *
710            * @param userId the primary key of the user
711            * @param start the lower bound of the range of results
712            * @param end the upper bound of the range of results (not inclusive)
713            * @return the range of matching activities
714            * @throws PortalException if a permission checker was not initialized
715            * @throws SystemException if a system exception occurred
716            */
717            @Override
718            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserOrganizationsActivities(
719                    long userId, int start, int end)
720                    throws com.liferay.portal.kernel.exception.PortalException,
721                            com.liferay.portal.kernel.exception.SystemException {
722                    return _socialActivityService.getUserOrganizationsActivities(userId,
723                            start, end);
724            }
725    
726            /**
727            * Returns the number of activities done in the user's organizations. This
728            * method only counts activities without mirrors.
729            *
730            * @param userId the primary key of the user
731            * @return the number of matching activities
732            * @throws SystemException if a system exception occurred
733            */
734            @Override
735            public int getUserOrganizationsActivitiesCount(long userId)
736                    throws com.liferay.portal.kernel.exception.SystemException {
737                    return _socialActivityService.getUserOrganizationsActivitiesCount(userId);
738            }
739    
740            /**
741             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
742             */
743            public SocialActivityService getWrappedSocialActivityService() {
744                    return _socialActivityService;
745            }
746    
747            /**
748             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
749             */
750            public void setWrappedSocialActivityService(
751                    SocialActivityService socialActivityService) {
752                    _socialActivityService = socialActivityService;
753            }
754    
755            @Override
756            public SocialActivityService getWrappedService() {
757                    return _socialActivityService;
758            }
759    
760            @Override
761            public void setWrappedService(SocialActivityService socialActivityService) {
762                    _socialActivityService = socialActivityService;
763            }
764    
765            private SocialActivityService _socialActivityService;
766    }