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 SocialActivityLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see SocialActivityLocalService
026     * @generated
027     */
028    @ProviderType
029    public class SocialActivityLocalServiceWrapper
030            implements SocialActivityLocalService,
031                    ServiceWrapper<SocialActivityLocalService> {
032            public SocialActivityLocalServiceWrapper(
033                    SocialActivityLocalService socialActivityLocalService) {
034                    _socialActivityLocalService = socialActivityLocalService;
035            }
036    
037            @Override
038            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
039                    return _socialActivityLocalService.getActionableDynamicQuery();
040            }
041    
042            @Override
043            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
044                    return _socialActivityLocalService.dynamicQuery();
045            }
046    
047            @Override
048            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
049                    return _socialActivityLocalService.getIndexableActionableDynamicQuery();
050            }
051    
052            /**
053            * @throws PortalException
054            */
055            @Override
056            public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
057                    com.liferay.portal.kernel.model.PersistedModel persistedModel)
058                    throws com.liferay.portal.kernel.exception.PortalException {
059                    return _socialActivityLocalService.deletePersistedModel(persistedModel);
060            }
061    
062            @Override
063            public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
064                    java.io.Serializable primaryKeyObj)
065                    throws com.liferay.portal.kernel.exception.PortalException {
066                    return _socialActivityLocalService.getPersistedModel(primaryKeyObj);
067            }
068    
069            /**
070            * Adds the social activity to the database. Also notifies the appropriate model listeners.
071            *
072            * @param socialActivity the social activity
073            * @return the social activity that was added
074            */
075            @Override
076            public com.liferay.social.kernel.model.SocialActivity addSocialActivity(
077                    com.liferay.social.kernel.model.SocialActivity socialActivity) {
078                    return _socialActivityLocalService.addSocialActivity(socialActivity);
079            }
080    
081            /**
082            * Creates a new social activity with the primary key. Does not add the social activity to the database.
083            *
084            * @param activityId the primary key for the new social activity
085            * @return the new social activity
086            */
087            @Override
088            public com.liferay.social.kernel.model.SocialActivity createSocialActivity(
089                    long activityId) {
090                    return _socialActivityLocalService.createSocialActivity(activityId);
091            }
092    
093            /**
094            * Deletes the social activity from the database. Also notifies the appropriate model listeners.
095            *
096            * @param socialActivity the social activity
097            * @return the social activity that was removed
098            */
099            @Override
100            public com.liferay.social.kernel.model.SocialActivity deleteSocialActivity(
101                    com.liferay.social.kernel.model.SocialActivity socialActivity) {
102                    return _socialActivityLocalService.deleteSocialActivity(socialActivity);
103            }
104    
105            /**
106            * Deletes the social activity with the primary key from the database. Also notifies the appropriate model listeners.
107            *
108            * @param activityId the primary key of the social activity
109            * @return the social activity that was removed
110            * @throws PortalException if a social activity with the primary key could not be found
111            */
112            @Override
113            public com.liferay.social.kernel.model.SocialActivity deleteSocialActivity(
114                    long activityId)
115                    throws com.liferay.portal.kernel.exception.PortalException {
116                    return _socialActivityLocalService.deleteSocialActivity(activityId);
117            }
118    
119            @Override
120            public com.liferay.social.kernel.model.SocialActivity fetchFirstActivity(
121                    java.lang.String className, long classPK, int type) {
122                    return _socialActivityLocalService.fetchFirstActivity(className,
123                            classPK, type);
124            }
125    
126            @Override
127            public com.liferay.social.kernel.model.SocialActivity fetchSocialActivity(
128                    long activityId) {
129                    return _socialActivityLocalService.fetchSocialActivity(activityId);
130            }
131    
132            /**
133            * Returns the activity identified by its primary key.
134            *
135            * @param activityId the primary key of the activity
136            * @return Returns the activity
137            */
138            @Override
139            public com.liferay.social.kernel.model.SocialActivity getActivity(
140                    long activityId)
141                    throws com.liferay.portal.kernel.exception.PortalException {
142                    return _socialActivityLocalService.getActivity(activityId);
143            }
144    
145            /**
146            * Returns the activity that has the mirror activity.
147            *
148            * @param mirrorActivityId the primary key of the mirror activity
149            * @return Returns the mirror activity
150            */
151            @Override
152            public com.liferay.social.kernel.model.SocialActivity getMirrorActivity(
153                    long mirrorActivityId)
154                    throws com.liferay.portal.kernel.exception.PortalException {
155                    return _socialActivityLocalService.getMirrorActivity(mirrorActivityId);
156            }
157    
158            /**
159            * Returns the social activity with the primary key.
160            *
161            * @param activityId the primary key of the social activity
162            * @return the social activity
163            * @throws PortalException if a social activity with the primary key could not be found
164            */
165            @Override
166            public com.liferay.social.kernel.model.SocialActivity getSocialActivity(
167                    long activityId)
168                    throws com.liferay.portal.kernel.exception.PortalException {
169                    return _socialActivityLocalService.getSocialActivity(activityId);
170            }
171    
172            /**
173            * Updates the social activity in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
174            *
175            * @param socialActivity the social activity
176            * @return the social activity that was updated
177            */
178            @Override
179            public com.liferay.social.kernel.model.SocialActivity updateSocialActivity(
180                    com.liferay.social.kernel.model.SocialActivity socialActivity) {
181                    return _socialActivityLocalService.updateSocialActivity(socialActivity);
182            }
183    
184            /**
185            * Returns the number of activities done on assets identified by class name.
186            *
187            * @param className the target asset's class name
188            * @return the number of matching activities
189            */
190            @Override
191            public int getActivitiesCount(java.lang.String className) {
192                    return _socialActivityLocalService.getActivitiesCount(className);
193            }
194    
195            /**
196            * Returns the number of activities done on assets identified by the class
197            * name ID.
198            *
199            * @param classNameId the target asset's class name ID
200            * @return the number of matching activities
201            */
202            @Override
203            public int getActivitiesCount(long classNameId) {
204                    return _socialActivityLocalService.getActivitiesCount(classNameId);
205            }
206    
207            /**
208            * Returns the number of activities done on the asset identified by the
209            * class name and class primary key that are mirrors of the activity
210            * identified by the mirror activity ID.
211            *
212            * @param mirrorActivityId the primary key of the mirror activity
213            * @param className the target asset's class name
214            * @param classPK the primary key of the target asset
215            * @return the number of matching activities
216            */
217            @Override
218            public int getActivitiesCount(long mirrorActivityId,
219                    java.lang.String className, long classPK) {
220                    return _socialActivityLocalService.getActivitiesCount(mirrorActivityId,
221                            className, classPK);
222            }
223    
224            /**
225            * Returns the number of activities done on the asset identified by the
226            * class name ID and class primary key that are mirrors of the activity
227            * identified by the mirror activity ID.
228            *
229            * @param mirrorActivityId the primary key of the mirror activity
230            * @param classNameId the target asset's class name ID
231            * @param classPK the primary key of the target asset
232            * @return the number of matching activities
233            */
234            @Override
235            public int getActivitiesCount(long mirrorActivityId, long classNameId,
236                    long classPK) {
237                    return _socialActivityLocalService.getActivitiesCount(mirrorActivityId,
238                            classNameId, classPK);
239            }
240    
241            /**
242            * Returns the number of activities done in the group.
243            *
244            * <p>
245            * This method only counts activities without mirrors.
246            * </p>
247            *
248            * @param groupId the primary key of the group
249            * @return the number of matching activities
250            */
251            @Override
252            public int getGroupActivitiesCount(long groupId) {
253                    return _socialActivityLocalService.getGroupActivitiesCount(groupId);
254            }
255    
256            /**
257            * Returns the number of activities done by users that are members of the
258            * group.
259            *
260            * <p>
261            * This method only counts activities without mirrors.
262            * </p>
263            *
264            * @param groupId the primary key of the group
265            * @return the number of matching activities
266            */
267            @Override
268            public int getGroupUsersActivitiesCount(long groupId) {
269                    return _socialActivityLocalService.getGroupUsersActivitiesCount(groupId);
270            }
271    
272            /**
273            * Returns the number of activities done in the organization. This method
274            * only counts activities without mirrors.
275            *
276            * @param organizationId the primary key of the organization
277            * @return the number of matching activities
278            */
279            @Override
280            public int getOrganizationActivitiesCount(long organizationId) {
281                    return _socialActivityLocalService.getOrganizationActivitiesCount(organizationId);
282            }
283    
284            /**
285            * Returns the number of activities done by users of the organization. This
286            * method only counts activities without mirrors.
287            *
288            * @param organizationId the primary key of the organization
289            * @return the number of matching activities
290            */
291            @Override
292            public int getOrganizationUsersActivitiesCount(long organizationId) {
293                    return _socialActivityLocalService.getOrganizationUsersActivitiesCount(organizationId);
294            }
295    
296            /**
297            * Returns the number of activities done by users in a relationship with the
298            * user identified by userId.
299            *
300            * @param userId the primary key of the user
301            * @return the number of matching activities
302            */
303            @Override
304            public int getRelationActivitiesCount(long userId) {
305                    return _socialActivityLocalService.getRelationActivitiesCount(userId);
306            }
307    
308            /**
309            * Returns the number of activities done by users in a relationship of type
310            * <code>type</code> with the user identified by <code>userId</code>. This
311            * method only counts activities without mirrors.
312            *
313            * @param userId the primary key of the user
314            * @param type the relationship type
315            * @return the number of matching activities
316            */
317            @Override
318            public int getRelationActivitiesCount(long userId, int type) {
319                    return _socialActivityLocalService.getRelationActivitiesCount(userId,
320                            type);
321            }
322    
323            /**
324            * Returns the number of social activities.
325            *
326            * @return the number of social activities
327            */
328            @Override
329            public int getSocialActivitiesCount() {
330                    return _socialActivityLocalService.getSocialActivitiesCount();
331            }
332    
333            /**
334            * Returns the number of activities done by the user.
335            *
336            * @param userId the primary key of the user
337            * @return the number of matching activities
338            */
339            @Override
340            public int getUserActivitiesCount(long userId) {
341                    return _socialActivityLocalService.getUserActivitiesCount(userId);
342            }
343    
344            /**
345            * Returns the number of activities done in user's groups. This method only
346            * counts activities without mirrors.
347            *
348            * @param userId the primary key of the user
349            * @return the number of matching activities
350            */
351            @Override
352            public int getUserGroupsActivitiesCount(long userId) {
353                    return _socialActivityLocalService.getUserGroupsActivitiesCount(userId);
354            }
355    
356            /**
357            * Returns the number of activities done in user's groups and organizations.
358            * This method only counts activities without mirrors.
359            *
360            * @param userId the primary key of the user
361            * @return the number of matching activities
362            */
363            @Override
364            public int getUserGroupsAndOrganizationsActivitiesCount(long userId) {
365                    return _socialActivityLocalService.getUserGroupsAndOrganizationsActivitiesCount(userId);
366            }
367    
368            /**
369            * Returns the number of activities done in the user's organizations. This
370            * method only counts activities without mirrors.
371            *
372            * @param userId the primary key of the user
373            * @return the number of matching activities
374            */
375            @Override
376            public int getUserOrganizationsActivitiesCount(long userId) {
377                    return _socialActivityLocalService.getUserOrganizationsActivitiesCount(userId);
378            }
379    
380            /**
381            * Returns the OSGi service identifier.
382            *
383            * @return the OSGi service identifier
384            */
385            @Override
386            public java.lang.String getOSGiServiceIdentifier() {
387                    return _socialActivityLocalService.getOSGiServiceIdentifier();
388            }
389    
390            /**
391            * Performs a dynamic query on the database and returns the matching rows.
392            *
393            * @param dynamicQuery the dynamic query
394            * @return the matching rows
395            */
396            @Override
397            public <T> java.util.List<T> dynamicQuery(
398                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
399                    return _socialActivityLocalService.dynamicQuery(dynamicQuery);
400            }
401    
402            /**
403            * Performs a dynamic query on the database and returns a range of the matching rows.
404            *
405            * <p>
406            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
407            * </p>
408            *
409            * @param dynamicQuery the dynamic query
410            * @param start the lower bound of the range of model instances
411            * @param end the upper bound of the range of model instances (not inclusive)
412            * @return the range of matching rows
413            */
414            @Override
415            public <T> java.util.List<T> dynamicQuery(
416                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
417                    int end) {
418                    return _socialActivityLocalService.dynamicQuery(dynamicQuery, start, end);
419            }
420    
421            /**
422            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
423            *
424            * <p>
425            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
426            * </p>
427            *
428            * @param dynamicQuery the dynamic query
429            * @param start the lower bound of the range of model instances
430            * @param end the upper bound of the range of model instances (not inclusive)
431            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
432            * @return the ordered range of matching rows
433            */
434            @Override
435            public <T> java.util.List<T> dynamicQuery(
436                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
437                    int end,
438                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
439                    return _socialActivityLocalService.dynamicQuery(dynamicQuery, start,
440                            end, orderByComparator);
441            }
442    
443            /**
444            * Returns a range of all the activities done on assets identified by the
445            * class name.
446            *
447            * <p>
448            * Useful when paginating results. Returns a maximum of <code>end -
449            * start</code> instances. <code>start</code> and <code>end</code> are not
450            * primary keys, they are indexes in the result set. Thus, <code>0</code>
451            * refers to the first result in the set. Setting both <code>start</code>
452            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
453            * result set.
454            * </p>
455            *
456            * @param className the target asset's class name
457            * @param start the lower bound of the range of results
458            * @param end the upper bound of the range of results (not inclusive)
459            * @return the range of matching activities
460            */
461            @Override
462            public java.util.List<com.liferay.social.kernel.model.SocialActivity> getActivities(
463                    java.lang.String className, int start, int end) {
464                    return _socialActivityLocalService.getActivities(className, start, end);
465            }
466    
467            /**
468            * Returns a range of all the activities done on assets identified by the
469            * class name ID.
470            *
471            * <p>
472            * Useful when paginating results. Returns a maximum of <code>end -
473            * start</code> instances. <code>start</code> and <code>end</code> are not
474            * primary keys, they are indexes in the result set. Thus, <code>0</code>
475            * refers to the first result in the set. Setting both <code>start</code>
476            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
477            * result set.
478            * </p>
479            *
480            * @param classNameId the target asset's class name ID
481            * @param start the lower bound of the range of results
482            * @param end the upper bound of the range of results (not inclusive)
483            * @return the range of matching activities
484            */
485            @Override
486            public java.util.List<com.liferay.social.kernel.model.SocialActivity> getActivities(
487                    long classNameId, int start, int end) {
488                    return _socialActivityLocalService.getActivities(classNameId, start, end);
489            }
490    
491            /**
492            * Returns a range of all the activities done on the asset identified by the
493            * class name and the class primary key that are mirrors of the activity
494            * identified by the mirror activity ID.
495            *
496            * <p>
497            * Useful when paginating results. Returns a maximum of <code>end -
498            * start</code> instances. <code>start</code> and <code>end</code> are not
499            * primary keys, they are indexes in the result set. Thus, <code>0</code>
500            * refers to the first result in the set. Setting both <code>start</code>
501            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
502            * result set.
503            * </p>
504            *
505            * @param mirrorActivityId the primary key of the mirror activity
506            * @param className the target asset's class name
507            * @param classPK the primary key of the target asset
508            * @param start the lower bound of the range of results
509            * @param end the upper bound of the range of results (not inclusive)
510            * @return the range of matching activities
511            */
512            @Override
513            public java.util.List<com.liferay.social.kernel.model.SocialActivity> getActivities(
514                    long mirrorActivityId, java.lang.String className, long classPK,
515                    int start, int end) {
516                    return _socialActivityLocalService.getActivities(mirrorActivityId,
517                            className, classPK, start, end);
518            }
519    
520            /**
521            * Returns a range of all the activities done on the asset identified by the
522            * class name ID and class primary key that are mirrors of the activity
523            * identified by the mirror activity ID.
524            *
525            * <p>
526            * Useful when paginating results. Returns a maximum of <code>end -
527            * start</code> instances. <code>start</code> and <code>end</code> are not
528            * primary keys, they are indexes in the result set. Thus, <code>0</code>
529            * refers to the first result in the set. Setting both <code>start</code>
530            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
531            * result set.
532            * </p>
533            *
534            * @param mirrorActivityId the primary key of the mirror activity
535            * @param classNameId the target asset's class name ID
536            * @param classPK the primary key of the target asset
537            * @param start the lower bound of the range of results
538            * @param end the upper bound of the range of results (not inclusive)
539            * @return the range of matching activities
540            */
541            @Override
542            public java.util.List<com.liferay.social.kernel.model.SocialActivity> getActivities(
543                    long mirrorActivityId, long classNameId, long classPK, int start,
544                    int end) {
545                    return _socialActivityLocalService.getActivities(mirrorActivityId,
546                            classNameId, classPK, start, end);
547            }
548    
549            @Override
550            public java.util.List<com.liferay.social.kernel.model.SocialActivity> getActivitySetActivities(
551                    long activitySetId, int start, int end) {
552                    return _socialActivityLocalService.getActivitySetActivities(activitySetId,
553                            start, end);
554            }
555    
556            /**
557            * Returns a range of all the activities done in the group.
558            *
559            * <p>
560            * This method only finds activities without mirrors.
561            * </p>
562            *
563            * <p>
564            * Useful when paginating results. Returns a maximum of <code>end -
565            * start</code> instances. <code>start</code> and <code>end</code> are not
566            * primary keys, they are indexes in the result set. Thus, <code>0</code>
567            * refers to the first result in the set. Setting both <code>start</code>
568            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
569            * result set.
570            * </p>
571            *
572            * @param groupId the primary key of the group
573            * @param start the lower bound of the range of results
574            * @param end the upper bound of the range of results (not inclusive)
575            * @return the range of matching activities
576            */
577            @Override
578            public java.util.List<com.liferay.social.kernel.model.SocialActivity> getGroupActivities(
579                    long groupId, int start, int end) {
580                    return _socialActivityLocalService.getGroupActivities(groupId, start,
581                            end);
582            }
583    
584            /**
585            * Returns a range of activities done by users that are members of the
586            * group.
587            *
588            * <p>
589            * This method only finds activities without mirrors.
590            * </p>
591            *
592            * <p>
593            * Useful when paginating results. Returns a maximum of <code>end -
594            * start</code> instances. <code>start</code> and <code>end</code> are not
595            * primary keys, they are indexes in the result set. Thus, <code>0</code>
596            * refers to the first result in the set. Setting both <code>start</code>
597            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
598            * result set.
599            * </p>
600            *
601            * @param groupId the primary key of the group
602            * @param start the lower bound of the range of results
603            * @param end the upper bound of the range of results (not inclusive)
604            * @return the range of matching activities
605            */
606            @Override
607            public java.util.List<com.liferay.social.kernel.model.SocialActivity> getGroupUsersActivities(
608                    long groupId, int start, int end) {
609                    return _socialActivityLocalService.getGroupUsersActivities(groupId,
610                            start, end);
611            }
612    
613            /**
614            * Returns a range of all the activities done in the organization. This
615            * method only finds activities without mirrors.
616            *
617            * <p>
618            * Useful when paginating results. Returns a maximum of <code>end -
619            * start</code> instances. <code>start</code> and <code>end</code> are not
620            * primary keys, they are indexes in the result set. Thus, <code>0</code>
621            * refers to the first result in the set. Setting both <code>start</code>
622            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
623            * result set.
624            * </p>
625            *
626            * @param organizationId the primary key of the organization
627            * @param start the lower bound of the range of results
628            * @param end the upper bound of the range of results (not inclusive)
629            * @return the range of matching activities
630            */
631            @Override
632            public java.util.List<com.liferay.social.kernel.model.SocialActivity> getOrganizationActivities(
633                    long organizationId, int start, int end) {
634                    return _socialActivityLocalService.getOrganizationActivities(organizationId,
635                            start, end);
636            }
637    
638            /**
639            * Returns a range of all the activities done by users of the organization.
640            * This method only finds activities without mirrors.
641            *
642            * <p>
643            * Useful when paginating results. Returns a maximum of <code>end -
644            * start</code> instances. <code>start</code> and <code>end</code> are not
645            * primary keys, they are indexes in the result set. Thus, <code>0</code>
646            * refers to the first result in the set. Setting both <code>start</code>
647            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
648            * result set.
649            * </p>
650            *
651            * @param organizationId the primary key of the organization
652            * @param start the lower bound of the range of results
653            * @param end the upper bound of the range of results (not inclusive)
654            * @return the range of matching activities
655            */
656            @Override
657            public java.util.List<com.liferay.social.kernel.model.SocialActivity> getOrganizationUsersActivities(
658                    long organizationId, int start, int end) {
659                    return _socialActivityLocalService.getOrganizationUsersActivities(organizationId,
660                            start, end);
661            }
662    
663            /**
664            * Returns a range of all the activities done by users in a relationship
665            * with the user identified by the user ID.
666            *
667            * <p>
668            * Useful when paginating results. Returns a maximum of <code>end -
669            * start</code> instances. <code>start</code> and <code>end</code> are not
670            * primary keys, they are indexes in the result set. Thus, <>0</code> refers
671            * to the first result in the set. Setting both <code>start</code> and
672            * <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result
673            * set.
674            * </p>
675            *
676            * @param userId the primary key of the user
677            * @param start the lower bound of the range of results
678            * @param end the upper bound of the range of results (not inclusive)
679            * @return the range of matching activities
680            */
681            @Override
682            public java.util.List<com.liferay.social.kernel.model.SocialActivity> getRelationActivities(
683                    long userId, int start, int end) {
684                    return _socialActivityLocalService.getRelationActivities(userId, start,
685                            end);
686            }
687    
688            /**
689            * Returns a range of all the activities done by users in a relationship of
690            * type <code>type</code> with the user identified by <code>userId</code>.
691            * This method only finds activities without mirrors.
692            *
693            * <p>
694            * Useful when paginating results. Returns a maximum of <code>end -
695            * start</code> instances. <code>start</code> and <code>end</code> are not
696            * primary keys, they are indexes in the result set. Thus, <code>0</code>
697            * refers to the first result in the set. Setting both <code>start</code>
698            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
699            * result set.
700            * </p>
701            *
702            * @param userId the primary key of the user
703            * @param type the relationship type
704            * @param start the lower bound of the range of results
705            * @param end the upper bound of the range of results (not inclusive)
706            * @return the range of matching activities
707            */
708            @Override
709            public java.util.List<com.liferay.social.kernel.model.SocialActivity> getRelationActivities(
710                    long userId, int type, int start, int end) {
711                    return _socialActivityLocalService.getRelationActivities(userId, type,
712                            start, end);
713            }
714    
715            /**
716            * Returns a range of all the social activities.
717            *
718            * <p>
719            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
720            * </p>
721            *
722            * @param start the lower bound of the range of social activities
723            * @param end the upper bound of the range of social activities (not inclusive)
724            * @return the range of social activities
725            */
726            @Override
727            public java.util.List<com.liferay.social.kernel.model.SocialActivity> getSocialActivities(
728                    int start, int end) {
729                    return _socialActivityLocalService.getSocialActivities(start, end);
730            }
731    
732            /**
733            * Returns a range of all the activities done by the user.
734            *
735            * <p>
736            * Useful when paginating results. Returns a maximum of <code>end -
737            * start</code> instances. <code>start</code> and <code>end</code> are not
738            * primary keys, they are indexes in the result set. Thus, <code>0</code>
739            * refers to the first result in the set. Setting both <code>start</code>
740            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
741            * result set.
742            * </p>
743            *
744            * @param userId the primary key of the user
745            * @param start the lower bound of the range of results
746            * @param end the upper bound of the range of results (not inclusive)
747            * @return the range of matching activities
748            */
749            @Override
750            public java.util.List<com.liferay.social.kernel.model.SocialActivity> getUserActivities(
751                    long userId, int start, int end) {
752                    return _socialActivityLocalService.getUserActivities(userId, start, end);
753            }
754    
755            /**
756            * Returns a range of all the activities done in the user's groups. This
757            * method only finds activities without mirrors.
758            *
759            * <p>
760            * Useful when paginating results. Returns a maximum of <code>end -
761            * start</code> instances. <code>start</code> and <code>end</code> are not
762            * primary keys, they are indexes in the result set. Thus, <code>0</code>
763            * refers to the first result in the set. Setting both <code>start</code>
764            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
765            * result set.
766            * </p>
767            *
768            * @param userId the primary key of the user
769            * @param start the lower bound of the range of results
770            * @param end the upper bound of the range of results (not inclusive)
771            * @return the range of matching activities
772            */
773            @Override
774            public java.util.List<com.liferay.social.kernel.model.SocialActivity> getUserGroupsActivities(
775                    long userId, int start, int end) {
776                    return _socialActivityLocalService.getUserGroupsActivities(userId,
777                            start, end);
778            }
779    
780            /**
781            * Returns a range of all the activities done in the user's groups and
782            * organizations. This method only finds activities without mirrors.
783            *
784            * <p>
785            * Useful when paginating results. Returns a maximum of <code>end -
786            * start</code> instances. <code>start</code> and <code>end</code> are not
787            * primary keys, they are indexes in the result set. Thus, <code>0</code>
788            * refers to the first result in the set. Setting both <code>start</code>
789            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
790            * result set.
791            * </p>
792            *
793            * @param userId the primary key of the user
794            * @param start the lower bound of the range of results
795            * @param end the upper bound of the range of results (not inclusive)
796            * @return the range of matching activities
797            */
798            @Override
799            public java.util.List<com.liferay.social.kernel.model.SocialActivity> getUserGroupsAndOrganizationsActivities(
800                    long userId, int start, int end) {
801                    return _socialActivityLocalService.getUserGroupsAndOrganizationsActivities(userId,
802                            start, end);
803            }
804    
805            /**
806            * Returns a range of all activities done in the user's organizations. This
807            * method only finds activities without mirrors.
808            *
809            * <p>
810            * Useful when paginating results. Returns a maximum of <code>end -
811            * start</code> instances. <code>start</code> and <code>end</code> are not
812            * primary keys, they are indexes in the result set. Thus, <code>0</code>
813            * refers to the first result in the set. Setting both <code>start</code>
814            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
815            * result set.
816            * </p>
817            *
818            * @param userId the primary key of the user
819            * @param start the lower bound of the range of results
820            * @param end the upper bound of the range of results (not inclusive)
821            * @return the range of matching activities
822            */
823            @Override
824            public java.util.List<com.liferay.social.kernel.model.SocialActivity> getUserOrganizationsActivities(
825                    long userId, int start, int end) {
826                    return _socialActivityLocalService.getUserOrganizationsActivities(userId,
827                            start, end);
828            }
829    
830            /**
831            * Returns the number of rows matching the dynamic query.
832            *
833            * @param dynamicQuery the dynamic query
834            * @return the number of rows matching the dynamic query
835            */
836            @Override
837            public long dynamicQueryCount(
838                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
839                    return _socialActivityLocalService.dynamicQueryCount(dynamicQuery);
840            }
841    
842            /**
843            * Returns the number of rows matching the dynamic query.
844            *
845            * @param dynamicQuery the dynamic query
846            * @param projection the projection to apply to the query
847            * @return the number of rows matching the dynamic query
848            */
849            @Override
850            public long dynamicQueryCount(
851                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
852                    com.liferay.portal.kernel.dao.orm.Projection projection) {
853                    return _socialActivityLocalService.dynamicQueryCount(dynamicQuery,
854                            projection);
855            }
856    
857            @Override
858            public void addActivity(
859                    com.liferay.social.kernel.model.SocialActivity activity,
860                    com.liferay.social.kernel.model.SocialActivity mirrorActivity)
861                    throws com.liferay.portal.kernel.exception.PortalException {
862                    _socialActivityLocalService.addActivity(activity, mirrorActivity);
863            }
864    
865            /**
866            * Records an activity in the database, using a time based on the current
867            * time in an attempt to make the activity's time unique.
868            *
869            * @param userId the primary key of the acting user
870            * @param groupId the primary key of the group
871            * @param className the target asset's class name
872            * @param classPK the primary key of the target asset
873            * @param type the activity's type
874            * @param extraData any extra data regarding the activity
875            * @param receiverUserId the primary key of the receiving user
876            */
877            @Override
878            public void addActivity(long userId, long groupId,
879                    java.lang.String className, long classPK, int type,
880                    java.lang.String extraData, long receiverUserId)
881                    throws com.liferay.portal.kernel.exception.PortalException {
882                    _socialActivityLocalService.addActivity(userId, groupId, className,
883                            classPK, type, extraData, receiverUserId);
884            }
885    
886            /**
887            * Records an activity with the given time in the database.
888            *
889            * <p>
890            * This method records a social activity done on an asset, identified by its
891            * class name and class primary key, in the database. Additional information
892            * (such as the original message ID for a reply to a forum post) is passed
893            * in via the <code>extraData</code> in JSON format. For activities
894            * affecting another user, a mirror activity is generated that describes the
895            * action from the user's point of view. The target user's ID is passed in
896            * via the <code>receiverUserId</code>.
897            * </p>
898            *
899            * <p>
900            * Example for a mirrored activity:<br> When a user replies to a message
901            * boards post, the reply action is stored in the database with the
902            * <code>receiverUserId</code> being the ID of the author of the original
903            * message. The <code>extraData</code> contains the ID of the original
904            * message in JSON format. A mirror activity is generated with the values of
905            * the <code>userId</code> and the <code>receiverUserId</code> swapped. This
906            * mirror activity basically describes a "replied to" event.
907            * </p>
908            *
909            * <p>
910            * Mirror activities are most often used in relation to friend requests and
911            * activities.
912            * </p>
913            *
914            * @param userId the primary key of the acting user
915            * @param groupId the primary key of the group
916            * @param createDate the activity's date
917            * @param className the target asset's class name
918            * @param classPK the primary key of the target asset
919            * @param type the activity's type
920            * @param extraData any extra data regarding the activity
921            * @param receiverUserId the primary key of the receiving user
922            */
923            @Override
924            public void addActivity(long userId, long groupId,
925                    java.util.Date createDate, java.lang.String className, long classPK,
926                    int type, java.lang.String extraData, long receiverUserId)
927                    throws com.liferay.portal.kernel.exception.PortalException {
928                    _socialActivityLocalService.addActivity(userId, groupId, createDate,
929                            className, classPK, type, extraData, receiverUserId);
930            }
931    
932            /**
933            * Records an activity with the current time in the database, but only if
934            * there isn't one with the same parameters.
935            *
936            * <p>
937            * For the main functionality see {@link #addActivity(long, long, Date,
938            * String, long, int, String, long)}
939            * </p>
940            *
941            * @param userId the primary key of the acting user
942            * @param groupId the primary key of the group
943            * @param className the target asset's class name
944            * @param classPK the primary key of the target asset
945            * @param type the activity's type
946            * @param extraData any extra data regarding the activity
947            * @param receiverUserId the primary key of the receiving user
948            */
949            @Override
950            public void addUniqueActivity(long userId, long groupId,
951                    java.lang.String className, long classPK, int type,
952                    java.lang.String extraData, long receiverUserId)
953                    throws com.liferay.portal.kernel.exception.PortalException {
954                    _socialActivityLocalService.addUniqueActivity(userId, groupId,
955                            className, classPK, type, extraData, receiverUserId);
956            }
957    
958            /**
959            * Records an activity in the database, but only if there isn't already an
960            * activity with the same parameters.
961            *
962            * <p>
963            * For the main functionality see {@link #addActivity(long, long, Date,
964            * String, long, int, String, long)}
965            * </p>
966            *
967            * @param userId the primary key of the acting user
968            * @param groupId the primary key of the group
969            * @param createDate the activity's date
970            * @param className the target asset's class name
971            * @param classPK the primary key of the target asset
972            * @param type the activity's type
973            * @param extraData any extra data regarding the activity
974            * @param receiverUserId the primary key of the receiving user
975            */
976            @Override
977            public void addUniqueActivity(long userId, long groupId,
978                    java.util.Date createDate, java.lang.String className, long classPK,
979                    int type, java.lang.String extraData, long receiverUserId)
980                    throws com.liferay.portal.kernel.exception.PortalException {
981                    _socialActivityLocalService.addUniqueActivity(userId, groupId,
982                            createDate, className, classPK, type, extraData, receiverUserId);
983            }
984    
985            /**
986            * Removes stored activities for the asset.
987            *
988            * @param assetEntry the asset from which to remove stored activities
989            */
990            @Override
991            public void deleteActivities(
992                    com.liferay.asset.kernel.model.AssetEntry assetEntry)
993                    throws com.liferay.portal.kernel.exception.PortalException {
994                    _socialActivityLocalService.deleteActivities(assetEntry);
995            }
996    
997            /**
998            * Removes stored activities for the asset identified by the class name and
999            * class primary key.
1000            *
1001            * @param className the target asset's class name
1002            * @param classPK the primary key of the target asset
1003            */
1004            @Override
1005            public void deleteActivities(java.lang.String className, long classPK)
1006                    throws com.liferay.portal.kernel.exception.PortalException {
1007                    _socialActivityLocalService.deleteActivities(className, classPK);
1008            }
1009    
1010            @Override
1011            public void deleteActivities(long groupId) {
1012                    _socialActivityLocalService.deleteActivities(groupId);
1013            }
1014    
1015            /**
1016            * Removes the stored activity and its mirror activity from the database.
1017            *
1018            * @param activity the activity to be removed
1019            */
1020            @Override
1021            public void deleteActivity(
1022                    com.liferay.social.kernel.model.SocialActivity activity)
1023                    throws com.liferay.portal.kernel.exception.PortalException {
1024                    _socialActivityLocalService.deleteActivity(activity);
1025            }
1026    
1027            /**
1028            * Removes the stored activity from the database.
1029            *
1030            * @param activityId the primary key of the stored activity
1031            */
1032            @Override
1033            public void deleteActivity(long activityId)
1034                    throws com.liferay.portal.kernel.exception.PortalException {
1035                    _socialActivityLocalService.deleteActivity(activityId);
1036            }
1037    
1038            /**
1039            * Removes the user's stored activities from the database.
1040            *
1041            * <p>
1042            * This method removes all activities where the user is either the actor or
1043            * the receiver.
1044            * </p>
1045            *
1046            * @param userId the primary key of the user
1047            */
1048            @Override
1049            public void deleteUserActivities(long userId)
1050                    throws com.liferay.portal.kernel.exception.PortalException {
1051                    _socialActivityLocalService.deleteUserActivities(userId);
1052            }
1053    
1054            @Override
1055            public SocialActivityLocalService getWrappedService() {
1056                    return _socialActivityLocalService;
1057            }
1058    
1059            @Override
1060            public void setWrappedService(
1061                    SocialActivityLocalService socialActivityLocalService) {
1062                    _socialActivityLocalService = socialActivityLocalService;
1063            }
1064    
1065            private SocialActivityLocalService _socialActivityLocalService;
1066    }