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 SocialActivitySetLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see SocialActivitySetLocalService
026     * @generated
027     */
028    @ProviderType
029    public class SocialActivitySetLocalServiceWrapper
030            implements SocialActivitySetLocalService,
031                    ServiceWrapper<SocialActivitySetLocalService> {
032            public SocialActivitySetLocalServiceWrapper(
033                    SocialActivitySetLocalService socialActivitySetLocalService) {
034                    _socialActivitySetLocalService = socialActivitySetLocalService;
035            }
036    
037            /**
038            * Adds the social activity set to the database. Also notifies the appropriate model listeners.
039            *
040            * @param socialActivitySet the social activity set
041            * @return the social activity set that was added
042            * @throws SystemException if a system exception occurred
043            */
044            @Override
045            public com.liferay.portlet.social.model.SocialActivitySet addSocialActivitySet(
046                    com.liferay.portlet.social.model.SocialActivitySet socialActivitySet)
047                    throws com.liferay.portal.kernel.exception.SystemException {
048                    return _socialActivitySetLocalService.addSocialActivitySet(socialActivitySet);
049            }
050    
051            /**
052            * Creates a new social activity set with the primary key. Does not add the social activity set to the database.
053            *
054            * @param activitySetId the primary key for the new social activity set
055            * @return the new social activity set
056            */
057            @Override
058            public com.liferay.portlet.social.model.SocialActivitySet createSocialActivitySet(
059                    long activitySetId) {
060                    return _socialActivitySetLocalService.createSocialActivitySet(activitySetId);
061            }
062    
063            /**
064            * Deletes the social activity set with the primary key from the database. Also notifies the appropriate model listeners.
065            *
066            * @param activitySetId the primary key of the social activity set
067            * @return the social activity set that was removed
068            * @throws PortalException if a social activity set 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.SocialActivitySet deleteSocialActivitySet(
073                    long activitySetId)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    return _socialActivitySetLocalService.deleteSocialActivitySet(activitySetId);
077            }
078    
079            /**
080            * Deletes the social activity set from the database. Also notifies the appropriate model listeners.
081            *
082            * @param socialActivitySet the social activity set
083            * @return the social activity set that was removed
084            * @throws SystemException if a system exception occurred
085            */
086            @Override
087            public com.liferay.portlet.social.model.SocialActivitySet deleteSocialActivitySet(
088                    com.liferay.portlet.social.model.SocialActivitySet socialActivitySet)
089                    throws com.liferay.portal.kernel.exception.SystemException {
090                    return _socialActivitySetLocalService.deleteSocialActivitySet(socialActivitySet);
091            }
092    
093            @Override
094            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
095                    return _socialActivitySetLocalService.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 _socialActivitySetLocalService.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.SocialActivitySetModelImpl}. 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 _socialActivitySetLocalService.dynamicQuery(dynamicQuery, start,
132                            end);
133            }
134    
135            /**
136            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
137            *
138            * <p>
139            * 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.SocialActivitySetModelImpl}. 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.
140            * </p>
141            *
142            * @param dynamicQuery the dynamic query
143            * @param start the lower bound of the range of model instances
144            * @param end the upper bound of the range of model instances (not inclusive)
145            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
146            * @return the ordered range of matching rows
147            * @throws SystemException if a system exception occurred
148            */
149            @Override
150            @SuppressWarnings("rawtypes")
151            public java.util.List dynamicQuery(
152                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
153                    int end,
154                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
155                    throws com.liferay.portal.kernel.exception.SystemException {
156                    return _socialActivitySetLocalService.dynamicQuery(dynamicQuery, start,
157                            end, orderByComparator);
158            }
159    
160            /**
161            * Returns the number of rows that match the dynamic query.
162            *
163            * @param dynamicQuery the dynamic query
164            * @return the number of rows that match the dynamic query
165            * @throws SystemException if a system exception occurred
166            */
167            @Override
168            public long dynamicQueryCount(
169                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
170                    throws com.liferay.portal.kernel.exception.SystemException {
171                    return _socialActivitySetLocalService.dynamicQueryCount(dynamicQuery);
172            }
173    
174            /**
175            * Returns the number of rows that match the dynamic query.
176            *
177            * @param dynamicQuery the dynamic query
178            * @param projection the projection to apply to the query
179            * @return the number of rows that match the dynamic query
180            * @throws SystemException if a system exception occurred
181            */
182            @Override
183            public long dynamicQueryCount(
184                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
185                    com.liferay.portal.kernel.dao.orm.Projection projection)
186                    throws com.liferay.portal.kernel.exception.SystemException {
187                    return _socialActivitySetLocalService.dynamicQueryCount(dynamicQuery,
188                            projection);
189            }
190    
191            @Override
192            public com.liferay.portlet.social.model.SocialActivitySet fetchSocialActivitySet(
193                    long activitySetId)
194                    throws com.liferay.portal.kernel.exception.SystemException {
195                    return _socialActivitySetLocalService.fetchSocialActivitySet(activitySetId);
196            }
197    
198            /**
199            * Returns the social activity set with the primary key.
200            *
201            * @param activitySetId the primary key of the social activity set
202            * @return the social activity set
203            * @throws PortalException if a social activity set with the primary key could not be found
204            * @throws SystemException if a system exception occurred
205            */
206            @Override
207            public com.liferay.portlet.social.model.SocialActivitySet getSocialActivitySet(
208                    long activitySetId)
209                    throws com.liferay.portal.kernel.exception.PortalException,
210                            com.liferay.portal.kernel.exception.SystemException {
211                    return _socialActivitySetLocalService.getSocialActivitySet(activitySetId);
212            }
213    
214            @Override
215            public com.liferay.portal.model.PersistedModel getPersistedModel(
216                    java.io.Serializable primaryKeyObj)
217                    throws com.liferay.portal.kernel.exception.PortalException,
218                            com.liferay.portal.kernel.exception.SystemException {
219                    return _socialActivitySetLocalService.getPersistedModel(primaryKeyObj);
220            }
221    
222            /**
223            * Returns a range of all the social activity sets.
224            *
225            * <p>
226            * 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.SocialActivitySetModelImpl}. 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.
227            * </p>
228            *
229            * @param start the lower bound of the range of social activity sets
230            * @param end the upper bound of the range of social activity sets (not inclusive)
231            * @return the range of social activity sets
232            * @throws SystemException if a system exception occurred
233            */
234            @Override
235            public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> getSocialActivitySets(
236                    int start, int end)
237                    throws com.liferay.portal.kernel.exception.SystemException {
238                    return _socialActivitySetLocalService.getSocialActivitySets(start, end);
239            }
240    
241            /**
242            * Returns the number of social activity sets.
243            *
244            * @return the number of social activity sets
245            * @throws SystemException if a system exception occurred
246            */
247            @Override
248            public int getSocialActivitySetsCount()
249                    throws com.liferay.portal.kernel.exception.SystemException {
250                    return _socialActivitySetLocalService.getSocialActivitySetsCount();
251            }
252    
253            /**
254            * Updates the social activity set in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
255            *
256            * @param socialActivitySet the social activity set
257            * @return the social activity set that was updated
258            * @throws SystemException if a system exception occurred
259            */
260            @Override
261            public com.liferay.portlet.social.model.SocialActivitySet updateSocialActivitySet(
262                    com.liferay.portlet.social.model.SocialActivitySet socialActivitySet)
263                    throws com.liferay.portal.kernel.exception.SystemException {
264                    return _socialActivitySetLocalService.updateSocialActivitySet(socialActivitySet);
265            }
266    
267            /**
268            * Returns the Spring bean ID for this bean.
269            *
270            * @return the Spring bean ID for this bean
271            */
272            @Override
273            public java.lang.String getBeanIdentifier() {
274                    return _socialActivitySetLocalService.getBeanIdentifier();
275            }
276    
277            /**
278            * Sets the Spring bean ID for this bean.
279            *
280            * @param beanIdentifier the Spring bean ID for this bean
281            */
282            @Override
283            public void setBeanIdentifier(java.lang.String beanIdentifier) {
284                    _socialActivitySetLocalService.setBeanIdentifier(beanIdentifier);
285            }
286    
287            @Override
288            public com.liferay.portlet.social.model.SocialActivitySet addActivitySet(
289                    long activityId)
290                    throws com.liferay.portal.kernel.exception.PortalException,
291                            com.liferay.portal.kernel.exception.SystemException {
292                    return _socialActivitySetLocalService.addActivitySet(activityId);
293            }
294    
295            @Override
296            public void decrementActivityCount(long activitySetId)
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException {
299                    _socialActivitySetLocalService.decrementActivityCount(activitySetId);
300            }
301    
302            @Override
303            public void decrementActivityCount(long classNameId, long classPK)
304                    throws com.liferay.portal.kernel.exception.PortalException,
305                            com.liferay.portal.kernel.exception.SystemException {
306                    _socialActivitySetLocalService.decrementActivityCount(classNameId,
307                            classPK);
308            }
309    
310            @Override
311            public com.liferay.portlet.social.model.SocialActivitySet getClassActivitySet(
312                    long classNameId, long classPK, int type)
313                    throws com.liferay.portal.kernel.exception.SystemException {
314                    return _socialActivitySetLocalService.getClassActivitySet(classNameId,
315                            classPK, type);
316            }
317    
318            @Override
319            public com.liferay.portlet.social.model.SocialActivitySet getClassActivitySet(
320                    long userId, long classNameId, long classPK, int type)
321                    throws com.liferay.portal.kernel.exception.SystemException {
322                    return _socialActivitySetLocalService.getClassActivitySet(userId,
323                            classNameId, classPK, type);
324            }
325    
326            @Override
327            public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> getGroupActivitySets(
328                    long groupId, int start, int end)
329                    throws com.liferay.portal.kernel.exception.SystemException {
330                    return _socialActivitySetLocalService.getGroupActivitySets(groupId,
331                            start, end);
332            }
333    
334            @Override
335            public int getGroupActivitySetsCount(long groupId)
336                    throws com.liferay.portal.kernel.exception.SystemException {
337                    return _socialActivitySetLocalService.getGroupActivitySetsCount(groupId);
338            }
339    
340            @Override
341            public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> getRelationActivitySets(
342                    long userId, int start, int end)
343                    throws com.liferay.portal.kernel.exception.SystemException {
344                    return _socialActivitySetLocalService.getRelationActivitySets(userId,
345                            start, end);
346            }
347    
348            @Override
349            public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> getRelationActivitySets(
350                    long userId, int type, int start, int end)
351                    throws com.liferay.portal.kernel.exception.SystemException {
352                    return _socialActivitySetLocalService.getRelationActivitySets(userId,
353                            type, start, end);
354            }
355    
356            @Override
357            public int getRelationActivitySetsCount(long userId)
358                    throws com.liferay.portal.kernel.exception.SystemException {
359                    return _socialActivitySetLocalService.getRelationActivitySetsCount(userId);
360            }
361    
362            @Override
363            public int getRelationActivitySetsCount(long userId, int type)
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    return _socialActivitySetLocalService.getRelationActivitySetsCount(userId,
366                            type);
367            }
368    
369            @Override
370            public com.liferay.portlet.social.model.SocialActivitySet getUserActivitySet(
371                    long groupId, long userId, int type)
372                    throws com.liferay.portal.kernel.exception.SystemException {
373                    return _socialActivitySetLocalService.getUserActivitySet(groupId,
374                            userId, type);
375            }
376    
377            @Override
378            public com.liferay.portlet.social.model.SocialActivitySet getUserActivitySet(
379                    long groupId, long userId, long classNameId, int type)
380                    throws com.liferay.portal.kernel.exception.SystemException {
381                    return _socialActivitySetLocalService.getUserActivitySet(groupId,
382                            userId, classNameId, type);
383            }
384    
385            @Override
386            public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> getUserActivitySets(
387                    long userId, int start, int end)
388                    throws com.liferay.portal.kernel.exception.SystemException {
389                    return _socialActivitySetLocalService.getUserActivitySets(userId,
390                            start, end);
391            }
392    
393            @Override
394            public int getUserActivitySetsCount(long userId)
395                    throws com.liferay.portal.kernel.exception.SystemException {
396                    return _socialActivitySetLocalService.getUserActivitySetsCount(userId);
397            }
398    
399            @Override
400            public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> getUserGroupsActivitySets(
401                    long userId, int start, int end)
402                    throws com.liferay.portal.kernel.exception.SystemException {
403                    return _socialActivitySetLocalService.getUserGroupsActivitySets(userId,
404                            start, end);
405            }
406    
407            @Override
408            public int getUserGroupsActivitySetsCount(long userId)
409                    throws com.liferay.portal.kernel.exception.SystemException {
410                    return _socialActivitySetLocalService.getUserGroupsActivitySetsCount(userId);
411            }
412    
413            @Override
414            public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> getUserViewableActivitySets(
415                    long userId, int start, int end)
416                    throws com.liferay.portal.kernel.exception.SystemException {
417                    return _socialActivitySetLocalService.getUserViewableActivitySets(userId,
418                            start, end);
419            }
420    
421            @Override
422            public int getUserViewableActivitySetsCount(long userId)
423                    throws com.liferay.portal.kernel.exception.SystemException {
424                    return _socialActivitySetLocalService.getUserViewableActivitySetsCount(userId);
425            }
426    
427            @Override
428            public void incrementActivityCount(long activitySetId, long activityId)
429                    throws com.liferay.portal.kernel.exception.PortalException,
430                            com.liferay.portal.kernel.exception.SystemException {
431                    _socialActivitySetLocalService.incrementActivityCount(activitySetId,
432                            activityId);
433            }
434    
435            /**
436             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
437             */
438            public SocialActivitySetLocalService getWrappedSocialActivitySetLocalService() {
439                    return _socialActivitySetLocalService;
440            }
441    
442            /**
443             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
444             */
445            public void setWrappedSocialActivitySetLocalService(
446                    SocialActivitySetLocalService socialActivitySetLocalService) {
447                    _socialActivitySetLocalService = socialActivitySetLocalService;
448            }
449    
450            @Override
451            public SocialActivitySetLocalService getWrappedService() {
452                    return _socialActivitySetLocalService;
453            }
454    
455            @Override
456            public void setWrappedService(
457                    SocialActivitySetLocalService socialActivitySetLocalService) {
458                    _socialActivitySetLocalService = socialActivitySetLocalService;
459            }
460    
461            private SocialActivitySetLocalService _socialActivitySetLocalService;
462    }