001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.social.service;
016    
017    import 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            * @param assetEntry the asset from which to remove stored activities
408            * @throws PortalException if a portal exception occurred
409            * @throws SystemException if a system exception occurred
410            */
411            public void deleteActivities(
412                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
413                    throws com.liferay.portal.kernel.exception.PortalException,
414                            com.liferay.portal.kernel.exception.SystemException {
415                    _socialActivityLocalService.deleteActivities(assetEntry);
416            }
417    
418            /**
419            * Removes stored activities for the asset identified by the class name and
420            * class primary key.
421            *
422            * @param className the target asset's class name
423            * @param classPK the primary key of the target asset
424            * @throws SystemException if a system exception occurred
425            */
426            public void deleteActivities(java.lang.String className, long classPK)
427                    throws com.liferay.portal.kernel.exception.SystemException {
428                    _socialActivityLocalService.deleteActivities(className, classPK);
429            }
430    
431            /**
432            * Removes the stored activity from the database.
433            *
434            * @param activityId the primary key of the stored activity
435            * @throws PortalException if the activity could not be found
436            * @throws SystemException if a system exception occurred
437            */
438            public void deleteActivity(long activityId)
439                    throws com.liferay.portal.kernel.exception.PortalException,
440                            com.liferay.portal.kernel.exception.SystemException {
441                    _socialActivityLocalService.deleteActivity(activityId);
442            }
443    
444            /**
445            * Removes the stored activity and its mirror activity from the database.
446            *
447            * @param activity the activity to be removed
448            * @throws SystemException if a system exception occurred
449            */
450            public void deleteActivity(
451                    com.liferay.portlet.social.model.SocialActivity activity)
452                    throws com.liferay.portal.kernel.exception.SystemException {
453                    _socialActivityLocalService.deleteActivity(activity);
454            }
455    
456            /**
457            * Removes the user's stored activities from the database.
458            *
459            * <p>
460            * This method removes all activities where the user is either the actor or
461            * the receiver.
462            * </p>
463            *
464            * @param userId the primary key of the user
465            * @throws SystemException if a system exception occurred
466            */
467            public void deleteUserActivities(long userId)
468                    throws com.liferay.portal.kernel.exception.SystemException {
469                    _socialActivityLocalService.deleteUserActivities(userId);
470            }
471    
472            /**
473            * Returns a range of all the activities done on assets identified by the
474            * class name ID.
475            *
476            * <p>
477            * Useful when paginating results. Returns a maximum of <code>end -
478            * start</code> instances. <code>start</code> and <code>end</code> are not
479            * primary keys, they are indexes in the result set. Thus, <code>0</code>
480            * refers to the first result in the set. Setting both <code>start</code>
481            * and <code>end</code> to {@link
482            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
483            * result set.
484            * </p>
485            *
486            * @param classNameId the target asset's class name ID
487            * @param start the lower bound of the range of results
488            * @param end the upper bound of the range of results (not inclusive)
489            * @return the range of matching activities
490            * @throws SystemException if a system exception occurred
491            */
492            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
493                    long classNameId, int start, int end)
494                    throws com.liferay.portal.kernel.exception.SystemException {
495                    return _socialActivityLocalService.getActivities(classNameId, start, end);
496            }
497    
498            /**
499            * Returns a range of all the activities done on the asset identified by the
500            * class name ID and class primary key that are mirrors of the activity
501            * identified by the mirror activity ID.
502            *
503            * <p>
504            * Useful when paginating results. Returns a maximum of <code>end -
505            * start</code> instances. <code>start</code> and <code>end</code> are not
506            * primary keys, they are indexes in the result set. Thus, <code>0</code>
507            * refers to the first result in the set. Setting both <code>start</code>
508            * and <code>end</code> to {@link
509            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
510            * result set.
511            * </p>
512            *
513            * @param mirrorActivityId the primary key of the mirror activity
514            * @param classNameId the target asset's class name ID
515            * @param classPK the primary key of the target asset
516            * @param start the lower bound of the range of results
517            * @param end the upper bound of the range of results (not inclusive)
518            * @return the range of matching activities
519            * @throws SystemException if a system exception occurred
520            */
521            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
522                    long mirrorActivityId, long classNameId, long classPK, int start,
523                    int end) throws com.liferay.portal.kernel.exception.SystemException {
524                    return _socialActivityLocalService.getActivities(mirrorActivityId,
525                            classNameId, classPK, start, end);
526            }
527    
528            /**
529            * Returns a range of all the activities done on the asset identified by the
530            * class name and the class primary key that are mirrors of the activity
531            * identified by the mirror activity ID.
532            *
533            * <p>
534            * Useful when paginating results. Returns a maximum of <code>end -
535            * start</code> instances. <code>start</code> and <code>end</code> are not
536            * primary keys, they are indexes in the result set. Thus, <code>0</code>
537            * refers to the first result in the set. Setting both <code>start</code>
538            * and <code>end</code> to {@link
539            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
540            * result set.
541            * </p>
542            *
543            * @param mirrorActivityId the primary key of the mirror activity
544            * @param className the target asset's class name
545            * @param classPK the primary key of the target asset
546            * @param start the lower bound of the range of results
547            * @param end the upper bound of the range of results (not inclusive)
548            * @return the range of matching activities
549            * @throws SystemException if a system exception occurred
550            */
551            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
552                    long mirrorActivityId, java.lang.String className, long classPK,
553                    int start, int end)
554                    throws com.liferay.portal.kernel.exception.SystemException {
555                    return _socialActivityLocalService.getActivities(mirrorActivityId,
556                            className, classPK, start, end);
557            }
558    
559            /**
560            * Returns a range of all the activities done on assets identified by the
561            * class name.
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
569            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
570            * result set.
571            * </p>
572            *
573            * @param className the target asset's class name
574            * @param start the lower bound of the range of results
575            * @param end the upper bound of the range of results (not inclusive)
576            * @return the range of matching activities
577            * @throws SystemException if a system exception occurred
578            */
579            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
580                    java.lang.String className, int start, int end)
581                    throws com.liferay.portal.kernel.exception.SystemException {
582                    return _socialActivityLocalService.getActivities(className, start, end);
583            }
584    
585            /**
586            * Returns the number of activities done on assets identified by the class
587            * name ID.
588            *
589            * @param classNameId the target asset's class name ID
590            * @return the number of matching activities
591            * @throws SystemException if a system exception occurred
592            */
593            public int getActivitiesCount(long classNameId)
594                    throws com.liferay.portal.kernel.exception.SystemException {
595                    return _socialActivityLocalService.getActivitiesCount(classNameId);
596            }
597    
598            /**
599            * Returns the number of activities done on the asset identified by the
600            * class name ID and class primary key that are mirrors of the activity
601            * identified by the mirror activity ID.
602            *
603            * @param mirrorActivityId the primary key of the mirror activity
604            * @param classNameId the target asset's class name ID
605            * @param classPK the primary key of the target asset
606            * @return the number of matching activities
607            * @throws SystemException if a system exception occurred
608            */
609            public int getActivitiesCount(long mirrorActivityId, long classNameId,
610                    long classPK)
611                    throws com.liferay.portal.kernel.exception.SystemException {
612                    return _socialActivityLocalService.getActivitiesCount(mirrorActivityId,
613                            classNameId, classPK);
614            }
615    
616            /**
617            * Returns the number of activities done on the asset identified by the
618            * class name and class primary key that are mirrors of the activity
619            * identified by the mirror activity ID.
620            *
621            * @param mirrorActivityId the primary key of the mirror activity
622            * @param className the target asset's class name
623            * @param classPK the primary key of the target asset
624            * @return the number of matching activities
625            * @throws SystemException if a system exception occurred
626            */
627            public int getActivitiesCount(long mirrorActivityId,
628                    java.lang.String className, long classPK)
629                    throws com.liferay.portal.kernel.exception.SystemException {
630                    return _socialActivityLocalService.getActivitiesCount(mirrorActivityId,
631                            className, classPK);
632            }
633    
634            /**
635            * Returns the number of activities done on assets identified by class name.
636            *
637            * @param className the target asset's class name
638            * @return the number of matching activities
639            * @throws SystemException if a system exception occurred
640            */
641            public int getActivitiesCount(java.lang.String className)
642                    throws com.liferay.portal.kernel.exception.SystemException {
643                    return _socialActivityLocalService.getActivitiesCount(className);
644            }
645    
646            /**
647            * Returns the activity identified by its primary key.
648            *
649            * @param activityId the primary key of the activity
650            * @return Returns the activity
651            * @throws PortalException if the activity could not be found
652            * @throws SystemException if a system exception occurred
653            */
654            public com.liferay.portlet.social.model.SocialActivity getActivity(
655                    long activityId)
656                    throws com.liferay.portal.kernel.exception.PortalException,
657                            com.liferay.portal.kernel.exception.SystemException {
658                    return _socialActivityLocalService.getActivity(activityId);
659            }
660    
661            /**
662            * Returns a range of all the activities done in the group.
663            *
664            * <p>
665            * This method only finds activities without mirrors.
666            * </p>
667            *
668            * <p>
669            * Useful when paginating results. Returns a maximum of <code>end -
670            * start</code> instances. <code>start</code> and <code>end</code> are not
671            * primary keys, they are indexes in the result set. Thus, <code>0</code>
672            * refers to the first result in the set. Setting both <code>start</code>
673            * and <code>end</code> to {@link
674            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
675            * result set.
676            * </p>
677            *
678            * @param groupId the primary key of the group
679            * @param start the lower bound of the range of results
680            * @param end the upper bound of the range of results (not inclusive)
681            * @return the range of matching activities
682            * @throws SystemException if a system exception occurred
683            */
684            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupActivities(
685                    long groupId, int start, int end)
686                    throws com.liferay.portal.kernel.exception.SystemException {
687                    return _socialActivityLocalService.getGroupActivities(groupId, start,
688                            end);
689            }
690    
691            /**
692            * Returns the number of activities done in the group.
693            *
694            * <p>
695            * This method only counts activities without mirrors.
696            * </p>
697            *
698            * @param groupId the primary key of the group
699            * @return the number of matching activities
700            * @throws SystemException if a system exception occurred
701            */
702            public int getGroupActivitiesCount(long groupId)
703                    throws com.liferay.portal.kernel.exception.SystemException {
704                    return _socialActivityLocalService.getGroupActivitiesCount(groupId);
705            }
706    
707            /**
708            * Returns a range of activities done by users that are members of the
709            * group.
710            *
711            * <p>
712            * This method only finds activities without mirrors.
713            * </p>
714            *
715            * <p>
716            * Useful when paginating results. Returns a maximum of <code>end -
717            * start</code> instances. <code>start</code> and <code>end</code> are not
718            * primary keys, they are indexes in the result set. Thus, <code>0</code>
719            * refers to the first result in the set. Setting both <code>start</code>
720            * and <code>end</code> to {@link
721            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
722            * result set.
723            * </p>
724            *
725            * @param groupId the primary key of the group
726            * @param start the lower bound of the range of results
727            * @param end the upper bound of the range of results (not inclusive)
728            * @return the range of matching activities
729            * @throws SystemException if a system exception occurred
730            */
731            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupUsersActivities(
732                    long groupId, int start, int end)
733                    throws com.liferay.portal.kernel.exception.SystemException {
734                    return _socialActivityLocalService.getGroupUsersActivities(groupId,
735                            start, end);
736            }
737    
738            /**
739            * Returns the number of activities done by users that are members of the
740            * group.
741            *
742            * <p>
743            * This method only counts activities without mirrors.
744            * </p>
745            *
746            * @param groupId the primary key of the group
747            * @return the number of matching activities
748            * @throws SystemException if a system exception occurred
749            */
750            public int getGroupUsersActivitiesCount(long groupId)
751                    throws com.liferay.portal.kernel.exception.SystemException {
752                    return _socialActivityLocalService.getGroupUsersActivitiesCount(groupId);
753            }
754    
755            /**
756            * Returns the activity that has the mirror activity.
757            *
758            * @param mirrorActivityId the primary key of the mirror activity
759            * @return Returns the mirror activity
760            * @throws PortalException if the mirror activity could not be found
761            * @throws SystemException if a system exception occurred
762            */
763            public com.liferay.portlet.social.model.SocialActivity getMirrorActivity(
764                    long mirrorActivityId)
765                    throws com.liferay.portal.kernel.exception.PortalException,
766                            com.liferay.portal.kernel.exception.SystemException {
767                    return _socialActivityLocalService.getMirrorActivity(mirrorActivityId);
768            }
769    
770            /**
771            * Returns a range of all the activities done in the organization. This
772            * method only finds activities without mirrors.
773            *
774            * <p>
775            * Useful when paginating results. Returns a maximum of <code>end -
776            * start</code> instances. <code>start</code> and <code>end</code> are not
777            * primary keys, they are indexes in the result set. Thus, <code>0</code>
778            * refers to the first result in the set. Setting both <code>start</code>
779            * and <code>end</code> to {@link
780            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
781            * result set.
782            * </p>
783            *
784            * @param organizationId the primary key of the organization
785            * @param start the lower bound of the range of results
786            * @param end the upper bound of the range of results (not inclusive)
787            * @return the range of matching activities
788            * @throws SystemException if a system exception occurred
789            */
790            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationActivities(
791                    long organizationId, int start, int end)
792                    throws com.liferay.portal.kernel.exception.SystemException {
793                    return _socialActivityLocalService.getOrganizationActivities(organizationId,
794                            start, end);
795            }
796    
797            /**
798            * Returns the number of activities done in the organization. This method
799            * only counts activities without mirrors.
800            *
801            * @param organizationId the primary key of the organization
802            * @return the number of matching activities
803            * @throws SystemException if a system exception occurred
804            */
805            public int getOrganizationActivitiesCount(long organizationId)
806                    throws com.liferay.portal.kernel.exception.SystemException {
807                    return _socialActivityLocalService.getOrganizationActivitiesCount(organizationId);
808            }
809    
810            /**
811            * Returns a range of all the activities done by users of the organization.
812            * This method only finds activities without mirrors.
813            *
814            * <p>
815            * Useful when paginating results. Returns a maximum of <code>end -
816            * start</code> instances. <code>start</code> and <code>end</code> are not
817            * primary keys, they are indexes in the result set. Thus, <code>0</code>
818            * refers to the first result in the set. Setting both <code>start</code>
819            * and <code>end</code> to {@link
820            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
821            * result set.
822            * </p>
823            *
824            * @param organizationId the primary key of the organization
825            * @param start the lower bound of the range of results
826            * @param end the upper bound of the range of results (not inclusive)
827            * @return the range of matching activities
828            * @throws SystemException if a system exception occurred
829            */
830            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationUsersActivities(
831                    long organizationId, int start, int end)
832                    throws com.liferay.portal.kernel.exception.SystemException {
833                    return _socialActivityLocalService.getOrganizationUsersActivities(organizationId,
834                            start, end);
835            }
836    
837            /**
838            * Returns the number of activities done by users of the organization. This
839            * method only counts activities without mirrors.
840            *
841            * @param organizationId the primary key of the organization
842            * @return the number of matching activities
843            * @throws SystemException if a system exception occurred
844            */
845            public int getOrganizationUsersActivitiesCount(long organizationId)
846                    throws com.liferay.portal.kernel.exception.SystemException {
847                    return _socialActivityLocalService.getOrganizationUsersActivitiesCount(organizationId);
848            }
849    
850            /**
851            * Returns a range of all the activities done by users in a relationship
852            * with the user identified by the user ID.
853            *
854            * <p>
855            * Useful when paginating results. Returns a maximum of <code>end -
856            * start</code> instances. <code>start</code> and <code>end</code> are not
857            * primary keys, they are indexes in the result set. Thus, <>0</code> refers
858            * to the first result in the set. Setting both <code>start</code> and
859            * <code>end</code> to {@link
860            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
861            * result set.
862            * </p>
863            *
864            * @param userId the primary key of the user
865            * @param start the lower bound of the range of results
866            * @param end the upper bound of the range of results (not inclusive)
867            * @return the range of matching activities
868            * @throws SystemException if a system exception occurred
869            */
870            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
871                    long userId, int start, int end)
872                    throws com.liferay.portal.kernel.exception.SystemException {
873                    return _socialActivityLocalService.getRelationActivities(userId, start,
874                            end);
875            }
876    
877            /**
878            * Returns a range of all the activities done by users in a relationship of
879            * type <code>type</code> with the user identified by <code>userId</code>.
880            * This method only finds activities without mirrors.
881            *
882            * <p>
883            * Useful when paginating results. Returns a maximum of <code>end -
884            * start</code> instances. <code>start</code> and <code>end</code> are not
885            * primary keys, they are indexes in the result set. Thus, <code>0</code>
886            * refers to the first result in the set. Setting both <code>start</code>
887            * and <code>end</code> to {@link
888            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
889            * result set.
890            * </p>
891            *
892            * @param userId the primary key of the user
893            * @param type the relationship type
894            * @param start the lower bound of the range of results
895            * @param end the upper bound of the range of results (not inclusive)
896            * @return the range of matching activities
897            * @throws SystemException if a system exception occurred
898            */
899            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
900                    long userId, int type, int start, int end)
901                    throws com.liferay.portal.kernel.exception.SystemException {
902                    return _socialActivityLocalService.getRelationActivities(userId, type,
903                            start, end);
904            }
905    
906            /**
907            * Returns the number of activities done by users in a relationship with the
908            * user identified by userId.
909            *
910            * @param userId the primary key of the user
911            * @return the number of matching activities
912            * @throws SystemException if a system exception occurred
913            */
914            public int getRelationActivitiesCount(long userId)
915                    throws com.liferay.portal.kernel.exception.SystemException {
916                    return _socialActivityLocalService.getRelationActivitiesCount(userId);
917            }
918    
919            /**
920            * Returns the number of activities done by users in a relationship of type
921            * <code>type</code> with the user identified by <code>userId</code>. This
922            * method only counts activities without mirrors.
923            *
924            * @param userId the primary key of the user
925            * @param type the relationship type
926            * @return the number of matching activities
927            * @throws SystemException if a system exception occurred
928            */
929            public int getRelationActivitiesCount(long userId, int type)
930                    throws com.liferay.portal.kernel.exception.SystemException {
931                    return _socialActivityLocalService.getRelationActivitiesCount(userId,
932                            type);
933            }
934    
935            /**
936            * Returns a range of all the activities done by the user.
937            *
938            * <p>
939            * Useful when paginating results. Returns a maximum of <code>end -
940            * start</code> instances. <code>start</code> and <code>end</code> are not
941            * primary keys, they are indexes in the result set. Thus, <code>0</code>
942            * refers to the first result in the set. Setting both <code>start</code>
943            * and <code>end</code> to {@link
944            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
945            * result set.
946            * </p>
947            *
948            * @param userId the primary key of the user
949            * @param start the lower bound of the range of results
950            * @param end the upper bound of the range of results (not inclusive)
951            * @return the range of matching activities
952            * @throws SystemException if a system exception occurred
953            */
954            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserActivities(
955                    long userId, int start, int end)
956                    throws com.liferay.portal.kernel.exception.SystemException {
957                    return _socialActivityLocalService.getUserActivities(userId, start, end);
958            }
959    
960            /**
961            * Returns the number of activities done by the user.
962            *
963            * @param userId the primary key of the user
964            * @return the number of matching activities
965            * @throws SystemException if a system exception occurred
966            */
967            public int getUserActivitiesCount(long userId)
968                    throws com.liferay.portal.kernel.exception.SystemException {
969                    return _socialActivityLocalService.getUserActivitiesCount(userId);
970            }
971    
972            /**
973            * Returns a range of all the activities done in the user's groups. This
974            * method only finds activities without mirrors.
975            *
976            * <p>
977            * Useful when paginating results. Returns a maximum of <code>end -
978            * start</code> instances. <code>start</code> and <code>end</code> are not
979            * primary keys, they are indexes in the result set. Thus, <code>0</code>
980            * refers to the first result in the set. Setting both <code>start</code>
981            * and <code>end</code> to {@link
982            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
983            * result set.
984            * </p>
985            *
986            * @param userId the primary key of the user
987            * @param start the lower bound of the range of results
988            * @param end the upper bound of the range of results (not inclusive)
989            * @return the range of matching activities
990            * @throws SystemException if a system exception occurred
991            */
992            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsActivities(
993                    long userId, int start, int end)
994                    throws com.liferay.portal.kernel.exception.SystemException {
995                    return _socialActivityLocalService.getUserGroupsActivities(userId,
996                            start, end);
997            }
998    
999            /**
1000            * Returns the number of activities done in user's groups. This method only
1001            * counts activities without mirrors.
1002            *
1003            * @param userId the primary key of the user
1004            * @return the number of matching activities
1005            * @throws SystemException if a system exception occurred
1006            */
1007            public int getUserGroupsActivitiesCount(long userId)
1008                    throws com.liferay.portal.kernel.exception.SystemException {
1009                    return _socialActivityLocalService.getUserGroupsActivitiesCount(userId);
1010            }
1011    
1012            /**
1013            * Returns a range of all the activities done in the user's groups and
1014            * organizations. This method only finds activities without mirrors.
1015            *
1016            * <p>
1017            * Useful when paginating results. Returns a maximum of <code>end -
1018            * start</code> instances. <code>start</code> and <code>end</code> are not
1019            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1020            * refers to the first result in the set. Setting both <code>start</code>
1021            * and <code>end</code> to {@link
1022            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1023            * result set.
1024            * </p>
1025            *
1026            * @param userId the primary key of the user
1027            * @param start the lower bound of the range of results
1028            * @param end the upper bound of the range of results (not inclusive)
1029            * @return the range of matching activities
1030            * @throws SystemException if a system exception occurred
1031            */
1032            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsAndOrganizationsActivities(
1033                    long userId, int start, int end)
1034                    throws com.liferay.portal.kernel.exception.SystemException {
1035                    return _socialActivityLocalService.getUserGroupsAndOrganizationsActivities(userId,
1036                            start, end);
1037            }
1038    
1039            /**
1040            * Returns the number of activities done in user's groups and organizations.
1041            * This method only counts activities without mirrors.
1042            *
1043            * @param userId the primary key of the user
1044            * @return the number of matching activities
1045            * @throws SystemException if a system exception occurred
1046            */
1047            public int getUserGroupsAndOrganizationsActivitiesCount(long userId)
1048                    throws com.liferay.portal.kernel.exception.SystemException {
1049                    return _socialActivityLocalService.getUserGroupsAndOrganizationsActivitiesCount(userId);
1050            }
1051    
1052            /**
1053            * Returns a range of all activities done in the user's organizations. This
1054            * method only finds activities without mirrors.
1055            *
1056            * <p>
1057            * Useful when paginating results. Returns a maximum of <code>end -
1058            * start</code> instances. <code>start</code> and <code>end</code> are not
1059            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1060            * refers to the first result in the set. Setting both <code>start</code>
1061            * and <code>end</code> to {@link
1062            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1063            * result set.
1064            * </p>
1065            *
1066            * @param userId the primary key of the user
1067            * @param start the lower bound of the range of results
1068            * @param end the upper bound of the range of results (not inclusive)
1069            * @return the range of matching activities
1070            * @throws SystemException if a system exception occurred
1071            */
1072            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserOrganizationsActivities(
1073                    long userId, int start, int end)
1074                    throws com.liferay.portal.kernel.exception.SystemException {
1075                    return _socialActivityLocalService.getUserOrganizationsActivities(userId,
1076                            start, end);
1077            }
1078    
1079            /**
1080            * Returns the number of activities done in the user's organizations. This
1081            * method only counts activities without mirrors.
1082            *
1083            * @param userId the primary key of the user
1084            * @return the number of matching activities
1085            * @throws SystemException if a system exception occurred
1086            */
1087            public int getUserOrganizationsActivitiesCount(long userId)
1088                    throws com.liferay.portal.kernel.exception.SystemException {
1089                    return _socialActivityLocalService.getUserOrganizationsActivitiesCount(userId);
1090            }
1091    
1092            /**
1093             * @deprecated Renamed to {@link #getWrappedService}
1094             */
1095            public SocialActivityLocalService getWrappedSocialActivityLocalService() {
1096                    return _socialActivityLocalService;
1097            }
1098    
1099            /**
1100             * @deprecated Renamed to {@link #setWrappedService}
1101             */
1102            public void setWrappedSocialActivityLocalService(
1103                    SocialActivityLocalService socialActivityLocalService) {
1104                    _socialActivityLocalService = socialActivityLocalService;
1105            }
1106    
1107            public SocialActivityLocalService getWrappedService() {
1108                    return _socialActivityLocalService;
1109            }
1110    
1111            public void setWrappedService(
1112                    SocialActivityLocalService socialActivityLocalService) {
1113                    _socialActivityLocalService = socialActivityLocalService;
1114            }
1115    
1116            private SocialActivityLocalService _socialActivityLocalService;
1117    }