001    /**
002     * Copyright (c) 2000-present 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            @Override
038            public com.liferay.portlet.social.model.SocialActivitySet addActivitySet(
039                    long activityId)
040                    throws com.liferay.portal.kernel.exception.PortalException {
041                    return _socialActivitySetLocalService.addActivitySet(activityId);
042            }
043    
044            /**
045            * Adds the social activity set to the database. Also notifies the appropriate model listeners.
046            *
047            * @param socialActivitySet the social activity set
048            * @return the social activity set that was added
049            */
050            @Override
051            public com.liferay.portlet.social.model.SocialActivitySet addSocialActivitySet(
052                    com.liferay.portlet.social.model.SocialActivitySet socialActivitySet) {
053                    return _socialActivitySetLocalService.addSocialActivitySet(socialActivitySet);
054            }
055    
056            /**
057            * Creates a new social activity set with the primary key. Does not add the social activity set to the database.
058            *
059            * @param activitySetId the primary key for the new social activity set
060            * @return the new social activity set
061            */
062            @Override
063            public com.liferay.portlet.social.model.SocialActivitySet createSocialActivitySet(
064                    long activitySetId) {
065                    return _socialActivitySetLocalService.createSocialActivitySet(activitySetId);
066            }
067    
068            @Override
069            public void decrementActivityCount(long activitySetId)
070                    throws com.liferay.portal.kernel.exception.PortalException {
071                    _socialActivitySetLocalService.decrementActivityCount(activitySetId);
072            }
073    
074            @Override
075            public void decrementActivityCount(long classNameId, long classPK)
076                    throws com.liferay.portal.kernel.exception.PortalException {
077                    _socialActivitySetLocalService.decrementActivityCount(classNameId,
078                            classPK);
079            }
080    
081            /**
082            * @throws PortalException
083            */
084            @Override
085            public com.liferay.portal.model.PersistedModel deletePersistedModel(
086                    com.liferay.portal.model.PersistedModel persistedModel)
087                    throws com.liferay.portal.kernel.exception.PortalException {
088                    return _socialActivitySetLocalService.deletePersistedModel(persistedModel);
089            }
090    
091            /**
092            * Deletes the social activity set with the primary key from the database. Also notifies the appropriate model listeners.
093            *
094            * @param activitySetId the primary key of the social activity set
095            * @return the social activity set that was removed
096            * @throws PortalException if a social activity set with the primary key could not be found
097            */
098            @Override
099            public com.liferay.portlet.social.model.SocialActivitySet deleteSocialActivitySet(
100                    long activitySetId)
101                    throws com.liferay.portal.kernel.exception.PortalException {
102                    return _socialActivitySetLocalService.deleteSocialActivitySet(activitySetId);
103            }
104    
105            /**
106            * Deletes the social activity set from the database. Also notifies the appropriate model listeners.
107            *
108            * @param socialActivitySet the social activity set
109            * @return the social activity set that was removed
110            */
111            @Override
112            public com.liferay.portlet.social.model.SocialActivitySet deleteSocialActivitySet(
113                    com.liferay.portlet.social.model.SocialActivitySet socialActivitySet) {
114                    return _socialActivitySetLocalService.deleteSocialActivitySet(socialActivitySet);
115            }
116    
117            @Override
118            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
119                    return _socialActivitySetLocalService.dynamicQuery();
120            }
121    
122            /**
123            * Performs a dynamic query on the database and returns the matching rows.
124            *
125            * @param dynamicQuery the dynamic query
126            * @return the matching rows
127            */
128            @Override
129            public <T> java.util.List<T> dynamicQuery(
130                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
131                    return _socialActivitySetLocalService.dynamicQuery(dynamicQuery);
132            }
133    
134            /**
135            * Performs a dynamic query on the database and returns a range of the matching rows.
136            *
137            * <p>
138            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.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.
139            * </p>
140            *
141            * @param dynamicQuery the dynamic query
142            * @param start the lower bound of the range of model instances
143            * @param end the upper bound of the range of model instances (not inclusive)
144            * @return the range of matching rows
145            */
146            @Override
147            public <T> java.util.List<T> dynamicQuery(
148                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
149                    int end) {
150                    return _socialActivitySetLocalService.dynamicQuery(dynamicQuery, start,
151                            end);
152            }
153    
154            /**
155            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
156            *
157            * <p>
158            * 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.
159            * </p>
160            *
161            * @param dynamicQuery the dynamic query
162            * @param start the lower bound of the range of model instances
163            * @param end the upper bound of the range of model instances (not inclusive)
164            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
165            * @return the ordered range of matching rows
166            */
167            @Override
168            public <T> java.util.List<T> dynamicQuery(
169                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
170                    int end,
171                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
172                    return _socialActivitySetLocalService.dynamicQuery(dynamicQuery, start,
173                            end, orderByComparator);
174            }
175    
176            /**
177            * Returns the number of rows matching the dynamic query.
178            *
179            * @param dynamicQuery the dynamic query
180            * @return the number of rows matching the dynamic query
181            */
182            @Override
183            public long dynamicQueryCount(
184                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
185                    return _socialActivitySetLocalService.dynamicQueryCount(dynamicQuery);
186            }
187    
188            /**
189            * Returns the number of rows matching the dynamic query.
190            *
191            * @param dynamicQuery the dynamic query
192            * @param projection the projection to apply to the query
193            * @return the number of rows matching the dynamic query
194            */
195            @Override
196            public long dynamicQueryCount(
197                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
198                    com.liferay.portal.kernel.dao.orm.Projection projection) {
199                    return _socialActivitySetLocalService.dynamicQueryCount(dynamicQuery,
200                            projection);
201            }
202    
203            @Override
204            public com.liferay.portlet.social.model.SocialActivitySet fetchSocialActivitySet(
205                    long activitySetId) {
206                    return _socialActivitySetLocalService.fetchSocialActivitySet(activitySetId);
207            }
208    
209            @Override
210            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
211                    return _socialActivitySetLocalService.getActionableDynamicQuery();
212            }
213    
214            @Override
215            public com.liferay.portlet.social.model.SocialActivitySet getClassActivitySet(
216                    long classNameId, long classPK, int type) {
217                    return _socialActivitySetLocalService.getClassActivitySet(classNameId,
218                            classPK, type);
219            }
220    
221            @Override
222            public com.liferay.portlet.social.model.SocialActivitySet getClassActivitySet(
223                    long userId, long classNameId, long classPK, int type) {
224                    return _socialActivitySetLocalService.getClassActivitySet(userId,
225                            classNameId, classPK, type);
226            }
227    
228            @Override
229            public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> getGroupActivitySets(
230                    long groupId, int start, int end) {
231                    return _socialActivitySetLocalService.getGroupActivitySets(groupId,
232                            start, end);
233            }
234    
235            @Override
236            public int getGroupActivitySetsCount(long groupId) {
237                    return _socialActivitySetLocalService.getGroupActivitySetsCount(groupId);
238            }
239    
240            @Override
241            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
242                    return _socialActivitySetLocalService.getIndexableActionableDynamicQuery();
243            }
244    
245            /**
246            * Returns the OSGi service identifier.
247            *
248            * @return the OSGi service identifier
249            */
250            @Override
251            public java.lang.String getOSGiServiceIdentifier() {
252                    return _socialActivitySetLocalService.getOSGiServiceIdentifier();
253            }
254    
255            @Override
256            public com.liferay.portal.model.PersistedModel getPersistedModel(
257                    java.io.Serializable primaryKeyObj)
258                    throws com.liferay.portal.kernel.exception.PortalException {
259                    return _socialActivitySetLocalService.getPersistedModel(primaryKeyObj);
260            }
261    
262            @Override
263            public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> getRelationActivitySets(
264                    long userId, int start, int end) {
265                    return _socialActivitySetLocalService.getRelationActivitySets(userId,
266                            start, end);
267            }
268    
269            @Override
270            public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> getRelationActivitySets(
271                    long userId, int type, int start, int end) {
272                    return _socialActivitySetLocalService.getRelationActivitySets(userId,
273                            type, start, end);
274            }
275    
276            @Override
277            public int getRelationActivitySetsCount(long userId) {
278                    return _socialActivitySetLocalService.getRelationActivitySetsCount(userId);
279            }
280    
281            @Override
282            public int getRelationActivitySetsCount(long userId, int type) {
283                    return _socialActivitySetLocalService.getRelationActivitySetsCount(userId,
284                            type);
285            }
286    
287            /**
288            * Returns the social activity set with the primary key.
289            *
290            * @param activitySetId the primary key of the social activity set
291            * @return the social activity set
292            * @throws PortalException if a social activity set with the primary key could not be found
293            */
294            @Override
295            public com.liferay.portlet.social.model.SocialActivitySet getSocialActivitySet(
296                    long activitySetId)
297                    throws com.liferay.portal.kernel.exception.PortalException {
298                    return _socialActivitySetLocalService.getSocialActivitySet(activitySetId);
299            }
300    
301            /**
302            * Returns a range of all the social activity sets.
303            *
304            * <p>
305            * 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.
306            * </p>
307            *
308            * @param start the lower bound of the range of social activity sets
309            * @param end the upper bound of the range of social activity sets (not inclusive)
310            * @return the range of social activity sets
311            */
312            @Override
313            public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> getSocialActivitySets(
314                    int start, int end) {
315                    return _socialActivitySetLocalService.getSocialActivitySets(start, end);
316            }
317    
318            /**
319            * Returns the number of social activity sets.
320            *
321            * @return the number of social activity sets
322            */
323            @Override
324            public int getSocialActivitySetsCount() {
325                    return _socialActivitySetLocalService.getSocialActivitySetsCount();
326            }
327    
328            @Override
329            public com.liferay.portlet.social.model.SocialActivitySet getUserActivitySet(
330                    long groupId, long userId, long classNameId, int type) {
331                    return _socialActivitySetLocalService.getUserActivitySet(groupId,
332                            userId, classNameId, type);
333            }
334    
335            @Override
336            public com.liferay.portlet.social.model.SocialActivitySet getUserActivitySet(
337                    long groupId, long userId, int type) {
338                    return _socialActivitySetLocalService.getUserActivitySet(groupId,
339                            userId, type);
340            }
341    
342            @Override
343            public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> getUserActivitySets(
344                    long userId, int start, int end) {
345                    return _socialActivitySetLocalService.getUserActivitySets(userId,
346                            start, end);
347            }
348    
349            @Override
350            public int getUserActivitySetsCount(long userId) {
351                    return _socialActivitySetLocalService.getUserActivitySetsCount(userId);
352            }
353    
354            @Override
355            public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> getUserGroupsActivitySets(
356                    long userId, int start, int end) {
357                    return _socialActivitySetLocalService.getUserGroupsActivitySets(userId,
358                            start, end);
359            }
360    
361            @Override
362            public int getUserGroupsActivitySetsCount(long userId) {
363                    return _socialActivitySetLocalService.getUserGroupsActivitySetsCount(userId);
364            }
365    
366            @Override
367            public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> getUserViewableActivitySets(
368                    long userId, int start, int end) {
369                    return _socialActivitySetLocalService.getUserViewableActivitySets(userId,
370                            start, end);
371            }
372    
373            @Override
374            public int getUserViewableActivitySetsCount(long userId) {
375                    return _socialActivitySetLocalService.getUserViewableActivitySetsCount(userId);
376            }
377    
378            @Override
379            public void incrementActivityCount(long activitySetId, long activityId)
380                    throws com.liferay.portal.kernel.exception.PortalException {
381                    _socialActivitySetLocalService.incrementActivityCount(activitySetId,
382                            activityId);
383            }
384    
385            /**
386            * Updates the social activity set in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
387            *
388            * @param socialActivitySet the social activity set
389            * @return the social activity set that was updated
390            */
391            @Override
392            public com.liferay.portlet.social.model.SocialActivitySet updateSocialActivitySet(
393                    com.liferay.portlet.social.model.SocialActivitySet socialActivitySet) {
394                    return _socialActivitySetLocalService.updateSocialActivitySet(socialActivitySet);
395            }
396    
397            @Override
398            public SocialActivitySetLocalService getWrappedService() {
399                    return _socialActivitySetLocalService;
400            }
401    
402            @Override
403            public void setWrappedService(
404                    SocialActivitySetLocalService socialActivitySetLocalService) {
405                    _socialActivitySetLocalService = socialActivitySetLocalService;
406            }
407    
408            private SocialActivitySetLocalService _socialActivitySetLocalService;
409    }