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 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 com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
039                    return _socialActivityAchievementLocalService.getActionableDynamicQuery();
040            }
041    
042            @Override
043            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
044                    return _socialActivityAchievementLocalService.dynamicQuery();
045            }
046    
047            @Override
048            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
049                    return _socialActivityAchievementLocalService.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 _socialActivityAchievementLocalService.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 _socialActivityAchievementLocalService.getPersistedModel(primaryKeyObj);
067            }
068    
069            /**
070            * Adds the social activity achievement to the database. Also notifies the appropriate model listeners.
071            *
072            * @param socialActivityAchievement the social activity achievement
073            * @return the social activity achievement that was added
074            */
075            @Override
076            public com.liferay.social.kernel.model.SocialActivityAchievement addSocialActivityAchievement(
077                    com.liferay.social.kernel.model.SocialActivityAchievement socialActivityAchievement) {
078                    return _socialActivityAchievementLocalService.addSocialActivityAchievement(socialActivityAchievement);
079            }
080    
081            /**
082            * Creates a new social activity achievement with the primary key. Does not add the social activity achievement to the database.
083            *
084            * @param activityAchievementId the primary key for the new social activity achievement
085            * @return the new social activity achievement
086            */
087            @Override
088            public com.liferay.social.kernel.model.SocialActivityAchievement createSocialActivityAchievement(
089                    long activityAchievementId) {
090                    return _socialActivityAchievementLocalService.createSocialActivityAchievement(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.social.kernel.model.SocialActivityAchievement deleteSocialActivityAchievement(
101                    com.liferay.social.kernel.model.SocialActivityAchievement socialActivityAchievement) {
102                    return _socialActivityAchievementLocalService.deleteSocialActivityAchievement(socialActivityAchievement);
103            }
104    
105            /**
106            * Deletes the social activity achievement with the primary key from the database. Also notifies the appropriate model listeners.
107            *
108            * @param activityAchievementId the primary key of the social activity achievement
109            * @return the social activity achievement that was removed
110            * @throws PortalException if a social activity achievement with the primary key could not be found
111            */
112            @Override
113            public com.liferay.social.kernel.model.SocialActivityAchievement deleteSocialActivityAchievement(
114                    long activityAchievementId)
115                    throws com.liferay.portal.kernel.exception.PortalException {
116                    return _socialActivityAchievementLocalService.deleteSocialActivityAchievement(activityAchievementId);
117            }
118    
119            @Override
120            public com.liferay.social.kernel.model.SocialActivityAchievement fetchSocialActivityAchievement(
121                    long activityAchievementId) {
122                    return _socialActivityAchievementLocalService.fetchSocialActivityAchievement(activityAchievementId);
123            }
124    
125            @Override
126            public com.liferay.social.kernel.model.SocialActivityAchievement fetchUserAchievement(
127                    long userId, long groupId, java.lang.String name) {
128                    return _socialActivityAchievementLocalService.fetchUserAchievement(userId,
129                            groupId, name);
130            }
131    
132            /**
133            * Returns the social activity achievement with the primary key.
134            *
135            * @param activityAchievementId the primary key of the social activity achievement
136            * @return the social activity achievement
137            * @throws PortalException if a social activity achievement with the primary key could not be found
138            */
139            @Override
140            public com.liferay.social.kernel.model.SocialActivityAchievement getSocialActivityAchievement(
141                    long activityAchievementId)
142                    throws com.liferay.portal.kernel.exception.PortalException {
143                    return _socialActivityAchievementLocalService.getSocialActivityAchievement(activityAchievementId);
144            }
145    
146            /**
147            * Updates the social activity achievement in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
148            *
149            * @param socialActivityAchievement the social activity achievement
150            * @return the social activity achievement that was updated
151            */
152            @Override
153            public com.liferay.social.kernel.model.SocialActivityAchievement updateSocialActivityAchievement(
154                    com.liferay.social.kernel.model.SocialActivityAchievement socialActivityAchievement) {
155                    return _socialActivityAchievementLocalService.updateSocialActivityAchievement(socialActivityAchievement);
156            }
157    
158            @Override
159            public int getGroupAchievementsCount(long groupId) {
160                    return _socialActivityAchievementLocalService.getGroupAchievementsCount(groupId);
161            }
162    
163            @Override
164            public int getGroupAchievementsCount(long groupId, java.lang.String name) {
165                    return _socialActivityAchievementLocalService.getGroupAchievementsCount(groupId,
166                            name);
167            }
168    
169            @Override
170            public int getGroupFirstAchievementsCount(long groupId) {
171                    return _socialActivityAchievementLocalService.getGroupFirstAchievementsCount(groupId);
172            }
173    
174            /**
175            * Returns the number of social activity achievements.
176            *
177            * @return the number of social activity achievements
178            */
179            @Override
180            public int getSocialActivityAchievementsCount() {
181                    return _socialActivityAchievementLocalService.getSocialActivityAchievementsCount();
182            }
183    
184            @Override
185            public int getUserAchievementsCount(long userId, long groupId) {
186                    return _socialActivityAchievementLocalService.getUserAchievementsCount(userId,
187                            groupId);
188            }
189    
190            /**
191            * Returns the OSGi service identifier.
192            *
193            * @return the OSGi service identifier
194            */
195            @Override
196            public java.lang.String getOSGiServiceIdentifier() {
197                    return _socialActivityAchievementLocalService.getOSGiServiceIdentifier();
198            }
199    
200            /**
201            * Performs a dynamic query on the database and returns the matching rows.
202            *
203            * @param dynamicQuery the dynamic query
204            * @return the matching rows
205            */
206            @Override
207            public <T> java.util.List<T> dynamicQuery(
208                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
209                    return _socialActivityAchievementLocalService.dynamicQuery(dynamicQuery);
210            }
211    
212            /**
213            * Performs a dynamic query on the database and returns a range of the matching rows.
214            *
215            * <p>
216            * 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.
217            * </p>
218            *
219            * @param dynamicQuery the dynamic query
220            * @param start the lower bound of the range of model instances
221            * @param end the upper bound of the range of model instances (not inclusive)
222            * @return the range of matching rows
223            */
224            @Override
225            public <T> java.util.List<T> dynamicQuery(
226                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
227                    int end) {
228                    return _socialActivityAchievementLocalService.dynamicQuery(dynamicQuery,
229                            start, end);
230            }
231    
232            /**
233            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
234            *
235            * <p>
236            * 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.
237            * </p>
238            *
239            * @param dynamicQuery the dynamic query
240            * @param start the lower bound of the range of model instances
241            * @param end the upper bound of the range of model instances (not inclusive)
242            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
243            * @return the ordered range of matching rows
244            */
245            @Override
246            public <T> java.util.List<T> dynamicQuery(
247                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
248                    int end,
249                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
250                    return _socialActivityAchievementLocalService.dynamicQuery(dynamicQuery,
251                            start, end, orderByComparator);
252            }
253    
254            @Override
255            public java.util.List<com.liferay.social.kernel.model.SocialActivityAchievement> getGroupAchievements(
256                    long groupId) {
257                    return _socialActivityAchievementLocalService.getGroupAchievements(groupId);
258            }
259    
260            @Override
261            public java.util.List<com.liferay.social.kernel.model.SocialActivityAchievement> getGroupAchievements(
262                    long groupId, java.lang.String name) {
263                    return _socialActivityAchievementLocalService.getGroupAchievements(groupId,
264                            name);
265            }
266    
267            @Override
268            public java.util.List<com.liferay.social.kernel.model.SocialActivityAchievement> getGroupFirstAchievements(
269                    long groupId) {
270                    return _socialActivityAchievementLocalService.getGroupFirstAchievements(groupId);
271            }
272    
273            /**
274            * Returns a range of all the social activity achievements.
275            *
276            * <p>
277            * 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.
278            * </p>
279            *
280            * @param start the lower bound of the range of social activity achievements
281            * @param end the upper bound of the range of social activity achievements (not inclusive)
282            * @return the range of social activity achievements
283            */
284            @Override
285            public java.util.List<com.liferay.social.kernel.model.SocialActivityAchievement> getSocialActivityAchievements(
286                    int start, int end) {
287                    return _socialActivityAchievementLocalService.getSocialActivityAchievements(start,
288                            end);
289            }
290    
291            @Override
292            public java.util.List<com.liferay.social.kernel.model.SocialActivityAchievement> getUserAchievements(
293                    long userId, long groupId) {
294                    return _socialActivityAchievementLocalService.getUserAchievements(userId,
295                            groupId);
296            }
297    
298            /**
299            * Returns the number of rows matching the dynamic query.
300            *
301            * @param dynamicQuery the dynamic query
302            * @return the number of rows matching the dynamic query
303            */
304            @Override
305            public long dynamicQueryCount(
306                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
307                    return _socialActivityAchievementLocalService.dynamicQueryCount(dynamicQuery);
308            }
309    
310            /**
311            * Returns the number of rows matching the dynamic query.
312            *
313            * @param dynamicQuery the dynamic query
314            * @param projection the projection to apply to the query
315            * @return the number of rows matching the dynamic query
316            */
317            @Override
318            public long dynamicQueryCount(
319                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
320                    com.liferay.portal.kernel.dao.orm.Projection projection) {
321                    return _socialActivityAchievementLocalService.dynamicQueryCount(dynamicQuery,
322                            projection);
323            }
324    
325            @Override
326            public void addActivityAchievement(long userId, long groupId,
327                    com.liferay.social.kernel.model.SocialAchievement achievement)
328                    throws com.liferay.portal.kernel.exception.PortalException {
329                    _socialActivityAchievementLocalService.addActivityAchievement(userId,
330                            groupId, achievement);
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    }