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