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