001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.social.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link SocialActivityLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       SocialActivityLocalService
024     * @generated
025     */
026    public class SocialActivityLocalServiceWrapper
027            implements SocialActivityLocalService {
028            public SocialActivityLocalServiceWrapper(
029                    SocialActivityLocalService socialActivityLocalService) {
030                    _socialActivityLocalService = socialActivityLocalService;
031            }
032    
033            /**
034            * Adds the social activity to the database. Also notifies the appropriate model listeners.
035            *
036            * @param socialActivity the social activity to add
037            * @return the social activity that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portlet.social.model.SocialActivity addSocialActivity(
041                    com.liferay.portlet.social.model.SocialActivity socialActivity)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _socialActivityLocalService.addSocialActivity(socialActivity);
044            }
045    
046            /**
047            * Creates a new social activity with the primary key. Does not add the social activity to the database.
048            *
049            * @param activityId the primary key for the new social activity
050            * @return the new social activity
051            */
052            public com.liferay.portlet.social.model.SocialActivity createSocialActivity(
053                    long activityId) {
054                    return _socialActivityLocalService.createSocialActivity(activityId);
055            }
056    
057            /**
058            * Deletes the social activity with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param activityId the primary key of the social activity to delete
061            * @throws PortalException if a social activity with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public void deleteSocialActivity(long activityId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _socialActivityLocalService.deleteSocialActivity(activityId);
068            }
069    
070            /**
071            * Deletes the social activity from the database. Also notifies the appropriate model listeners.
072            *
073            * @param socialActivity the social activity to delete
074            * @throws SystemException if a system exception occurred
075            */
076            public void deleteSocialActivity(
077                    com.liferay.portlet.social.model.SocialActivity socialActivity)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    _socialActivityLocalService.deleteSocialActivity(socialActivity);
080            }
081    
082            /**
083            * Performs a dynamic query on the database and returns the matching rows.
084            *
085            * @param dynamicQuery the dynamic query to search with
086            * @return the matching rows
087            * @throws SystemException if a system exception occurred
088            */
089            @SuppressWarnings("rawtypes")
090            public java.util.List dynamicQuery(
091                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return _socialActivityLocalService.dynamicQuery(dynamicQuery);
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns a range of the matching rows.
098            *
099            * <p>
100            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
101            * </p>
102            *
103            * @param dynamicQuery the dynamic query to search with
104            * @param start the lower bound of the range of model instances to return
105            * @param end the upper bound of the range of model instances to return (not inclusive)
106            * @return the range of matching rows
107            * @throws SystemException if a system exception occurred
108            */
109            @SuppressWarnings("rawtypes")
110            public java.util.List dynamicQuery(
111                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112                    int end) throws com.liferay.portal.kernel.exception.SystemException {
113                    return _socialActivityLocalService.dynamicQuery(dynamicQuery, start, end);
114            }
115    
116            /**
117            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
118            *
119            * <p>
120            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
121            * </p>
122            *
123            * @param dynamicQuery the dynamic query to search with
124            * @param start the lower bound of the range of model instances to return
125            * @param end the upper bound of the range of model instances to return (not inclusive)
126            * @param orderByComparator the comparator to order the results by
127            * @return the ordered range of matching rows
128            * @throws SystemException if a system exception occurred
129            */
130            @SuppressWarnings("rawtypes")
131            public java.util.List dynamicQuery(
132                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
133                    int end,
134                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135                    throws com.liferay.portal.kernel.exception.SystemException {
136                    return _socialActivityLocalService.dynamicQuery(dynamicQuery, start,
137                            end, orderByComparator);
138            }
139    
140            /**
141            * Counts the number of rows that match the dynamic query.
142            *
143            * @param dynamicQuery the dynamic query to search with
144            * @return the number of rows that match the dynamic query
145            * @throws SystemException if a system exception occurred
146            */
147            public long dynamicQueryCount(
148                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return _socialActivityLocalService.dynamicQueryCount(dynamicQuery);
151            }
152    
153            /**
154            * Gets the social activity with the primary key.
155            *
156            * @param activityId the primary key of the social activity to get
157            * @return the social activity
158            * @throws PortalException if a social activity with the primary key could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            public com.liferay.portlet.social.model.SocialActivity getSocialActivity(
162                    long activityId)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException {
165                    return _socialActivityLocalService.getSocialActivity(activityId);
166            }
167    
168            /**
169            * Gets a range of all the social activities.
170            *
171            * <p>
172            * 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.
173            * </p>
174            *
175            * @param start the lower bound of the range of social activities to return
176            * @param end the upper bound of the range of social activities to return (not inclusive)
177            * @return the range of social activities
178            * @throws SystemException if a system exception occurred
179            */
180            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getSocialActivities(
181                    int start, int end)
182                    throws com.liferay.portal.kernel.exception.SystemException {
183                    return _socialActivityLocalService.getSocialActivities(start, end);
184            }
185    
186            /**
187            * Gets the number of social activities.
188            *
189            * @return the number of social activities
190            * @throws SystemException if a system exception occurred
191            */
192            public int getSocialActivitiesCount()
193                    throws com.liferay.portal.kernel.exception.SystemException {
194                    return _socialActivityLocalService.getSocialActivitiesCount();
195            }
196    
197            /**
198            * Updates the social activity in the database. Also notifies the appropriate model listeners.
199            *
200            * @param socialActivity the social activity to update
201            * @return the social activity that was updated
202            * @throws SystemException if a system exception occurred
203            */
204            public com.liferay.portlet.social.model.SocialActivity updateSocialActivity(
205                    com.liferay.portlet.social.model.SocialActivity socialActivity)
206                    throws com.liferay.portal.kernel.exception.SystemException {
207                    return _socialActivityLocalService.updateSocialActivity(socialActivity);
208            }
209    
210            /**
211            * Updates the social activity in the database. Also notifies the appropriate model listeners.
212            *
213            * @param socialActivity the social activity to update
214            * @param merge whether to merge the social activity with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
215            * @return the social activity that was updated
216            * @throws SystemException if a system exception occurred
217            */
218            public com.liferay.portlet.social.model.SocialActivity updateSocialActivity(
219                    com.liferay.portlet.social.model.SocialActivity socialActivity,
220                    boolean merge)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return _socialActivityLocalService.updateSocialActivity(socialActivity,
223                            merge);
224            }
225    
226            public com.liferay.portlet.social.model.SocialActivity addActivity(
227                    long userId, long groupId, java.util.Date createDate,
228                    java.lang.String className, long classPK, int type,
229                    java.lang.String extraData, long receiverUserId)
230                    throws com.liferay.portal.kernel.exception.PortalException,
231                            com.liferay.portal.kernel.exception.SystemException {
232                    return _socialActivityLocalService.addActivity(userId, groupId,
233                            createDate, className, classPK, type, extraData, receiverUserId);
234            }
235    
236            public com.liferay.portlet.social.model.SocialActivity addActivity(
237                    long userId, long groupId, java.lang.String className, long classPK,
238                    int type, java.lang.String extraData, long receiverUserId)
239                    throws com.liferay.portal.kernel.exception.PortalException,
240                            com.liferay.portal.kernel.exception.SystemException {
241                    return _socialActivityLocalService.addActivity(userId, groupId,
242                            className, classPK, type, extraData, receiverUserId);
243            }
244    
245            public com.liferay.portlet.social.model.SocialActivity addUniqueActivity(
246                    long userId, long groupId, java.util.Date createDate,
247                    java.lang.String className, long classPK, int type,
248                    java.lang.String extraData, long receiverUserId)
249                    throws com.liferay.portal.kernel.exception.PortalException,
250                            com.liferay.portal.kernel.exception.SystemException {
251                    return _socialActivityLocalService.addUniqueActivity(userId, groupId,
252                            createDate, className, classPK, type, extraData, receiverUserId);
253            }
254    
255            public com.liferay.portlet.social.model.SocialActivity addUniqueActivity(
256                    long userId, long groupId, java.lang.String className, long classPK,
257                    int type, java.lang.String extraData, long receiverUserId)
258                    throws com.liferay.portal.kernel.exception.PortalException,
259                            com.liferay.portal.kernel.exception.SystemException {
260                    return _socialActivityLocalService.addUniqueActivity(userId, groupId,
261                            className, classPK, type, extraData, receiverUserId);
262            }
263    
264            public void deleteActivities(long classNameId, long classPK)
265                    throws com.liferay.portal.kernel.exception.SystemException {
266                    _socialActivityLocalService.deleteActivities(classNameId, classPK);
267            }
268    
269            public void deleteActivities(java.lang.String className, long classPK)
270                    throws com.liferay.portal.kernel.exception.SystemException {
271                    _socialActivityLocalService.deleteActivities(className, classPK);
272            }
273    
274            public void deleteActivity(long activityId)
275                    throws com.liferay.portal.kernel.exception.PortalException,
276                            com.liferay.portal.kernel.exception.SystemException {
277                    _socialActivityLocalService.deleteActivity(activityId);
278            }
279    
280            public void deleteActivity(
281                    com.liferay.portlet.social.model.SocialActivity activity)
282                    throws com.liferay.portal.kernel.exception.SystemException {
283                    _socialActivityLocalService.deleteActivity(activity);
284            }
285    
286            public void deleteUserActivities(long userId)
287                    throws com.liferay.portal.kernel.exception.SystemException {
288                    _socialActivityLocalService.deleteUserActivities(userId);
289            }
290    
291            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
292                    long classNameId, int start, int end)
293                    throws com.liferay.portal.kernel.exception.SystemException {
294                    return _socialActivityLocalService.getActivities(classNameId, start, end);
295            }
296    
297            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
298                    long mirrorActivityId, long classNameId, long classPK, int start,
299                    int end) throws com.liferay.portal.kernel.exception.SystemException {
300                    return _socialActivityLocalService.getActivities(mirrorActivityId,
301                            classNameId, classPK, start, end);
302            }
303    
304            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
305                    long mirrorActivityId, java.lang.String className, long classPK,
306                    int start, int end)
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    return _socialActivityLocalService.getActivities(mirrorActivityId,
309                            className, classPK, start, end);
310            }
311    
312            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getActivities(
313                    java.lang.String className, int start, int end)
314                    throws com.liferay.portal.kernel.exception.SystemException {
315                    return _socialActivityLocalService.getActivities(className, start, end);
316            }
317    
318            public int getActivitiesCount(long classNameId)
319                    throws com.liferay.portal.kernel.exception.SystemException {
320                    return _socialActivityLocalService.getActivitiesCount(classNameId);
321            }
322    
323            public int getActivitiesCount(long mirrorActivityId, long classNameId,
324                    long classPK)
325                    throws com.liferay.portal.kernel.exception.SystemException {
326                    return _socialActivityLocalService.getActivitiesCount(mirrorActivityId,
327                            classNameId, classPK);
328            }
329    
330            public int getActivitiesCount(long mirrorActivityId,
331                    java.lang.String className, long classPK)
332                    throws com.liferay.portal.kernel.exception.SystemException {
333                    return _socialActivityLocalService.getActivitiesCount(mirrorActivityId,
334                            className, classPK);
335            }
336    
337            public int getActivitiesCount(java.lang.String className)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return _socialActivityLocalService.getActivitiesCount(className);
340            }
341    
342            public com.liferay.portlet.social.model.SocialActivity getActivity(
343                    long activityId)
344                    throws com.liferay.portal.kernel.exception.PortalException,
345                            com.liferay.portal.kernel.exception.SystemException {
346                    return _socialActivityLocalService.getActivity(activityId);
347            }
348    
349            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupActivities(
350                    long groupId, int start, int end)
351                    throws com.liferay.portal.kernel.exception.SystemException {
352                    return _socialActivityLocalService.getGroupActivities(groupId, start,
353                            end);
354            }
355    
356            public int getGroupActivitiesCount(long groupId)
357                    throws com.liferay.portal.kernel.exception.SystemException {
358                    return _socialActivityLocalService.getGroupActivitiesCount(groupId);
359            }
360    
361            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getGroupUsersActivities(
362                    long groupId, int start, int end)
363                    throws com.liferay.portal.kernel.exception.SystemException {
364                    return _socialActivityLocalService.getGroupUsersActivities(groupId,
365                            start, end);
366            }
367    
368            public int getGroupUsersActivitiesCount(long groupId)
369                    throws com.liferay.portal.kernel.exception.SystemException {
370                    return _socialActivityLocalService.getGroupUsersActivitiesCount(groupId);
371            }
372    
373            public com.liferay.portlet.social.model.SocialActivity getMirrorActivity(
374                    long mirrorActivityId)
375                    throws com.liferay.portal.kernel.exception.PortalException,
376                            com.liferay.portal.kernel.exception.SystemException {
377                    return _socialActivityLocalService.getMirrorActivity(mirrorActivityId);
378            }
379    
380            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationActivities(
381                    long organizationId, int start, int end)
382                    throws com.liferay.portal.kernel.exception.SystemException {
383                    return _socialActivityLocalService.getOrganizationActivities(organizationId,
384                            start, end);
385            }
386    
387            public int getOrganizationActivitiesCount(long organizationId)
388                    throws com.liferay.portal.kernel.exception.SystemException {
389                    return _socialActivityLocalService.getOrganizationActivitiesCount(organizationId);
390            }
391    
392            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getOrganizationUsersActivities(
393                    long organizationId, int start, int end)
394                    throws com.liferay.portal.kernel.exception.SystemException {
395                    return _socialActivityLocalService.getOrganizationUsersActivities(organizationId,
396                            start, end);
397            }
398    
399            public int getOrganizationUsersActivitiesCount(long organizationId)
400                    throws com.liferay.portal.kernel.exception.SystemException {
401                    return _socialActivityLocalService.getOrganizationUsersActivitiesCount(organizationId);
402            }
403    
404            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
405                    long userId, int start, int end)
406                    throws com.liferay.portal.kernel.exception.SystemException {
407                    return _socialActivityLocalService.getRelationActivities(userId, start,
408                            end);
409            }
410    
411            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getRelationActivities(
412                    long userId, int type, int start, int end)
413                    throws com.liferay.portal.kernel.exception.SystemException {
414                    return _socialActivityLocalService.getRelationActivities(userId, type,
415                            start, end);
416            }
417    
418            public int getRelationActivitiesCount(long userId)
419                    throws com.liferay.portal.kernel.exception.SystemException {
420                    return _socialActivityLocalService.getRelationActivitiesCount(userId);
421            }
422    
423            public int getRelationActivitiesCount(long userId, int type)
424                    throws com.liferay.portal.kernel.exception.SystemException {
425                    return _socialActivityLocalService.getRelationActivitiesCount(userId,
426                            type);
427            }
428    
429            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserActivities(
430                    long userId, int start, int end)
431                    throws com.liferay.portal.kernel.exception.SystemException {
432                    return _socialActivityLocalService.getUserActivities(userId, start, end);
433            }
434    
435            public int getUserActivitiesCount(long userId)
436                    throws com.liferay.portal.kernel.exception.SystemException {
437                    return _socialActivityLocalService.getUserActivitiesCount(userId);
438            }
439    
440            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsActivities(
441                    long userId, int start, int end)
442                    throws com.liferay.portal.kernel.exception.SystemException {
443                    return _socialActivityLocalService.getUserGroupsActivities(userId,
444                            start, end);
445            }
446    
447            public int getUserGroupsActivitiesCount(long userId)
448                    throws com.liferay.portal.kernel.exception.SystemException {
449                    return _socialActivityLocalService.getUserGroupsActivitiesCount(userId);
450            }
451    
452            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserGroupsAndOrganizationsActivities(
453                    long userId, int start, int end)
454                    throws com.liferay.portal.kernel.exception.SystemException {
455                    return _socialActivityLocalService.getUserGroupsAndOrganizationsActivities(userId,
456                            start, end);
457            }
458    
459            public int getUserGroupsAndOrganizationsActivitiesCount(long userId)
460                    throws com.liferay.portal.kernel.exception.SystemException {
461                    return _socialActivityLocalService.getUserGroupsAndOrganizationsActivitiesCount(userId);
462            }
463    
464            public java.util.List<com.liferay.portlet.social.model.SocialActivity> getUserOrganizationsActivities(
465                    long userId, int start, int end)
466                    throws com.liferay.portal.kernel.exception.SystemException {
467                    return _socialActivityLocalService.getUserOrganizationsActivities(userId,
468                            start, end);
469            }
470    
471            public int getUserOrganizationsActivitiesCount(long userId)
472                    throws com.liferay.portal.kernel.exception.SystemException {
473                    return _socialActivityLocalService.getUserOrganizationsActivitiesCount(userId);
474            }
475    
476            public SocialActivityLocalService getWrappedSocialActivityLocalService() {
477                    return _socialActivityLocalService;
478            }
479    
480            private SocialActivityLocalService _socialActivityLocalService;
481    }