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            @Override
210            public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> getGroupAchievements(
211                    long groupId) {
212                    return _socialActivityAchievementLocalService.getGroupAchievements(groupId);
213            }
214    
215            @Override
216            public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> getGroupAchievements(
217                    long groupId, java.lang.String name) {
218                    return _socialActivityAchievementLocalService.getGroupAchievements(groupId,
219                            name);
220            }
221    
222            @Override
223            public int getGroupAchievementsCount(long groupId) {
224                    return _socialActivityAchievementLocalService.getGroupAchievementsCount(groupId);
225            }
226    
227            @Override
228            public int getGroupAchievementsCount(long groupId, java.lang.String name) {
229                    return _socialActivityAchievementLocalService.getGroupAchievementsCount(groupId,
230                            name);
231            }
232    
233            @Override
234            public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> getGroupFirstAchievements(
235                    long groupId) {
236                    return _socialActivityAchievementLocalService.getGroupFirstAchievements(groupId);
237            }
238    
239            @Override
240            public int getGroupFirstAchievementsCount(long groupId) {
241                    return _socialActivityAchievementLocalService.getGroupFirstAchievementsCount(groupId);
242            }
243    
244            @Override
245            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
246                    return _socialActivityAchievementLocalService.getIndexableActionableDynamicQuery();
247            }
248    
249            /**
250            * Returns the OSGi service identifier.
251            *
252            * @return the OSGi service identifier
253            */
254            @Override
255            public java.lang.String getOSGiServiceIdentifier() {
256                    return _socialActivityAchievementLocalService.getOSGiServiceIdentifier();
257            }
258    
259            @Override
260            public com.liferay.portal.model.PersistedModel getPersistedModel(
261                    java.io.Serializable primaryKeyObj)
262                    throws com.liferay.portal.kernel.exception.PortalException {
263                    return _socialActivityAchievementLocalService.getPersistedModel(primaryKeyObj);
264            }
265    
266            /**
267            * Returns the social activity achievement with the primary key.
268            *
269            * @param activityAchievementId the primary key of the social activity achievement
270            * @return the social activity achievement
271            * @throws PortalException if a social activity achievement with the primary key could not be found
272            */
273            @Override
274            public com.liferay.portlet.social.model.SocialActivityAchievement getSocialActivityAchievement(
275                    long activityAchievementId)
276                    throws com.liferay.portal.kernel.exception.PortalException {
277                    return _socialActivityAchievementLocalService.getSocialActivityAchievement(activityAchievementId);
278            }
279    
280            /**
281            * Returns a range of all the social activity achievements.
282            *
283            * <p>
284            * 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.
285            * </p>
286            *
287            * @param start the lower bound of the range of social activity achievements
288            * @param end the upper bound of the range of social activity achievements (not inclusive)
289            * @return the range of social activity achievements
290            */
291            @Override
292            public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> getSocialActivityAchievements(
293                    int start, int end) {
294                    return _socialActivityAchievementLocalService.getSocialActivityAchievements(start,
295                            end);
296            }
297    
298            /**
299            * Returns the number of social activity achievements.
300            *
301            * @return the number of social activity achievements
302            */
303            @Override
304            public int getSocialActivityAchievementsCount() {
305                    return _socialActivityAchievementLocalService.getSocialActivityAchievementsCount();
306            }
307    
308            @Override
309            public java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> getUserAchievements(
310                    long userId, long groupId) {
311                    return _socialActivityAchievementLocalService.getUserAchievements(userId,
312                            groupId);
313            }
314    
315            @Override
316            public int getUserAchievementsCount(long userId, long groupId) {
317                    return _socialActivityAchievementLocalService.getUserAchievementsCount(userId,
318                            groupId);
319            }
320    
321            /**
322            * Updates the social activity achievement in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
323            *
324            * @param socialActivityAchievement the social activity achievement
325            * @return the social activity achievement that was updated
326            */
327            @Override
328            public com.liferay.portlet.social.model.SocialActivityAchievement updateSocialActivityAchievement(
329                    com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement) {
330                    return _socialActivityAchievementLocalService.updateSocialActivityAchievement(socialActivityAchievement);
331            }
332    
333            @Override
334            public SocialActivityAchievementLocalService getWrappedService() {
335                    return _socialActivityAchievementLocalService;
336            }
337    
338            @Override
339            public void setWrappedService(
340                    SocialActivityAchievementLocalService socialActivityAchievementLocalService) {
341                    _socialActivityAchievementLocalService = socialActivityAchievementLocalService;
342            }
343    
344            private SocialActivityAchievementLocalService _socialActivityAchievementLocalService;
345    }