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