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