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