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