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