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 SocialActivityAchievementLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see SocialActivityAchievementLocalService
026     * @generated
027     */
028    @ProviderType
029    public class SocialActivityAchievementLocalServiceWrapper
030            implements SocialActivityAchievementLocalService,
031                    ServiceWrapper<SocialActivityAchievementLocalService> {
032            public SocialActivityAchievementLocalServiceWrapper(
033                    SocialActivityAchievementLocalService socialActivityAchievementLocalService) {
034                    _socialActivityAchievementLocalService = socialActivityAchievementLocalService;
035            }
036    
037            @Override
038            public void addActivityAchievement(long userId, long groupId,
039                    com.liferay.portlet.social.model.SocialAchievement achievement)
040                    throws com.liferay.portal.kernel.exception.PortalException {
041                    _socialActivityAchievementLocalService.addActivityAchievement(userId,
042                            groupId, achievement);
043            }
044    
045            /**
046            * Adds the social activity achievement to the database. Also notifies the appropriate model listeners.
047            *
048            * @param socialActivityAchievement the social activity achievement
049            * @return the social activity achievement that was added
050            */
051            @Override
052            public com.liferay.portlet.social.model.SocialActivityAchievement addSocialActivityAchievement(
053                    com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement) {
054                    return _socialActivityAchievementLocalService.addSocialActivityAchievement(socialActivityAchievement);
055            }
056    
057            /**
058            * Creates a new social activity achievement with the primary key. Does not add the social activity achievement to the database.
059            *
060            * @param activityAchievementId the primary key for the new social activity achievement
061            * @return the new social activity achievement
062            */
063            @Override
064            public com.liferay.portlet.social.model.SocialActivityAchievement createSocialActivityAchievement(
065                    long activityAchievementId) {
066                    return _socialActivityAchievementLocalService.createSocialActivityAchievement(activityAchievementId);
067            }
068    
069            /**
070            * @throws PortalException
071            */
072            @Override
073            public com.liferay.portal.model.PersistedModel deletePersistedModel(
074                    com.liferay.portal.model.PersistedModel persistedModel)
075                    throws com.liferay.portal.kernel.exception.PortalException {
076                    return _socialActivityAchievementLocalService.deletePersistedModel(persistedModel);
077            }
078    
079            /**
080            * Deletes the social activity achievement with the primary key from the database. Also notifies the appropriate model listeners.
081            *
082            * @param activityAchievementId the primary key of the social activity achievement
083            * @return the social activity achievement that was removed
084            * @throws PortalException if a social activity achievement with the primary key could not be found
085            */
086            @Override
087            public com.liferay.portlet.social.model.SocialActivityAchievement deleteSocialActivityAchievement(
088                    long activityAchievementId)
089                    throws com.liferay.portal.kernel.exception.PortalException {
090                    return _socialActivityAchievementLocalService.deleteSocialActivityAchievement(activityAchievementId);
091            }
092    
093            /**
094            * Deletes the social activity achievement from the database. Also notifies the appropriate model listeners.
095            *
096            * @param socialActivityAchievement the social activity achievement
097            * @return the social activity achievement that was removed
098            */
099            @Override
100            public com.liferay.portlet.social.model.SocialActivityAchievement deleteSocialActivityAchievement(
101                    com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement) {
102                    return _socialActivityAchievementLocalService.deleteSocialActivityAchievement(socialActivityAchievement);
103            }
104    
105            @Override
106            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
107                    return _socialActivityAchievementLocalService.dynamicQuery();
108            }
109    
110            /**
111            * Performs a dynamic query on the database and returns the matching rows.
112            *
113            * @param dynamicQuery the dynamic query
114            * @return the matching rows
115            */
116            @Override
117            public <T> java.util.List<T> dynamicQuery(
118                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
119                    return _socialActivityAchievementLocalService.dynamicQuery(dynamicQuery);
120            }
121    
122            /**
123            * Performs a dynamic query on the database and returns a range of the matching rows.
124            *
125            * <p>
126            * 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.SocialActivityAchievementModelImpl}. 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.
127            * </p>
128            *
129            * @param dynamicQuery the dynamic query
130            * @param start the lower bound of the range of model instances
131            * @param end the upper bound of the range of model instances (not inclusive)
132            * @return the range of matching rows
133            */
134            @Override
135            public <T> java.util.List<T> dynamicQuery(
136                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
137                    int end) {
138                    return _socialActivityAchievementLocalService.dynamicQuery(dynamicQuery,
139                            start, end);
140            }
141    
142            /**
143            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
144            *
145            * <p>
146            * 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.SocialActivityAchievementModelImpl}. 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.
147            * </p>
148            *
149            * @param dynamicQuery the dynamic query
150            * @param start the lower bound of the range of model instances
151            * @param end the upper bound of the range of model instances (not inclusive)
152            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
153            * @return the ordered range of matching rows
154            */
155            @Override
156            public <T> java.util.List<T> dynamicQuery(
157                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
158                    int end,
159                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
160                    return _socialActivityAchievementLocalService.dynamicQuery(dynamicQuery,
161                            start, end, orderByComparator);
162            }
163    
164            /**
165            * Returns the number of rows matching the dynamic query.
166            *
167            * @param dynamicQuery the dynamic query
168            * @return the number of rows matching the dynamic query
169            */
170            @Override
171            public long dynamicQueryCount(
172                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
173                    return _socialActivityAchievementLocalService.dynamicQueryCount(dynamicQuery);
174            }
175    
176            /**
177            * Returns the number of rows matching the dynamic query.
178            *
179            * @param dynamicQuery the dynamic query
180            * @param projection the projection to apply to the query
181            * @return the number of rows matching the dynamic query
182            */
183            @Override
184            public long dynamicQueryCount(
185                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
186                    com.liferay.portal.kernel.dao.orm.Projection projection) {
187                    return _socialActivityAchievementLocalService.dynamicQueryCount(dynamicQuery,
188                            projection);
189            }
190    
191            @Override
192            public com.liferay.portlet.social.model.SocialActivityAchievement fetchSocialActivityAchievement(
193                    long activityAchievementId) {
194                    return _socialActivityAchievementLocalService.fetchSocialActivityAchievement(activityAchievementId);
195            }
196    
197            @Override
198            public com.liferay.portlet.social.model.SocialActivityAchievement fetchUserAchievement(
199                    long userId, long groupId, java.lang.String name) {
200                    return _socialActivityAchievementLocalService.fetchUserAchievement(userId,
201                            groupId, name);
202            }
203    
204            @Override
205            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
206                    return _socialActivityAchievementLocalService.getActionableDynamicQuery();
207            }
208    
209            /**
210            * Returns the Spring bean ID for this bean.
211            *
212            * @return the Spring bean ID for this bean
213            */
214            @Override
215            public java.lang.String getBeanIdentifier() {
216                    return _socialActivityAchievementLocalService.getBeanIdentifier();
217            }
218    
219            @Override
220            public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> getGroupAchievements(
221                    long groupId) {
222                    return _socialActivityAchievementLocalService.getGroupAchievements(groupId);
223            }
224    
225            @Override
226            public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> getGroupAchievements(
227                    long groupId, java.lang.String name) {
228                    return _socialActivityAchievementLocalService.getGroupAchievements(groupId,
229                            name);
230            }
231    
232            @Override
233            public int getGroupAchievementsCount(long groupId) {
234                    return _socialActivityAchievementLocalService.getGroupAchievementsCount(groupId);
235            }
236    
237            @Override
238            public int getGroupAchievementsCount(long groupId, java.lang.String name) {
239                    return _socialActivityAchievementLocalService.getGroupAchievementsCount(groupId,
240                            name);
241            }
242    
243            @Override
244            public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> getGroupFirstAchievements(
245                    long groupId) {
246                    return _socialActivityAchievementLocalService.getGroupFirstAchievements(groupId);
247            }
248    
249            @Override
250            public int getGroupFirstAchievementsCount(long groupId) {
251                    return _socialActivityAchievementLocalService.getGroupFirstAchievementsCount(groupId);
252            }
253    
254            @Override
255            public com.liferay.portal.model.PersistedModel getPersistedModel(
256                    java.io.Serializable primaryKeyObj)
257                    throws com.liferay.portal.kernel.exception.PortalException {
258                    return _socialActivityAchievementLocalService.getPersistedModel(primaryKeyObj);
259            }
260    
261            /**
262            * Returns the social activity achievement with the primary key.
263            *
264            * @param activityAchievementId the primary key of the social activity achievement
265            * @return the social activity achievement
266            * @throws PortalException if a social activity achievement with the primary key could not be found
267            */
268            @Override
269            public com.liferay.portlet.social.model.SocialActivityAchievement getSocialActivityAchievement(
270                    long activityAchievementId)
271                    throws com.liferay.portal.kernel.exception.PortalException {
272                    return _socialActivityAchievementLocalService.getSocialActivityAchievement(activityAchievementId);
273            }
274    
275            /**
276            * Returns a range of all the social activity achievements.
277            *
278            * <p>
279            * 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.SocialActivityAchievementModelImpl}. 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.
280            * </p>
281            *
282            * @param start the lower bound of the range of social activity achievements
283            * @param end the upper bound of the range of social activity achievements (not inclusive)
284            * @return the range of social activity achievements
285            */
286            @Override
287            public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> getSocialActivityAchievements(
288                    int start, int end) {
289                    return _socialActivityAchievementLocalService.getSocialActivityAchievements(start,
290                            end);
291            }
292    
293            /**
294            * Returns the number of social activity achievements.
295            *
296            * @return the number of social activity achievements
297            */
298            @Override
299            public int getSocialActivityAchievementsCount() {
300                    return _socialActivityAchievementLocalService.getSocialActivityAchievementsCount();
301            }
302    
303            @Override
304            public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> getUserAchievements(
305                    long userId, long groupId) {
306                    return _socialActivityAchievementLocalService.getUserAchievements(userId,
307                            groupId);
308            }
309    
310            @Override
311            public int getUserAchievementsCount(long userId, long groupId) {
312                    return _socialActivityAchievementLocalService.getUserAchievementsCount(userId,
313                            groupId);
314            }
315    
316            /**
317            * Sets the Spring bean ID for this bean.
318            *
319            * @param beanIdentifier the Spring bean ID for this bean
320            */
321            @Override
322            public void setBeanIdentifier(java.lang.String beanIdentifier) {
323                    _socialActivityAchievementLocalService.setBeanIdentifier(beanIdentifier);
324            }
325    
326            /**
327            * Updates the social activity achievement in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
328            *
329            * @param socialActivityAchievement the social activity achievement
330            * @return the social activity achievement that was updated
331            */
332            @Override
333            public com.liferay.portlet.social.model.SocialActivityAchievement updateSocialActivityAchievement(
334                    com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement) {
335                    return _socialActivityAchievementLocalService.updateSocialActivityAchievement(socialActivityAchievement);
336            }
337    
338            /**
339             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
340             */
341            @Deprecated
342            public SocialActivityAchievementLocalService getWrappedSocialActivityAchievementLocalService() {
343                    return _socialActivityAchievementLocalService;
344            }
345    
346            /**
347             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
348             */
349            @Deprecated
350            public void setWrappedSocialActivityAchievementLocalService(
351                    SocialActivityAchievementLocalService socialActivityAchievementLocalService) {
352                    _socialActivityAchievementLocalService = socialActivityAchievementLocalService;
353            }
354    
355            @Override
356            public SocialActivityAchievementLocalService getWrappedService() {
357                    return _socialActivityAchievementLocalService;
358            }
359    
360            @Override
361            public void setWrappedService(
362                    SocialActivityAchievementLocalService socialActivityAchievementLocalService) {
363                    _socialActivityAchievementLocalService = socialActivityAchievementLocalService;
364            }
365    
366            private SocialActivityAchievementLocalService _socialActivityAchievementLocalService;
367    }