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            /**
215            * Returns the Spring bean ID for this bean.
216            *
217            * @return the Spring bean ID for this bean
218            */
219            @Override
220            public java.lang.String getBeanIdentifier() {
221                    return _socialActivitySetLocalService.getBeanIdentifier();
222            }
223    
224            @Override
225            public com.liferay.portlet.social.model.SocialActivitySet getClassActivitySet(
226                    long classNameId, long classPK, int type) {
227                    return _socialActivitySetLocalService.getClassActivitySet(classNameId,
228                            classPK, type);
229            }
230    
231            @Override
232            public com.liferay.portlet.social.model.SocialActivitySet getClassActivitySet(
233                    long userId, long classNameId, long classPK, int type) {
234                    return _socialActivitySetLocalService.getClassActivitySet(userId,
235                            classNameId, classPK, type);
236            }
237    
238            @Override
239            public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> getGroupActivitySets(
240                    long groupId, int start, int end) {
241                    return _socialActivitySetLocalService.getGroupActivitySets(groupId,
242                            start, end);
243            }
244    
245            @Override
246            public int getGroupActivitySetsCount(long groupId) {
247                    return _socialActivitySetLocalService.getGroupActivitySetsCount(groupId);
248            }
249    
250            @Override
251            public com.liferay.portal.model.PersistedModel getPersistedModel(
252                    java.io.Serializable primaryKeyObj)
253                    throws com.liferay.portal.kernel.exception.PortalException {
254                    return _socialActivitySetLocalService.getPersistedModel(primaryKeyObj);
255            }
256    
257            @Override
258            public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> getRelationActivitySets(
259                    long userId, int start, int end) {
260                    return _socialActivitySetLocalService.getRelationActivitySets(userId,
261                            start, end);
262            }
263    
264            @Override
265            public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> getRelationActivitySets(
266                    long userId, int type, int start, int end) {
267                    return _socialActivitySetLocalService.getRelationActivitySets(userId,
268                            type, start, end);
269            }
270    
271            @Override
272            public int getRelationActivitySetsCount(long userId) {
273                    return _socialActivitySetLocalService.getRelationActivitySetsCount(userId);
274            }
275    
276            @Override
277            public int getRelationActivitySetsCount(long userId, int type) {
278                    return _socialActivitySetLocalService.getRelationActivitySetsCount(userId,
279                            type);
280            }
281    
282            /**
283            * Returns the social activity set with the primary key.
284            *
285            * @param activitySetId the primary key of the social activity set
286            * @return the social activity set
287            * @throws PortalException if a social activity set with the primary key could not be found
288            */
289            @Override
290            public com.liferay.portlet.social.model.SocialActivitySet getSocialActivitySet(
291                    long activitySetId)
292                    throws com.liferay.portal.kernel.exception.PortalException {
293                    return _socialActivitySetLocalService.getSocialActivitySet(activitySetId);
294            }
295    
296            /**
297            * Returns a range of all the social activity sets.
298            *
299            * <p>
300            * 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.
301            * </p>
302            *
303            * @param start the lower bound of the range of social activity sets
304            * @param end the upper bound of the range of social activity sets (not inclusive)
305            * @return the range of social activity sets
306            */
307            @Override
308            public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> getSocialActivitySets(
309                    int start, int end) {
310                    return _socialActivitySetLocalService.getSocialActivitySets(start, end);
311            }
312    
313            /**
314            * Returns the number of social activity sets.
315            *
316            * @return the number of social activity sets
317            */
318            @Override
319            public int getSocialActivitySetsCount() {
320                    return _socialActivitySetLocalService.getSocialActivitySetsCount();
321            }
322    
323            @Override
324            public com.liferay.portlet.social.model.SocialActivitySet getUserActivitySet(
325                    long groupId, long userId, long classNameId, int type) {
326                    return _socialActivitySetLocalService.getUserActivitySet(groupId,
327                            userId, classNameId, type);
328            }
329    
330            @Override
331            public com.liferay.portlet.social.model.SocialActivitySet getUserActivitySet(
332                    long groupId, long userId, int type) {
333                    return _socialActivitySetLocalService.getUserActivitySet(groupId,
334                            userId, type);
335            }
336    
337            @Override
338            public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> getUserActivitySets(
339                    long userId, int start, int end) {
340                    return _socialActivitySetLocalService.getUserActivitySets(userId,
341                            start, end);
342            }
343    
344            @Override
345            public int getUserActivitySetsCount(long userId) {
346                    return _socialActivitySetLocalService.getUserActivitySetsCount(userId);
347            }
348    
349            @Override
350            public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> getUserGroupsActivitySets(
351                    long userId, int start, int end) {
352                    return _socialActivitySetLocalService.getUserGroupsActivitySets(userId,
353                            start, end);
354            }
355    
356            @Override
357            public int getUserGroupsActivitySetsCount(long userId) {
358                    return _socialActivitySetLocalService.getUserGroupsActivitySetsCount(userId);
359            }
360    
361            @Override
362            public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> getUserViewableActivitySets(
363                    long userId, int start, int end) {
364                    return _socialActivitySetLocalService.getUserViewableActivitySets(userId,
365                            start, end);
366            }
367    
368            @Override
369            public int getUserViewableActivitySetsCount(long userId) {
370                    return _socialActivitySetLocalService.getUserViewableActivitySetsCount(userId);
371            }
372    
373            @Override
374            public void incrementActivityCount(long activitySetId, long activityId)
375                    throws com.liferay.portal.kernel.exception.PortalException {
376                    _socialActivitySetLocalService.incrementActivityCount(activitySetId,
377                            activityId);
378            }
379    
380            /**
381            * Sets the Spring bean ID for this bean.
382            *
383            * @param beanIdentifier the Spring bean ID for this bean
384            */
385            @Override
386            public void setBeanIdentifier(java.lang.String beanIdentifier) {
387                    _socialActivitySetLocalService.setBeanIdentifier(beanIdentifier);
388            }
389    
390            /**
391            * Updates the social activity set in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
392            *
393            * @param socialActivitySet the social activity set
394            * @return the social activity set that was updated
395            */
396            @Override
397            public com.liferay.portlet.social.model.SocialActivitySet updateSocialActivitySet(
398                    com.liferay.portlet.social.model.SocialActivitySet socialActivitySet) {
399                    return _socialActivitySetLocalService.updateSocialActivitySet(socialActivitySet);
400            }
401    
402            /**
403             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
404             */
405            @Deprecated
406            public SocialActivitySetLocalService getWrappedSocialActivitySetLocalService() {
407                    return _socialActivitySetLocalService;
408            }
409    
410            /**
411             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
412             */
413            @Deprecated
414            public void setWrappedSocialActivitySetLocalService(
415                    SocialActivitySetLocalService socialActivitySetLocalService) {
416                    _socialActivitySetLocalService = socialActivitySetLocalService;
417            }
418    
419            @Override
420            public SocialActivitySetLocalService getWrappedService() {
421                    return _socialActivitySetLocalService;
422            }
423    
424            @Override
425            public void setWrappedService(
426                    SocialActivitySetLocalService socialActivitySetLocalService) {
427                    _socialActivitySetLocalService = socialActivitySetLocalService;
428            }
429    
430            private SocialActivitySetLocalService _socialActivitySetLocalService;
431    }