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