001    /**
002     * Copyright (c) 2000-present 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 a range of all the activities done on assets identified by the
038            * class name.
039            *
040            * <p>
041            * Useful when paginating results. Returns a maximum of <code>end -
042            * start</code> instances. <code>start</code> and <code>end</code> are not
043            * primary keys, they are indexes in the result set. Thus, <code>0</code>
044            * refers to the first result in the set. Setting both <code>start</code>
045            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
046            * result set.
047            * </p>
048            *
049            * @param className the target asset's class name
050            * @param start the lower bound of the range of results
051            * @param end the upper bound of the range of results (not inclusive)
052            * @return the range of matching activities
053            */
054            @Override
055            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
056                    java.lang.String className, int start, int end)
057                    throws com.liferay.portal.kernel.exception.PortalException {
058                    return _socialActivityService.getActivities(className, start, end);
059            }
060    
061            /**
062            * Returns a range of all the activities done on assets identified by the
063            * class name ID.
064            *
065            * <p>
066            * Useful when paginating results. Returns a maximum of <code>end -
067            * start</code> instances. <code>start</code> and <code>end</code> are not
068            * primary keys, they are indexes in the result set. Thus, <code>0</code>
069            * refers to the first result in the set. Setting both <code>start</code>
070            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
071            * result set.
072            * </p>
073            *
074            * @param classNameId the target asset's class name ID
075            * @param start the lower bound of the range of results
076            * @param end the upper bound of the range of results (not inclusive)
077            * @return the range of matching activities
078            */
079            @Override
080            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
081                    long classNameId, int start, int end)
082                    throws com.liferay.portal.kernel.exception.PortalException {
083                    return _socialActivityService.getActivities(classNameId, start, end);
084            }
085    
086            /**
087            * Returns a range of all the activities done on the asset identified by the
088            * class name and the class primary key that are mirrors of the activity
089            * identified by the mirror activity ID.
090            *
091            * <p>
092            * Useful when paginating results. Returns a maximum of <code>end -
093            * start</code> instances. <code>start</code> and <code>end</code> are not
094            * primary keys, they are indexes in the result set. Thus, <code>0</code>
095            * refers to the first result in the set. Setting both <code>start</code>
096            * and <code>end</code> to {@link 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 className the target asset's class name
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            */
107            @Override
108            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
109                    long mirrorActivityId, java.lang.String className, long classPK,
110                    int start, int end)
111                    throws com.liferay.portal.kernel.exception.PortalException {
112                    return _socialActivityService.getActivities(mirrorActivityId,
113                            className, classPK, start, end);
114            }
115    
116            /**
117            * Returns a range of all the activities done on the asset identified by the
118            * class name ID and class primary key that are mirrors of the activity
119            * identified by the mirror activity ID.
120            *
121            * <p>
122            * Useful when paginating results. Returns a maximum of <code>end -
123            * start</code> instances. <code>start</code> and <code>end</code> are not
124            * primary keys, they are indexes in the result set. Thus, <code>0</code>
125            * refers to the first result in the set. Setting both <code>start</code>
126            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
127            * result set.
128            * </p>
129            *
130            * @param mirrorActivityId the primary key of the mirror activity
131            * @param classNameId the target asset's class name ID
132            * @param classPK the primary key of the target asset
133            * @param start the lower bound of the range of results
134            * @param end the upper bound of the range of results (not inclusive)
135            * @return the range of matching activities
136            */
137            @Override
138            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
139                    long mirrorActivityId, long classNameId, long classPK, int start,
140                    int end) throws com.liferay.portal.kernel.exception.PortalException {
141                    return _socialActivityService.getActivities(mirrorActivityId,
142                            classNameId, classPK, start, end);
143            }
144    
145            /**
146            * Returns the number of activities done on assets identified by class name.
147            *
148            * @param className the target asset's class name
149            * @return the number of matching activities
150            */
151            @Override
152            public int getActivitiesCount(java.lang.String className) {
153                    return _socialActivityService.getActivitiesCount(className);
154            }
155    
156            /**
157            * Returns the number of activities done on assets identified by the class
158            * name ID.
159            *
160            * @param classNameId the target asset's class name ID
161            * @return the number of matching activities
162            */
163            @Override
164            public int getActivitiesCount(long classNameId) {
165                    return _socialActivityService.getActivitiesCount(classNameId);
166            }
167    
168            /**
169            * Returns the number of activities done on the asset identified by the
170            * class name and class primary key that are mirrors of the activity
171            * identified by the mirror activity ID.
172            *
173            * @param mirrorActivityId the primary key of the mirror activity
174            * @param className the target asset's class name
175            * @param classPK the primary key of the target asset
176            * @return the number of matching activities
177            */
178            @Override
179            public int getActivitiesCount(long mirrorActivityId,
180                    java.lang.String className, long classPK) {
181                    return _socialActivityService.getActivitiesCount(mirrorActivityId,
182                            className, classPK);
183            }
184    
185            /**
186            * Returns the number of activities done on the asset identified by the
187            * class name ID and class primary key that are mirrors of the activity
188            * identified by the mirror activity ID.
189            *
190            * @param mirrorActivityId the primary key of the mirror activity
191            * @param classNameId the target asset's class name ID
192            * @param classPK the primary key of the target asset
193            * @return the number of matching activities
194            */
195            @Override
196            public int getActivitiesCount(long mirrorActivityId, long classNameId,
197                    long classPK) {
198                    return _socialActivityService.getActivitiesCount(mirrorActivityId,
199                            classNameId, classPK);
200            }
201    
202            /**
203            * Returns the activity identified by its primary key.
204            *
205            * @param activityId the primary key of the activity
206            * @return Returns the activity
207            */
208            @Override
209            public com.liferay.portlet.social.model.SocialActivity getActivity(
210                    long activityId)
211                    throws com.liferay.portal.kernel.exception.PortalException {
212                    return _socialActivityService.getActivity(activityId);
213            }
214    
215            @Override
216            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivitySetActivities(
217                    long activitySetId, int start, int end)
218                    throws com.liferay.portal.kernel.exception.PortalException {
219                    return _socialActivityService.getActivitySetActivities(activitySetId,
220                            start, end);
221            }
222    
223            /**
224            * Returns a range of all the activities done in the group.
225            *
226            * <p>
227            * This method only finds activities without mirrors.
228            * </p>
229            *
230            * <p>
231            * Useful when paginating results. Returns a maximum of <code>end -
232            * start</code> instances. <code>start</code> and <code>end</code> are not
233            * primary keys, they are indexes in the result set. Thus, <code>0</code>
234            * refers to the first result in the set. Setting both <code>start</code>
235            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
236            * result set.
237            * </p>
238            *
239            * @param groupId the primary key of the group
240            * @param start the lower bound of the range of results
241            * @param end the upper bound of the range of results (not inclusive)
242            * @return the range of matching activities
243            */
244            @Override
245            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupActivities(
246                    long groupId, int start, int end)
247                    throws com.liferay.portal.kernel.exception.PortalException {
248                    return _socialActivityService.getGroupActivities(groupId, start, end);
249            }
250    
251            /**
252            * Returns the number of activities done in the group.
253            *
254            * <p>
255            * This method only counts activities without mirrors.
256            * </p>
257            *
258            * @param groupId the primary key of the group
259            * @return the number of matching activities
260            */
261            @Override
262            public int getGroupActivitiesCount(long groupId) {
263                    return _socialActivityService.getGroupActivitiesCount(groupId);
264            }
265    
266            /**
267            * Returns a range of activities done by users that are members of the
268            * group.
269            *
270            * <p>
271            * This method only finds activities without mirrors.
272            * </p>
273            *
274            * <p>
275            * Useful when paginating results. Returns a maximum of <code>end -
276            * start</code> instances. <code>start</code> and <code>end</code> are not
277            * primary keys, they are indexes in the result set. Thus, <code>0</code>
278            * refers to the first result in the set. Setting both <code>start</code>
279            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
280            * result set.
281            * </p>
282            *
283            * @param groupId the primary key of the group
284            * @param start the lower bound of the range of results
285            * @param end the upper bound of the range of results (not inclusive)
286            * @return the range of matching activities
287            */
288            @Override
289            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupUsersActivities(
290                    long groupId, int start, int end)
291                    throws com.liferay.portal.kernel.exception.PortalException {
292                    return _socialActivityService.getGroupUsersActivities(groupId, start,
293                            end);
294            }
295    
296            /**
297            * Returns the number of activities done by users that are members of the
298            * group.
299            *
300            * <p>
301            * This method only counts activities without mirrors.
302            * </p>
303            *
304            * @param groupId the primary key of the group
305            * @return the number of matching activities
306            */
307            @Override
308            public int getGroupUsersActivitiesCount(long groupId) {
309                    return _socialActivityService.getGroupUsersActivitiesCount(groupId);
310            }
311    
312            /**
313            * Returns the activity that has the mirror activity.
314            *
315            * @param mirrorActivityId the primary key of the mirror activity
316            * @return Returns the mirror activity
317            */
318            @Override
319            public com.liferay.portlet.social.model.SocialActivity getMirrorActivity(
320                    long mirrorActivityId)
321                    throws com.liferay.portal.kernel.exception.PortalException {
322                    return _socialActivityService.getMirrorActivity(mirrorActivityId);
323            }
324    
325            /**
326            * Returns the OSGi service identifier.
327            *
328            * @return the OSGi service identifier
329            */
330            @Override
331            public java.lang.String getOSGiServiceIdentifier() {
332                    return _socialActivityService.getOSGiServiceIdentifier();
333            }
334    
335            /**
336            * Returns a range of all the activities done in the organization. This
337            * method only finds activities without mirrors.
338            *
339            * <p>
340            * Useful when paginating results. Returns a maximum of <code>end -
341            * start</code> instances. <code>start</code> and <code>end</code> are not
342            * primary keys, they are indexes in the result set. Thus, <code>0</code>
343            * refers to the first result in the set. Setting both <code>start</code>
344            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
345            * result set.
346            * </p>
347            *
348            * @param organizationId the primary key of the organization
349            * @param start the lower bound of the range of results
350            * @param end the upper bound of the range of results (not inclusive)
351            * @return the range of matching activities
352            */
353            @Override
354            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationActivities(
355                    long organizationId, int start, int end)
356                    throws com.liferay.portal.kernel.exception.PortalException {
357                    return _socialActivityService.getOrganizationActivities(organizationId,
358                            start, end);
359            }
360    
361            /**
362            * Returns the number of activities done in the organization. This method
363            * only counts activities without mirrors.
364            *
365            * @param organizationId the primary key of the organization
366            * @return the number of matching activities
367            */
368            @Override
369            public int getOrganizationActivitiesCount(long organizationId) {
370                    return _socialActivityService.getOrganizationActivitiesCount(organizationId);
371            }
372    
373            /**
374            * Returns a range of all the activities done by users of the organization.
375            * This method only finds activities without mirrors.
376            *
377            * <p>
378            * Useful when paginating results. Returns a maximum of <code>end -
379            * start</code> instances. <code>start</code> and <code>end</code> are not
380            * primary keys, they are indexes in the result set. Thus, <code>0</code>
381            * refers to the first result in the set. Setting both <code>start</code>
382            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
383            * result set.
384            * </p>
385            *
386            * @param organizationId the primary key of the organization
387            * @param start the lower bound of the range of results
388            * @param end the upper bound of the range of results (not inclusive)
389            * @return the range of matching activities
390            */
391            @Override
392            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationUsersActivities(
393                    long organizationId, int start, int end)
394                    throws com.liferay.portal.kernel.exception.PortalException {
395                    return _socialActivityService.getOrganizationUsersActivities(organizationId,
396                            start, end);
397            }
398    
399            /**
400            * Returns the number of activities done by users of the organization. This
401            * method only counts activities without mirrors.
402            *
403            * @param organizationId the primary key of the organization
404            * @return the number of matching activities
405            */
406            @Override
407            public int getOrganizationUsersActivitiesCount(long organizationId) {
408                    return _socialActivityService.getOrganizationUsersActivitiesCount(organizationId);
409            }
410    
411            /**
412            * Returns a range of all the activities done by users in a relationship
413            * with the user identified by the user ID.
414            *
415            * <p>
416            * Useful when paginating results. Returns a maximum of <code>end -
417            * start</code> instances. <code>start</code> and <code>end</code> are not
418            * primary keys, they are indexes in the result set. Thus, <>0</code> refers
419            * to the first result in the set. Setting both <code>start</code> and
420            * <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result
421            * set.
422            * </p>
423            *
424            * @param userId the primary key of the user
425            * @param start the lower bound of the range of results
426            * @param end the upper bound of the range of results (not inclusive)
427            * @return the range of matching activities
428            */
429            @Override
430            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
431                    long userId, int start, int end)
432                    throws com.liferay.portal.kernel.exception.PortalException {
433                    return _socialActivityService.getRelationActivities(userId, start, end);
434            }
435    
436            /**
437            * Returns a range of all the activities done by users in a relationship of
438            * type <code>type</code> with the user identified by <code>userId</code>.
439            * This method only finds activities without mirrors.
440            *
441            * <p>
442            * Useful when paginating results. Returns a maximum of <code>end -
443            * start</code> instances. <code>start</code> and <code>end</code> are not
444            * primary keys, they are indexes in the result set. Thus, <code>0</code>
445            * refers to the first result in the set. Setting both <code>start</code>
446            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
447            * result set.
448            * </p>
449            *
450            * @param userId the primary key of the user
451            * @param type the relationship type
452            * @param start the lower bound of the range of results
453            * @param end the upper bound of the range of results (not inclusive)
454            * @return the range of matching activities
455            */
456            @Override
457            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
458                    long userId, int type, int start, int end)
459                    throws com.liferay.portal.kernel.exception.PortalException {
460                    return _socialActivityService.getRelationActivities(userId, type,
461                            start, end);
462            }
463    
464            /**
465            * Returns the number of activities done by users in a relationship with the
466            * user identified by userId.
467            *
468            * @param userId the primary key of the user
469            * @return the number of matching activities
470            */
471            @Override
472            public int getRelationActivitiesCount(long userId) {
473                    return _socialActivityService.getRelationActivitiesCount(userId);
474            }
475    
476            /**
477            * Returns the number of activities done by users in a relationship of type
478            * <code>type</code> with the user identified by <code>userId</code>. This
479            * method only counts activities without mirrors.
480            *
481            * @param userId the primary key of the user
482            * @param type the relationship type
483            * @return the number of matching activities
484            */
485            @Override
486            public int getRelationActivitiesCount(long userId, int type) {
487                    return _socialActivityService.getRelationActivitiesCount(userId, type);
488            }
489    
490            /**
491            * Returns a range of all the activities done by the user.
492            *
493            * <p>
494            * Useful when paginating results. Returns a maximum of <code>end -
495            * start</code> instances. <code>start</code> and <code>end</code> are not
496            * primary keys, they are indexes in the result set. Thus, <code>0</code>
497            * refers to the first result in the set. Setting both <code>start</code>
498            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
499            * result set.
500            * </p>
501            *
502            * @param userId the primary key of the user
503            * @param start the lower bound of the range of results
504            * @param end the upper bound of the range of results (not inclusive)
505            * @return the range of matching activities
506            */
507            @Override
508            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserActivities(
509                    long userId, int start, int end)
510                    throws com.liferay.portal.kernel.exception.PortalException {
511                    return _socialActivityService.getUserActivities(userId, start, end);
512            }
513    
514            /**
515            * Returns the number of activities done by the user.
516            *
517            * @param userId the primary key of the user
518            * @return the number of matching activities
519            */
520            @Override
521            public int getUserActivitiesCount(long userId) {
522                    return _socialActivityService.getUserActivitiesCount(userId);
523            }
524    
525            /**
526            * Returns a range of all the activities done in the user's groups. This
527            * method only finds activities without mirrors.
528            *
529            * <p>
530            * Useful when paginating results. Returns a maximum of <code>end -
531            * start</code> instances. <code>start</code> and <code>end</code> are not
532            * primary keys, they are indexes in the result set. Thus, <code>0</code>
533            * refers to the first result in the set. Setting both <code>start</code>
534            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
535            * result set.
536            * </p>
537            *
538            * @param userId the primary key of the user
539            * @param start the lower bound of the range of results
540            * @param end the upper bound of the range of results (not inclusive)
541            * @return the range of matching activities
542            */
543            @Override
544            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsActivities(
545                    long userId, int start, int end)
546                    throws com.liferay.portal.kernel.exception.PortalException {
547                    return _socialActivityService.getUserGroupsActivities(userId, start, end);
548            }
549    
550            /**
551            * Returns the number of activities done in user's groups. This method only
552            * counts activities without mirrors.
553            *
554            * @param userId the primary key of the user
555            * @return the number of matching activities
556            */
557            @Override
558            public int getUserGroupsActivitiesCount(long userId) {
559                    return _socialActivityService.getUserGroupsActivitiesCount(userId);
560            }
561    
562            /**
563            * Returns a range of all the activities done in the user's groups and
564            * organizations. This method only finds activities without mirrors.
565            *
566            * <p>
567            * Useful when paginating results. Returns a maximum of <code>end -
568            * start</code> instances. <code>start</code> and <code>end</code> are not
569            * primary keys, they are indexes in the result set. Thus, <code>0</code>
570            * refers to the first result in the set. Setting both <code>start</code>
571            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
572            * result set.
573            * </p>
574            *
575            * @param userId the primary key of the user
576            * @param start the lower bound of the range of results
577            * @param end the upper bound of the range of results (not inclusive)
578            * @return the range of matching activities
579            */
580            @Override
581            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsAndOrganizationsActivities(
582                    long userId, int start, int end)
583                    throws com.liferay.portal.kernel.exception.PortalException {
584                    return _socialActivityService.getUserGroupsAndOrganizationsActivities(userId,
585                            start, end);
586            }
587    
588            /**
589            * Returns the number of activities done in user's groups and organizations.
590            * This method only counts activities without mirrors.
591            *
592            * @param userId the primary key of the user
593            * @return the number of matching activities
594            */
595            @Override
596            public int getUserGroupsAndOrganizationsActivitiesCount(long userId) {
597                    return _socialActivityService.getUserGroupsAndOrganizationsActivitiesCount(userId);
598            }
599    
600            /**
601            * Returns a range of all activities done in the user's organizations. This
602            * method only finds activities without mirrors.
603            *
604            * <p>
605            * Useful when paginating results. Returns a maximum of <code>end -
606            * start</code> instances. <code>start</code> and <code>end</code> are not
607            * primary keys, they are indexes in the result set. Thus, <code>0</code>
608            * refers to the first result in the set. Setting both <code>start</code>
609            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
610            * result set.
611            * </p>
612            *
613            * @param userId the primary key of the user
614            * @param start the lower bound of the range of results
615            * @param end the upper bound of the range of results (not inclusive)
616            * @return the range of matching activities
617            */
618            @Override
619            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserOrganizationsActivities(
620                    long userId, int start, int end)
621                    throws com.liferay.portal.kernel.exception.PortalException {
622                    return _socialActivityService.getUserOrganizationsActivities(userId,
623                            start, end);
624            }
625    
626            /**
627            * Returns the number of activities done in the user's organizations. This
628            * method only counts activities without mirrors.
629            *
630            * @param userId the primary key of the user
631            * @return the number of matching activities
632            */
633            @Override
634            public int getUserOrganizationsActivitiesCount(long userId) {
635                    return _socialActivityService.getUserOrganizationsActivitiesCount(userId);
636            }
637    
638            @Override
639            public SocialActivityService getWrappedService() {
640                    return _socialActivityService;
641            }
642    
643            @Override
644            public void setWrappedService(SocialActivityService socialActivityService) {
645                    _socialActivityService = socialActivityService;
646            }
647    
648            private SocialActivityService _socialActivityService;
649    }