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